Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for MPSolve 3.2.3.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and [email protected]
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='MPSolve'
623 PACKAGE_TARNAME='mpsolve'
624 PACKAGE_VERSION='3.2.3'
625 PACKAGE_STRING='MPSolve 3.2.3'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 ac_unique_file="Makefile.am"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 LIBMPS_CFLAGS
666 LIBMPS_LDFLAGS
667 HAVE_DOXYGEN_FALSE
668 HAVE_DOXYGEN_TRUE
669 HAVE_DOT
670 DOT
671 DOXYGEN
672 BUILD_EXAMPLES_FALSE
673 BUILD_EXAMPLES_TRUE
674 ROOTS_OF_UNITY_PROGRAMS
675 GTK_FOUND
676 BUILD_PYTHON_MODULE_FALSE
677 BUILD_PYTHON_MODULE_TRUE
678 HAVE_PYTHON_FALSE
679 HAVE_PYTHON_TRUE
680 PYTHON_CONFIG
681 PYTHON_INCLUDE
682 pkgpyexecdir
683 pyexecdir
684 pkgpythondir
685 pythondir
686 PYTHON_EXEC_PREFIX
687 PYTHON_PREFIX
688 PYTHON_PLATFORM
689 PYTHON_VERSION
690 PYTHON
691 BUILD_MATLAB_TOOLBOX_FALSE
692 BUILD_MATLAB_TOOLBOX_TRUE
693 MEX_LDFLAGS_PREFIX
694 MEX_OUTPUT_SUFFIX
695 MEXOPTS
696 MEX_OUTPUT_FLAG
697 MATLAB_MODULES_PROGRAMS
698 MEX
699 BUILD_OCT_FILE_FALSE
700 BUILD_OCT_FILE_TRUE
701 OCTAVE
702 MKOCTFILE
703 QT_VERSION
704 QT_LIBS
705 QT_LDFLAGS
706 QT_CFLAGS
707 QT_PROGRAMS
708 HAVE_UI_FALSE
709 HAVE_UI_TRUE
710 RCC
711 MOC
712 UIC
713 QT4_LIBS
714 QT4_CFLAGS
715 QT5_LIBS
716 QT5_CFLAGS
717 CAIRO_LIBS
718 CAIRO_CFLAGS
719 GTK_LIBS
720 GTK_CFLAGS
721 CHECK_PROGRAMS
722 CHECK_FALSE
723 CHECK_TRUE
724 CHECK_LIBS
725 CHECK_CFLAGS
726 PKG_CONFIG_LIBDIR
727 PKG_CONFIG_PATH
728 PKG_CONFIG
729 GMP_LIBS
730 GMP_CFLAGS
731 MPS_USE_BUILTIN_COMPLEX
732 PTHREAD_LDFLAGS
733 PTHREAD_CFLAGS
734 PTHREAD_LIBS
735 PTHREAD_CC
736 acx_pthread_config
737 HAVE_WINDRES_FALSE
738 HAVE_WINDRES_TRUE
739 WINDOWS_BUILD_FALSE
740 WINDOWS_BUILD_TRUE
741 WINDRES
742 LIBOBJS
743 LEXLIB
744 LEX_OUTPUT_ROOT
745 LEX
746 YFLAGS
747 YACC
748 am__fastdepCXX_FALSE
749 am__fastdepCXX_TRUE
750 CXXDEPMODE
751 CXXCPP
752 ac_ct_CXX
753 CXXFLAGS
754 CXX
755 ac_ct_FC
756 FCFLAGS
757 FC
758 BUILD_QML_UI_FALSE
759 BUILD_QML_UI_TRUE
760 AM_BACKSLASH
761 AM_DEFAULT_VERBOSITY
762 AM_DEFAULT_V
763 AM_V
764 CSCOPE
765 ETAGS
766 CTAGS
767 am__fastdepCC_FALSE
768 am__fastdepCC_TRUE
769 CCDEPMODE
770 am__nodep
771 AMDEPBACKSLASH
772 AMDEP_FALSE
773 AMDEP_TRUE
774 am__include
775 DEPDIR
776 am__untar
777 am__tar
778 AMTAR
779 am__leading_dot
780 SET_MAKE
781 mkdir_p
782 MKDIR_P
783 INSTALL_STRIP_PROGRAM
784 install_sh
785 MAKEINFO
786 AUTOHEADER
787 AUTOMAKE
788 AUTOCONF
789 ACLOCAL
790 VERSION
791 PACKAGE
792 CYGPATH_W
793 am__isrc
794 INSTALL_DATA
795 INSTALL_SCRIPT
796 INSTALL_PROGRAM
797 LT_SYS_LIBRARY_PATH
798 OTOOL64
799 OTOOL
800 LIPO
801 NMEDIT
802 DSYMUTIL
803 MANIFEST_TOOL
804 AWK
805 RANLIB
806 STRIP
807 ac_ct_AR
808 AR
809 FILECMD
810 LN_S
811 NM
812 ac_ct_DUMPBIN
813 DUMPBIN
814 LD
815 FGREP
816 EGREP
817 GREP
818 SED
819 OBJEXT
820 EXEEXT
821 ac_ct_CC
822 CPPFLAGS
823 LDFLAGS
824 CFLAGS
825 CC
826 host_os
827 host_vendor
828 host_cpu
829 host
830 build_os
831 build_vendor
832 build_cpu
833 build
834 LIBTOOL
835 OBJDUMP
836 DLLTOOL
837 AS
838 MPS_PATCH_VERSION
839 MPS_MINOR_VERSION
840 MPS_MAJOR_VERSION
841 target_alias
842 host_alias
843 build_alias
844 LIBS
845 ECHO_T
846 ECHO_N
847 ECHO_C
848 DEFS
849 mandir
850 localedir
851 libdir
852 psdir
853 pdfdir
854 dvidir
855 htmldir
856 infodir
857 docdir
858 oldincludedir
859 includedir
860 runstatedir
861 localstatedir
862 sharedstatedir
863 sysconfdir
864 datadir
865 datarootdir
866 libexecdir
867 sbindir
868 bindir
869 program_transform_name
870 prefix
871 exec_prefix
872 PACKAGE_URL
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL
880 am__quote'
881 ac_subst_files=''
882 ac_user_opts='
883 enable_option_checking
884 enable_shared
885 enable_static
886 with_pic
887 enable_fast_install
888 with_aix_soname
889 with_gnu_ld
890 with_sysroot
891 enable_libtool_lock
892 enable_dependency_tracking
893 enable_silent_rules
894 enable_debug
895 enable_debug_build
896 enable_qml_ui
897 enable_examples
898 enable_ui
899 enable_graphical_debugger
900 enable_documentation
901 enable_vfpv3
902 enable_tcmalloc
903 with_python_sys_prefix
904 with_python_prefix
905 with_python_exec_prefix
906 '
907 ac_precious_vars='build_alias
908 host_alias
909 target_alias
910 CC
911 CFLAGS
912 LDFLAGS
913 LIBS
914 CPPFLAGS
915 LT_SYS_LIBRARY_PATH
916 FC
917 FCFLAGS
918 CXX
919 CXXFLAGS
920 CCC
921 CXXCPP
922 YACC
923 YFLAGS
924 PKG_CONFIG
925 PKG_CONFIG_PATH
926 PKG_CONFIG_LIBDIR
927 CHECK_CFLAGS
928 CHECK_LIBS
929 GTK_CFLAGS
930 GTK_LIBS
931 CAIRO_CFLAGS
932 CAIRO_LIBS
933 QT5_CFLAGS
934 QT5_LIBS
935 QT4_CFLAGS
936 QT4_LIBS
937 PYTHON
938 PYTHON_INCLUDE
939 PYTHON_CONFIG'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 runstatedir='${localstatedir}/run'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *=) ac_optarg= ;;
1005 *) ac_optarg=yes ;;
1006 esac
1007
1008 case $ac_dashdash$ac_option in
1009 --)
1010 ac_dashdash=yes ;;
1011
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 ac_prev=bindir ;;
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1016
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1021
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1028
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1031
1032 -datadir | --datadir | --datadi | --datad)
1033 ac_prev=datadir ;;
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1036
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1043
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=no ;;
1059
1060 -docdir | --docdir | --docdi | --doc | --do)
1061 ac_prev=docdir ;;
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1064
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 ac_prev=dvidir ;;
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1069
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1094
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1098
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1105
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1110
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1116
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1123
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1128
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1133
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1140
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1145
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1152
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1157
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1161
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1165
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1169
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1178
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1183
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1190
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1197
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1214
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1219
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1224
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1228
1229 -runstatedir | --runstatedir | --runstatedi | --runstated \
1230 | --runstate | --runstat | --runsta | --runst | --runs \
1231 | --run | --ru | --r)
1232 ac_prev=runstatedir ;;
1233 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1234 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1235 | --run=* | --ru=* | --r=*)
1236 runstatedir=$ac_optarg ;;
1237
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1243
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1254
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1259
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1264
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1271
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1276
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1279
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1282
1283 -with-* | --with-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error $? "invalid package name: \`$ac_useropt'"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1291 *"
1292 "with_$ac_useropt"
1293 "*) ;;
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1296 esac
1297 eval with_$ac_useropt=\$ac_optarg ;;
1298
1299 -without-* | --without-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error $? "invalid package name: \`$ac_useropt'"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1307 *"
1308 "with_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval with_$ac_useropt=no ;;
1314
1315 --x)
1316 # Obsolete; use --with-x.
1317 with_x=yes ;;
1318
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1325
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1332
1333 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information"
1335 ;;
1336
1337 *=*)
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' | [0-9]* | *[!_$as_cr_alnum]* )
1342 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1343 esac
1344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1346
1347 *)
1348 # FIXME: should be removed in autoconf 3.0.
1349 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1353 ;;
1354
1355 esac
1356 done
1357
1358 if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error $? "missing argument to $ac_option"
1361 fi
1362
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1365 no) ;;
1366 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1367 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 esac
1369 fi
1370
1371 # Check all directory arguments for consistency.
1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir runstatedir
1376 do
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1379 case $ac_val in
1380 */ )
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1383 esac
1384 # Be sure to have absolute directory names.
1385 case $ac_val in
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 esac
1389 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1390 done
1391
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1395 build=$build_alias
1396 host=$host_alias
1397 target=$target_alias
1398
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1405 fi
1406 fi
1407
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411 test "$silent" = yes && exec 6>/dev/null
1412
1413
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error $? "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error $? "pwd does not report name of working directory"
1420
1421
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 printf "%s\n" X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1452 fi
1453 else
1454 ac_srcdir_defaulted=no
1455 fi
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1459 fi
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1467 fi
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1480
1481 #
1482 # Report the --help message.
1483 #
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures MPSolve 3.2.3 to adapt to many kinds of systems.
1489
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1494
1495 Defaults for the options are specified in brackets.
1496
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking ...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1513
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1518
1519 For better control, use the options below.
1520
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1529 --libdir=DIR object code libraries [EPREFIX/lib]
1530 --includedir=DIR C header files [PREFIX/include]
1531 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534 --infodir=DIR info documentation [DATAROOTDIR/info]
1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536 --mandir=DIR man documentation [DATAROOTDIR/man]
1537 --docdir=DIR documentation root [DATAROOTDIR/doc/mpsolve]
1538 --htmldir=DIR html documentation [DOCDIR]
1539 --dvidir=DIR dvi documentation [DOCDIR]
1540 --pdfdir=DIR pdf documentation [DOCDIR]
1541 --psdir=DIR ps documentation [DOCDIR]
1542 _ACEOF
1543
1544 cat <<\_ACEOF
1545
1546 Program names:
1547 --program-prefix=PREFIX prepend PREFIX to installed program names
1548 --program-suffix=SUFFIX append SUFFIX to installed program names
1549 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550
1551 System types:
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 _ACEOF
1555 fi
1556
1557 if test -n "$ac_init_help"; then
1558 case $ac_init_help in
1559 short | recursive ) echo "Configuration of MPSolve 3.2.3:";;
1560 esac
1561 cat <<\_ACEOF
1562
1563 Optional Features:
1564 --disable-option-checking ignore unrecognized --enable/--with options
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567 --enable-shared[=PKGS] build shared libraries [default=yes]
1568 --enable-static[=PKGS] build static libraries [default=yes]
1569 --enable-fast-install[=PKGS]
1570 optimize for fast installation [default=yes]
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572 --enable-dependency-tracking
1573 do not reject slow dependency extractors
1574 --disable-dependency-tracking
1575 speeds up one-time build
1576 --enable-silent-rules less verbose build output (undo: "make V=1")
1577 --disable-silent-rules verbose build output (undo: "make V=0")
1578 --disable-debug Disable debug prints in the code
1579 --enable-debug-build Build mpsolve with debug symbols and disable all the
1580 optimizations of the compiler
1581 --enable-qml-ui Build xmpsolve with the Qml UI
1582 --disable-examples Disable additional examples and modules bundled with
1583 MPSolve
1584 --disable-ui Don't build the graphical user interface for MPSolve
1585 --disable-graphical-debugger
1586 Don't bundle the GTK graphical debugger in MPSolve
1587 --disable-documentation Don't build Doxygen documentation
1588 --enable-vfpv3 Build with FPU support for ARM using
1589 VFPv3-instructions
1590 --disable-tcmalloc Disable the use of the thread caching malloc
1591
1592 Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1596 both]
1597 --with-aix-soname=aix|svr4|both
1598 shared library versioning (aka "SONAME") variant to
1599 provide on AIX, [default=aix].
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1602 compiler's sysroot if not specified).
1603 --with-python-sys-prefix
1604 use Python's sys.prefix and sys.exec_prefix values
1605 --with-python_prefix override the default PYTHON_PREFIX
1606 --with-python_exec_prefix
1607 override the default PYTHON_EXEC_PREFIX
1608
1609 Some influential environment variables:
1610 CC C compiler command
1611 CFLAGS C compiler flags
1612 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1613 nonstandard directory <lib dir>
1614 LIBS libraries to pass to the linker, e.g. -l<library>
1615 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1616 you have headers in a nonstandard directory <include dir>
1617 LT_SYS_LIBRARY_PATH
1618 User-defined run-time library search path.
1619 FC Fortran compiler command
1620 FCFLAGS Fortran compiler flags
1621 CXX C++ compiler command
1622 CXXFLAGS C++ compiler flags
1623 CXXCPP C++ preprocessor
1624 YACC The `Yet Another Compiler Compiler' implementation to use.
1625 Defaults to the first program found out of: `bison -y', `byacc',
1626 `yacc'.
1627 YFLAGS The list of arguments that will be passed by default to $YACC.
1628 This script will default YFLAGS to the empty string to avoid a
1629 default value of `-d' given by some make applications.
1630 PKG_CONFIG path to pkg-config utility
1631 PKG_CONFIG_PATH
1632 directories to add to pkg-config's search path
1633 PKG_CONFIG_LIBDIR
1634 path overriding pkg-config's built-in search path
1635 CHECK_CFLAGS
1636 C compiler flags for CHECK, overriding pkg-config
1637 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1638 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1639 GTK_LIBS linker flags for GTK, overriding pkg-config
1640 CAIRO_CFLAGS
1641 C compiler flags for CAIRO, overriding pkg-config
1642 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1643 QT5_CFLAGS C compiler flags for QT5, overriding pkg-config
1644 QT5_LIBS linker flags for QT5, overriding pkg-config
1645 QT4_CFLAGS C compiler flags for QT4, overriding pkg-config
1646 QT4_LIBS linker flags for QT4, overriding pkg-config
1647 PYTHON the Python interpreter
1648 PYTHON_INCLUDE
1649 Include flags for python, bypassing python-config
1650 PYTHON_CONFIG
1651 Path to python-config
1652
1653 Use these variables to override the choices made by `configure' or to help
1654 it to find libraries and programs with nonstandard names/locations.
1655
1656 Report bugs to <[email protected]>.
1657 _ACEOF
1658 ac_status=$?
1659 fi
1660
1661 if test "$ac_init_help" = "recursive"; then
1662 # If there are subdirs, report their specific --help.
1663 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1664 test -d "$ac_dir" ||
1665 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666 continue
1667 ac_builddir=.
1668
1669 case "$ac_dir" in
1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671 *)
1672 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1673 # A ".." for each directory in $ac_dir_suffix.
1674 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1675 case $ac_top_builddir_sub in
1676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678 esac ;;
1679 esac
1680 ac_abs_top_builddir=$ac_pwd
1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir=$ac_top_build_prefix
1684
1685 case $srcdir in
1686 .) # We are building in place.
1687 ac_srcdir=.
1688 ac_top_srcdir=$ac_top_builddir_sub
1689 ac_abs_top_srcdir=$ac_pwd ;;
1690 [\\/]* | ?:[\\/]* ) # Absolute name.
1691 ac_srcdir=$srcdir$ac_dir_suffix;
1692 ac_top_srcdir=$srcdir
1693 ac_abs_top_srcdir=$srcdir ;;
1694 *) # Relative name.
1695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696 ac_top_srcdir=$ac_top_build_prefix$srcdir
1697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698 esac
1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700
1701 cd "$ac_dir" || { ac_status=$?; continue; }
1702 # Check for configure.gnu first; this name is used for a wrapper for
1703 # Metaconfig's "Configure" on case-insensitive file systems.
1704 if test -f "$ac_srcdir/configure.gnu"; then
1705 echo &&
1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707 elif test -f "$ac_srcdir/configure"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure" --help=recursive
1710 else
1711 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1712 fi || ac_status=$?
1713 cd "$ac_pwd" || { ac_status=$?; break; }
1714 done
1715 fi
1716
1717 test -n "$ac_init_help" && exit $ac_status
1718 if $ac_init_version; then
1719 cat <<\_ACEOF
1720 MPSolve configure 3.2.3
1721 generated by GNU Autoconf 2.71
1722
1723 Copyright (C) 2021 Free Software Foundation, Inc.
1724 This configure script is free software; the Free Software Foundation
1725 gives unlimited permission to copy, distribute and modify it.
1726 _ACEOF
1727 exit
1728 fi
1729
1730 ## ------------------------ ##
1731 ## Autoconf initialization. ##
1732 ## ------------------------ ##
1733
1734 # ac_fn_c_try_compile LINENO
1735 # --------------------------
1736 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_compile ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext conftest.beam
1741 if { { ac_try="$ac_compile"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 printf "%s\n" "$ac_try_echo"; } >&5
1748 (eval "$ac_compile") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest.$ac_objext
1760 then :
1761 ac_retval=0
1762 else $as_nop
1763 printf "%s\n" "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767 fi
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_compile
1772
1773 # ac_fn_c_try_link LINENO
1774 # -----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_link ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 printf "%s\n" "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 test -x conftest$ac_exeext
1801 }
1802 then :
1803 ac_retval=0
1804 else $as_nop
1805 printf "%s\n" "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812 # interfere with the next link command; also delete a directory that is
1813 # left behind by Apple's compiler. We do this before executing the actions.
1814 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1817
1818 } # ac_fn_c_try_link
1819
1820 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1821 # -------------------------------------------------------
1822 # Tests whether HEADER exists and can be compiled using the include files in
1823 # INCLUDES, setting the cache variable VAR accordingly.
1824 ac_fn_c_check_header_compile ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 printf %s "checking for $2... " >&6; }
1829 if eval test \${$3+y}
1830 then :
1831 printf %s "(cached) " >&6
1832 else $as_nop
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 $4
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"
1839 then :
1840 eval "$3=yes"
1841 else $as_nop
1842 eval "$3=no"
1843 fi
1844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1845 fi
1846 eval ac_res=\$$3
1847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 printf "%s\n" "$ac_res" >&6; }
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851 } # ac_fn_c_check_header_compile
1852
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 printf %s "checking for $2... " >&6; }
1861 if eval test \${$3+y}
1862 then :
1863 printf %s "(cached) " >&6
1864 else $as_nop
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1870
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below. */
1873
1874 #include <limits.h>
1875 #undef $2
1876
1877 /* Override any GCC internal prototype to avoid an error.
1878 Use char because int might match the return type of a GCC
1879 builtin and then its argument prototype would still apply. */
1880 #ifdef __cplusplus
1881 extern "C"
1882 #endif
1883 char $2 ();
1884 /* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887 #if defined __stub_$2 || defined __stub___$2
1888 choke me
1889 #endif
1890
1891 int
1892 main (void)
1893 {
1894 return $2 ();
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_link "$LINENO"
1900 then :
1901 eval "$3=yes"
1902 else $as_nop
1903 eval "$3=no"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1906 conftest$ac_exeext conftest.$ac_ext
1907 fi
1908 eval ac_res=\$$3
1909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 printf "%s\n" "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913 } # ac_fn_c_check_func
1914
1915 # ac_fn_fc_try_compile LINENO
1916 # ---------------------------
1917 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1918 ac_fn_fc_try_compile ()
1919 {
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 rm -f conftest.$ac_objext conftest.beam
1922 if { { ac_try="$ac_compile"
1923 case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 printf "%s\n" "$ac_try_echo"; } >&5
1929 (eval "$ac_compile") 2>conftest.err
1930 ac_status=$?
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1935 fi
1936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } && {
1938 test -z "$ac_fc_werror_flag" ||
1939 test ! -s conftest.err
1940 } && test -s conftest.$ac_objext
1941 then :
1942 ac_retval=0
1943 else $as_nop
1944 printf "%s\n" "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1946
1947 ac_retval=1
1948 fi
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1951
1952 } # ac_fn_fc_try_compile
1953
1954 # ac_fn_fc_try_link LINENO
1955 # ------------------------
1956 # Try to link conftest.$ac_ext, and return whether this succeeded.
1957 ac_fn_fc_try_link ()
1958 {
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1961 if { { ac_try="$ac_link"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 printf "%s\n" "$ac_try_echo"; } >&5
1968 (eval "$ac_link") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1974 fi
1975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } && {
1977 test -z "$ac_fc_werror_flag" ||
1978 test ! -s conftest.err
1979 } && test -s conftest$ac_exeext && {
1980 test "$cross_compiling" = yes ||
1981 test -x conftest$ac_exeext
1982 }
1983 then :
1984 ac_retval=0
1985 else $as_nop
1986 printf "%s\n" "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990 fi
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 as_fn_set_status $ac_retval
1998
1999 } # ac_fn_fc_try_link
2000
2001 # ac_fn_cxx_try_compile LINENO
2002 # ----------------------------
2003 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2004 ac_fn_cxx_try_compile ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext conftest.beam
2008 if { { ac_try="$ac_compile"
2009 case "(($ac_try" in
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 printf "%s\n" "$ac_try_echo"; } >&5
2015 (eval "$ac_compile") 2>conftest.err
2016 ac_status=$?
2017 if test -s conftest.err; then
2018 grep -v '^ *+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2021 fi
2022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_cxx_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest.$ac_objext
2027 then :
2028 ac_retval=0
2029 else $as_nop
2030 printf "%s\n" "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2032
2033 ac_retval=1
2034 fi
2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 as_fn_set_status $ac_retval
2037
2038 } # ac_fn_cxx_try_compile
2039
2040 # ac_fn_cxx_try_cpp LINENO
2041 # ------------------------
2042 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2043 ac_fn_cxx_try_cpp ()
2044 {
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 if { { ac_try="$ac_cpp conftest.$ac_ext"
2047 case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2050 esac
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 printf "%s\n" "$ac_try_echo"; } >&5
2053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2054 ac_status=$?
2055 if test -s conftest.err; then
2056 grep -v '^ *+' conftest.err >conftest.er1
2057 cat conftest.er1 >&5
2058 mv -f conftest.er1 conftest.err
2059 fi
2060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } > conftest.i && {
2062 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2063 test ! -s conftest.err
2064 }
2065 then :
2066 ac_retval=0
2067 else $as_nop
2068 printf "%s\n" "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2070
2071 ac_retval=1
2072 fi
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 as_fn_set_status $ac_retval
2075
2076 } # ac_fn_cxx_try_cpp
2077
2078 # ac_fn_cxx_try_link LINENO
2079 # -------------------------
2080 # Try to link conftest.$ac_ext, and return whether this succeeded.
2081 ac_fn_cxx_try_link ()
2082 {
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2085 if { { ac_try="$ac_link"
2086 case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 printf "%s\n" "$ac_try_echo"; } >&5
2092 (eval "$ac_link") 2>conftest.err
2093 ac_status=$?
2094 if test -s conftest.err; then
2095 grep -v '^ *+' conftest.err >conftest.er1
2096 cat conftest.er1 >&5
2097 mv -f conftest.er1 conftest.err
2098 fi
2099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && {
2101 test -z "$ac_cxx_werror_flag" ||
2102 test ! -s conftest.err
2103 } && test -s conftest$ac_exeext && {
2104 test "$cross_compiling" = yes ||
2105 test -x conftest$ac_exeext
2106 }
2107 then :
2108 ac_retval=0
2109 else $as_nop
2110 printf "%s\n" "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2112
2113 ac_retval=1
2114 fi
2115 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2116 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2117 # interfere with the next link command; also delete a directory that is
2118 # left behind by Apple's compiler. We do this before executing the actions.
2119 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 as_fn_set_status $ac_retval
2122
2123 } # ac_fn_cxx_try_link
2124
2125 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2126 # -------------------------------------------
2127 # Tests whether TYPE exists after having included INCLUDES, setting cache
2128 # variable VAR accordingly.
2129 ac_fn_c_check_type ()
2130 {
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 printf %s "checking for $2... " >&6; }
2134 if eval test \${$3+y}
2135 then :
2136 printf %s "(cached) " >&6
2137 else $as_nop
2138 eval "$3=no"
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 int
2143 main (void)
2144 {
2145 if (sizeof ($2))
2146 return 0;
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"
2152 then :
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2155 $4
2156 int
2157 main (void)
2158 {
2159 if (sizeof (($2)))
2160 return 0;
2161 ;
2162 return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"
2166 then :
2167
2168 else $as_nop
2169 eval "$3=yes"
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2174 fi
2175 eval ac_res=\$$3
2176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 printf "%s\n" "$ac_res" >&6; }
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179
2180 } # ac_fn_c_check_type
2181
2182 # ac_fn_c_try_run LINENO
2183 # ----------------------
2184 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2185 # executables *can* be run.
2186 ac_fn_c_try_run ()
2187 {
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if { { ac_try="$ac_link"
2190 case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 printf "%s\n" "$ac_try_echo"; } >&5
2196 (eval "$ac_link") 2>&5
2197 ac_status=$?
2198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2200 { { case "(($ac_try" in
2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202 *) ac_try_echo=$ac_try;;
2203 esac
2204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2205 printf "%s\n" "$ac_try_echo"; } >&5
2206 (eval "$ac_try") 2>&5
2207 ac_status=$?
2208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209 test $ac_status = 0; }; }
2210 then :
2211 ac_retval=0
2212 else $as_nop
2213 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2214 printf "%s\n" "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 ac_retval=$ac_status
2218 fi
2219 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 as_fn_set_status $ac_retval
2222
2223 } # ac_fn_c_try_run
2224 ac_configure_args_raw=
2225 for ac_arg
2226 do
2227 case $ac_arg in
2228 *\'*)
2229 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230 esac
2231 as_fn_append ac_configure_args_raw " '$ac_arg'"
2232 done
2233
2234 case $ac_configure_args_raw in
2235 *$as_nl*)
2236 ac_safe_unquote= ;;
2237 *)
2238 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2239 ac_unsafe_a="$ac_unsafe_z#~"
2240 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2241 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2242 esac
2243
2244 cat >config.log <<_ACEOF
2245 This file contains any messages produced by compilers while
2246 running configure, to aid debugging if configure makes a mistake.
2247
2248 It was created by MPSolve $as_me 3.2.3, which was
2249 generated by GNU Autoconf 2.71. Invocation command line was
2250
2251 $ $0$ac_configure_args_raw
2252
2253 _ACEOF
2254 exec 5>>config.log
2255 {
2256 cat <<_ASUNAME
2257 ## --------- ##
2258 ## Platform. ##
2259 ## --------- ##
2260
2261 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2262 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2263 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2264 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2265 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2266
2267 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2268 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2269
2270 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2271 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2272 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2273 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2274 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2275 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2276 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2277
2278 _ASUNAME
2279
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283 IFS=$as_save_IFS
2284 case $as_dir in #(((
2285 '') as_dir=./ ;;
2286 */) ;;
2287 *) as_dir=$as_dir/ ;;
2288 esac
2289 printf "%s\n" "PATH: $as_dir"
2290 done
2291 IFS=$as_save_IFS
2292
2293 } >&5
2294
2295 cat >&5 <<_ACEOF
2296
2297
2298 ## ----------- ##
2299 ## Core tests. ##
2300 ## ----------- ##
2301
2302 _ACEOF
2303
2304
2305 # Keep a trace of the command line.
2306 # Strip out --no-create and --no-recursion so they do not pile up.
2307 # Strip out --silent because we don't want to record it for future runs.
2308 # Also quote any args containing shell meta-characters.
2309 # Make two passes to allow for proper duplicate-argument suppression.
2310 ac_configure_args=
2311 ac_configure_args0=
2312 ac_configure_args1=
2313 ac_must_keep_next=false
2314 for ac_pass in 1 2
2315 do
2316 for ac_arg
2317 do
2318 case $ac_arg in
2319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321 | -silent | --silent | --silen | --sile | --sil)
2322 continue ;;
2323 *\'*)
2324 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2325 esac
2326 case $ac_pass in
2327 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2328 2)
2329 as_fn_append ac_configure_args1 " '$ac_arg'"
2330 if test $ac_must_keep_next = true; then
2331 ac_must_keep_next=false # Got value, back to normal.
2332 else
2333 case $ac_arg in
2334 *=* | --config-cache | -C | -disable-* | --disable-* \
2335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337 | -with-* | --with-* | -without-* | --without-* | --x)
2338 case "$ac_configure_args0 " in
2339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340 esac
2341 ;;
2342 -* ) ac_must_keep_next=true ;;
2343 esac
2344 fi
2345 as_fn_append ac_configure_args " '$ac_arg'"
2346 ;;
2347 esac
2348 done
2349 done
2350 { ac_configure_args0=; unset ac_configure_args0;}
2351 { ac_configure_args1=; unset ac_configure_args1;}
2352
2353 # When interrupted or exit'd, cleanup temporary files, and complete
2354 # config.log. We remove comments because anyway the quotes in there
2355 # would cause problems or look ugly.
2356 # WARNING: Use '\'' to represent an apostrophe within the trap.
2357 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2358 trap 'exit_status=$?
2359 # Sanitize IFS.
2360 IFS=" "" $as_nl"
2361 # Save into config.log some information that might help in debugging.
2362 {
2363 echo
2364
2365 printf "%s\n" "## ---------------- ##
2366 ## Cache variables. ##
2367 ## ---------------- ##"
2368 echo
2369 # The following way of writing the cache mishandles newlines in values,
2370 (
2371 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372 eval ac_val=\$$ac_var
2373 case $ac_val in #(
2374 *${as_nl}*)
2375 case $ac_var in #(
2376 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2378 esac
2379 case $ac_var in #(
2380 _ | IFS | as_nl) ;; #(
2381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382 *) { eval $ac_var=; unset $ac_var;} ;;
2383 esac ;;
2384 esac
2385 done
2386 (set) 2>&1 |
2387 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388 *${as_nl}ac_space=\ *)
2389 sed -n \
2390 "s/'\''/'\''\\\\'\'''\''/g;
2391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392 ;; #(
2393 *)
2394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2395 ;;
2396 esac |
2397 sort
2398 )
2399 echo
2400
2401 printf "%s\n" "## ----------------- ##
2402 ## Output variables. ##
2403 ## ----------------- ##"
2404 echo
2405 for ac_var in $ac_subst_vars
2406 do
2407 eval ac_val=\$$ac_var
2408 case $ac_val in
2409 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 esac
2411 printf "%s\n" "$ac_var='\''$ac_val'\''"
2412 done | sort
2413 echo
2414
2415 if test -n "$ac_subst_files"; then
2416 printf "%s\n" "## ------------------- ##
2417 ## File substitutions. ##
2418 ## ------------------- ##"
2419 echo
2420 for ac_var in $ac_subst_files
2421 do
2422 eval ac_val=\$$ac_var
2423 case $ac_val in
2424 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 esac
2426 printf "%s\n" "$ac_var='\''$ac_val'\''"
2427 done | sort
2428 echo
2429 fi
2430
2431 if test -s confdefs.h; then
2432 printf "%s\n" "## ----------- ##
2433 ## confdefs.h. ##
2434 ## ----------- ##"
2435 echo
2436 cat confdefs.h
2437 echo
2438 fi
2439 test "$ac_signal" != 0 &&
2440 printf "%s\n" "$as_me: caught signal $ac_signal"
2441 printf "%s\n" "$as_me: exit $exit_status"
2442 } >&5
2443 rm -f core *.core core.conftest.* &&
2444 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445 exit $exit_status
2446 ' 0
2447 for ac_signal in 1 2 13 15; do
2448 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2449 done
2450 ac_signal=0
2451
2452 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2453 rm -f -r conftest* confdefs.h
2454
2455 printf "%s\n" "/* confdefs.h */" > confdefs.h
2456
2457 # Predefined preprocessor variables.
2458
2459 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2460
2461 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2462
2463 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2464
2465 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2466
2467 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2468
2469 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2470
2471
2472 # Let the site file select an alternate cache file if it wants to.
2473 # Prefer an explicitly selected file to automatically selected ones.
2474 if test -n "$CONFIG_SITE"; then
2475 ac_site_files="$CONFIG_SITE"
2476 elif test "x$prefix" != xNONE; then
2477 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2478 else
2479 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2480 fi
2481
2482 for ac_site_file in $ac_site_files
2483 do
2484 case $ac_site_file in #(
2485 */*) :
2486 ;; #(
2487 *) :
2488 ac_site_file=./$ac_site_file ;;
2489 esac
2490 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2492 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2493 sed 's/^/| /' "$ac_site_file" >&5
2494 . "$ac_site_file" \
2495 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2497 as_fn_error $? "failed to load site script $ac_site_file
2498 See \`config.log' for more details" "$LINENO" 5; }
2499 fi
2500 done
2501
2502 if test -r "$cache_file"; then
2503 # Some versions of bash will fail to source /dev/null (special files
2504 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2505 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2507 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2508 case $cache_file in
2509 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2510 *) . "./$cache_file";;
2511 esac
2512 fi
2513 else
2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2515 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2516 >$cache_file
2517 fi
2518
2519 # Test code for whether the C compiler supports C89 (global declarations)
2520 ac_c_conftest_c89_globals='
2521 /* Does the compiler advertise C89 conformance?
2522 Do not test the value of __STDC__, because some compilers set it to 0
2523 while being otherwise adequately conformant. */
2524 #if !defined __STDC__
2525 # error "Compiler does not advertise C89 conformance"
2526 #endif
2527
2528 #include <stddef.h>
2529 #include <stdarg.h>
2530 struct stat;
2531 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2532 struct buf { int x; };
2533 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2534 static char *e (p, i)
2535 char **p;
2536 int i;
2537 {
2538 return p[i];
2539 }
2540 static char *f (char * (*g) (char **, int), char **p, ...)
2541 {
2542 char *s;
2543 va_list v;
2544 va_start (v,p);
2545 s = g (p, va_arg (v,int));
2546 va_end (v);
2547 return s;
2548 }
2549
2550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2551 function prototypes and stuff, but not \xHH hex character constants.
2552 These do not provoke an error unfortunately, instead are silently treated
2553 as an "x". The following induces an error, until -std is added to get
2554 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2555 array size at least. It is necessary to write \x00 == 0 to get something
2556 that is true only with -std. */
2557 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2558
2559 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2560 inside strings and character constants. */
2561 #define FOO(x) '\''x'\''
2562 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2563
2564 int test (int i, double x);
2565 struct s1 {int (*f) (int a);};
2566 struct s2 {int (*f) (double a);};
2567 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2568 int, int);'
2569
2570 # Test code for whether the C compiler supports C89 (body of main).
2571 ac_c_conftest_c89_main='
2572 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2573 '
2574
2575 # Test code for whether the C compiler supports C99 (global declarations)
2576 ac_c_conftest_c99_globals='
2577 // Does the compiler advertise C99 conformance?
2578 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2579 # error "Compiler does not advertise C99 conformance"
2580 #endif
2581
2582 #include <stdbool.h>
2583 extern int puts (const char *);
2584 extern int printf (const char *, ...);
2585 extern int dprintf (int, const char *, ...);
2586 extern void *malloc (size_t);
2587
2588 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2589 // dprintf is used instead of fprintf to avoid needing to declare
2590 // FILE and stderr.
2591 #define debug(...) dprintf (2, __VA_ARGS__)
2592 #define showlist(...) puts (#__VA_ARGS__)
2593 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2594 static void
2595 test_varargs_macros (void)
2596 {
2597 int x = 1234;
2598 int y = 5678;
2599 debug ("Flag");
2600 debug ("X = %d\n", x);
2601 showlist (The first, second, and third items.);
2602 report (x>y, "x is %d but y is %d", x, y);
2603 }
2604
2605 // Check long long types.
2606 #define BIG64 18446744073709551615ull
2607 #define BIG32 4294967295ul
2608 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2609 #if !BIG_OK
2610 #error "your preprocessor is broken"
2611 #endif
2612 #if BIG_OK
2613 #else
2614 #error "your preprocessor is broken"
2615 #endif
2616 static long long int bignum = -9223372036854775807LL;
2617 static unsigned long long int ubignum = BIG64;
2618
2619 struct incomplete_array
2620 {
2621 int datasize;
2622 double data[];
2623 };
2624
2625 struct named_init {
2626 int number;
2627 const wchar_t *name;
2628 double average;
2629 };
2630
2631 typedef const char *ccp;
2632
2633 static inline int
2634 test_restrict (ccp restrict text)
2635 {
2636 // See if C++-style comments work.
2637 // Iterate through items via the restricted pointer.
2638 // Also check for declarations in for loops.
2639 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2640 continue;
2641 return 0;
2642 }
2643
2644 // Check varargs and va_copy.
2645 static bool
2646 test_varargs (const char *format, ...)
2647 {
2648 va_list args;
2649 va_start (args, format);
2650 va_list args_copy;
2651 va_copy (args_copy, args);
2652
2653 const char *str = "";
2654 int number = 0;
2655 float fnumber = 0;
2656
2657 while (*format)
2658 {
2659 switch (*format++)
2660 {
2661 case '\''s'\'': // string
2662 str = va_arg (args_copy, const char *);
2663 break;
2664 case '\''d'\'': // int
2665 number = va_arg (args_copy, int);
2666 break;
2667 case '\''f'\'': // float
2668 fnumber = va_arg (args_copy, double);
2669 break;
2670 default:
2671 break;
2672 }
2673 }
2674 va_end (args_copy);
2675 va_end (args);
2676
2677 return *str && number && fnumber;
2678 }
2679 '
2680
2681 # Test code for whether the C compiler supports C99 (body of main).
2682 ac_c_conftest_c99_main='
2683 // Check bool.
2684 _Bool success = false;
2685 success |= (argc != 0);
2686
2687 // Check restrict.
2688 if (test_restrict ("String literal") == 0)
2689 success = true;
2690 char *restrict newvar = "Another string";
2691
2692 // Check varargs.
2693 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2694 test_varargs_macros ();
2695
2696 // Check flexible array members.
2697 struct incomplete_array *ia =
2698 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2699 ia->datasize = 10;
2700 for (int i = 0; i < ia->datasize; ++i)
2701 ia->data[i] = i * 1.234;
2702
2703 // Check named initializers.
2704 struct named_init ni = {
2705 .number = 34,
2706 .name = L"Test wide string",
2707 .average = 543.34343,
2708 };
2709
2710 ni.number = 58;
2711
2712 int dynamic_array[ni.number];
2713 dynamic_array[0] = argv[0][0];
2714 dynamic_array[ni.number - 1] = 543;
2715
2716 // work around unused variable warnings
2717 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2718 || dynamic_array[ni.number - 1] != 543);
2719 '
2720
2721 # Test code for whether the C compiler supports C11 (global declarations)
2722 ac_c_conftest_c11_globals='
2723 // Does the compiler advertise C11 conformance?
2724 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2725 # error "Compiler does not advertise C11 conformance"
2726 #endif
2727
2728 // Check _Alignas.
2729 char _Alignas (double) aligned_as_double;
2730 char _Alignas (0) no_special_alignment;
2731 extern char aligned_as_int;
2732 char _Alignas (0) _Alignas (int) aligned_as_int;
2733
2734 // Check _Alignof.
2735 enum
2736 {
2737 int_alignment = _Alignof (int),
2738 int_array_alignment = _Alignof (int[100]),
2739 char_alignment = _Alignof (char)
2740 };
2741 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2742
2743 // Check _Noreturn.
2744 int _Noreturn does_not_return (void) { for (;;) continue; }
2745
2746 // Check _Static_assert.
2747 struct test_static_assert
2748 {
2749 int x;
2750 _Static_assert (sizeof (int) <= sizeof (long int),
2751 "_Static_assert does not work in struct");
2752 long int y;
2753 };
2754
2755 // Check UTF-8 literals.
2756 #define u8 syntax error!
2757 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2758
2759 // Check duplicate typedefs.
2760 typedef long *long_ptr;
2761 typedef long int *long_ptr;
2762 typedef long_ptr long_ptr;
2763
2764 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2765 struct anonymous
2766 {
2767 union {
2768 struct { int i; int j; };
2769 struct { int k; long int l; } w;
2770 };
2771 int m;
2772 } v1;
2773 '
2774
2775 # Test code for whether the C compiler supports C11 (body of main).
2776 ac_c_conftest_c11_main='
2777 _Static_assert ((offsetof (struct anonymous, i)
2778 == offsetof (struct anonymous, w.k)),
2779 "Anonymous union alignment botch");
2780 v1.i = 2;
2781 v1.w.k = 5;
2782 ok |= v1.i != 5;
2783 '
2784
2785 # Test code for whether the C compiler supports C11 (complete).
2786 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2787 ${ac_c_conftest_c99_globals}
2788 ${ac_c_conftest_c11_globals}
2789
2790 int
2791 main (int argc, char **argv)
2792 {
2793 int ok = 0;
2794 ${ac_c_conftest_c89_main}
2795 ${ac_c_conftest_c99_main}
2796 ${ac_c_conftest_c11_main}
2797 return ok;
2798 }
2799 "
2800
2801 # Test code for whether the C compiler supports C99 (complete).
2802 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2803 ${ac_c_conftest_c99_globals}
2804
2805 int
2806 main (int argc, char **argv)
2807 {
2808 int ok = 0;
2809 ${ac_c_conftest_c89_main}
2810 ${ac_c_conftest_c99_main}
2811 return ok;
2812 }
2813 "
2814
2815 # Test code for whether the C compiler supports C89 (complete).
2816 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2817
2818 int
2819 main (int argc, char **argv)
2820 {
2821 int ok = 0;
2822 ${ac_c_conftest_c89_main}
2823 return ok;
2824 }
2825 "
2826
2827 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2828 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2829 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2830 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2831 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2832 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2833 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2834 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2835 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2836 # Test code for whether the C++ compiler supports C++98 (global declarations)
2837 ac_cxx_conftest_cxx98_globals='
2838 // Does the compiler advertise C++98 conformance?
2839 #if !defined __cplusplus || __cplusplus < 199711L
2840 # error "Compiler does not advertise C++98 conformance"
2841 #endif
2842
2843 // These inclusions are to reject old compilers that
2844 // lack the unsuffixed header files.
2845 #include <cstdlib>
2846 #include <exception>
2847
2848 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2849 extern void assert (int);
2850 namespace std {
2851 extern int strcmp (const char *, const char *);
2852 }
2853
2854 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2855 using std::exception;
2856 using std::strcmp;
2857
2858 namespace {
2859
2860 void test_exception_syntax()
2861 {
2862 try {
2863 throw "test";
2864 } catch (const char *s) {
2865 // Extra parentheses suppress a warning when building autoconf itself,
2866 // due to lint rules shared with more typical C programs.
2867 assert (!(strcmp) (s, "test"));
2868 }
2869 }
2870
2871 template <typename T> struct test_template
2872 {
2873 T const val;
2874 explicit test_template(T t) : val(t) {}
2875 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2876 };
2877
2878 } // anonymous namespace
2879 '
2880
2881 # Test code for whether the C++ compiler supports C++98 (body of main)
2882 ac_cxx_conftest_cxx98_main='
2883 assert (argc);
2884 assert (! argv[0]);
2885 {
2886 test_exception_syntax ();
2887 test_template<double> tt (2.0);
2888 assert (tt.add (4) == 6.0);
2889 assert (true && !false);
2890 }
2891 '
2892
2893 # Test code for whether the C++ compiler supports C++11 (global declarations)
2894 ac_cxx_conftest_cxx11_globals='
2895 // Does the compiler advertise C++ 2011 conformance?
2896 #if !defined __cplusplus || __cplusplus < 201103L
2897 # error "Compiler does not advertise C++11 conformance"
2898 #endif
2899
2900 namespace cxx11test
2901 {
2902 constexpr int get_val() { return 20; }
2903
2904 struct testinit
2905 {
2906 int i;
2907 double d;
2908 };
2909
2910 class delegate
2911 {
2912 public:
2913 delegate(int n) : n(n) {}
2914 delegate(): delegate(2354) {}
2915
2916 virtual int getval() { return this->n; };
2917 protected:
2918 int n;
2919 };
2920
2921 class overridden : public delegate
2922 {
2923 public:
2924 overridden(int n): delegate(n) {}
2925 virtual int getval() override final { return this->n * 2; }
2926 };
2927
2928 class nocopy
2929 {
2930 public:
2931 nocopy(int i): i(i) {}
2932 nocopy() = default;
2933 nocopy(const nocopy&) = delete;
2934 nocopy & operator=(const nocopy&) = delete;
2935 private:
2936 int i;
2937 };
2938
2939 // for testing lambda expressions
2940 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2941 {
2942 return f(v);
2943 }
2944
2945 // for testing variadic templates and trailing return types
2946 template <typename V> auto sum(V first) -> V
2947 {
2948 return first;
2949 }
2950 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2951 {
2952 return first + sum(rest...);
2953 }
2954 }
2955 '
2956
2957 # Test code for whether the C++ compiler supports C++11 (body of main)
2958 ac_cxx_conftest_cxx11_main='
2959 {
2960 // Test auto and decltype
2961 auto a1 = 6538;
2962 auto a2 = 48573953.4;
2963 auto a3 = "String literal";
2964
2965 int total = 0;
2966 for (auto i = a3; *i; ++i) { total += *i; }
2967
2968 decltype(a2) a4 = 34895.034;
2969 }
2970 {
2971 // Test constexpr
2972 short sa[cxx11test::get_val()] = { 0 };
2973 }
2974 {
2975 // Test initializer lists
2976 cxx11test::testinit il = { 4323, 435234.23544 };
2977 }
2978 {
2979 // Test range-based for
2980 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2981 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2982 for (auto &x : array) { x += 23; }
2983 }
2984 {
2985 // Test lambda expressions
2986 using cxx11test::eval;
2987 assert (eval ([](int x) { return x*2; }, 21) == 42);
2988 double d = 2.0;
2989 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2990 assert (d == 5.0);
2991 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2992 assert (d == 5.0);
2993 }
2994 {
2995 // Test use of variadic templates
2996 using cxx11test::sum;
2997 auto a = sum(1);
2998 auto b = sum(1, 2);
2999 auto c = sum(1.0, 2.0, 3.0);
3000 }
3001 {
3002 // Test constructor delegation
3003 cxx11test::delegate d1;
3004 cxx11test::delegate d2();
3005 cxx11test::delegate d3(45);
3006 }
3007 {
3008 // Test override and final
3009 cxx11test::overridden o1(55464);
3010 }
3011 {
3012 // Test nullptr
3013 char *c = nullptr;
3014 }
3015 {
3016 // Test template brackets
3017 test_template<::test_template<int>> v(test_template<int>(12));
3018 }
3019 {
3020 // Unicode literals
3021 char const *utf8 = u8"UTF-8 string \u2500";
3022 char16_t const *utf16 = u"UTF-8 string \u2500";
3023 char32_t const *utf32 = U"UTF-32 string \u2500";
3024 }
3025 '
3026
3027 # Test code for whether the C compiler supports C++11 (complete).
3028 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3029 ${ac_cxx_conftest_cxx11_globals}
3030
3031 int
3032 main (int argc, char **argv)
3033 {
3034 int ok = 0;
3035 ${ac_cxx_conftest_cxx98_main}
3036 ${ac_cxx_conftest_cxx11_main}
3037 return ok;
3038 }
3039 "
3040
3041 # Test code for whether the C compiler supports C++98 (complete).
3042 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3043 int
3044 main (int argc, char **argv)
3045 {
3046 int ok = 0;
3047 ${ac_cxx_conftest_cxx98_main}
3048 return ok;
3049 }
3050 "
3051
3052
3053 # Auxiliary files required by this configure script.
3054 ac_aux_files="missing install-sh compile config.guess config.sub ltmain.sh"
3055
3056 # Locations in which to look for auxiliary files.
3057 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3058
3059 # Search for a directory containing all of the required auxiliary files,
3060 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3061 # If we don't find one directory that contains all the files we need,
3062 # we report the set of missing files from the *first* directory in
3063 # $ac_aux_dir_candidates and give up.
3064 ac_missing_aux_files=""
3065 ac_first_candidate=:
3066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 as_found=false
3069 for as_dir in $ac_aux_dir_candidates
3070 do
3071 IFS=$as_save_IFS
3072 case $as_dir in #(((
3073 '') as_dir=./ ;;
3074 */) ;;
3075 *) as_dir=$as_dir/ ;;
3076 esac
3077 as_found=:
3078
3079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3080 ac_aux_dir_found=yes
3081 ac_install_sh=
3082 for ac_aux in $ac_aux_files
3083 do
3084 # As a special case, if "install-sh" is required, that requirement
3085 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3086 # and $ac_install_sh is set appropriately for whichever one is found.
3087 if test x"$ac_aux" = x"install-sh"
3088 then
3089 if test -f "${as_dir}install-sh"; then
3090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3091 ac_install_sh="${as_dir}install-sh -c"
3092 elif test -f "${as_dir}install.sh"; then
3093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3094 ac_install_sh="${as_dir}install.sh -c"
3095 elif test -f "${as_dir}shtool"; then
3096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3097 ac_install_sh="${as_dir}shtool install -c"
3098 else
3099 ac_aux_dir_found=no
3100 if $ac_first_candidate; then
3101 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3102 else
3103 break
3104 fi
3105 fi
3106 else
3107 if test -f "${as_dir}${ac_aux}"; then
3108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3109 else
3110 ac_aux_dir_found=no
3111 if $ac_first_candidate; then
3112 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3113 else
3114 break
3115 fi
3116 fi
3117 fi
3118 done
3119 if test "$ac_aux_dir_found" = yes; then
3120 ac_aux_dir="$as_dir"
3121 break
3122 fi
3123 ac_first_candidate=false
3124
3125 as_found=false
3126 done
3127 IFS=$as_save_IFS
3128 if $as_found
3129 then :
3130
3131 else $as_nop
3132 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3133 fi
3134
3135
3136 # These three variables are undocumented and unsupported,
3137 # and are intended to be withdrawn in a future Autoconf release.
3138 # They can cause serious problems if a builder's source tree is in a directory
3139 # whose full name contains unusual characters.
3140 if test -f "${ac_aux_dir}config.guess"; then
3141 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3142 fi
3143 if test -f "${ac_aux_dir}config.sub"; then
3144 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3145 fi
3146 if test -f "$ac_aux_dir/configure"; then
3147 ac_configure="$SHELL ${ac_aux_dir}configure"
3148 fi
3149
3150 # Check that the precious variables saved in the cache have kept the same
3151 # value.
3152 ac_cache_corrupted=false
3153 for ac_var in $ac_precious_vars; do
3154 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3155 eval ac_new_set=\$ac_env_${ac_var}_set
3156 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3157 eval ac_new_val=\$ac_env_${ac_var}_value
3158 case $ac_old_set,$ac_new_set in
3159 set,)
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3161 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3162 ac_cache_corrupted=: ;;
3163 ,set)
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3165 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3166 ac_cache_corrupted=: ;;
3167 ,);;
3168 *)
3169 if test "x$ac_old_val" != "x$ac_new_val"; then
3170 # differences in whitespace do not lead to failure.
3171 ac_old_val_w=`echo x $ac_old_val`
3172 ac_new_val_w=`echo x $ac_new_val`
3173 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3175 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3176 ac_cache_corrupted=:
3177 else
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3179 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3180 eval $ac_var=\$ac_old_val
3181 fi
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3183 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3185 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3186 fi;;
3187 esac
3188 # Pass precious variables to config.status.
3189 if test "$ac_new_set" = set; then
3190 case $ac_new_val in
3191 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3192 *) ac_arg=$ac_var=$ac_new_val ;;
3193 esac
3194 case " $ac_configure_args " in
3195 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3196 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3197 esac
3198 fi
3199 done
3200 if $ac_cache_corrupted; then
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3204 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3205 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3206 and start over" "$LINENO" 5
3207 fi
3208 ## -------------------- ##
3209 ## Main body of script. ##
3210 ## -------------------- ##
3211
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217
3218
3219
3220 MPS_MAJOR_VERSION=3
3221 MPS_MINOR_VERSION=2
3222 MPS_PATCH_VERSION=2
3223
3224
3225 printf "%s\n" "#define MPS_MAJOR_VERSION 3" >>confdefs.h
3226
3227
3228 printf "%s\n" "#define MPS_MINOR_VERSION 2" >>confdefs.h
3229
3230
3231 printf "%s\n" "#define MPS_PATCH_VERSION 3" >>confdefs.h
3232
3233
3234
3235
3236
3237
3238
3239 ac_config_headers="$ac_config_headers config.h"
3240
3241
3242
3243
3244
3245
3246 case `pwd` in
3247 *\ * | *\ *)
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3249 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3250 esac
3251
3252
3253
3254 macro_version='2.4.7'
3255 macro_revision='2.4.7'
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270 ltmain=$ac_aux_dir/ltmain.sh
3271
3272
3273
3274 # Make sure we can run config.sub.
3275 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3276 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3277
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3279 printf %s "checking build system type... " >&6; }
3280 if test ${ac_cv_build+y}
3281 then :
3282 printf %s "(cached) " >&6
3283 else $as_nop
3284 ac_build_alias=$build_alias
3285 test "x$ac_build_alias" = x &&
3286 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3287 test "x$ac_build_alias" = x &&
3288 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3289 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3290 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3291
3292 fi
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3294 printf "%s\n" "$ac_cv_build" >&6; }
3295 case $ac_cv_build in
3296 *-*-*) ;;
3297 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3298 esac
3299 build=$ac_cv_build
3300 ac_save_IFS=$IFS; IFS='-'
3301 set x $ac_cv_build
3302 shift
3303 build_cpu=$1
3304 build_vendor=$2
3305 shift; shift
3306 # Remember, the first character of IFS is used to create $*,
3307 # except with old shells:
3308 build_os=$*
3309 IFS=$ac_save_IFS
3310 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3311
3312
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3314 printf %s "checking host system type... " >&6; }
3315 if test ${ac_cv_host+y}
3316 then :
3317 printf %s "(cached) " >&6
3318 else $as_nop
3319 if test "x$host_alias" = x; then
3320 ac_cv_host=$ac_cv_build
3321 else
3322 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3323 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3324 fi
3325
3326 fi
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3328 printf "%s\n" "$ac_cv_host" >&6; }
3329 case $ac_cv_host in
3330 *-*-*) ;;
3331 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3332 esac
3333 host=$ac_cv_host
3334 ac_save_IFS=$IFS; IFS='-'
3335 set x $ac_cv_host
3336 shift
3337 host_cpu=$1
3338 host_vendor=$2
3339 shift; shift
3340 # Remember, the first character of IFS is used to create $*,
3341 # except with old shells:
3342 host_os=$*
3343 IFS=$ac_save_IFS
3344 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3345
3346
3347 # Backslashify metacharacters that are still active within
3348 # double-quoted strings.
3349 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3350
3351 # Same as above, but do not quote variable references.
3352 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3353
3354 # Sed substitution to delay expansion of an escaped shell variable in a
3355 # double_quote_subst'ed string.
3356 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3357
3358 # Sed substitution to delay expansion of an escaped single quote.
3359 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3360
3361 # Sed substitution to avoid accidental globbing in evaled expressions
3362 no_glob_subst='s/\*/\\\*/g'
3363
3364 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3365 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3366 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3367
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3369 printf %s "checking how to print strings... " >&6; }
3370 # Test print first, because it will be a builtin if present.
3371 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3372 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3373 ECHO='print -r --'
3374 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3375 ECHO='printf %s\n'
3376 else
3377 # Use this function as a fallback that always works.
3378 func_fallback_echo ()
3379 {
3380 eval 'cat <<_LTECHO_EOF
3381 $1
3382 _LTECHO_EOF'
3383 }
3384 ECHO='func_fallback_echo'
3385 fi
3386
3387 # func_echo_all arg...
3388 # Invoke $ECHO with all args, space-separated.
3389 func_echo_all ()
3390 {
3391 $ECHO ""
3392 }
3393
3394 case $ECHO in
3395 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3396 printf "%s\n" "printf" >&6; } ;;
3397 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3398 printf "%s\n" "print -r" >&6; } ;;
3399 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3400 printf "%s\n" "cat" >&6; } ;;
3401 esac
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425 # Expand $ac_aux_dir to an absolute path.
3426 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3427
3428 ac_ext=c
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 if test -n "$ac_tool_prefix"; then
3434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 printf %s "checking for $ac_word... " >&6; }
3438 if test ${ac_cv_prog_CC+y}
3439 then :
3440 printf %s "(cached) " >&6
3441 else $as_nop
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 case $as_dir in #(((
3450 '') as_dir=./ ;;
3451 */) ;;
3452 *) as_dir=$as_dir/ ;;
3453 esac
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi
3465 fi
3466 CC=$ac_cv_prog_CC
3467 if test -n "$CC"; then
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469 printf "%s\n" "$CC" >&6; }
3470 else
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 printf "%s\n" "no" >&6; }
3473 fi
3474
3475
3476 fi
3477 if test -z "$ac_cv_prog_CC"; then
3478 ac_ct_CC=$CC
3479 # Extract the first word of "gcc", so it can be a program name with args.
3480 set dummy gcc; ac_word=$2
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 printf %s "checking for $ac_word... " >&6; }
3483 if test ${ac_cv_prog_ac_ct_CC+y}
3484 then :
3485 printf %s "(cached) " >&6
3486 else $as_nop
3487 if test -n "$ac_ct_CC"; then
3488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493 IFS=$as_save_IFS
3494 case $as_dir in #(((
3495 '') as_dir=./ ;;
3496 */) ;;
3497 *) as_dir=$as_dir/ ;;
3498 esac
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_ac_ct_CC="gcc"
3502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3503 break 2
3504 fi
3505 done
3506 done
3507 IFS=$as_save_IFS
3508
3509 fi
3510 fi
3511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3514 printf "%s\n" "$ac_ct_CC" >&6; }
3515 else
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 printf "%s\n" "no" >&6; }
3518 fi
3519
3520 if test "x$ac_ct_CC" = x; then
3521 CC=""
3522 else
3523 case $cross_compiling:$ac_tool_warned in
3524 yes:)
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3526 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3527 ac_tool_warned=yes ;;
3528 esac
3529 CC=$ac_ct_CC
3530 fi
3531 else
3532 CC="$ac_cv_prog_CC"
3533 fi
3534
3535 if test -z "$CC"; then
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}cc; ac_word=$2
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 printf %s "checking for $ac_word... " >&6; }
3541 if test ${ac_cv_prog_CC+y}
3542 then :
3543 printf %s "(cached) " >&6
3544 else $as_nop
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551 IFS=$as_save_IFS
3552 case $as_dir in #(((
3553 '') as_dir=./ ;;
3554 */) ;;
3555 *) as_dir=$as_dir/ ;;
3556 esac
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC="${ac_tool_prefix}cc"
3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3561 break 2
3562 fi
3563 done
3564 done
3565 IFS=$as_save_IFS
3566
3567 fi
3568 fi
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 printf "%s\n" "$CC" >&6; }
3573 else
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 printf "%s\n" "no" >&6; }
3576 fi
3577
3578
3579 fi
3580 fi
3581 if test -z "$CC"; then
3582 # Extract the first word of "cc", so it can be a program name with args.
3583 set dummy cc; ac_word=$2
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 printf %s "checking for $ac_word... " >&6; }
3586 if test ${ac_cv_prog_CC+y}
3587 then :
3588 printf %s "(cached) " >&6
3589 else $as_nop
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 ac_prog_rejected=no
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 case $as_dir in #(((
3599 '') as_dir=./ ;;
3600 */) ;;
3601 *) as_dir=$as_dir/ ;;
3602 esac
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3605 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3606 ac_prog_rejected=yes
3607 continue
3608 fi
3609 ac_cv_prog_CC="cc"
3610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613 done
3614 done
3615 IFS=$as_save_IFS
3616
3617 if test $ac_prog_rejected = yes; then
3618 # We found a bogon in the path, so make sure we never use it.
3619 set dummy $ac_cv_prog_CC
3620 shift
3621 if test $# != 0; then
3622 # We chose a different compiler from the bogus one.
3623 # However, it has the same basename, so the bogon will be chosen
3624 # first if we set CC to just the basename; use the full file name.
3625 shift
3626 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3627 fi
3628 fi
3629 fi
3630 fi
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 printf "%s\n" "$CC" >&6; }
3635 else
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 printf "%s\n" "no" >&6; }
3638 fi
3639
3640
3641 fi
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 for ac_prog in cl.exe
3645 do
3646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 printf %s "checking for $ac_word... " >&6; }
3650 if test ${ac_cv_prog_CC+y}
3651 then :
3652 printf %s "(cached) " >&6
3653 else $as_nop
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3659 do
3660 IFS=$as_save_IFS
3661 case $as_dir in #(((
3662 '') as_dir=./ ;;
3663 */) ;;
3664 *) as_dir=$as_dir/ ;;
3665 esac
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672 done
3673 done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 printf "%s\n" "$CC" >&6; }
3682 else
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 printf "%s\n" "no" >&6; }
3685 fi
3686
3687
3688 test -n "$CC" && break
3689 done
3690 fi
3691 if test -z "$CC"; then
3692 ac_ct_CC=$CC
3693 for ac_prog in cl.exe
3694 do
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 printf %s "checking for $ac_word... " >&6; }
3699 if test ${ac_cv_prog_ac_ct_CC+y}
3700 then :
3701 printf %s "(cached) " >&6
3702 else $as_nop
3703 if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 else
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709 IFS=$as_save_IFS
3710 case $as_dir in #(((
3711 '') as_dir=./ ;;
3712 */) ;;
3713 *) as_dir=$as_dir/ ;;
3714 esac
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_CC="$ac_prog"
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3719 break 2
3720 fi
3721 done
3722 done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3728 if test -n "$ac_ct_CC"; then
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3730 printf "%s\n" "$ac_ct_CC" >&6; }
3731 else
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 printf "%s\n" "no" >&6; }
3734 fi
3735
3736
3737 test -n "$ac_ct_CC" && break
3738 done
3739
3740 if test "x$ac_ct_CC" = x; then
3741 CC=""
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744 yes:)
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747 ac_tool_warned=yes ;;
3748 esac
3749 CC=$ac_ct_CC
3750 fi
3751 fi
3752
3753 fi
3754 if test -z "$CC"; then
3755 if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}clang; ac_word=$2
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 printf %s "checking for $ac_word... " >&6; }
3760 if test ${ac_cv_prog_CC+y}
3761 then :
3762 printf %s "(cached) " >&6
3763 else $as_nop
3764 if test -n "$CC"; then
3765 ac_cv_prog_CC="$CC" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770 IFS=$as_save_IFS
3771 case $as_dir in #(((
3772 '') as_dir=./ ;;
3773 */) ;;
3774 *) as_dir=$as_dir/ ;;
3775 esac
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_CC="${ac_tool_prefix}clang"
3779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3785
3786 fi
3787 fi
3788 CC=$ac_cv_prog_CC
3789 if test -n "$CC"; then
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 printf "%s\n" "$CC" >&6; }
3792 else
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 printf "%s\n" "no" >&6; }
3795 fi
3796
3797
3798 fi
3799 if test -z "$ac_cv_prog_CC"; then
3800 ac_ct_CC=$CC
3801 # Extract the first word of "clang", so it can be a program name with args.
3802 set dummy clang; ac_word=$2
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 printf %s "checking for $ac_word... " >&6; }
3805 if test ${ac_cv_prog_ac_ct_CC+y}
3806 then :
3807 printf %s "(cached) " >&6
3808 else $as_nop
3809 if test -n "$ac_ct_CC"; then
3810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815 IFS=$as_save_IFS
3816 case $as_dir in #(((
3817 '') as_dir=./ ;;
3818 */) ;;
3819 *) as_dir=$as_dir/ ;;
3820 esac
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_ac_ct_CC="clang"
3824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827 done
3828 done
3829 IFS=$as_save_IFS
3830
3831 fi
3832 fi
3833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3834 if test -n "$ac_ct_CC"; then
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3836 printf "%s\n" "$ac_ct_CC" >&6; }
3837 else
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 printf "%s\n" "no" >&6; }
3840 fi
3841
3842 if test "x$ac_ct_CC" = x; then
3843 CC=""
3844 else
3845 case $cross_compiling:$ac_tool_warned in
3846 yes:)
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3849 ac_tool_warned=yes ;;
3850 esac
3851 CC=$ac_ct_CC
3852 fi
3853 else
3854 CC="$ac_cv_prog_CC"
3855 fi
3856
3857 fi
3858
3859
3860 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "no acceptable C compiler found in \$PATH
3863 See \`config.log' for more details" "$LINENO" 5; }
3864
3865 # Provide some information about the compiler.
3866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3867 set X $ac_compile
3868 ac_compiler=$2
3869 for ac_option in --version -v -V -qversion -version; do
3870 { { ac_try="$ac_compiler $ac_option >&5"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 printf "%s\n" "$ac_try_echo"; } >&5
3877 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3878 ac_status=$?
3879 if test -s conftest.err; then
3880 sed '10a\
3881 ... rest of stderr output deleted ...
3882 10q' conftest.err >conftest.er1
3883 cat conftest.er1 >&5
3884 fi
3885 rm -f conftest.er1 conftest.err
3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }
3888 done
3889
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892
3893 int
3894 main (void)
3895 {
3896
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 ac_clean_files_save=$ac_clean_files
3902 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3903 # Try to create an executable without -o first, disregard a.out.
3904 # It will help us diagnose broken compilers, and finding out an intuition
3905 # of exeext.
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3907 printf %s "checking whether the C compiler works... " >&6; }
3908 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3909
3910 # The possible output files:
3911 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3912
3913 ac_rmfiles=
3914 for ac_file in $ac_files
3915 do
3916 case $ac_file in
3917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3918 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3919 esac
3920 done
3921 rm -f $ac_rmfiles
3922
3923 if { { ac_try="$ac_link_default"
3924 case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 printf "%s\n" "$ac_try_echo"; } >&5
3930 (eval "$ac_link_default") 2>&5
3931 ac_status=$?
3932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }
3934 then :
3935 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3936 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3937 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3938 # so that the user can short-circuit this test for compilers unknown to
3939 # Autoconf.
3940 for ac_file in $ac_files ''
3941 do
3942 test -f "$ac_file" || continue
3943 case $ac_file in
3944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3945 ;;
3946 [ab].out )
3947 # We found the default executable, but exeext='' is most
3948 # certainly right.
3949 break;;
3950 *.* )
3951 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3952 then :; else
3953 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3954 fi
3955 # We set ac_cv_exeext here because the later test for it is not
3956 # safe: cross compilers may not add the suffix if given an `-o'
3957 # argument, so we may need to know it at that point already.
3958 # Even if this section looks crufty: it has the advantage of
3959 # actually working.
3960 break;;
3961 * )
3962 break;;
3963 esac
3964 done
3965 test "$ac_cv_exeext" = no && ac_cv_exeext=
3966
3967 else $as_nop
3968 ac_file=''
3969 fi
3970 if test -z "$ac_file"
3971 then :
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 printf "%s\n" "no" >&6; }
3974 printf "%s\n" "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error 77 "C compiler cannot create executables
3980 See \`config.log' for more details" "$LINENO" 5; }
3981 else $as_nop
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3983 printf "%s\n" "yes" >&6; }
3984 fi
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3986 printf %s "checking for C compiler default output file name... " >&6; }
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3988 printf "%s\n" "$ac_file" >&6; }
3989 ac_exeext=$ac_cv_exeext
3990
3991 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3992 ac_clean_files=$ac_clean_files_save
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3994 printf %s "checking for suffix of executables... " >&6; }
3995 if { { ac_try="$ac_link"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 printf "%s\n" "$ac_try_echo"; } >&5
4002 (eval "$ac_link") 2>&5
4003 ac_status=$?
4004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }
4006 then :
4007 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4008 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4009 # work properly (i.e., refer to `conftest.exe'), while it won't with
4010 # `rm'.
4011 for ac_file in conftest.exe conftest conftest.*; do
4012 test -f "$ac_file" || continue
4013 case $ac_file in
4014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4015 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4016 break;;
4017 * ) break;;
4018 esac
4019 done
4020 else $as_nop
4021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4024 See \`config.log' for more details" "$LINENO" 5; }
4025 fi
4026 rm -f conftest conftest$ac_cv_exeext
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4028 printf "%s\n" "$ac_cv_exeext" >&6; }
4029
4030 rm -f conftest.$ac_ext
4031 EXEEXT=$ac_cv_exeext
4032 ac_exeext=$EXEEXT
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035 #include <stdio.h>
4036 int
4037 main (void)
4038 {
4039 FILE *f = fopen ("conftest.out", "w");
4040 return ferror (f) || fclose (f) != 0;
4041
4042 ;
4043 return 0;
4044 }
4045 _ACEOF
4046 ac_clean_files="$ac_clean_files conftest.out"
4047 # Check that the compiler produces executables we can run. If not, either
4048 # the compiler is broken, or we cross compile.
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4050 printf %s "checking whether we are cross compiling... " >&6; }
4051 if test "$cross_compiling" != yes; then
4052 { { ac_try="$ac_link"
4053 case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 printf "%s\n" "$ac_try_echo"; } >&5
4059 (eval "$ac_link") 2>&5
4060 ac_status=$?
4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4063 if { ac_try='./conftest$ac_cv_exeext'
4064 { { case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 printf "%s\n" "$ac_try_echo"; } >&5
4070 (eval "$ac_try") 2>&5
4071 ac_status=$?
4072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }; }; then
4074 cross_compiling=no
4075 else
4076 if test "$cross_compiling" = maybe; then
4077 cross_compiling=yes
4078 else
4079 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error 77 "cannot run C compiled programs.
4082 If you meant to cross compile, use \`--host'.
4083 See \`config.log' for more details" "$LINENO" 5; }
4084 fi
4085 fi
4086 fi
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4088 printf "%s\n" "$cross_compiling" >&6; }
4089
4090 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4091 ac_clean_files=$ac_clean_files_save
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4093 printf %s "checking for suffix of object files... " >&6; }
4094 if test ${ac_cv_objext+y}
4095 then :
4096 printf %s "(cached) " >&6
4097 else $as_nop
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100
4101 int
4102 main (void)
4103 {
4104
4105 ;
4106 return 0;
4107 }
4108 _ACEOF
4109 rm -f conftest.o conftest.obj
4110 if { { ac_try="$ac_compile"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 printf "%s\n" "$ac_try_echo"; } >&5
4117 (eval "$ac_compile") 2>&5
4118 ac_status=$?
4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }
4121 then :
4122 for ac_file in conftest.o conftest.obj conftest.*; do
4123 test -f "$ac_file" || continue;
4124 case $ac_file in
4125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4127 break;;
4128 esac
4129 done
4130 else $as_nop
4131 printf "%s\n" "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4136 as_fn_error $? "cannot compute suffix of object files: cannot compile
4137 See \`config.log' for more details" "$LINENO" 5; }
4138 fi
4139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4140 fi
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4142 printf "%s\n" "$ac_cv_objext" >&6; }
4143 OBJEXT=$ac_cv_objext
4144 ac_objext=$OBJEXT
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4146 printf %s "checking whether the compiler supports GNU C... " >&6; }
4147 if test ${ac_cv_c_compiler_gnu+y}
4148 then :
4149 printf %s "(cached) " >&6
4150 else $as_nop
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153
4154 int
4155 main (void)
4156 {
4157 #ifndef __GNUC__
4158 choke me
4159 #endif
4160
4161 ;
4162 return 0;
4163 }
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"
4166 then :
4167 ac_compiler_gnu=yes
4168 else $as_nop
4169 ac_compiler_gnu=no
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4173
4174 fi
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4176 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
4179 if test $ac_compiler_gnu = yes; then
4180 GCC=yes
4181 else
4182 GCC=
4183 fi
4184 ac_test_CFLAGS=${CFLAGS+y}
4185 ac_save_CFLAGS=$CFLAGS
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4187 printf %s "checking whether $CC accepts -g... " >&6; }
4188 if test ${ac_cv_prog_cc_g+y}
4189 then :
4190 printf %s "(cached) " >&6
4191 else $as_nop
4192 ac_save_c_werror_flag=$ac_c_werror_flag
4193 ac_c_werror_flag=yes
4194 ac_cv_prog_cc_g=no
4195 CFLAGS="-g"
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198
4199 int
4200 main (void)
4201 {
4202
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"
4208 then :
4209 ac_cv_prog_cc_g=yes
4210 else $as_nop
4211 CFLAGS=""
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214
4215 int
4216 main (void)
4217 {
4218
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"
4224 then :
4225
4226 else $as_nop
4227 ac_c_werror_flag=$ac_save_c_werror_flag
4228 CFLAGS="-g"
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231
4232 int
4233 main (void)
4234 {
4235
4236 ;
4237 return 0;
4238 }
4239 _ACEOF
4240 if ac_fn_c_try_compile "$LINENO"
4241 then :
4242 ac_cv_prog_cc_g=yes
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4247 fi
4248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4249 ac_c_werror_flag=$ac_save_c_werror_flag
4250 fi
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4252 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4253 if test $ac_test_CFLAGS; then
4254 CFLAGS=$ac_save_CFLAGS
4255 elif test $ac_cv_prog_cc_g = yes; then
4256 if test "$GCC" = yes; then
4257 CFLAGS="-g -O2"
4258 else
4259 CFLAGS="-g"
4260 fi
4261 else
4262 if test "$GCC" = yes; then
4263 CFLAGS="-O2"
4264 else
4265 CFLAGS=
4266 fi
4267 fi
4268 ac_prog_cc_stdc=no
4269 if test x$ac_prog_cc_stdc = xno
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4272 printf %s "checking for $CC option to enable C11 features... " >&6; }
4273 if test ${ac_cv_prog_cc_c11+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else $as_nop
4277 ac_cv_prog_cc_c11=no
4278 ac_save_CC=$CC
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 $ac_c_conftest_c11_program
4282 _ACEOF
4283 for ac_arg in '' -std=gnu11
4284 do
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"
4287 then :
4288 ac_cv_prog_cc_c11=$ac_arg
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam
4291 test "x$ac_cv_prog_cc_c11" != "xno" && break
4292 done
4293 rm -f conftest.$ac_ext
4294 CC=$ac_save_CC
4295 fi
4296
4297 if test "x$ac_cv_prog_cc_c11" = xno
4298 then :
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300 printf "%s\n" "unsupported" >&6; }
4301 else $as_nop
4302 if test "x$ac_cv_prog_cc_c11" = x
4303 then :
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 printf "%s\n" "none needed" >&6; }
4306 else $as_nop
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4308 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4309 CC="$CC $ac_cv_prog_cc_c11"
4310 fi
4311 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4312 ac_prog_cc_stdc=c11
4313 fi
4314 fi
4315 if test x$ac_prog_cc_stdc = xno
4316 then :
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4318 printf %s "checking for $CC option to enable C99 features... " >&6; }
4319 if test ${ac_cv_prog_cc_c99+y}
4320 then :
4321 printf %s "(cached) " >&6
4322 else $as_nop
4323 ac_cv_prog_cc_c99=no
4324 ac_save_CC=$CC
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 $ac_c_conftest_c99_program
4328 _ACEOF
4329 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4330 do
4331 CC="$ac_save_CC $ac_arg"
4332 if ac_fn_c_try_compile "$LINENO"
4333 then :
4334 ac_cv_prog_cc_c99=$ac_arg
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.beam
4337 test "x$ac_cv_prog_cc_c99" != "xno" && break
4338 done
4339 rm -f conftest.$ac_ext
4340 CC=$ac_save_CC
4341 fi
4342
4343 if test "x$ac_cv_prog_cc_c99" = xno
4344 then :
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4346 printf "%s\n" "unsupported" >&6; }
4347 else $as_nop
4348 if test "x$ac_cv_prog_cc_c99" = x
4349 then :
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4351 printf "%s\n" "none needed" >&6; }
4352 else $as_nop
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4354 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4355 CC="$CC $ac_cv_prog_cc_c99"
4356 fi
4357 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4358 ac_prog_cc_stdc=c99
4359 fi
4360 fi
4361 if test x$ac_prog_cc_stdc = xno
4362 then :
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4364 printf %s "checking for $CC option to enable C89 features... " >&6; }
4365 if test ${ac_cv_prog_cc_c89+y}
4366 then :
4367 printf %s "(cached) " >&6
4368 else $as_nop
4369 ac_cv_prog_cc_c89=no
4370 ac_save_CC=$CC
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 $ac_c_conftest_c89_program
4374 _ACEOF
4375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4376 do
4377 CC="$ac_save_CC $ac_arg"
4378 if ac_fn_c_try_compile "$LINENO"
4379 then :
4380 ac_cv_prog_cc_c89=$ac_arg
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.beam
4383 test "x$ac_cv_prog_cc_c89" != "xno" && break
4384 done
4385 rm -f conftest.$ac_ext
4386 CC=$ac_save_CC
4387 fi
4388
4389 if test "x$ac_cv_prog_cc_c89" = xno
4390 then :
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4392 printf "%s\n" "unsupported" >&6; }
4393 else $as_nop
4394 if test "x$ac_cv_prog_cc_c89" = x
4395 then :
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4397 printf "%s\n" "none needed" >&6; }
4398 else $as_nop
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4400 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4401 CC="$CC $ac_cv_prog_cc_c89"
4402 fi
4403 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4404 ac_prog_cc_stdc=c89
4405 fi
4406 fi
4407
4408 ac_ext=c
4409 ac_cpp='$CPP $CPPFLAGS'
4410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4413
4414
4415 ac_ext=c
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4421 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4422 if test ${am_cv_prog_cc_c_o+y}
4423 then :
4424 printf %s "(cached) " >&6
4425 else $as_nop
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428
4429 int
4430 main (void)
4431 {
4432
4433 ;
4434 return 0;
4435 }
4436 _ACEOF
4437 # Make sure it works both with $CC and with simple cc.
4438 # Following AC_PROG_CC_C_O, we do the test twice because some
4439 # compilers refuse to overwrite an existing .o file with -o,
4440 # though they will create one.
4441 am_cv_prog_cc_c_o=yes
4442 for am_i in 1 2; do
4443 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4444 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } \
4448 && test -f conftest2.$ac_objext; then
4449 : OK
4450 else
4451 am_cv_prog_cc_c_o=no
4452 break
4453 fi
4454 done
4455 rm -f core conftest*
4456 unset am_i
4457 fi
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4459 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4460 if test "$am_cv_prog_cc_c_o" != yes; then
4461 # Losing compiler, so override with the script.
4462 # FIXME: It is wrong to rewrite CC.
4463 # But if we don't then we get into trouble of one sort or another.
4464 # A longer-term fix would be to have automake use am__CC in this case,
4465 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4466 CC="$am_aux_dir/compile $CC"
4467 fi
4468 ac_ext=c
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473
4474
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4476 printf %s "checking for a sed that does not truncate output... " >&6; }
4477 if test ${ac_cv_path_SED+y}
4478 then :
4479 printf %s "(cached) " >&6
4480 else $as_nop
4481 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4482 for ac_i in 1 2 3 4 5 6 7; do
4483 ac_script="$ac_script$as_nl$ac_script"
4484 done
4485 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4486 { ac_script=; unset ac_script;}
4487 if test -z "$SED"; then
4488 ac_path_SED_found=false
4489 # Loop through the user's path and test for each of PROGNAME-LIST
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493 IFS=$as_save_IFS
4494 case $as_dir in #(((
4495 '') as_dir=./ ;;
4496 */) ;;
4497 *) as_dir=$as_dir/ ;;
4498 esac
4499 for ac_prog in sed gsed
4500 do
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4503 as_fn_executable_p "$ac_path_SED" || continue
4504 # Check for GNU ac_path_SED and select it if it is found.
4505 # Check for GNU $ac_path_SED
4506 case `"$ac_path_SED" --version 2>&1` in
4507 *GNU*)
4508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4509 *)
4510 ac_count=0
4511 printf %s 0123456789 >"conftest.in"
4512 while :
4513 do
4514 cat "conftest.in" "conftest.in" >"conftest.tmp"
4515 mv "conftest.tmp" "conftest.in"
4516 cp "conftest.in" "conftest.nl"
4517 printf "%s\n" '' >> "conftest.nl"
4518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4520 as_fn_arith $ac_count + 1 && ac_count=$as_val
4521 if test $ac_count -gt ${ac_path_SED_max-0}; then
4522 # Best one so far, save it but keep looking for a better one
4523 ac_cv_path_SED="$ac_path_SED"
4524 ac_path_SED_max=$ac_count
4525 fi
4526 # 10*(2^10) chars as input seems more than enough
4527 test $ac_count -gt 10 && break
4528 done
4529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4530 esac
4531
4532 $ac_path_SED_found && break 3
4533 done
4534 done
4535 done
4536 IFS=$as_save_IFS
4537 if test -z "$ac_cv_path_SED"; then
4538 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4539 fi
4540 else
4541 ac_cv_path_SED=$SED
4542 fi
4543
4544 fi
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4546 printf "%s\n" "$ac_cv_path_SED" >&6; }
4547 SED="$ac_cv_path_SED"
4548 rm -f conftest.sed
4549
4550 test -z "$SED" && SED=sed
4551 Xsed="$SED -e 1s/^X//"
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4564 printf %s "checking for grep that handles long lines and -e... " >&6; }
4565 if test ${ac_cv_path_GREP+y}
4566 then :
4567 printf %s "(cached) " >&6
4568 else $as_nop
4569 if test -z "$GREP"; then
4570 ac_path_GREP_found=false
4571 # Loop through the user's path and test for each of PROGNAME-LIST
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 do
4575 IFS=$as_save_IFS
4576 case $as_dir in #(((
4577 '') as_dir=./ ;;
4578 */) ;;
4579 *) as_dir=$as_dir/ ;;
4580 esac
4581 for ac_prog in grep ggrep
4582 do
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4585 as_fn_executable_p "$ac_path_GREP" || continue
4586 # Check for GNU ac_path_GREP and select it if it is found.
4587 # Check for GNU $ac_path_GREP
4588 case `"$ac_path_GREP" --version 2>&1` in
4589 *GNU*)
4590 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4591 *)
4592 ac_count=0
4593 printf %s 0123456789 >"conftest.in"
4594 while :
4595 do
4596 cat "conftest.in" "conftest.in" >"conftest.tmp"
4597 mv "conftest.tmp" "conftest.in"
4598 cp "conftest.in" "conftest.nl"
4599 printf "%s\n" 'GREP' >> "conftest.nl"
4600 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4602 as_fn_arith $ac_count + 1 && ac_count=$as_val
4603 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4604 # Best one so far, save it but keep looking for a better one
4605 ac_cv_path_GREP="$ac_path_GREP"
4606 ac_path_GREP_max=$ac_count
4607 fi
4608 # 10*(2^10) chars as input seems more than enough
4609 test $ac_count -gt 10 && break
4610 done
4611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4612 esac
4613
4614 $ac_path_GREP_found && break 3
4615 done
4616 done
4617 done
4618 IFS=$as_save_IFS
4619 if test -z "$ac_cv_path_GREP"; then
4620 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4621 fi
4622 else
4623 ac_cv_path_GREP=$GREP
4624 fi
4625
4626 fi
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4628 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4629 GREP="$ac_cv_path_GREP"
4630
4631
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4633 printf %s "checking for egrep... " >&6; }
4634 if test ${ac_cv_path_EGREP+y}
4635 then :
4636 printf %s "(cached) " >&6
4637 else $as_nop
4638 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4639 then ac_cv_path_EGREP="$GREP -E"
4640 else
4641 if test -z "$EGREP"; then
4642 ac_path_EGREP_found=false
4643 # Loop through the user's path and test for each of PROGNAME-LIST
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646 do
4647 IFS=$as_save_IFS
4648 case $as_dir in #(((
4649 '') as_dir=./ ;;
4650 */) ;;
4651 *) as_dir=$as_dir/ ;;
4652 esac
4653 for ac_prog in egrep
4654 do
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4657 as_fn_executable_p "$ac_path_EGREP" || continue
4658 # Check for GNU ac_path_EGREP and select it if it is found.
4659 # Check for GNU $ac_path_EGREP
4660 case `"$ac_path_EGREP" --version 2>&1` in
4661 *GNU*)
4662 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4663 *)
4664 ac_count=0
4665 printf %s 0123456789 >"conftest.in"
4666 while :
4667 do
4668 cat "conftest.in" "conftest.in" >"conftest.tmp"
4669 mv "conftest.tmp" "conftest.in"
4670 cp "conftest.in" "conftest.nl"
4671 printf "%s\n" 'EGREP' >> "conftest.nl"
4672 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4674 as_fn_arith $ac_count + 1 && ac_count=$as_val
4675 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4676 # Best one so far, save it but keep looking for a better one
4677 ac_cv_path_EGREP="$ac_path_EGREP"
4678 ac_path_EGREP_max=$ac_count
4679 fi
4680 # 10*(2^10) chars as input seems more than enough
4681 test $ac_count -gt 10 && break
4682 done
4683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4684 esac
4685
4686 $ac_path_EGREP_found && break 3
4687 done
4688 done
4689 done
4690 IFS=$as_save_IFS
4691 if test -z "$ac_cv_path_EGREP"; then
4692 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4693 fi
4694 else
4695 ac_cv_path_EGREP=$EGREP
4696 fi
4697
4698 fi
4699 fi
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4701 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4702 EGREP="$ac_cv_path_EGREP"
4703
4704
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4706 printf %s "checking for fgrep... " >&6; }
4707 if test ${ac_cv_path_FGREP+y}
4708 then :
4709 printf %s "(cached) " >&6
4710 else $as_nop
4711 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4712 then ac_cv_path_FGREP="$GREP -F"
4713 else
4714 if test -z "$FGREP"; then
4715 ac_path_FGREP_found=false
4716 # Loop through the user's path and test for each of PROGNAME-LIST
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4719 do
4720 IFS=$as_save_IFS
4721 case $as_dir in #(((
4722 '') as_dir=./ ;;
4723 */) ;;
4724 *) as_dir=$as_dir/ ;;
4725 esac
4726 for ac_prog in fgrep
4727 do
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4730 as_fn_executable_p "$ac_path_FGREP" || continue
4731 # Check for GNU ac_path_FGREP and select it if it is found.
4732 # Check for GNU $ac_path_FGREP
4733 case `"$ac_path_FGREP" --version 2>&1` in
4734 *GNU*)
4735 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4736 *)
4737 ac_count=0
4738 printf %s 0123456789 >"conftest.in"
4739 while :
4740 do
4741 cat "conftest.in" "conftest.in" >"conftest.tmp"
4742 mv "conftest.tmp" "conftest.in"
4743 cp "conftest.in" "conftest.nl"
4744 printf "%s\n" 'FGREP' >> "conftest.nl"
4745 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4747 as_fn_arith $ac_count + 1 && ac_count=$as_val
4748 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4749 # Best one so far, save it but keep looking for a better one
4750 ac_cv_path_FGREP="$ac_path_FGREP"
4751 ac_path_FGREP_max=$ac_count
4752 fi
4753 # 10*(2^10) chars as input seems more than enough
4754 test $ac_count -gt 10 && break
4755 done
4756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4757 esac
4758
4759 $ac_path_FGREP_found && break 3
4760 done
4761 done
4762 done
4763 IFS=$as_save_IFS
4764 if test -z "$ac_cv_path_FGREP"; then
4765 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4766 fi
4767 else
4768 ac_cv_path_FGREP=$FGREP
4769 fi
4770
4771 fi
4772 fi
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4774 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4775 FGREP="$ac_cv_path_FGREP"
4776
4777
4778 test -z "$GREP" && GREP=grep
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798 # Check whether --with-gnu-ld was given.
4799 if test ${with_gnu_ld+y}
4800 then :
4801 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4802 else $as_nop
4803 with_gnu_ld=no
4804 fi
4805
4806 ac_prog=ld
4807 if test yes = "$GCC"; then
4808 # Check if gcc -print-prog-name=ld gives a path.
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4810 printf %s "checking for ld used by $CC... " >&6; }
4811 case $host in
4812 *-*-mingw*)
4813 # gcc leaves a trailing carriage return, which upsets mingw
4814 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4815 *)
4816 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4817 esac
4818 case $ac_prog in
4819 # Accept absolute paths.
4820 [\\/]* | ?:[\\/]*)
4821 re_direlt='/[^/][^/]*/\.\./'
4822 # Canonicalize the pathname of ld
4823 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4824 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4825 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4826 done
4827 test -z "$LD" && LD=$ac_prog
4828 ;;
4829 "")
4830 # If it fails, then pretend we aren't using GCC.
4831 ac_prog=ld
4832 ;;
4833 *)
4834 # If it is relative, then search for the first ld in PATH.
4835 with_gnu_ld=unknown
4836 ;;
4837 esac
4838 elif test yes = "$with_gnu_ld"; then
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4840 printf %s "checking for GNU ld... " >&6; }
4841 else
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4843 printf %s "checking for non-GNU ld... " >&6; }
4844 fi
4845 if test ${lt_cv_path_LD+y}
4846 then :
4847 printf %s "(cached) " >&6
4848 else $as_nop
4849 if test -z "$LD"; then
4850 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4851 for ac_dir in $PATH; do
4852 IFS=$lt_save_ifs
4853 test -z "$ac_dir" && ac_dir=.
4854 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4855 lt_cv_path_LD=$ac_dir/$ac_prog
4856 # Check to see if the program is GNU ld. I'd rather use --version,
4857 # but apparently some variants of GNU ld only accept -v.
4858 # Break only if it was the GNU/non-GNU ld that we prefer.
4859 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4860 *GNU* | *'with BFD'*)
4861 test no != "$with_gnu_ld" && break
4862 ;;
4863 *)
4864 test yes != "$with_gnu_ld" && break
4865 ;;
4866 esac
4867 fi
4868 done
4869 IFS=$lt_save_ifs
4870 else
4871 lt_cv_path_LD=$LD # Let the user override the test with a path.
4872 fi
4873 fi
4874
4875 LD=$lt_cv_path_LD
4876 if test -n "$LD"; then
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4878 printf "%s\n" "$LD" >&6; }
4879 else
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 printf "%s\n" "no" >&6; }
4882 fi
4883 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4885 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4886 if test ${lt_cv_prog_gnu_ld+y}
4887 then :
4888 printf %s "(cached) " >&6
4889 else $as_nop
4890 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4891 case `$LD -v 2>&1 </dev/null` in
4892 *GNU* | *'with BFD'*)
4893 lt_cv_prog_gnu_ld=yes
4894 ;;
4895 *)
4896 lt_cv_prog_gnu_ld=no
4897 ;;
4898 esac
4899 fi
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4901 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4902 with_gnu_ld=$lt_cv_prog_gnu_ld
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4913 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4914 if test ${lt_cv_path_NM+y}
4915 then :
4916 printf %s "(cached) " >&6
4917 else $as_nop
4918 if test -n "$NM"; then
4919 # Let the user override the test.
4920 lt_cv_path_NM=$NM
4921 else
4922 lt_nm_to_check=${ac_tool_prefix}nm
4923 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4924 lt_nm_to_check="$lt_nm_to_check nm"
4925 fi
4926 for lt_tmp_nm in $lt_nm_to_check; do
4927 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4928 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4929 IFS=$lt_save_ifs
4930 test -z "$ac_dir" && ac_dir=.
4931 tmp_nm=$ac_dir/$lt_tmp_nm
4932 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4933 # Check to see if the nm accepts a BSD-compat flag.
4934 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4935 # nm: unknown option "B" ignored
4936 # Tru64's nm complains that /dev/null is an invalid object file
4937 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4938 case $build_os in
4939 mingw*) lt_bad_file=conftest.nm/nofile ;;
4940 *) lt_bad_file=/dev/null ;;
4941 esac
4942 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
4943 *$lt_bad_file* | *'Invalid file or object type'*)
4944 lt_cv_path_NM="$tmp_nm -B"
4945 break 2
4946 ;;
4947 *)
4948 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
4949 */dev/null*)
4950 lt_cv_path_NM="$tmp_nm -p"
4951 break 2
4952 ;;
4953 *)
4954 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4955 continue # so that we can try to find one that supports BSD flags
4956 ;;
4957 esac
4958 ;;
4959 esac
4960 fi
4961 done
4962 IFS=$lt_save_ifs
4963 done
4964 : ${lt_cv_path_NM=no}
4965 fi
4966 fi
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4968 printf "%s\n" "$lt_cv_path_NM" >&6; }
4969 if test no != "$lt_cv_path_NM"; then
4970 NM=$lt_cv_path_NM
4971 else
4972 # Didn't find any BSD compatible name lister, look for dumpbin.
4973 if test -n "$DUMPBIN"; then :
4974 # Let the user override the test.
4975 else
4976 if test -n "$ac_tool_prefix"; then
4977 for ac_prog in dumpbin "link -dump"
4978 do
4979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 printf %s "checking for $ac_word... " >&6; }
4983 if test ${ac_cv_prog_DUMPBIN+y}
4984 then :
4985 printf %s "(cached) " >&6
4986 else $as_nop
4987 if test -n "$DUMPBIN"; then
4988 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993 IFS=$as_save_IFS
4994 case $as_dir in #(((
4995 '') as_dir=./ ;;
4996 */) ;;
4997 *) as_dir=$as_dir/ ;;
4998 esac
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5003 break 2
5004 fi
5005 done
5006 done
5007 IFS=$as_save_IFS
5008
5009 fi
5010 fi
5011 DUMPBIN=$ac_cv_prog_DUMPBIN
5012 if test -n "$DUMPBIN"; then
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5014 printf "%s\n" "$DUMPBIN" >&6; }
5015 else
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 printf "%s\n" "no" >&6; }
5018 fi
5019
5020
5021 test -n "$DUMPBIN" && break
5022 done
5023 fi
5024 if test -z "$DUMPBIN"; then
5025 ac_ct_DUMPBIN=$DUMPBIN
5026 for ac_prog in dumpbin "link -dump"
5027 do
5028 # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy $ac_prog; ac_word=$2
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 printf %s "checking for $ac_word... " >&6; }
5032 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5033 then :
5034 printf %s "(cached) " >&6
5035 else $as_nop
5036 if test -n "$ac_ct_DUMPBIN"; then
5037 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042 IFS=$as_save_IFS
5043 case $as_dir in #(((
5044 '') as_dir=./ ;;
5045 */) ;;
5046 *) as_dir=$as_dir/ ;;
5047 esac
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5052 break 2
5053 fi
5054 done
5055 done
5056 IFS=$as_save_IFS
5057
5058 fi
5059 fi
5060 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5061 if test -n "$ac_ct_DUMPBIN"; then
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5063 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5064 else
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 printf "%s\n" "no" >&6; }
5067 fi
5068
5069
5070 test -n "$ac_ct_DUMPBIN" && break
5071 done
5072
5073 if test "x$ac_ct_DUMPBIN" = x; then
5074 DUMPBIN=":"
5075 else
5076 case $cross_compiling:$ac_tool_warned in
5077 yes:)
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5080 ac_tool_warned=yes ;;
5081 esac
5082 DUMPBIN=$ac_ct_DUMPBIN
5083 fi
5084 fi
5085
5086 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5087 *COFF*)
5088 DUMPBIN="$DUMPBIN -symbols -headers"
5089 ;;
5090 *)
5091 DUMPBIN=:
5092 ;;
5093 esac
5094 fi
5095
5096 if test : != "$DUMPBIN"; then
5097 NM=$DUMPBIN
5098 fi
5099 fi
5100 test -z "$NM" && NM=nm
5101
5102
5103
5104
5105
5106
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5108 printf %s "checking the name lister ($NM) interface... " >&6; }
5109 if test ${lt_cv_nm_interface+y}
5110 then :
5111 printf %s "(cached) " >&6
5112 else $as_nop
5113 lt_cv_nm_interface="BSD nm"
5114 echo "int some_variable = 0;" > conftest.$ac_ext
5115 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5116 (eval "$ac_compile" 2>conftest.err)
5117 cat conftest.err >&5
5118 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5119 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5120 cat conftest.err >&5
5121 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5122 cat conftest.out >&5
5123 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5124 lt_cv_nm_interface="MS dumpbin"
5125 fi
5126 rm -f conftest*
5127 fi
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5129 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5130
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5132 printf %s "checking whether ln -s works... " >&6; }
5133 LN_S=$as_ln_s
5134 if test "$LN_S" = "ln -s"; then
5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5136 printf "%s\n" "yes" >&6; }
5137 else
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5139 printf "%s\n" "no, using $LN_S" >&6; }
5140 fi
5141
5142 # find the maximum length of command line arguments
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5144 printf %s "checking the maximum length of command line arguments... " >&6; }
5145 if test ${lt_cv_sys_max_cmd_len+y}
5146 then :
5147 printf %s "(cached) " >&6
5148 else $as_nop
5149 i=0
5150 teststring=ABCD
5151
5152 case $build_os in
5153 msdosdjgpp*)
5154 # On DJGPP, this test can blow up pretty badly due to problems in libc
5155 # (any single argument exceeding 2000 bytes causes a buffer overrun
5156 # during glob expansion). Even if it were fixed, the result of this
5157 # check would be larger than it should be.
5158 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5159 ;;
5160
5161 gnu*)
5162 # Under GNU Hurd, this test is not required because there is
5163 # no limit to the length of command line arguments.
5164 # Libtool will interpret -1 as no limit whatsoever
5165 lt_cv_sys_max_cmd_len=-1;
5166 ;;
5167
5168 cygwin* | mingw* | cegcc*)
5169 # On Win9x/ME, this test blows up -- it succeeds, but takes
5170 # about 5 minutes as the teststring grows exponentially.
5171 # Worse, since 9x/ME are not pre-emptively multitasking,
5172 # you end up with a "frozen" computer, even though with patience
5173 # the test eventually succeeds (with a max line length of 256k).
5174 # Instead, let's just punt: use the minimum linelength reported by
5175 # all of the supported platforms: 8192 (on NT/2K/XP).
5176 lt_cv_sys_max_cmd_len=8192;
5177 ;;
5178
5179 mint*)
5180 # On MiNT this can take a long time and run out of memory.
5181 lt_cv_sys_max_cmd_len=8192;
5182 ;;
5183
5184 amigaos*)
5185 # On AmigaOS with pdksh, this test takes hours, literally.
5186 # So we just punt and use a minimum line length of 8192.
5187 lt_cv_sys_max_cmd_len=8192;
5188 ;;
5189
5190 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5191 # This has been around since 386BSD, at least. Likely further.
5192 if test -x /sbin/sysctl; then
5193 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5194 elif test -x /usr/sbin/sysctl; then
5195 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5196 else
5197 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5198 fi
5199 # And add a safety zone
5200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5202 ;;
5203
5204 interix*)
5205 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5206 lt_cv_sys_max_cmd_len=196608
5207 ;;
5208
5209 os2*)
5210 # The test takes a long time on OS/2.
5211 lt_cv_sys_max_cmd_len=8192
5212 ;;
5213
5214 osf*)
5215 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5216 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5217 # nice to cause kernel panics so lets avoid the loop below.
5218 # First set a reasonable default.
5219 lt_cv_sys_max_cmd_len=16384
5220 #
5221 if test -x /sbin/sysconfig; then
5222 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5223 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5224 esac
5225 fi
5226 ;;
5227 sco3.2v5*)
5228 lt_cv_sys_max_cmd_len=102400
5229 ;;
5230 sysv5* | sco5v6* | sysv4.2uw2*)
5231 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5232 if test -n "$kargmax"; then
5233 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5234 else
5235 lt_cv_sys_max_cmd_len=32768
5236 fi
5237 ;;
5238 *)
5239 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5240 if test -n "$lt_cv_sys_max_cmd_len" && \
5241 test undefined != "$lt_cv_sys_max_cmd_len"; then
5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5244 else
5245 # Make teststring a little bigger before we do anything with it.
5246 # a 1K string should be a reasonable start.
5247 for i in 1 2 3 4 5 6 7 8; do
5248 teststring=$teststring$teststring
5249 done
5250 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5251 # If test is not a shell built-in, we'll probably end up computing a
5252 # maximum length that is only half of the actual maximum length, but
5253 # we can't tell.
5254 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5255 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5256 test 17 != "$i" # 1/2 MB should be enough
5257 do
5258 i=`expr $i + 1`
5259 teststring=$teststring$teststring
5260 done
5261 # Only check the string length outside the loop.
5262 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5263 teststring=
5264 # Add a significant safety factor because C++ compilers can tack on
5265 # massive amounts of additional arguments before passing them to the
5266 # linker. It appears as though 1/2 is a usable value.
5267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5268 fi
5269 ;;
5270 esac
5271
5272 fi
5273
5274 if test -n "$lt_cv_sys_max_cmd_len"; then
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5276 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5277 else
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5279 printf "%s\n" "none" >&6; }
5280 fi
5281 max_cmd_len=$lt_cv_sys_max_cmd_len
5282
5283
5284
5285
5286
5287
5288 : ${CP="cp -f"}
5289 : ${MV="mv -f"}
5290 : ${RM="rm -f"}
5291
5292 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5293 lt_unset=unset
5294 else
5295 lt_unset=false
5296 fi
5297
5298
5299
5300
5301
5302 # test EBCDIC or ASCII
5303 case `echo X|tr X '\101'` in
5304 A) # ASCII based system
5305 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5306 lt_SP2NL='tr \040 \012'
5307 lt_NL2SP='tr \015\012 \040\040'
5308 ;;
5309 *) # EBCDIC based system
5310 lt_SP2NL='tr \100 \n'
5311 lt_NL2SP='tr \r\n \100\100'
5312 ;;
5313 esac
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5324 printf %s "checking how to convert $build file names to $host format... " >&6; }
5325 if test ${lt_cv_to_host_file_cmd+y}
5326 then :
5327 printf %s "(cached) " >&6
5328 else $as_nop
5329 case $host in
5330 *-*-mingw* )
5331 case $build in
5332 *-*-mingw* ) # actually msys
5333 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5334 ;;
5335 *-*-cygwin* )
5336 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5337 ;;
5338 * ) # otherwise, assume *nix
5339 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5340 ;;
5341 esac
5342 ;;
5343 *-*-cygwin* )
5344 case $build in
5345 *-*-mingw* ) # actually msys
5346 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5347 ;;
5348 *-*-cygwin* )
5349 lt_cv_to_host_file_cmd=func_convert_file_noop
5350 ;;
5351 * ) # otherwise, assume *nix
5352 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5353 ;;
5354 esac
5355 ;;
5356 * ) # unhandled hosts (and "normal" native builds)
5357 lt_cv_to_host_file_cmd=func_convert_file_noop
5358 ;;
5359 esac
5360
5361 fi
5362
5363 to_host_file_cmd=$lt_cv_to_host_file_cmd
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5365 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5366
5367
5368
5369
5370
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5372 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5373 if test ${lt_cv_to_tool_file_cmd+y}
5374 then :
5375 printf %s "(cached) " >&6
5376 else $as_nop
5377 #assume ordinary cross tools, or native build.
5378 lt_cv_to_tool_file_cmd=func_convert_file_noop
5379 case $host in
5380 *-*-mingw* )
5381 case $build in
5382 *-*-mingw* ) # actually msys
5383 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5384 ;;
5385 esac
5386 ;;
5387 esac
5388
5389 fi
5390
5391 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5393 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5394
5395
5396
5397
5398
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5400 printf %s "checking for $LD option to reload object files... " >&6; }
5401 if test ${lt_cv_ld_reload_flag+y}
5402 then :
5403 printf %s "(cached) " >&6
5404 else $as_nop
5405 lt_cv_ld_reload_flag='-r'
5406 fi
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5408 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5409 reload_flag=$lt_cv_ld_reload_flag
5410 case $reload_flag in
5411 "" | " "*) ;;
5412 *) reload_flag=" $reload_flag" ;;
5413 esac
5414 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5415 case $host_os in
5416 cygwin* | mingw* | pw32* | cegcc*)
5417 if test yes != "$GCC"; then
5418 reload_cmds=false
5419 fi
5420 ;;
5421 darwin*)
5422 if test yes = "$GCC"; then
5423 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5424 else
5425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5426 fi
5427 ;;
5428 esac
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438 if test -n "$ac_tool_prefix"; then
5439 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5440 set dummy ${ac_tool_prefix}file; ac_word=$2
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 printf %s "checking for $ac_word... " >&6; }
5443 if test ${ac_cv_prog_FILECMD+y}
5444 then :
5445 printf %s "(cached) " >&6
5446 else $as_nop
5447 if test -n "$FILECMD"; then
5448 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453 IFS=$as_save_IFS
5454 case $as_dir in #(((
5455 '') as_dir=./ ;;
5456 */) ;;
5457 *) as_dir=$as_dir/ ;;
5458 esac
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5461 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465 done
5466 done
5467 IFS=$as_save_IFS
5468
5469 fi
5470 fi
5471 FILECMD=$ac_cv_prog_FILECMD
5472 if test -n "$FILECMD"; then
5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5474 printf "%s\n" "$FILECMD" >&6; }
5475 else
5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 printf "%s\n" "no" >&6; }
5478 fi
5479
5480
5481 fi
5482 if test -z "$ac_cv_prog_FILECMD"; then
5483 ac_ct_FILECMD=$FILECMD
5484 # Extract the first word of "file", so it can be a program name with args.
5485 set dummy file; ac_word=$2
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 printf %s "checking for $ac_word... " >&6; }
5488 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5489 then :
5490 printf %s "(cached) " >&6
5491 else $as_nop
5492 if test -n "$ac_ct_FILECMD"; then
5493 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498 IFS=$as_save_IFS
5499 case $as_dir in #(((
5500 '') as_dir=./ ;;
5501 */) ;;
5502 *) as_dir=$as_dir/ ;;
5503 esac
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_ac_ct_FILECMD="file"
5507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5508 break 2
5509 fi
5510 done
5511 done
5512 IFS=$as_save_IFS
5513
5514 fi
5515 fi
5516 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5517 if test -n "$ac_ct_FILECMD"; then
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5519 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5520 else
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 printf "%s\n" "no" >&6; }
5523 fi
5524
5525 if test "x$ac_ct_FILECMD" = x; then
5526 FILECMD=":"
5527 else
5528 case $cross_compiling:$ac_tool_warned in
5529 yes:)
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5531 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5532 ac_tool_warned=yes ;;
5533 esac
5534 FILECMD=$ac_ct_FILECMD
5535 fi
5536 else
5537 FILECMD="$ac_cv_prog_FILECMD"
5538 fi
5539
5540
5541
5542
5543
5544
5545
5546 if test -n "$ac_tool_prefix"; then
5547 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5548 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 printf %s "checking for $ac_word... " >&6; }
5551 if test ${ac_cv_prog_OBJDUMP+y}
5552 then :
5553 printf %s "(cached) " >&6
5554 else $as_nop
5555 if test -n "$OBJDUMP"; then
5556 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561 IFS=$as_save_IFS
5562 case $as_dir in #(((
5563 '') as_dir=./ ;;
5564 */) ;;
5565 *) as_dir=$as_dir/ ;;
5566 esac
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573 done
5574 done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 OBJDUMP=$ac_cv_prog_OBJDUMP
5580 if test -n "$OBJDUMP"; then
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5582 printf "%s\n" "$OBJDUMP" >&6; }
5583 else
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 printf "%s\n" "no" >&6; }
5586 fi
5587
5588
5589 fi
5590 if test -z "$ac_cv_prog_OBJDUMP"; then
5591 ac_ct_OBJDUMP=$OBJDUMP
5592 # Extract the first word of "objdump", so it can be a program name with args.
5593 set dummy objdump; ac_word=$2
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 printf %s "checking for $ac_word... " >&6; }
5596 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5597 then :
5598 printf %s "(cached) " >&6
5599 else $as_nop
5600 if test -n "$ac_ct_OBJDUMP"; then
5601 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5602 else
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606 IFS=$as_save_IFS
5607 case $as_dir in #(((
5608 '') as_dir=./ ;;
5609 */) ;;
5610 *) as_dir=$as_dir/ ;;
5611 esac
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5614 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618 done
5619 done
5620 IFS=$as_save_IFS
5621
5622 fi
5623 fi
5624 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5625 if test -n "$ac_ct_OBJDUMP"; then
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5627 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5628 else
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 printf "%s\n" "no" >&6; }
5631 fi
5632
5633 if test "x$ac_ct_OBJDUMP" = x; then
5634 OBJDUMP="false"
5635 else
5636 case $cross_compiling:$ac_tool_warned in
5637 yes:)
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5640 ac_tool_warned=yes ;;
5641 esac
5642 OBJDUMP=$ac_ct_OBJDUMP
5643 fi
5644 else
5645 OBJDUMP="$ac_cv_prog_OBJDUMP"
5646 fi
5647
5648 test -z "$OBJDUMP" && OBJDUMP=objdump
5649
5650
5651
5652
5653
5654
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5656 printf %s "checking how to recognize dependent libraries... " >&6; }
5657 if test ${lt_cv_deplibs_check_method+y}
5658 then :
5659 printf %s "(cached) " >&6
5660 else $as_nop
5661 lt_cv_file_magic_cmd='$MAGIC_CMD'
5662 lt_cv_file_magic_test_file=
5663 lt_cv_deplibs_check_method='unknown'
5664 # Need to set the preceding variable on all platforms that support
5665 # interlibrary dependencies.
5666 # 'none' -- dependencies not supported.
5667 # 'unknown' -- same as none, but documents that we really don't know.
5668 # 'pass_all' -- all dependencies passed with no checks.
5669 # 'test_compile' -- check by making test program.
5670 # 'file_magic [[regex]]' -- check by looking for files in library path
5671 # that responds to the $file_magic_cmd with a given extended regex.
5672 # If you have 'file' or equivalent on your system and you're not sure
5673 # whether 'pass_all' will *always* work, you probably want this one.
5674
5675 case $host_os in
5676 aix[4-9]*)
5677 lt_cv_deplibs_check_method=pass_all
5678 ;;
5679
5680 beos*)
5681 lt_cv_deplibs_check_method=pass_all
5682 ;;
5683
5684 bsdi[45]*)
5685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5686 lt_cv_file_magic_cmd='$FILECMD -L'
5687 lt_cv_file_magic_test_file=/shlib/libc.so
5688 ;;
5689
5690 cygwin*)
5691 # func_win32_libid is a shell function defined in ltmain.sh
5692 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5693 lt_cv_file_magic_cmd='func_win32_libid'
5694 ;;
5695
5696 mingw* | pw32*)
5697 # Base MSYS/MinGW do not provide the 'file' command needed by
5698 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5699 # unless we find 'file', for example because we are cross-compiling.
5700 if ( file / ) >/dev/null 2>&1; then
5701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5702 lt_cv_file_magic_cmd='func_win32_libid'
5703 else
5704 # Keep this pattern in sync with the one in func_win32_libid.
5705 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5706 lt_cv_file_magic_cmd='$OBJDUMP -f'
5707 fi
5708 ;;
5709
5710 cegcc*)
5711 # use the weaker test based on 'objdump'. See mingw*.
5712 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5713 lt_cv_file_magic_cmd='$OBJDUMP -f'
5714 ;;
5715
5716 darwin* | rhapsody*)
5717 lt_cv_deplibs_check_method=pass_all
5718 ;;
5719
5720 freebsd* | dragonfly* | midnightbsd*)
5721 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5722 case $host_cpu in
5723 i*86 )
5724 # Not sure whether the presence of OpenBSD here was a mistake.
5725 # Let's accept both of them until this is cleared up.
5726 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5727 lt_cv_file_magic_cmd=$FILECMD
5728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5729 ;;
5730 esac
5731 else
5732 lt_cv_deplibs_check_method=pass_all
5733 fi
5734 ;;
5735
5736 haiku*)
5737 lt_cv_deplibs_check_method=pass_all
5738 ;;
5739
5740 hpux10.20* | hpux11*)
5741 lt_cv_file_magic_cmd=$FILECMD
5742 case $host_cpu in
5743 ia64*)
5744 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5745 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5746 ;;
5747 hppa*64*)
5748 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5749 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5750 ;;
5751 *)
5752 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5753 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5754 ;;
5755 esac
5756 ;;
5757
5758 interix[3-9]*)
5759 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5761 ;;
5762
5763 irix5* | irix6* | nonstopux*)
5764 case $LD in
5765 *-32|*"-32 ") libmagic=32-bit;;
5766 *-n32|*"-n32 ") libmagic=N32;;
5767 *-64|*"-64 ") libmagic=64-bit;;
5768 *) libmagic=never-match;;
5769 esac
5770 lt_cv_deplibs_check_method=pass_all
5771 ;;
5772
5773 # This must be glibc/ELF.
5774 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5775 lt_cv_deplibs_check_method=pass_all
5776 ;;
5777
5778 netbsd* | netbsdelf*-gnu)
5779 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5781 else
5782 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5783 fi
5784 ;;
5785
5786 newos6*)
5787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5788 lt_cv_file_magic_cmd=$FILECMD
5789 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5790 ;;
5791
5792 *nto* | *qnx*)
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795
5796 openbsd* | bitrig*)
5797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5798 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5799 else
5800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5801 fi
5802 ;;
5803
5804 osf3* | osf4* | osf5*)
5805 lt_cv_deplibs_check_method=pass_all
5806 ;;
5807
5808 rdos*)
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812 solaris*)
5813 lt_cv_deplibs_check_method=pass_all
5814 ;;
5815
5816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5817 lt_cv_deplibs_check_method=pass_all
5818 ;;
5819
5820 sysv4 | sysv4.3*)
5821 case $host_vendor in
5822 motorola)
5823 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]'
5824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5825 ;;
5826 ncr)
5827 lt_cv_deplibs_check_method=pass_all
5828 ;;
5829 sequent)
5830 lt_cv_file_magic_cmd='/bin/file'
5831 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5832 ;;
5833 sni)
5834 lt_cv_file_magic_cmd='/bin/file'
5835 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5836 lt_cv_file_magic_test_file=/lib/libc.so
5837 ;;
5838 siemens)
5839 lt_cv_deplibs_check_method=pass_all
5840 ;;
5841 pc)
5842 lt_cv_deplibs_check_method=pass_all
5843 ;;
5844 esac
5845 ;;
5846
5847 tpf*)
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
5850 os2*)
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853 esac
5854
5855 fi
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5857 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5858
5859 file_magic_glob=
5860 want_nocaseglob=no
5861 if test "$build" = "$host"; then
5862 case $host_os in
5863 mingw* | pw32*)
5864 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5865 want_nocaseglob=yes
5866 else
5867 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5868 fi
5869 ;;
5870 esac
5871 fi
5872
5873 file_magic_cmd=$lt_cv_file_magic_cmd
5874 deplibs_check_method=$lt_cv_deplibs_check_method
5875 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898 if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5900 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902 printf %s "checking for $ac_word... " >&6; }
5903 if test ${ac_cv_prog_DLLTOOL+y}
5904 then :
5905 printf %s "(cached) " >&6
5906 else $as_nop
5907 if test -n "$DLLTOOL"; then
5908 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913 IFS=$as_save_IFS
5914 case $as_dir in #(((
5915 '') as_dir=./ ;;
5916 */) ;;
5917 *) as_dir=$as_dir/ ;;
5918 esac
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 DLLTOOL=$ac_cv_prog_DLLTOOL
5932 if test -n "$DLLTOOL"; then
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5934 printf "%s\n" "$DLLTOOL" >&6; }
5935 else
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 printf "%s\n" "no" >&6; }
5938 fi
5939
5940
5941 fi
5942 if test -z "$ac_cv_prog_DLLTOOL"; then
5943 ac_ct_DLLTOOL=$DLLTOOL
5944 # Extract the first word of "dlltool", so it can be a program name with args.
5945 set dummy dlltool; ac_word=$2
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5947 printf %s "checking for $ac_word... " >&6; }
5948 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5949 then :
5950 printf %s "(cached) " >&6
5951 else $as_nop
5952 if test -n "$ac_ct_DLLTOOL"; then
5953 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958 IFS=$as_save_IFS
5959 case $as_dir in #(((
5960 '') as_dir=./ ;;
5961 */) ;;
5962 *) as_dir=$as_dir/ ;;
5963 esac
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970 done
5971 done
5972 IFS=$as_save_IFS
5973
5974 fi
5975 fi
5976 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5977 if test -n "$ac_ct_DLLTOOL"; then
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5979 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5980 else
5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 printf "%s\n" "no" >&6; }
5983 fi
5984
5985 if test "x$ac_ct_DLLTOOL" = x; then
5986 DLLTOOL="false"
5987 else
5988 case $cross_compiling:$ac_tool_warned in
5989 yes:)
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5992 ac_tool_warned=yes ;;
5993 esac
5994 DLLTOOL=$ac_ct_DLLTOOL
5995 fi
5996 else
5997 DLLTOOL="$ac_cv_prog_DLLTOOL"
5998 fi
5999
6000 test -z "$DLLTOOL" && DLLTOOL=dlltool
6001
6002
6003
6004
6005
6006
6007
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6009 printf %s "checking how to associate runtime and link libraries... " >&6; }
6010 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6011 then :
6012 printf %s "(cached) " >&6
6013 else $as_nop
6014 lt_cv_sharedlib_from_linklib_cmd='unknown'
6015
6016 case $host_os in
6017 cygwin* | mingw* | pw32* | cegcc*)
6018 # two different shell functions defined in ltmain.sh;
6019 # decide which one to use based on capabilities of $DLLTOOL
6020 case `$DLLTOOL --help 2>&1` in
6021 *--identify-strict*)
6022 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6023 ;;
6024 *)
6025 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6026 ;;
6027 esac
6028 ;;
6029 *)
6030 # fallback: assume linklib IS sharedlib
6031 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6032 ;;
6033 esac
6034
6035 fi
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6037 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6038 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6039 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6040
6041
6042
6043
6044
6045
6046
6047
6048 if test -n "$ac_tool_prefix"; then
6049 for ac_prog in ar
6050 do
6051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 printf %s "checking for $ac_word... " >&6; }
6055 if test ${ac_cv_prog_AR+y}
6056 then :
6057 printf %s "(cached) " >&6
6058 else $as_nop
6059 if test -n "$AR"; then
6060 ac_cv_prog_AR="$AR" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 case $as_dir in #(((
6067 '') as_dir=./ ;;
6068 */) ;;
6069 *) as_dir=$as_dir/ ;;
6070 esac
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 AR=$ac_cv_prog_AR
6084 if test -n "$AR"; then
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6086 printf "%s\n" "$AR" >&6; }
6087 else
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 printf "%s\n" "no" >&6; }
6090 fi
6091
6092
6093 test -n "$AR" && break
6094 done
6095 fi
6096 if test -z "$AR"; then
6097 ac_ct_AR=$AR
6098 for ac_prog in ar
6099 do
6100 # Extract the first word of "$ac_prog", so it can be a program name with args.
6101 set dummy $ac_prog; ac_word=$2
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 printf %s "checking for $ac_word... " >&6; }
6104 if test ${ac_cv_prog_ac_ct_AR+y}
6105 then :
6106 printf %s "(cached) " >&6
6107 else $as_nop
6108 if test -n "$ac_ct_AR"; then
6109 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6110 else
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114 IFS=$as_save_IFS
6115 case $as_dir in #(((
6116 '') as_dir=./ ;;
6117 */) ;;
6118 *) as_dir=$as_dir/ ;;
6119 esac
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6122 ac_cv_prog_ac_ct_AR="$ac_prog"
6123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6124 break 2
6125 fi
6126 done
6127 done
6128 IFS=$as_save_IFS
6129
6130 fi
6131 fi
6132 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6133 if test -n "$ac_ct_AR"; then
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6135 printf "%s\n" "$ac_ct_AR" >&6; }
6136 else
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 printf "%s\n" "no" >&6; }
6139 fi
6140
6141
6142 test -n "$ac_ct_AR" && break
6143 done
6144
6145 if test "x$ac_ct_AR" = x; then
6146 AR="false"
6147 else
6148 case $cross_compiling:$ac_tool_warned in
6149 yes:)
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152 ac_tool_warned=yes ;;
6153 esac
6154 AR=$ac_ct_AR
6155 fi
6156 fi
6157
6158 : ${AR=ar}
6159
6160
6161
6162
6163
6164
6165 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6166 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6167 # higher priority because thats what people were doing historically (setting
6168 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6169 # variable obsoleted/removed.
6170
6171 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6172 lt_ar_flags=$AR_FLAGS
6173
6174
6175
6176
6177
6178
6179 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6180 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6181
6182
6183
6184
6185
6186
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6188 printf %s "checking for archiver @FILE support... " >&6; }
6189 if test ${lt_cv_ar_at_file+y}
6190 then :
6191 printf %s "(cached) " >&6
6192 else $as_nop
6193 lt_cv_ar_at_file=no
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196
6197 int
6198 main (void)
6199 {
6200
6201 ;
6202 return 0;
6203 }
6204 _ACEOF
6205 if ac_fn_c_try_compile "$LINENO"
6206 then :
6207 echo conftest.$ac_objext > conftest.lst
6208 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6210 (eval $lt_ar_try) 2>&5
6211 ac_status=$?
6212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213 test $ac_status = 0; }
6214 if test 0 -eq "$ac_status"; then
6215 # Ensure the archiver fails upon bogus file names.
6216 rm -f conftest.$ac_objext libconftest.a
6217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6218 (eval $lt_ar_try) 2>&5
6219 ac_status=$?
6220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221 test $ac_status = 0; }
6222 if test 0 -ne "$ac_status"; then
6223 lt_cv_ar_at_file=@
6224 fi
6225 fi
6226 rm -f conftest.* libconftest.a
6227
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6230
6231 fi
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6233 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6234
6235 if test no = "$lt_cv_ar_at_file"; then
6236 archiver_list_spec=
6237 else
6238 archiver_list_spec=$lt_cv_ar_at_file
6239 fi
6240
6241
6242
6243
6244
6245
6246
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}strip; ac_word=$2
6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 printf %s "checking for $ac_word... " >&6; }
6252 if test ${ac_cv_prog_STRIP+y}
6253 then :
6254 printf %s "(cached) " >&6
6255 else $as_nop
6256 if test -n "$STRIP"; then
6257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262 IFS=$as_save_IFS
6263 case $as_dir in #(((
6264 '') as_dir=./ ;;
6265 */) ;;
6266 *) as_dir=$as_dir/ ;;
6267 esac
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6270 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 STRIP=$ac_cv_prog_STRIP
6281 if test -n "$STRIP"; then
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6283 printf "%s\n" "$STRIP" >&6; }
6284 else
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 printf "%s\n" "no" >&6; }
6287 fi
6288
6289
6290 fi
6291 if test -z "$ac_cv_prog_STRIP"; then
6292 ac_ct_STRIP=$STRIP
6293 # Extract the first word of "strip", so it can be a program name with args.
6294 set dummy strip; ac_word=$2
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 printf %s "checking for $ac_word... " >&6; }
6297 if test ${ac_cv_prog_ac_ct_STRIP+y}
6298 then :
6299 printf %s "(cached) " >&6
6300 else $as_nop
6301 if test -n "$ac_ct_STRIP"; then
6302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 case $as_dir in #(((
6309 '') as_dir=./ ;;
6310 */) ;;
6311 *) as_dir=$as_dir/ ;;
6312 esac
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6315 ac_cv_prog_ac_ct_STRIP="strip"
6316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319 done
6320 done
6321 IFS=$as_save_IFS
6322
6323 fi
6324 fi
6325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6326 if test -n "$ac_ct_STRIP"; then
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6328 printf "%s\n" "$ac_ct_STRIP" >&6; }
6329 else
6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 printf "%s\n" "no" >&6; }
6332 fi
6333
6334 if test "x$ac_ct_STRIP" = x; then
6335 STRIP=":"
6336 else
6337 case $cross_compiling:$ac_tool_warned in
6338 yes:)
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6340 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341 ac_tool_warned=yes ;;
6342 esac
6343 STRIP=$ac_ct_STRIP
6344 fi
6345 else
6346 STRIP="$ac_cv_prog_STRIP"
6347 fi
6348
6349 test -z "$STRIP" && STRIP=:
6350
6351
6352
6353
6354
6355
6356 if test -n "$ac_tool_prefix"; then
6357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 printf %s "checking for $ac_word... " >&6; }
6361 if test ${ac_cv_prog_RANLIB+y}
6362 then :
6363 printf %s "(cached) " >&6
6364 else $as_nop
6365 if test -n "$RANLIB"; then
6366 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 case $as_dir in #(((
6373 '') as_dir=./ ;;
6374 */) ;;
6375 *) as_dir=$as_dir/ ;;
6376 esac
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6379 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6381 break 2
6382 fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 RANLIB=$ac_cv_prog_RANLIB
6390 if test -n "$RANLIB"; then
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6392 printf "%s\n" "$RANLIB" >&6; }
6393 else
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6395 printf "%s\n" "no" >&6; }
6396 fi
6397
6398
6399 fi
6400 if test -z "$ac_cv_prog_RANLIB"; then
6401 ac_ct_RANLIB=$RANLIB
6402 # Extract the first word of "ranlib", so it can be a program name with args.
6403 set dummy ranlib; ac_word=$2
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405 printf %s "checking for $ac_word... " >&6; }
6406 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6407 then :
6408 printf %s "(cached) " >&6
6409 else $as_nop
6410 if test -n "$ac_ct_RANLIB"; then
6411 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416 IFS=$as_save_IFS
6417 case $as_dir in #(((
6418 '') as_dir=./ ;;
6419 */) ;;
6420 *) as_dir=$as_dir/ ;;
6421 esac
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6424 ac_cv_prog_ac_ct_RANLIB="ranlib"
6425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6426 break 2
6427 fi
6428 done
6429 done
6430 IFS=$as_save_IFS
6431
6432 fi
6433 fi
6434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6435 if test -n "$ac_ct_RANLIB"; then
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6437 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6438 else
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 printf "%s\n" "no" >&6; }
6441 fi
6442
6443 if test "x$ac_ct_RANLIB" = x; then
6444 RANLIB=":"
6445 else
6446 case $cross_compiling:$ac_tool_warned in
6447 yes:)
6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6450 ac_tool_warned=yes ;;
6451 esac
6452 RANLIB=$ac_ct_RANLIB
6453 fi
6454 else
6455 RANLIB="$ac_cv_prog_RANLIB"
6456 fi
6457
6458 test -z "$RANLIB" && RANLIB=:
6459
6460
6461
6462
6463
6464
6465 # Determine commands to create old-style static archives.
6466 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6467 old_postinstall_cmds='chmod 644 $oldlib'
6468 old_postuninstall_cmds=
6469
6470 if test -n "$RANLIB"; then
6471 case $host_os in
6472 bitrig* | openbsd*)
6473 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6474 ;;
6475 *)
6476 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6477 ;;
6478 esac
6479 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6480 fi
6481
6482 case $host_os in
6483 darwin*)
6484 lock_old_archive_extraction=yes ;;
6485 *)
6486 lock_old_archive_extraction=no ;;
6487 esac
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509 for ac_prog in gawk mawk nawk awk
6510 do
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 printf %s "checking for $ac_word... " >&6; }
6515 if test ${ac_cv_prog_AWK+y}
6516 then :
6517 printf %s "(cached) " >&6
6518 else $as_nop
6519 if test -n "$AWK"; then
6520 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525 IFS=$as_save_IFS
6526 case $as_dir in #(((
6527 '') as_dir=./ ;;
6528 */) ;;
6529 *) as_dir=$as_dir/ ;;
6530 esac
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6533 ac_cv_prog_AWK="$ac_prog"
6534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537 done
6538 done
6539 IFS=$as_save_IFS
6540
6541 fi
6542 fi
6543 AWK=$ac_cv_prog_AWK
6544 if test -n "$AWK"; then
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6546 printf "%s\n" "$AWK" >&6; }
6547 else
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 printf "%s\n" "no" >&6; }
6550 fi
6551
6552
6553 test -n "$AWK" && break
6554 done
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574 # If no C compiler was specified, use CC.
6575 LTCC=${LTCC-"$CC"}
6576
6577 # If no C compiler flags were specified, use CFLAGS.
6578 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6579
6580 # Allow CC to be a program name with arguments.
6581 compiler=$CC
6582
6583
6584 # Check for command to grab the raw symbol name followed by C symbol from nm.
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6586 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6587 if test ${lt_cv_sys_global_symbol_pipe+y}
6588 then :
6589 printf %s "(cached) " >&6
6590 else $as_nop
6591
6592 # These are sane defaults that work on at least a few old systems.
6593 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6594
6595 # Character class describing NM global symbol codes.
6596 symcode='[BCDEGRST]'
6597
6598 # Regexp to match symbols that can be accessed directly from C.
6599 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6600
6601 # Define system-specific variables.
6602 case $host_os in
6603 aix*)
6604 symcode='[BCDT]'
6605 ;;
6606 cygwin* | mingw* | pw32* | cegcc*)
6607 symcode='[ABCDGISTW]'
6608 ;;
6609 hpux*)
6610 if test ia64 = "$host_cpu"; then
6611 symcode='[ABCDEGRST]'
6612 fi
6613 ;;
6614 irix* | nonstopux*)
6615 symcode='[BCDEGRST]'
6616 ;;
6617 osf*)
6618 symcode='[BCDEGQRST]'
6619 ;;
6620 solaris*)
6621 symcode='[BDRT]'
6622 ;;
6623 sco3.2v5*)
6624 symcode='[DT]'
6625 ;;
6626 sysv4.2uw2*)
6627 symcode='[DT]'
6628 ;;
6629 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6630 symcode='[ABDT]'
6631 ;;
6632 sysv4)
6633 symcode='[DFNSTU]'
6634 ;;
6635 esac
6636
6637 # If we're using GNU nm, then use its standard symbol codes.
6638 case `$NM -V 2>&1` in
6639 *GNU* | *'with BFD'*)
6640 symcode='[ABCDGIRSTW]' ;;
6641 esac
6642
6643 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6644 # Gets list of data symbols to import.
6645 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6646 # Adjust the below global symbol transforms to fixup imported variables.
6647 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6648 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6649 lt_c_name_lib_hook="\
6650 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6651 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6652 else
6653 # Disable hooks by default.
6654 lt_cv_sys_global_symbol_to_import=
6655 lt_cdecl_hook=
6656 lt_c_name_hook=
6657 lt_c_name_lib_hook=
6658 fi
6659
6660 # Transform an extracted symbol line into a proper C declaration.
6661 # Some systems (esp. on ia64) link data and code symbols differently,
6662 # so use this general approach.
6663 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6664 $lt_cdecl_hook\
6665 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6666 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6667
6668 # Transform an extracted symbol line into symbol name and symbol address
6669 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6670 $lt_c_name_hook\
6671 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6672 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6673
6674 # Transform an extracted symbol line into symbol name with lib prefix and
6675 # symbol address.
6676 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6677 $lt_c_name_lib_hook\
6678 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6679 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6680 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6681
6682 # Handle CRLF in mingw tool chain
6683 opt_cr=
6684 case $build_os in
6685 mingw*)
6686 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6687 ;;
6688 esac
6689
6690 # Try without a prefix underscore, then with it.
6691 for ac_symprfx in "" "_"; do
6692
6693 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6694 symxfrm="\\1 $ac_symprfx\\2 \\2"
6695
6696 # Write the raw and C identifiers.
6697 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6698 # Fake it for dumpbin and say T for any non-static function,
6699 # D for any global variable and I for any imported variable.
6700 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6701 # which start with @ or ?.
6702 lt_cv_sys_global_symbol_pipe="$AWK '"\
6703 " {last_section=section; section=\$ 3};"\
6704 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6705 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6706 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6707 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6708 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6709 " \$ 0!~/External *\|/{next};"\
6710 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6711 " {if(hide[section]) next};"\
6712 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6713 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6714 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6715 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6716 " ' prfx=^$ac_symprfx"
6717 else
6718 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6719 fi
6720 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6721
6722 # Check to see that the pipe works correctly.
6723 pipe_works=no
6724
6725 rm -f conftest*
6726 cat > conftest.$ac_ext <<_LT_EOF
6727 #ifdef __cplusplus
6728 extern "C" {
6729 #endif
6730 char nm_test_var;
6731 void nm_test_func(void);
6732 void nm_test_func(void){}
6733 #ifdef __cplusplus
6734 }
6735 #endif
6736 int main(){nm_test_var='a';nm_test_func();return(0);}
6737 _LT_EOF
6738
6739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6740 (eval $ac_compile) 2>&5
6741 ac_status=$?
6742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; }; then
6744 # Now try to grab the symbols.
6745 nlist=conftest.nm
6746 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6747 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6748 # Try sorting and uniquifying the output.
6749 if sort "$nlist" | uniq > "$nlist"T; then
6750 mv -f "$nlist"T "$nlist"
6751 else
6752 rm -f "$nlist"T
6753 fi
6754
6755 # Make sure that we snagged all the symbols we need.
6756 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6757 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6758 cat <<_LT_EOF > conftest.$ac_ext
6759 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6760 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6761 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6762 relocations are performed -- see ld's documentation on pseudo-relocs. */
6763 # define LT_DLSYM_CONST
6764 #elif defined __osf__
6765 /* This system does not cope well with relocations in const data. */
6766 # define LT_DLSYM_CONST
6767 #else
6768 # define LT_DLSYM_CONST const
6769 #endif
6770
6771 #ifdef __cplusplus
6772 extern "C" {
6773 #endif
6774
6775 _LT_EOF
6776 # Now generate the symbol file.
6777 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6778
6779 cat <<_LT_EOF >> conftest.$ac_ext
6780
6781 /* The mapping between symbol names and symbols. */
6782 LT_DLSYM_CONST struct {
6783 const char *name;
6784 void *address;
6785 }
6786 lt__PROGRAM__LTX_preloaded_symbols[] =
6787 {
6788 { "@PROGRAM@", (void *) 0 },
6789 _LT_EOF
6790 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6791 cat <<\_LT_EOF >> conftest.$ac_ext
6792 {0, (void *) 0}
6793 };
6794
6795 /* This works around a problem in FreeBSD linker */
6796 #ifdef FREEBSD_WORKAROUND
6797 static const void *lt_preloaded_setup() {
6798 return lt__PROGRAM__LTX_preloaded_symbols;
6799 }
6800 #endif
6801
6802 #ifdef __cplusplus
6803 }
6804 #endif
6805 _LT_EOF
6806 # Now try linking the two files.
6807 mv conftest.$ac_objext conftstm.$ac_objext
6808 lt_globsym_save_LIBS=$LIBS
6809 lt_globsym_save_CFLAGS=$CFLAGS
6810 LIBS=conftstm.$ac_objext
6811 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6813 (eval $ac_link) 2>&5
6814 ac_status=$?
6815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6816 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6817 pipe_works=yes
6818 fi
6819 LIBS=$lt_globsym_save_LIBS
6820 CFLAGS=$lt_globsym_save_CFLAGS
6821 else
6822 echo "cannot find nm_test_func in $nlist" >&5
6823 fi
6824 else
6825 echo "cannot find nm_test_var in $nlist" >&5
6826 fi
6827 else
6828 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6829 fi
6830 else
6831 echo "$progname: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6833 fi
6834 rm -rf conftest* conftst*
6835
6836 # Do not use the global_symbol_pipe unless it works.
6837 if test yes = "$pipe_works"; then
6838 break
6839 else
6840 lt_cv_sys_global_symbol_pipe=
6841 fi
6842 done
6843
6844 fi
6845
6846 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6847 lt_cv_sys_global_symbol_to_cdecl=
6848 fi
6849 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6851 printf "%s\n" "failed" >&6; }
6852 else
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6854 printf "%s\n" "ok" >&6; }
6855 fi
6856
6857 # Response file support.
6858 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6859 nm_file_list_spec='@'
6860 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6861 nm_file_list_spec='@'
6862 fi
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6901 printf %s "checking for sysroot... " >&6; }
6902
6903 # Check whether --with-sysroot was given.
6904 if test ${with_sysroot+y}
6905 then :
6906 withval=$with_sysroot;
6907 else $as_nop
6908 with_sysroot=no
6909 fi
6910
6911
6912 lt_sysroot=
6913 case $with_sysroot in #(
6914 yes)
6915 if test yes = "$GCC"; then
6916 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6917 fi
6918 ;; #(
6919 /*)
6920 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6921 ;; #(
6922 no|'')
6923 ;; #(
6924 *)
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6926 printf "%s\n" "$with_sysroot" >&6; }
6927 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6928 ;;
6929 esac
6930
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6932 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6933
6934
6935
6936
6937
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6939 printf %s "checking for a working dd... " >&6; }
6940 if test ${ac_cv_path_lt_DD+y}
6941 then :
6942 printf %s "(cached) " >&6
6943 else $as_nop
6944 printf 0123456789abcdef0123456789abcdef >conftest.i
6945 cat conftest.i conftest.i >conftest2.i
6946 : ${lt_DD:=$DD}
6947 if test -z "$lt_DD"; then
6948 ac_path_lt_DD_found=false
6949 # Loop through the user's path and test for each of PROGNAME-LIST
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951 for as_dir in $PATH
6952 do
6953 IFS=$as_save_IFS
6954 case $as_dir in #(((
6955 '') as_dir=./ ;;
6956 */) ;;
6957 *) as_dir=$as_dir/ ;;
6958 esac
6959 for ac_prog in dd
6960 do
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6963 as_fn_executable_p "$ac_path_lt_DD" || continue
6964 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6965 cmp -s conftest.i conftest.out \
6966 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6967 fi
6968 $ac_path_lt_DD_found && break 3
6969 done
6970 done
6971 done
6972 IFS=$as_save_IFS
6973 if test -z "$ac_cv_path_lt_DD"; then
6974 :
6975 fi
6976 else
6977 ac_cv_path_lt_DD=$lt_DD
6978 fi
6979
6980 rm -f conftest.i conftest2.i conftest.out
6981 fi
6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6983 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6984
6985
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6987 printf %s "checking how to truncate binary pipes... " >&6; }
6988 if test ${lt_cv_truncate_bin+y}
6989 then :
6990 printf %s "(cached) " >&6
6991 else $as_nop
6992 printf 0123456789abcdef0123456789abcdef >conftest.i
6993 cat conftest.i conftest.i >conftest2.i
6994 lt_cv_truncate_bin=
6995 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6996 cmp -s conftest.i conftest.out \
6997 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6998 fi
6999 rm -f conftest.i conftest2.i conftest.out
7000 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7001 fi
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7003 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7004
7005
7006
7007
7008
7009
7010
7011 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7012 func_cc_basename ()
7013 {
7014 for cc_temp in $*""; do
7015 case $cc_temp in
7016 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7017 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7018 \-*) ;;
7019 *) break;;
7020 esac
7021 done
7022 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7023 }
7024
7025 # Check whether --enable-libtool-lock was given.
7026 if test ${enable_libtool_lock+y}
7027 then :
7028 enableval=$enable_libtool_lock;
7029 fi
7030
7031 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7032
7033 # Some flags need to be propagated to the compiler or linker for good
7034 # libtool support.
7035 case $host in
7036 ia64-*-hpux*)
7037 # Find out what ABI is being produced by ac_compile, and set mode
7038 # options accordingly.
7039 echo 'int i;' > conftest.$ac_ext
7040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7041 (eval $ac_compile) 2>&5
7042 ac_status=$?
7043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7044 test $ac_status = 0; }; then
7045 case `$FILECMD conftest.$ac_objext` in
7046 *ELF-32*)
7047 HPUX_IA64_MODE=32
7048 ;;
7049 *ELF-64*)
7050 HPUX_IA64_MODE=64
7051 ;;
7052 esac
7053 fi
7054 rm -rf conftest*
7055 ;;
7056 *-*-irix6*)
7057 # Find out what ABI is being produced by ac_compile, and set linker
7058 # options accordingly.
7059 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7061 (eval $ac_compile) 2>&5
7062 ac_status=$?
7063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; }; then
7065 if test yes = "$lt_cv_prog_gnu_ld"; then
7066 case `$FILECMD conftest.$ac_objext` in
7067 *32-bit*)
7068 LD="${LD-ld} -melf32bsmip"
7069 ;;
7070 *N32*)
7071 LD="${LD-ld} -melf32bmipn32"
7072 ;;
7073 *64-bit*)
7074 LD="${LD-ld} -melf64bmip"
7075 ;;
7076 esac
7077 else
7078 case `$FILECMD conftest.$ac_objext` in
7079 *32-bit*)
7080 LD="${LD-ld} -32"
7081 ;;
7082 *N32*)
7083 LD="${LD-ld} -n32"
7084 ;;
7085 *64-bit*)
7086 LD="${LD-ld} -64"
7087 ;;
7088 esac
7089 fi
7090 fi
7091 rm -rf conftest*
7092 ;;
7093
7094 mips64*-*linux*)
7095 # Find out what ABI is being produced by ac_compile, and set linker
7096 # options accordingly.
7097 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099 (eval $ac_compile) 2>&5
7100 ac_status=$?
7101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102 test $ac_status = 0; }; then
7103 emul=elf
7104 case `$FILECMD conftest.$ac_objext` in
7105 *32-bit*)
7106 emul="${emul}32"
7107 ;;
7108 *64-bit*)
7109 emul="${emul}64"
7110 ;;
7111 esac
7112 case `$FILECMD conftest.$ac_objext` in
7113 *MSB*)
7114 emul="${emul}btsmip"
7115 ;;
7116 *LSB*)
7117 emul="${emul}ltsmip"
7118 ;;
7119 esac
7120 case `$FILECMD conftest.$ac_objext` in
7121 *N32*)
7122 emul="${emul}n32"
7123 ;;
7124 esac
7125 LD="${LD-ld} -m $emul"
7126 fi
7127 rm -rf conftest*
7128 ;;
7129
7130 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7131 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7132 # Find out what ABI is being produced by ac_compile, and set linker
7133 # options accordingly. Note that the listed cases only cover the
7134 # situations where additional linker options are needed (such as when
7135 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7136 # vice versa); the common cases where no linker options are needed do
7137 # not appear in the list.
7138 echo 'int i;' > conftest.$ac_ext
7139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7140 (eval $ac_compile) 2>&5
7141 ac_status=$?
7142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7143 test $ac_status = 0; }; then
7144 case `$FILECMD conftest.o` in
7145 *32-bit*)
7146 case $host in
7147 x86_64-*kfreebsd*-gnu)
7148 LD="${LD-ld} -m elf_i386_fbsd"
7149 ;;
7150 x86_64-*linux*)
7151 case `$FILECMD conftest.o` in
7152 *x86-64*)
7153 LD="${LD-ld} -m elf32_x86_64"
7154 ;;
7155 *)
7156 LD="${LD-ld} -m elf_i386"
7157 ;;
7158 esac
7159 ;;
7160 powerpc64le-*linux*)
7161 LD="${LD-ld} -m elf32lppclinux"
7162 ;;
7163 powerpc64-*linux*)
7164 LD="${LD-ld} -m elf32ppclinux"
7165 ;;
7166 s390x-*linux*)
7167 LD="${LD-ld} -m elf_s390"
7168 ;;
7169 sparc64-*linux*)
7170 LD="${LD-ld} -m elf32_sparc"
7171 ;;
7172 esac
7173 ;;
7174 *64-bit*)
7175 case $host in
7176 x86_64-*kfreebsd*-gnu)
7177 LD="${LD-ld} -m elf_x86_64_fbsd"
7178 ;;
7179 x86_64-*linux*)
7180 LD="${LD-ld} -m elf_x86_64"
7181 ;;
7182 powerpcle-*linux*)
7183 LD="${LD-ld} -m elf64lppc"
7184 ;;
7185 powerpc-*linux*)
7186 LD="${LD-ld} -m elf64ppc"
7187 ;;
7188 s390*-*linux*|s390*-*tpf*)
7189 LD="${LD-ld} -m elf64_s390"
7190 ;;
7191 sparc*-*linux*)
7192 LD="${LD-ld} -m elf64_sparc"
7193 ;;
7194 esac
7195 ;;
7196 esac
7197 fi
7198 rm -rf conftest*
7199 ;;
7200
7201 *-*-sco3.2v5*)
7202 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7203 SAVE_CFLAGS=$CFLAGS
7204 CFLAGS="$CFLAGS -belf"
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7206 printf %s "checking whether the C compiler needs -belf... " >&6; }
7207 if test ${lt_cv_cc_needs_belf+y}
7208 then :
7209 printf %s "(cached) " >&6
7210 else $as_nop
7211 ac_ext=c
7212 ac_cpp='$CPP $CPPFLAGS'
7213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7216
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219
7220 int
7221 main (void)
7222 {
7223
7224 ;
7225 return 0;
7226 }
7227 _ACEOF
7228 if ac_fn_c_try_link "$LINENO"
7229 then :
7230 lt_cv_cc_needs_belf=yes
7231 else $as_nop
7232 lt_cv_cc_needs_belf=no
7233 fi
7234 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7235 conftest$ac_exeext conftest.$ac_ext
7236 ac_ext=c
7237 ac_cpp='$CPP $CPPFLAGS'
7238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7241
7242 fi
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7244 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7245 if test yes != "$lt_cv_cc_needs_belf"; then
7246 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7247 CFLAGS=$SAVE_CFLAGS
7248 fi
7249 ;;
7250 *-*solaris*)
7251 # Find out what ABI is being produced by ac_compile, and set linker
7252 # options accordingly.
7253 echo 'int i;' > conftest.$ac_ext
7254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7255 (eval $ac_compile) 2>&5
7256 ac_status=$?
7257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258 test $ac_status = 0; }; then
7259 case `$FILECMD conftest.o` in
7260 *64-bit*)
7261 case $lt_cv_prog_gnu_ld in
7262 yes*)
7263 case $host in
7264 i?86-*-solaris*|x86_64-*-solaris*)
7265 LD="${LD-ld} -m elf_x86_64"
7266 ;;
7267 sparc*-*-solaris*)
7268 LD="${LD-ld} -m elf64_sparc"
7269 ;;
7270 esac
7271 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7272 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7273 LD=${LD-ld}_sol2
7274 fi
7275 ;;
7276 *)
7277 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7278 LD="${LD-ld} -64"
7279 fi
7280 ;;
7281 esac
7282 ;;
7283 esac
7284 fi
7285 rm -rf conftest*
7286 ;;
7287 esac
7288
7289 need_locks=$enable_libtool_lock
7290
7291 if test -n "$ac_tool_prefix"; then
7292 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7293 set dummy ${ac_tool_prefix}mt; ac_word=$2
7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 printf %s "checking for $ac_word... " >&6; }
7296 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7297 then :
7298 printf %s "(cached) " >&6
7299 else $as_nop
7300 if test -n "$MANIFEST_TOOL"; then
7301 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306 IFS=$as_save_IFS
7307 case $as_dir in #(((
7308 '') as_dir=./ ;;
7309 */) ;;
7310 *) as_dir=$as_dir/ ;;
7311 esac
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7314 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318 done
7319 done
7320 IFS=$as_save_IFS
7321
7322 fi
7323 fi
7324 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7325 if test -n "$MANIFEST_TOOL"; then
7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7327 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7328 else
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 printf "%s\n" "no" >&6; }
7331 fi
7332
7333
7334 fi
7335 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7336 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7337 # Extract the first word of "mt", so it can be a program name with args.
7338 set dummy mt; ac_word=$2
7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 printf %s "checking for $ac_word... " >&6; }
7341 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7342 then :
7343 printf %s "(cached) " >&6
7344 else $as_nop
7345 if test -n "$ac_ct_MANIFEST_TOOL"; then
7346 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351 IFS=$as_save_IFS
7352 case $as_dir in #(((
7353 '') as_dir=./ ;;
7354 */) ;;
7355 *) as_dir=$as_dir/ ;;
7356 esac
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363 done
7364 done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7370 if test -n "$ac_ct_MANIFEST_TOOL"; then
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7372 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7373 else
7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 printf "%s\n" "no" >&6; }
7376 fi
7377
7378 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7379 MANIFEST_TOOL=":"
7380 else
7381 case $cross_compiling:$ac_tool_warned in
7382 yes:)
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7386 esac
7387 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7388 fi
7389 else
7390 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7391 fi
7392
7393 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7395 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7396 if test ${lt_cv_path_mainfest_tool+y}
7397 then :
7398 printf %s "(cached) " >&6
7399 else $as_nop
7400 lt_cv_path_mainfest_tool=no
7401 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7402 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7403 cat conftest.err >&5
7404 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7405 lt_cv_path_mainfest_tool=yes
7406 fi
7407 rm -f conftest*
7408 fi
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7410 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7411 if test yes != "$lt_cv_path_mainfest_tool"; then
7412 MANIFEST_TOOL=:
7413 fi
7414
7415
7416
7417
7418
7419
7420 case $host_os in
7421 rhapsody* | darwin*)
7422 if test -n "$ac_tool_prefix"; then
7423 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7424 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 printf %s "checking for $ac_word... " >&6; }
7427 if test ${ac_cv_prog_DSYMUTIL+y}
7428 then :
7429 printf %s "(cached) " >&6
7430 else $as_nop
7431 if test -n "$DSYMUTIL"; then
7432 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437 IFS=$as_save_IFS
7438 case $as_dir in #(((
7439 '') as_dir=./ ;;
7440 */) ;;
7441 *) as_dir=$as_dir/ ;;
7442 esac
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7447 break 2
7448 fi
7449 done
7450 done
7451 IFS=$as_save_IFS
7452
7453 fi
7454 fi
7455 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7456 if test -n "$DSYMUTIL"; then
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7458 printf "%s\n" "$DSYMUTIL" >&6; }
7459 else
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 printf "%s\n" "no" >&6; }
7462 fi
7463
7464
7465 fi
7466 if test -z "$ac_cv_prog_DSYMUTIL"; then
7467 ac_ct_DSYMUTIL=$DSYMUTIL
7468 # Extract the first word of "dsymutil", so it can be a program name with args.
7469 set dummy dsymutil; ac_word=$2
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 printf %s "checking for $ac_word... " >&6; }
7472 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7473 then :
7474 printf %s "(cached) " >&6
7475 else $as_nop
7476 if test -n "$ac_ct_DSYMUTIL"; then
7477 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482 IFS=$as_save_IFS
7483 case $as_dir in #(((
7484 '') as_dir=./ ;;
7485 */) ;;
7486 *) as_dir=$as_dir/ ;;
7487 esac
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7490 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7492 break 2
7493 fi
7494 done
7495 done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7501 if test -n "$ac_ct_DSYMUTIL"; then
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7503 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7504 else
7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 printf "%s\n" "no" >&6; }
7507 fi
7508
7509 if test "x$ac_ct_DSYMUTIL" = x; then
7510 DSYMUTIL=":"
7511 else
7512 case $cross_compiling:$ac_tool_warned in
7513 yes:)
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7515 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7516 ac_tool_warned=yes ;;
7517 esac
7518 DSYMUTIL=$ac_ct_DSYMUTIL
7519 fi
7520 else
7521 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7522 fi
7523
7524 if test -n "$ac_tool_prefix"; then
7525 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 printf %s "checking for $ac_word... " >&6; }
7529 if test ${ac_cv_prog_NMEDIT+y}
7530 then :
7531 printf %s "(cached) " >&6
7532 else $as_nop
7533 if test -n "$NMEDIT"; then
7534 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539 IFS=$as_save_IFS
7540 case $as_dir in #(((
7541 '') as_dir=./ ;;
7542 */) ;;
7543 *) as_dir=$as_dir/ ;;
7544 esac
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7547 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7549 break 2
7550 fi
7551 done
7552 done
7553 IFS=$as_save_IFS
7554
7555 fi
7556 fi
7557 NMEDIT=$ac_cv_prog_NMEDIT
7558 if test -n "$NMEDIT"; then
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7560 printf "%s\n" "$NMEDIT" >&6; }
7561 else
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 printf "%s\n" "no" >&6; }
7564 fi
7565
7566
7567 fi
7568 if test -z "$ac_cv_prog_NMEDIT"; then
7569 ac_ct_NMEDIT=$NMEDIT
7570 # Extract the first word of "nmedit", so it can be a program name with args.
7571 set dummy nmedit; ac_word=$2
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 printf %s "checking for $ac_word... " >&6; }
7574 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7575 then :
7576 printf %s "(cached) " >&6
7577 else $as_nop
7578 if test -n "$ac_ct_NMEDIT"; then
7579 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584 IFS=$as_save_IFS
7585 case $as_dir in #(((
7586 '') as_dir=./ ;;
7587 */) ;;
7588 *) as_dir=$as_dir/ ;;
7589 esac
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596 done
7597 done
7598 IFS=$as_save_IFS
7599
7600 fi
7601 fi
7602 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7603 if test -n "$ac_ct_NMEDIT"; then
7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7605 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7606 else
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 printf "%s\n" "no" >&6; }
7609 fi
7610
7611 if test "x$ac_ct_NMEDIT" = x; then
7612 NMEDIT=":"
7613 else
7614 case $cross_compiling:$ac_tool_warned in
7615 yes:)
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7618 ac_tool_warned=yes ;;
7619 esac
7620 NMEDIT=$ac_ct_NMEDIT
7621 fi
7622 else
7623 NMEDIT="$ac_cv_prog_NMEDIT"
7624 fi
7625
7626 if test -n "$ac_tool_prefix"; then
7627 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7628 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 printf %s "checking for $ac_word... " >&6; }
7631 if test ${ac_cv_prog_LIPO+y}
7632 then :
7633 printf %s "(cached) " >&6
7634 else $as_nop
7635 if test -n "$LIPO"; then
7636 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641 IFS=$as_save_IFS
7642 case $as_dir in #(((
7643 '') as_dir=./ ;;
7644 */) ;;
7645 *) as_dir=$as_dir/ ;;
7646 esac
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7649 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7651 break 2
7652 fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657 fi
7658 fi
7659 LIPO=$ac_cv_prog_LIPO
7660 if test -n "$LIPO"; then
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7662 printf "%s\n" "$LIPO" >&6; }
7663 else
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 printf "%s\n" "no" >&6; }
7666 fi
7667
7668
7669 fi
7670 if test -z "$ac_cv_prog_LIPO"; then
7671 ac_ct_LIPO=$LIPO
7672 # Extract the first word of "lipo", so it can be a program name with args.
7673 set dummy lipo; ac_word=$2
7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 printf %s "checking for $ac_word... " >&6; }
7676 if test ${ac_cv_prog_ac_ct_LIPO+y}
7677 then :
7678 printf %s "(cached) " >&6
7679 else $as_nop
7680 if test -n "$ac_ct_LIPO"; then
7681 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686 IFS=$as_save_IFS
7687 case $as_dir in #(((
7688 '') as_dir=./ ;;
7689 */) ;;
7690 *) as_dir=$as_dir/ ;;
7691 esac
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_ac_ct_LIPO="lipo"
7695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7705 if test -n "$ac_ct_LIPO"; then
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7707 printf "%s\n" "$ac_ct_LIPO" >&6; }
7708 else
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 printf "%s\n" "no" >&6; }
7711 fi
7712
7713 if test "x$ac_ct_LIPO" = x; then
7714 LIPO=":"
7715 else
7716 case $cross_compiling:$ac_tool_warned in
7717 yes:)
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7720 ac_tool_warned=yes ;;
7721 esac
7722 LIPO=$ac_ct_LIPO
7723 fi
7724 else
7725 LIPO="$ac_cv_prog_LIPO"
7726 fi
7727
7728 if test -n "$ac_tool_prefix"; then
7729 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7730 set dummy ${ac_tool_prefix}otool; ac_word=$2
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 printf %s "checking for $ac_word... " >&6; }
7733 if test ${ac_cv_prog_OTOOL+y}
7734 then :
7735 printf %s "(cached) " >&6
7736 else $as_nop
7737 if test -n "$OTOOL"; then
7738 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743 IFS=$as_save_IFS
7744 case $as_dir in #(((
7745 '') as_dir=./ ;;
7746 */) ;;
7747 *) as_dir=$as_dir/ ;;
7748 esac
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755 done
7756 done
7757 IFS=$as_save_IFS
7758
7759 fi
7760 fi
7761 OTOOL=$ac_cv_prog_OTOOL
7762 if test -n "$OTOOL"; then
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7764 printf "%s\n" "$OTOOL" >&6; }
7765 else
7766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 printf "%s\n" "no" >&6; }
7768 fi
7769
7770
7771 fi
7772 if test -z "$ac_cv_prog_OTOOL"; then
7773 ac_ct_OTOOL=$OTOOL
7774 # Extract the first word of "otool", so it can be a program name with args.
7775 set dummy otool; ac_word=$2
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 printf %s "checking for $ac_word... " >&6; }
7778 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7779 then :
7780 printf %s "(cached) " >&6
7781 else $as_nop
7782 if test -n "$ac_ct_OTOOL"; then
7783 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7787 do
7788 IFS=$as_save_IFS
7789 case $as_dir in #(((
7790 '') as_dir=./ ;;
7791 */) ;;
7792 *) as_dir=$as_dir/ ;;
7793 esac
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7796 ac_cv_prog_ac_ct_OTOOL="otool"
7797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7798 break 2
7799 fi
7800 done
7801 done
7802 IFS=$as_save_IFS
7803
7804 fi
7805 fi
7806 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7807 if test -n "$ac_ct_OTOOL"; then
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7809 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7810 else
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 printf "%s\n" "no" >&6; }
7813 fi
7814
7815 if test "x$ac_ct_OTOOL" = x; then
7816 OTOOL=":"
7817 else
7818 case $cross_compiling:$ac_tool_warned in
7819 yes:)
7820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7822 ac_tool_warned=yes ;;
7823 esac
7824 OTOOL=$ac_ct_OTOOL
7825 fi
7826 else
7827 OTOOL="$ac_cv_prog_OTOOL"
7828 fi
7829
7830 if test -n "$ac_tool_prefix"; then
7831 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7832 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 printf %s "checking for $ac_word... " >&6; }
7835 if test ${ac_cv_prog_OTOOL64+y}
7836 then :
7837 printf %s "(cached) " >&6
7838 else $as_nop
7839 if test -n "$OTOOL64"; then
7840 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845 IFS=$as_save_IFS
7846 case $as_dir in #(((
7847 '') as_dir=./ ;;
7848 */) ;;
7849 *) as_dir=$as_dir/ ;;
7850 esac
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 OTOOL64=$ac_cv_prog_OTOOL64
7864 if test -n "$OTOOL64"; then
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7866 printf "%s\n" "$OTOOL64" >&6; }
7867 else
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 printf "%s\n" "no" >&6; }
7870 fi
7871
7872
7873 fi
7874 if test -z "$ac_cv_prog_OTOOL64"; then
7875 ac_ct_OTOOL64=$OTOOL64
7876 # Extract the first word of "otool64", so it can be a program name with args.
7877 set dummy otool64; ac_word=$2
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 printf %s "checking for $ac_word... " >&6; }
7880 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7881 then :
7882 printf %s "(cached) " >&6
7883 else $as_nop
7884 if test -n "$ac_ct_OTOOL64"; then
7885 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7886 else
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7889 do
7890 IFS=$as_save_IFS
7891 case $as_dir in #(((
7892 '') as_dir=./ ;;
7893 */) ;;
7894 *) as_dir=$as_dir/ ;;
7895 esac
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_ac_ct_OTOOL64="otool64"
7899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902 done
7903 done
7904 IFS=$as_save_IFS
7905
7906 fi
7907 fi
7908 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7909 if test -n "$ac_ct_OTOOL64"; then
7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7911 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7912 else
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 printf "%s\n" "no" >&6; }
7915 fi
7916
7917 if test "x$ac_ct_OTOOL64" = x; then
7918 OTOOL64=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921 yes:)
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924 ac_tool_warned=yes ;;
7925 esac
7926 OTOOL64=$ac_ct_OTOOL64
7927 fi
7928 else
7929 OTOOL64="$ac_cv_prog_OTOOL64"
7930 fi
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7959 printf %s "checking for -single_module linker flag... " >&6; }
7960 if test ${lt_cv_apple_cc_single_mod+y}
7961 then :
7962 printf %s "(cached) " >&6
7963 else $as_nop
7964 lt_cv_apple_cc_single_mod=no
7965 if test -z "$LT_MULTI_MODULE"; then
7966 # By default we will add the -single_module flag. You can override
7967 # by either setting the environment variable LT_MULTI_MODULE
7968 # non-empty at configure time, or by adding -multi_module to the
7969 # link flags.
7970 rm -rf libconftest.dylib*
7971 echo "int foo(void){return 1;}" > conftest.c
7972 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7973 -dynamiclib -Wl,-single_module conftest.c" >&5
7974 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7975 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7976 _lt_result=$?
7977 # If there is a non-empty error log, and "single_module"
7978 # appears in it, assume the flag caused a linker warning
7979 if test -s conftest.err && $GREP single_module conftest.err; then
7980 cat conftest.err >&5
7981 # Otherwise, if the output was created with a 0 exit code from
7982 # the compiler, it worked.
7983 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7984 lt_cv_apple_cc_single_mod=yes
7985 else
7986 cat conftest.err >&5
7987 fi
7988 rm -rf libconftest.dylib*
7989 rm -f conftest.*
7990 fi
7991 fi
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7993 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7994
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7996 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7997 if test ${lt_cv_ld_exported_symbols_list+y}
7998 then :
7999 printf %s "(cached) " >&6
8000 else $as_nop
8001 lt_cv_ld_exported_symbols_list=no
8002 save_LDFLAGS=$LDFLAGS
8003 echo "_main" > conftest.sym
8004 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007
8008 int
8009 main (void)
8010 {
8011
8012 ;
8013 return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_link "$LINENO"
8017 then :
8018 lt_cv_ld_exported_symbols_list=yes
8019 else $as_nop
8020 lt_cv_ld_exported_symbols_list=no
8021 fi
8022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8023 conftest$ac_exeext conftest.$ac_ext
8024 LDFLAGS=$save_LDFLAGS
8025
8026 fi
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8028 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8029
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8031 printf %s "checking for -force_load linker flag... " >&6; }
8032 if test ${lt_cv_ld_force_load+y}
8033 then :
8034 printf %s "(cached) " >&6
8035 else $as_nop
8036 lt_cv_ld_force_load=no
8037 cat > conftest.c << _LT_EOF
8038 int forced_loaded() { return 2;}
8039 _LT_EOF
8040 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8041 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8042 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8043 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8044 echo "$RANLIB libconftest.a" >&5
8045 $RANLIB libconftest.a 2>&5
8046 cat > conftest.c << _LT_EOF
8047 int main() { return 0;}
8048 _LT_EOF
8049 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8050 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8051 _lt_result=$?
8052 if test -s conftest.err && $GREP force_load conftest.err; then
8053 cat conftest.err >&5
8054 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8055 lt_cv_ld_force_load=yes
8056 else
8057 cat conftest.err >&5
8058 fi
8059 rm -f conftest.err libconftest.a conftest conftest.c
8060 rm -rf conftest.dSYM
8061
8062 fi
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8064 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8065 case $host_os in
8066 rhapsody* | darwin1.[012])
8067 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8068 darwin1.*)
8069 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8070 darwin*)
8071 case $MACOSX_DEPLOYMENT_TARGET,$host in
8072 10.[012],*|,*powerpc*-darwin[5-8]*)
8073 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8074 *)
8075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8076 esac
8077 ;;
8078 esac
8079 if test yes = "$lt_cv_apple_cc_single_mod"; then
8080 _lt_dar_single_mod='$single_module'
8081 fi
8082 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8083 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8084 else
8085 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8086 fi
8087 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8088 _lt_dsymutil='~$DSYMUTIL $lib || :'
8089 else
8090 _lt_dsymutil=
8091 fi
8092 ;;
8093 esac
8094
8095 # func_munge_path_list VARIABLE PATH
8096 # -----------------------------------
8097 # VARIABLE is name of variable containing _space_ separated list of
8098 # directories to be munged by the contents of PATH, which is string
8099 # having a format:
8100 # "DIR[:DIR]:"
8101 # string "DIR[ DIR]" will be prepended to VARIABLE
8102 # ":DIR[:DIR]"
8103 # string "DIR[ DIR]" will be appended to VARIABLE
8104 # "DIRP[:DIRP]::[DIRA:]DIRA"
8105 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8106 # "DIRA[ DIRA]" will be appended to VARIABLE
8107 # "DIR[:DIR]"
8108 # VARIABLE will be replaced by "DIR[ DIR]"
8109 func_munge_path_list ()
8110 {
8111 case x$2 in
8112 x)
8113 ;;
8114 *:)
8115 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8116 ;;
8117 x:*)
8118 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8119 ;;
8120 *::*)
8121 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8122 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8123 ;;
8124 *)
8125 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8126 ;;
8127 esac
8128 }
8129
8130 ac_header= ac_cache=
8131 for ac_item in $ac_header_c_list
8132 do
8133 if test $ac_cache; then
8134 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8135 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8136 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8137 fi
8138 ac_header= ac_cache=
8139 elif test $ac_header; then
8140 ac_cache=$ac_item
8141 else
8142 ac_header=$ac_item
8143 fi
8144 done
8145
8146
8147
8148
8149
8150
8151
8152
8153 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8154 then :
8155
8156 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8157
8158 fi
8159 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8160 "
8161 if test "x$ac_cv_header_dlfcn_h" = xyes
8162 then :
8163 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8164
8165 fi
8166
8167
8168
8169
8170
8171 # Set options
8172 enable_win32_dll=yes
8173
8174 case $host in
8175 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8176 if test -n "$ac_tool_prefix"; then
8177 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8178 set dummy ${ac_tool_prefix}as; ac_word=$2
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8180 printf %s "checking for $ac_word... " >&6; }
8181 if test ${ac_cv_prog_AS+y}
8182 then :
8183 printf %s "(cached) " >&6
8184 else $as_nop
8185 if test -n "$AS"; then
8186 ac_cv_prog_AS="$AS" # Let the user override the test.
8187 else
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8190 do
8191 IFS=$as_save_IFS
8192 case $as_dir in #(((
8193 '') as_dir=./ ;;
8194 */) ;;
8195 *) as_dir=$as_dir/ ;;
8196 esac
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8199 ac_cv_prog_AS="${ac_tool_prefix}as"
8200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8201 break 2
8202 fi
8203 done
8204 done
8205 IFS=$as_save_IFS
8206
8207 fi
8208 fi
8209 AS=$ac_cv_prog_AS
8210 if test -n "$AS"; then
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8212 printf "%s\n" "$AS" >&6; }
8213 else
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 printf "%s\n" "no" >&6; }
8216 fi
8217
8218
8219 fi
8220 if test -z "$ac_cv_prog_AS"; then
8221 ac_ct_AS=$AS
8222 # Extract the first word of "as", so it can be a program name with args.
8223 set dummy as; ac_word=$2
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 printf %s "checking for $ac_word... " >&6; }
8226 if test ${ac_cv_prog_ac_ct_AS+y}
8227 then :
8228 printf %s "(cached) " >&6
8229 else $as_nop
8230 if test -n "$ac_ct_AS"; then
8231 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8235 do
8236 IFS=$as_save_IFS
8237 case $as_dir in #(((
8238 '') as_dir=./ ;;
8239 */) ;;
8240 *) as_dir=$as_dir/ ;;
8241 esac
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8244 ac_cv_prog_ac_ct_AS="as"
8245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8246 break 2
8247 fi
8248 done
8249 done
8250 IFS=$as_save_IFS
8251
8252 fi
8253 fi
8254 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8255 if test -n "$ac_ct_AS"; then
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8257 printf "%s\n" "$ac_ct_AS" >&6; }
8258 else
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 printf "%s\n" "no" >&6; }
8261 fi
8262
8263 if test "x$ac_ct_AS" = x; then
8264 AS="false"
8265 else
8266 case $cross_compiling:$ac_tool_warned in
8267 yes:)
8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8269 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8270 ac_tool_warned=yes ;;
8271 esac
8272 AS=$ac_ct_AS
8273 fi
8274 else
8275 AS="$ac_cv_prog_AS"
8276 fi
8277
8278 if test -n "$ac_tool_prefix"; then
8279 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8280 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8282 printf %s "checking for $ac_word... " >&6; }
8283 if test ${ac_cv_prog_DLLTOOL+y}
8284 then :
8285 printf %s "(cached) " >&6
8286 else $as_nop
8287 if test -n "$DLLTOOL"; then
8288 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8289 else
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8292 do
8293 IFS=$as_save_IFS
8294 case $as_dir in #(((
8295 '') as_dir=./ ;;
8296 */) ;;
8297 *) as_dir=$as_dir/ ;;
8298 esac
8299 for ac_exec_ext in '' $ac_executable_extensions; do
8300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8301 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8303 break 2
8304 fi
8305 done
8306 done
8307 IFS=$as_save_IFS
8308
8309 fi
8310 fi
8311 DLLTOOL=$ac_cv_prog_DLLTOOL
8312 if test -n "$DLLTOOL"; then
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8314 printf "%s\n" "$DLLTOOL" >&6; }
8315 else
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317 printf "%s\n" "no" >&6; }
8318 fi
8319
8320
8321 fi
8322 if test -z "$ac_cv_prog_DLLTOOL"; then
8323 ac_ct_DLLTOOL=$DLLTOOL
8324 # Extract the first word of "dlltool", so it can be a program name with args.
8325 set dummy dlltool; ac_word=$2
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327 printf %s "checking for $ac_word... " >&6; }
8328 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8329 then :
8330 printf %s "(cached) " >&6
8331 else $as_nop
8332 if test -n "$ac_ct_DLLTOOL"; then
8333 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338 IFS=$as_save_IFS
8339 case $as_dir in #(((
8340 '') as_dir=./ ;;
8341 */) ;;
8342 *) as_dir=$as_dir/ ;;
8343 esac
8344 for ac_exec_ext in '' $ac_executable_extensions; do
8345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8346 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8348 break 2
8349 fi
8350 done
8351 done
8352 IFS=$as_save_IFS
8353
8354 fi
8355 fi
8356 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8357 if test -n "$ac_ct_DLLTOOL"; then
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8359 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8360 else
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 printf "%s\n" "no" >&6; }
8363 fi
8364
8365 if test "x$ac_ct_DLLTOOL" = x; then
8366 DLLTOOL="false"
8367 else
8368 case $cross_compiling:$ac_tool_warned in
8369 yes:)
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8371 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8372 ac_tool_warned=yes ;;
8373 esac
8374 DLLTOOL=$ac_ct_DLLTOOL
8375 fi
8376 else
8377 DLLTOOL="$ac_cv_prog_DLLTOOL"
8378 fi
8379
8380 if test -n "$ac_tool_prefix"; then
8381 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8382 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 printf %s "checking for $ac_word... " >&6; }
8385 if test ${ac_cv_prog_OBJDUMP+y}
8386 then :
8387 printf %s "(cached) " >&6
8388 else $as_nop
8389 if test -n "$OBJDUMP"; then
8390 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8391 else
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 for as_dir in $PATH
8394 do
8395 IFS=$as_save_IFS
8396 case $as_dir in #(((
8397 '') as_dir=./ ;;
8398 */) ;;
8399 *) as_dir=$as_dir/ ;;
8400 esac
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8403 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8405 break 2
8406 fi
8407 done
8408 done
8409 IFS=$as_save_IFS
8410
8411 fi
8412 fi
8413 OBJDUMP=$ac_cv_prog_OBJDUMP
8414 if test -n "$OBJDUMP"; then
8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8416 printf "%s\n" "$OBJDUMP" >&6; }
8417 else
8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 printf "%s\n" "no" >&6; }
8420 fi
8421
8422
8423 fi
8424 if test -z "$ac_cv_prog_OBJDUMP"; then
8425 ac_ct_OBJDUMP=$OBJDUMP
8426 # Extract the first word of "objdump", so it can be a program name with args.
8427 set dummy objdump; ac_word=$2
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 printf %s "checking for $ac_word... " >&6; }
8430 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8431 then :
8432 printf %s "(cached) " >&6
8433 else $as_nop
8434 if test -n "$ac_ct_OBJDUMP"; then
8435 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440 IFS=$as_save_IFS
8441 case $as_dir in #(((
8442 '') as_dir=./ ;;
8443 */) ;;
8444 *) as_dir=$as_dir/ ;;
8445 esac
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8448 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8450 break 2
8451 fi
8452 done
8453 done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8459 if test -n "$ac_ct_OBJDUMP"; then
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8461 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8462 else
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 printf "%s\n" "no" >&6; }
8465 fi
8466
8467 if test "x$ac_ct_OBJDUMP" = x; then
8468 OBJDUMP="false"
8469 else
8470 case $cross_compiling:$ac_tool_warned in
8471 yes:)
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8474 ac_tool_warned=yes ;;
8475 esac
8476 OBJDUMP=$ac_ct_OBJDUMP
8477 fi
8478 else
8479 OBJDUMP="$ac_cv_prog_OBJDUMP"
8480 fi
8481
8482 ;;
8483 esac
8484
8485 test -z "$AS" && AS=as
8486
8487
8488
8489
8490
8491 test -z "$DLLTOOL" && DLLTOOL=dlltool
8492
8493
8494
8495
8496
8497 test -z "$OBJDUMP" && OBJDUMP=objdump
8498
8499
8500
8501
8502 # Check whether --enable-shared was given.
8503 if test ${enable_shared+y}
8504 then :
8505 enableval=$enable_shared; p=${PACKAGE-default}
8506 case $enableval in
8507 yes) enable_shared=yes ;;
8508 no) enable_shared=no ;;
8509 *)
8510 enable_shared=no
8511 # Look at the argument we got. We use all the common list separators.
8512 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8513 for pkg in $enableval; do
8514 IFS=$lt_save_ifs
8515 if test "X$pkg" = "X$p"; then
8516 enable_shared=yes
8517 fi
8518 done
8519 IFS=$lt_save_ifs
8520 ;;
8521 esac
8522 else $as_nop
8523 enable_shared=yes
8524 fi
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535 enable_dlopen=no
8536
8537
8538
8539
8540 # Check whether --enable-static was given.
8541 if test ${enable_static+y}
8542 then :
8543 enableval=$enable_static; p=${PACKAGE-default}
8544 case $enableval in
8545 yes) enable_static=yes ;;
8546 no) enable_static=no ;;
8547 *)
8548 enable_static=no
8549 # Look at the argument we got. We use all the common list separators.
8550 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8551 for pkg in $enableval; do
8552 IFS=$lt_save_ifs
8553 if test "X$pkg" = "X$p"; then
8554 enable_static=yes
8555 fi
8556 done
8557 IFS=$lt_save_ifs
8558 ;;
8559 esac
8560 else $as_nop
8561 enable_static=yes
8562 fi
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573 # Check whether --with-pic was given.
8574 if test ${with_pic+y}
8575 then :
8576 withval=$with_pic; lt_p=${PACKAGE-default}
8577 case $withval in
8578 yes|no) pic_mode=$withval ;;
8579 *)
8580 pic_mode=default
8581 # Look at the argument we got. We use all the common list separators.
8582 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8583 for lt_pkg in $withval; do
8584 IFS=$lt_save_ifs
8585 if test "X$lt_pkg" = "X$lt_p"; then
8586 pic_mode=yes
8587 fi
8588 done
8589 IFS=$lt_save_ifs
8590 ;;
8591 esac
8592 else $as_nop
8593 pic_mode=default
8594 fi
8595
8596
8597
8598
8599
8600
8601
8602
8603 # Check whether --enable-fast-install was given.
8604 if test ${enable_fast_install+y}
8605 then :
8606 enableval=$enable_fast_install; p=${PACKAGE-default}
8607 case $enableval in
8608 yes) enable_fast_install=yes ;;
8609 no) enable_fast_install=no ;;
8610 *)
8611 enable_fast_install=no
8612 # Look at the argument we got. We use all the common list separators.
8613 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8614 for pkg in $enableval; do
8615 IFS=$lt_save_ifs
8616 if test "X$pkg" = "X$p"; then
8617 enable_fast_install=yes
8618 fi
8619 done
8620 IFS=$lt_save_ifs
8621 ;;
8622 esac
8623 else $as_nop
8624 enable_fast_install=yes
8625 fi
8626
8627
8628
8629
8630
8631
8632
8633
8634 shared_archive_member_spec=
8635 case $host,$enable_shared in
8636 power*-*-aix[5-9]*,yes)
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8638 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8639
8640 # Check whether --with-aix-soname was given.
8641 if test ${with_aix_soname+y}
8642 then :
8643 withval=$with_aix_soname; case $withval in
8644 aix|svr4|both)
8645 ;;
8646 *)
8647 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8648 ;;
8649 esac
8650 lt_cv_with_aix_soname=$with_aix_soname
8651 else $as_nop
8652 if test ${lt_cv_with_aix_soname+y}
8653 then :
8654 printf %s "(cached) " >&6
8655 else $as_nop
8656 lt_cv_with_aix_soname=aix
8657 fi
8658
8659 with_aix_soname=$lt_cv_with_aix_soname
8660 fi
8661
8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8663 printf "%s\n" "$with_aix_soname" >&6; }
8664 if test aix != "$with_aix_soname"; then
8665 # For the AIX way of multilib, we name the shared archive member
8666 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8667 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8668 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8669 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8670 if test 64 = "${OBJECT_MODE-32}"; then
8671 shared_archive_member_spec=shr_64
8672 else
8673 shared_archive_member_spec=shr
8674 fi
8675 fi
8676 ;;
8677 *)
8678 with_aix_soname=aix
8679 ;;
8680 esac
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691 # This can be used to rebuild libtool when needed
8692 LIBTOOL_DEPS=$ltmain
8693
8694 # Always use our own libtool.
8695 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726 test -z "$LN_S" && LN_S="ln -s"
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741 if test -n "${ZSH_VERSION+set}"; then
8742 setopt NO_GLOB_SUBST
8743 fi
8744
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8746 printf %s "checking for objdir... " >&6; }
8747 if test ${lt_cv_objdir+y}
8748 then :
8749 printf %s "(cached) " >&6
8750 else $as_nop
8751 rm -f .libs 2>/dev/null
8752 mkdir .libs 2>/dev/null
8753 if test -d .libs; then
8754 lt_cv_objdir=.libs
8755 else
8756 # MS-DOS does not allow filenames that begin with a dot.
8757 lt_cv_objdir=_libs
8758 fi
8759 rmdir .libs 2>/dev/null
8760 fi
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8762 printf "%s\n" "$lt_cv_objdir" >&6; }
8763 objdir=$lt_cv_objdir
8764
8765
8766
8767
8768
8769 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8770
8771
8772
8773
8774 case $host_os in
8775 aix3*)
8776 # AIX sometimes has problems with the GCC collect2 program. For some
8777 # reason, if we set the COLLECT_NAMES environment variable, the problems
8778 # vanish in a puff of smoke.
8779 if test set != "${COLLECT_NAMES+set}"; then
8780 COLLECT_NAMES=
8781 export COLLECT_NAMES
8782 fi
8783 ;;
8784 esac
8785
8786 # Global variables:
8787 ofile=libtool
8788 can_build_shared=yes
8789
8790 # All known linkers require a '.a' archive for static linking (except MSVC and
8791 # ICC, which need '.lib').
8792 libext=a
8793
8794 with_gnu_ld=$lt_cv_prog_gnu_ld
8795
8796 old_CC=$CC
8797 old_CFLAGS=$CFLAGS
8798
8799 # Set sane defaults for various variables
8800 test -z "$CC" && CC=cc
8801 test -z "$LTCC" && LTCC=$CC
8802 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8803 test -z "$LD" && LD=ld
8804 test -z "$ac_objext" && ac_objext=o
8805
8806 func_cc_basename $compiler
8807 cc_basename=$func_cc_basename_result
8808
8809
8810 # Only perform the check for file, if the check method requires it
8811 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8812 case $deplibs_check_method in
8813 file_magic*)
8814 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8816 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8817 if test ${lt_cv_path_MAGIC_CMD+y}
8818 then :
8819 printf %s "(cached) " >&6
8820 else $as_nop
8821 case $MAGIC_CMD in
8822 [\\/*] | ?:[\\/]*)
8823 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8824 ;;
8825 *)
8826 lt_save_MAGIC_CMD=$MAGIC_CMD
8827 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8828 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8829 for ac_dir in $ac_dummy; do
8830 IFS=$lt_save_ifs
8831 test -z "$ac_dir" && ac_dir=.
8832 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8833 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8834 if test -n "$file_magic_test_file"; then
8835 case $deplibs_check_method in
8836 "file_magic "*)
8837 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8838 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8839 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8840 $EGREP "$file_magic_regex" > /dev/null; then
8841 :
8842 else
8843 cat <<_LT_EOF 1>&2
8844
8845 *** Warning: the command libtool uses to detect shared libraries,
8846 *** $file_magic_cmd, produces output that libtool cannot recognize.
8847 *** The result is that libtool may fail to recognize shared libraries
8848 *** as such. This will affect the creation of libtool libraries that
8849 *** depend on shared libraries, but programs linked with such libtool
8850 *** libraries will work regardless of this problem. Nevertheless, you
8851 *** may want to report the problem to your system manager and/or to
8852 *** [email protected]
8853
8854 _LT_EOF
8855 fi ;;
8856 esac
8857 fi
8858 break
8859 fi
8860 done
8861 IFS=$lt_save_ifs
8862 MAGIC_CMD=$lt_save_MAGIC_CMD
8863 ;;
8864 esac
8865 fi
8866
8867 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8868 if test -n "$MAGIC_CMD"; then
8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8870 printf "%s\n" "$MAGIC_CMD" >&6; }
8871 else
8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 printf "%s\n" "no" >&6; }
8874 fi
8875
8876
8877
8878
8879
8880 if test -z "$lt_cv_path_MAGIC_CMD"; then
8881 if test -n "$ac_tool_prefix"; then
8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8883 printf %s "checking for file... " >&6; }
8884 if test ${lt_cv_path_MAGIC_CMD+y}
8885 then :
8886 printf %s "(cached) " >&6
8887 else $as_nop
8888 case $MAGIC_CMD in
8889 [\\/*] | ?:[\\/]*)
8890 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8891 ;;
8892 *)
8893 lt_save_MAGIC_CMD=$MAGIC_CMD
8894 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8896 for ac_dir in $ac_dummy; do
8897 IFS=$lt_save_ifs
8898 test -z "$ac_dir" && ac_dir=.
8899 if test -f "$ac_dir/file"; then
8900 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8901 if test -n "$file_magic_test_file"; then
8902 case $deplibs_check_method in
8903 "file_magic "*)
8904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8905 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8907 $EGREP "$file_magic_regex" > /dev/null; then
8908 :
8909 else
8910 cat <<_LT_EOF 1>&2
8911
8912 *** Warning: the command libtool uses to detect shared libraries,
8913 *** $file_magic_cmd, produces output that libtool cannot recognize.
8914 *** The result is that libtool may fail to recognize shared libraries
8915 *** as such. This will affect the creation of libtool libraries that
8916 *** depend on shared libraries, but programs linked with such libtool
8917 *** libraries will work regardless of this problem. Nevertheless, you
8918 *** may want to report the problem to your system manager and/or to
8919 *** [email protected]
8920
8921 _LT_EOF
8922 fi ;;
8923 esac
8924 fi
8925 break
8926 fi
8927 done
8928 IFS=$lt_save_ifs
8929 MAGIC_CMD=$lt_save_MAGIC_CMD
8930 ;;
8931 esac
8932 fi
8933
8934 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8935 if test -n "$MAGIC_CMD"; then
8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8937 printf "%s\n" "$MAGIC_CMD" >&6; }
8938 else
8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 printf "%s\n" "no" >&6; }
8941 fi
8942
8943
8944 else
8945 MAGIC_CMD=:
8946 fi
8947 fi
8948
8949 fi
8950 ;;
8951 esac
8952
8953 # Use C for the default configuration in the libtool script
8954
8955 lt_save_CC=$CC
8956 ac_ext=c
8957 ac_cpp='$CPP $CPPFLAGS'
8958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961
8962
8963 # Source file extension for C test sources.
8964 ac_ext=c
8965
8966 # Object file extension for compiled C test sources.
8967 objext=o
8968 objext=$objext
8969
8970 # Code to be used in simple compile tests
8971 lt_simple_compile_test_code="int some_variable = 0;"
8972
8973 # Code to be used in simple link tests
8974 lt_simple_link_test_code='int main(){return(0);}'
8975
8976
8977
8978
8979
8980
8981
8982 # If no C compiler was specified, use CC.
8983 LTCC=${LTCC-"$CC"}
8984
8985 # If no C compiler flags were specified, use CFLAGS.
8986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8987
8988 # Allow CC to be a program name with arguments.
8989 compiler=$CC
8990
8991 # Save the default compiler, since it gets overwritten when the other
8992 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8993 compiler_DEFAULT=$CC
8994
8995 # save warnings/boilerplate of simple test code
8996 ac_outfile=conftest.$ac_objext
8997 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8999 _lt_compiler_boilerplate=`cat conftest.err`
9000 $RM conftest*
9001
9002 ac_outfile=conftest.$ac_objext
9003 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9005 _lt_linker_boilerplate=`cat conftest.err`
9006 $RM -r conftest*
9007
9008
9009 ## CAVEAT EMPTOR:
9010 ## There is no encapsulation within the following macros, do not change
9011 ## the running order or otherwise move them around unless you know exactly
9012 ## what you are doing...
9013 if test -n "$compiler"; then
9014
9015 lt_prog_compiler_no_builtin_flag=
9016
9017 if test yes = "$GCC"; then
9018 case $cc_basename in
9019 nvcc*)
9020 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9021 *)
9022 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9023 esac
9024
9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9026 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9027 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9028 then :
9029 printf %s "(cached) " >&6
9030 else $as_nop
9031 lt_cv_prog_compiler_rtti_exceptions=no
9032 ac_outfile=conftest.$ac_objext
9033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9035 # Insert the option either (1) after the last *FLAGS variable, or
9036 # (2) before a word containing "conftest.", or (3) at the end.
9037 # Note that $ac_compile itself does not contain backslashes and begins
9038 # with a dollar sign (not a hyphen), so the echo should work correctly.
9039 # The option is referenced via a variable to avoid confusing sed.
9040 lt_compile=`echo "$ac_compile" | $SED \
9041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9043 -e 's:$: $lt_compiler_flag:'`
9044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9045 (eval "$lt_compile" 2>conftest.err)
9046 ac_status=$?
9047 cat conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 if (exit $ac_status) && test -s "$ac_outfile"; then
9050 # The compiler can only warn and ignore the option if not recognized
9051 # So say no if there are warnings other than the usual output.
9052 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9054 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9055 lt_cv_prog_compiler_rtti_exceptions=yes
9056 fi
9057 fi
9058 $RM conftest*
9059
9060 fi
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9062 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9063
9064 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9065 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9066 else
9067 :
9068 fi
9069
9070 fi
9071
9072
9073
9074
9075
9076
9077 lt_prog_compiler_wl=
9078 lt_prog_compiler_pic=
9079 lt_prog_compiler_static=
9080
9081
9082 if test yes = "$GCC"; then
9083 lt_prog_compiler_wl='-Wl,'
9084 lt_prog_compiler_static='-static'
9085
9086 case $host_os in
9087 aix*)
9088 # All AIX code is PIC.
9089 if test ia64 = "$host_cpu"; then
9090 # AIX 5 now supports IA64 processor
9091 lt_prog_compiler_static='-Bstatic'
9092 fi
9093 lt_prog_compiler_pic='-fPIC'
9094 ;;
9095
9096 amigaos*)
9097 case $host_cpu in
9098 powerpc)
9099 # see comment about AmigaOS4 .so support
9100 lt_prog_compiler_pic='-fPIC'
9101 ;;
9102 m68k)
9103 # FIXME: we need at least 68020 code to build shared libraries, but
9104 # adding the '-m68020' flag to GCC prevents building anything better,
9105 # like '-m68040'.
9106 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9107 ;;
9108 esac
9109 ;;
9110
9111 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9112 # PIC is the default for these OSes.
9113 ;;
9114
9115 mingw* | cygwin* | pw32* | os2* | cegcc*)
9116 # This hack is so that the source file can tell whether it is being
9117 # built for inclusion in a dll (and should export symbols for example).
9118 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9119 # (--disable-auto-import) libraries
9120 lt_prog_compiler_pic='-DDLL_EXPORT'
9121 case $host_os in
9122 os2*)
9123 lt_prog_compiler_static='$wl-static'
9124 ;;
9125 esac
9126 ;;
9127
9128 darwin* | rhapsody*)
9129 # PIC is the default on this platform
9130 # Common symbols not allowed in MH_DYLIB files
9131 lt_prog_compiler_pic='-fno-common'
9132 ;;
9133
9134 haiku*)
9135 # PIC is the default for Haiku.
9136 # The "-static" flag exists, but is broken.
9137 lt_prog_compiler_static=
9138 ;;
9139
9140 hpux*)
9141 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9142 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9143 # sets the default TLS model and affects inlining.
9144 case $host_cpu in
9145 hppa*64*)
9146 # +Z the default
9147 ;;
9148 *)
9149 lt_prog_compiler_pic='-fPIC'
9150 ;;
9151 esac
9152 ;;
9153
9154 interix[3-9]*)
9155 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9156 # Instead, we relocate shared libraries at runtime.
9157 ;;
9158
9159 msdosdjgpp*)
9160 # Just because we use GCC doesn't mean we suddenly get shared libraries
9161 # on systems that don't support them.
9162 lt_prog_compiler_can_build_shared=no
9163 enable_shared=no
9164 ;;
9165
9166 *nto* | *qnx*)
9167 # QNX uses GNU C++, but need to define -shared option too, otherwise
9168 # it will coredump.
9169 lt_prog_compiler_pic='-fPIC -shared'
9170 ;;
9171
9172 sysv4*MP*)
9173 if test -d /usr/nec; then
9174 lt_prog_compiler_pic=-Kconform_pic
9175 fi
9176 ;;
9177
9178 *)
9179 lt_prog_compiler_pic='-fPIC'
9180 ;;
9181 esac
9182
9183 case $cc_basename in
9184 nvcc*) # Cuda Compiler Driver 2.2
9185 lt_prog_compiler_wl='-Xlinker '
9186 if test -n "$lt_prog_compiler_pic"; then
9187 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9188 fi
9189 ;;
9190 esac
9191 else
9192 # PORTME Check for flag to pass linker flags through the system compiler.
9193 case $host_os in
9194 aix*)
9195 lt_prog_compiler_wl='-Wl,'
9196 if test ia64 = "$host_cpu"; then
9197 # AIX 5 now supports IA64 processor
9198 lt_prog_compiler_static='-Bstatic'
9199 else
9200 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9201 fi
9202 ;;
9203
9204 darwin* | rhapsody*)
9205 # PIC is the default on this platform
9206 # Common symbols not allowed in MH_DYLIB files
9207 lt_prog_compiler_pic='-fno-common'
9208 case $cc_basename in
9209 nagfor*)
9210 # NAG Fortran compiler
9211 lt_prog_compiler_wl='-Wl,-Wl,,'
9212 lt_prog_compiler_pic='-PIC'
9213 lt_prog_compiler_static='-Bstatic'
9214 ;;
9215 esac
9216 ;;
9217
9218 mingw* | cygwin* | pw32* | os2* | cegcc*)
9219 # This hack is so that the source file can tell whether it is being
9220 # built for inclusion in a dll (and should export symbols for example).
9221 lt_prog_compiler_pic='-DDLL_EXPORT'
9222 case $host_os in
9223 os2*)
9224 lt_prog_compiler_static='$wl-static'
9225 ;;
9226 esac
9227 ;;
9228
9229 hpux9* | hpux10* | hpux11*)
9230 lt_prog_compiler_wl='-Wl,'
9231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9232 # not for PA HP-UX.
9233 case $host_cpu in
9234 hppa*64*|ia64*)
9235 # +Z the default
9236 ;;
9237 *)
9238 lt_prog_compiler_pic='+Z'
9239 ;;
9240 esac
9241 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9242 lt_prog_compiler_static='$wl-a ${wl}archive'
9243 ;;
9244
9245 irix5* | irix6* | nonstopux*)
9246 lt_prog_compiler_wl='-Wl,'
9247 # PIC (with -KPIC) is the default.
9248 lt_prog_compiler_static='-non_shared'
9249 ;;
9250
9251 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9252 case $cc_basename in
9253 # old Intel for x86_64, which still supported -KPIC.
9254 ecc*)
9255 lt_prog_compiler_wl='-Wl,'
9256 lt_prog_compiler_pic='-KPIC'
9257 lt_prog_compiler_static='-static'
9258 ;;
9259 # flang / f18. f95 an alias for gfortran or flang on Debian
9260 flang* | f18* | f95*)
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_pic='-fPIC'
9263 lt_prog_compiler_static='-static'
9264 ;;
9265 # icc used to be incompatible with GCC.
9266 # ICC 10 doesn't accept -KPIC any more.
9267 icc* | ifort*)
9268 lt_prog_compiler_wl='-Wl,'
9269 lt_prog_compiler_pic='-fPIC'
9270 lt_prog_compiler_static='-static'
9271 ;;
9272 # Lahey Fortran 8.1.
9273 lf95*)
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='--shared'
9276 lt_prog_compiler_static='--static'
9277 ;;
9278 nagfor*)
9279 # NAG Fortran compiler
9280 lt_prog_compiler_wl='-Wl,-Wl,,'
9281 lt_prog_compiler_pic='-PIC'
9282 lt_prog_compiler_static='-Bstatic'
9283 ;;
9284 tcc*)
9285 # Fabrice Bellard et al's Tiny C Compiler
9286 lt_prog_compiler_wl='-Wl,'
9287 lt_prog_compiler_pic='-fPIC'
9288 lt_prog_compiler_static='-static'
9289 ;;
9290 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9291 # Portland Group compilers (*not* the Pentium gcc compiler,
9292 # which looks to be a dead project)
9293 lt_prog_compiler_wl='-Wl,'
9294 lt_prog_compiler_pic='-fpic'
9295 lt_prog_compiler_static='-Bstatic'
9296 ;;
9297 ccc*)
9298 lt_prog_compiler_wl='-Wl,'
9299 # All Alpha code is PIC.
9300 lt_prog_compiler_static='-non_shared'
9301 ;;
9302 xl* | bgxl* | bgf* | mpixl*)
9303 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9304 lt_prog_compiler_wl='-Wl,'
9305 lt_prog_compiler_pic='-qpic'
9306 lt_prog_compiler_static='-qstaticlink'
9307 ;;
9308 *)
9309 case `$CC -V 2>&1 | $SED 5q` in
9310 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9311 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9312 lt_prog_compiler_pic='-KPIC'
9313 lt_prog_compiler_static='-Bstatic'
9314 lt_prog_compiler_wl=''
9315 ;;
9316 *Sun\ F* | *Sun*Fortran*)
9317 lt_prog_compiler_pic='-KPIC'
9318 lt_prog_compiler_static='-Bstatic'
9319 lt_prog_compiler_wl='-Qoption ld '
9320 ;;
9321 *Sun\ C*)
9322 # Sun C 5.9
9323 lt_prog_compiler_pic='-KPIC'
9324 lt_prog_compiler_static='-Bstatic'
9325 lt_prog_compiler_wl='-Wl,'
9326 ;;
9327 *Intel*\ [CF]*Compiler*)
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_pic='-fPIC'
9330 lt_prog_compiler_static='-static'
9331 ;;
9332 *Portland\ Group*)
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-fpic'
9335 lt_prog_compiler_static='-Bstatic'
9336 ;;
9337 esac
9338 ;;
9339 esac
9340 ;;
9341
9342 newsos6)
9343 lt_prog_compiler_pic='-KPIC'
9344 lt_prog_compiler_static='-Bstatic'
9345 ;;
9346
9347 *nto* | *qnx*)
9348 # QNX uses GNU C++, but need to define -shared option too, otherwise
9349 # it will coredump.
9350 lt_prog_compiler_pic='-fPIC -shared'
9351 ;;
9352
9353 osf3* | osf4* | osf5*)
9354 lt_prog_compiler_wl='-Wl,'
9355 # All OSF/1 code is PIC.
9356 lt_prog_compiler_static='-non_shared'
9357 ;;
9358
9359 rdos*)
9360 lt_prog_compiler_static='-non_shared'
9361 ;;
9362
9363 solaris*)
9364 lt_prog_compiler_pic='-KPIC'
9365 lt_prog_compiler_static='-Bstatic'
9366 case $cc_basename in
9367 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9368 lt_prog_compiler_wl='-Qoption ld ';;
9369 *)
9370 lt_prog_compiler_wl='-Wl,';;
9371 esac
9372 ;;
9373
9374 sunos4*)
9375 lt_prog_compiler_wl='-Qoption ld '
9376 lt_prog_compiler_pic='-PIC'
9377 lt_prog_compiler_static='-Bstatic'
9378 ;;
9379
9380 sysv4 | sysv4.2uw2* | sysv4.3*)
9381 lt_prog_compiler_wl='-Wl,'
9382 lt_prog_compiler_pic='-KPIC'
9383 lt_prog_compiler_static='-Bstatic'
9384 ;;
9385
9386 sysv4*MP*)
9387 if test -d /usr/nec; then
9388 lt_prog_compiler_pic='-Kconform_pic'
9389 lt_prog_compiler_static='-Bstatic'
9390 fi
9391 ;;
9392
9393 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9394 lt_prog_compiler_wl='-Wl,'
9395 lt_prog_compiler_pic='-KPIC'
9396 lt_prog_compiler_static='-Bstatic'
9397 ;;
9398
9399 unicos*)
9400 lt_prog_compiler_wl='-Wl,'
9401 lt_prog_compiler_can_build_shared=no
9402 ;;
9403
9404 uts4*)
9405 lt_prog_compiler_pic='-pic'
9406 lt_prog_compiler_static='-Bstatic'
9407 ;;
9408
9409 *)
9410 lt_prog_compiler_can_build_shared=no
9411 ;;
9412 esac
9413 fi
9414
9415 case $host_os in
9416 # For platforms that do not support PIC, -DPIC is meaningless:
9417 *djgpp*)
9418 lt_prog_compiler_pic=
9419 ;;
9420 *)
9421 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9422 ;;
9423 esac
9424
9425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9426 printf %s "checking for $compiler option to produce PIC... " >&6; }
9427 if test ${lt_cv_prog_compiler_pic+y}
9428 then :
9429 printf %s "(cached) " >&6
9430 else $as_nop
9431 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9432 fi
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9434 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9435 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9436
9437 #
9438 # Check to make sure the PIC flag actually works.
9439 #
9440 if test -n "$lt_prog_compiler_pic"; then
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9442 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9443 if test ${lt_cv_prog_compiler_pic_works+y}
9444 then :
9445 printf %s "(cached) " >&6
9446 else $as_nop
9447 lt_cv_prog_compiler_pic_works=no
9448 ac_outfile=conftest.$ac_objext
9449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9450 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9451 # Insert the option either (1) after the last *FLAGS variable, or
9452 # (2) before a word containing "conftest.", or (3) at the end.
9453 # Note that $ac_compile itself does not contain backslashes and begins
9454 # with a dollar sign (not a hyphen), so the echo should work correctly.
9455 # The option is referenced via a variable to avoid confusing sed.
9456 lt_compile=`echo "$ac_compile" | $SED \
9457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9459 -e 's:$: $lt_compiler_flag:'`
9460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9461 (eval "$lt_compile" 2>conftest.err)
9462 ac_status=$?
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 if (exit $ac_status) && test -s "$ac_outfile"; then
9466 # The compiler can only warn and ignore the option if not recognized
9467 # So say no if there are warnings other than the usual output.
9468 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9471 lt_cv_prog_compiler_pic_works=yes
9472 fi
9473 fi
9474 $RM conftest*
9475
9476 fi
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9478 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9479
9480 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9481 case $lt_prog_compiler_pic in
9482 "" | " "*) ;;
9483 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9484 esac
9485 else
9486 lt_prog_compiler_pic=
9487 lt_prog_compiler_can_build_shared=no
9488 fi
9489
9490 fi
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502 #
9503 # Check to make sure the static flag actually works.
9504 #
9505 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9507 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9508 if test ${lt_cv_prog_compiler_static_works+y}
9509 then :
9510 printf %s "(cached) " >&6
9511 else $as_nop
9512 lt_cv_prog_compiler_static_works=no
9513 save_LDFLAGS=$LDFLAGS
9514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9515 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9517 # The linker can only warn and ignore the option if not recognized
9518 # So say no if there are warnings
9519 if test -s conftest.err; then
9520 # Append any errors to the config.log.
9521 cat conftest.err 1>&5
9522 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9524 if diff conftest.exp conftest.er2 >/dev/null; then
9525 lt_cv_prog_compiler_static_works=yes
9526 fi
9527 else
9528 lt_cv_prog_compiler_static_works=yes
9529 fi
9530 fi
9531 $RM -r conftest*
9532 LDFLAGS=$save_LDFLAGS
9533
9534 fi
9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9536 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9537
9538 if test yes = "$lt_cv_prog_compiler_static_works"; then
9539 :
9540 else
9541 lt_prog_compiler_static=
9542 fi
9543
9544
9545
9546
9547
9548
9549
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9551 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9552 if test ${lt_cv_prog_compiler_c_o+y}
9553 then :
9554 printf %s "(cached) " >&6
9555 else $as_nop
9556 lt_cv_prog_compiler_c_o=no
9557 $RM -r conftest 2>/dev/null
9558 mkdir conftest
9559 cd conftest
9560 mkdir out
9561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9562
9563 lt_compiler_flag="-o out/conftest2.$ac_objext"
9564 # Insert the option either (1) after the last *FLAGS variable, or
9565 # (2) before a word containing "conftest.", or (3) at the end.
9566 # Note that $ac_compile itself does not contain backslashes and begins
9567 # with a dollar sign (not a hyphen), so the echo should work correctly.
9568 lt_compile=`echo "$ac_compile" | $SED \
9569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9571 -e 's:$: $lt_compiler_flag:'`
9572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9573 (eval "$lt_compile" 2>out/conftest.err)
9574 ac_status=$?
9575 cat out/conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9578 then
9579 # The compiler can only warn and ignore the option if not recognized
9580 # So say no if there are warnings
9581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9582 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9583 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9584 lt_cv_prog_compiler_c_o=yes
9585 fi
9586 fi
9587 chmod u+w . 2>&5
9588 $RM conftest*
9589 # SGI C++ compiler will create directory out/ii_files/ for
9590 # template instantiation
9591 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9592 $RM out/* && rmdir out
9593 cd ..
9594 $RM -r conftest
9595 $RM conftest*
9596
9597 fi
9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9599 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9600
9601
9602
9603
9604
9605
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9607 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9608 if test ${lt_cv_prog_compiler_c_o+y}
9609 then :
9610 printf %s "(cached) " >&6
9611 else $as_nop
9612 lt_cv_prog_compiler_c_o=no
9613 $RM -r conftest 2>/dev/null
9614 mkdir conftest
9615 cd conftest
9616 mkdir out
9617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9618
9619 lt_compiler_flag="-o out/conftest2.$ac_objext"
9620 # Insert the option either (1) after the last *FLAGS variable, or
9621 # (2) before a word containing "conftest.", or (3) at the end.
9622 # Note that $ac_compile itself does not contain backslashes and begins
9623 # with a dollar sign (not a hyphen), so the echo should work correctly.
9624 lt_compile=`echo "$ac_compile" | $SED \
9625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9627 -e 's:$: $lt_compiler_flag:'`
9628 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9629 (eval "$lt_compile" 2>out/conftest.err)
9630 ac_status=$?
9631 cat out/conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9634 then
9635 # The compiler can only warn and ignore the option if not recognized
9636 # So say no if there are warnings
9637 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9638 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9639 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9640 lt_cv_prog_compiler_c_o=yes
9641 fi
9642 fi
9643 chmod u+w . 2>&5
9644 $RM conftest*
9645 # SGI C++ compiler will create directory out/ii_files/ for
9646 # template instantiation
9647 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9648 $RM out/* && rmdir out
9649 cd ..
9650 $RM -r conftest
9651 $RM conftest*
9652
9653 fi
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9655 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9656
9657
9658
9659
9660 hard_links=nottested
9661 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9662 # do not overwrite the value of need_locks provided by the user
9663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9664 printf %s "checking if we can lock with hard links... " >&6; }
9665 hard_links=yes
9666 $RM conftest*
9667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9668 touch conftest.a
9669 ln conftest.a conftest.b 2>&5 || hard_links=no
9670 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9672 printf "%s\n" "$hard_links" >&6; }
9673 if test no = "$hard_links"; then
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9675 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9676 need_locks=warn
9677 fi
9678 else
9679 need_locks=no
9680 fi
9681
9682
9683
9684
9685
9686
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9688 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9689
9690 runpath_var=
9691 allow_undefined_flag=
9692 always_export_symbols=no
9693 archive_cmds=
9694 archive_expsym_cmds=
9695 compiler_needs_object=no
9696 enable_shared_with_static_runtimes=no
9697 export_dynamic_flag_spec=
9698 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9699 hardcode_automatic=no
9700 hardcode_direct=no
9701 hardcode_direct_absolute=no
9702 hardcode_libdir_flag_spec=
9703 hardcode_libdir_separator=
9704 hardcode_minus_L=no
9705 hardcode_shlibpath_var=unsupported
9706 inherit_rpath=no
9707 link_all_deplibs=unknown
9708 module_cmds=
9709 module_expsym_cmds=
9710 old_archive_from_new_cmds=
9711 old_archive_from_expsyms_cmds=
9712 thread_safe_flag_spec=
9713 whole_archive_flag_spec=
9714 # include_expsyms should be a list of space-separated symbols to be *always*
9715 # included in the symbol list
9716 include_expsyms=
9717 # exclude_expsyms can be an extended regexp of symbols to exclude
9718 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9719 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9720 # as well as any symbol that contains 'd'.
9721 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9722 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9723 # platforms (ab)use it in PIC code, but their linkers get confused if
9724 # the symbol is explicitly referenced. Since portable code cannot
9725 # rely on this symbol name, it's probably fine to never include it in
9726 # preloaded symbol tables.
9727 # Exclude shared library initialization/finalization symbols.
9728 extract_expsyms_cmds=
9729
9730 case $host_os in
9731 cygwin* | mingw* | pw32* | cegcc*)
9732 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9733 # When not using gcc, we currently assume that we are using
9734 # Microsoft Visual C++ or Intel C++ Compiler.
9735 if test yes != "$GCC"; then
9736 with_gnu_ld=no
9737 fi
9738 ;;
9739 interix*)
9740 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9741 with_gnu_ld=yes
9742 ;;
9743 openbsd* | bitrig*)
9744 with_gnu_ld=no
9745 ;;
9746 linux* | k*bsd*-gnu | gnu*)
9747 link_all_deplibs=no
9748 ;;
9749 esac
9750
9751 ld_shlibs=yes
9752
9753 # On some targets, GNU ld is compatible enough with the native linker
9754 # that we're better off using the native interface for both.
9755 lt_use_gnu_ld_interface=no
9756 if test yes = "$with_gnu_ld"; then
9757 case $host_os in
9758 aix*)
9759 # The AIX port of GNU ld has always aspired to compatibility
9760 # with the native linker. However, as the warning in the GNU ld
9761 # block says, versions before 2.19.5* couldn't really create working
9762 # shared libraries, regardless of the interface used.
9763 case `$LD -v 2>&1` in
9764 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9765 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9766 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9767 *)
9768 lt_use_gnu_ld_interface=yes
9769 ;;
9770 esac
9771 ;;
9772 *)
9773 lt_use_gnu_ld_interface=yes
9774 ;;
9775 esac
9776 fi
9777
9778 if test yes = "$lt_use_gnu_ld_interface"; then
9779 # If archive_cmds runs LD, not CC, wlarc should be empty
9780 wlarc='$wl'
9781
9782 # Set some defaults for GNU ld with shared library support. These
9783 # are reset later if shared libraries are not supported. Putting them
9784 # here allows them to be overridden if necessary.
9785 runpath_var=LD_RUN_PATH
9786 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9787 export_dynamic_flag_spec='$wl--export-dynamic'
9788 # ancient GNU ld didn't support --whole-archive et. al.
9789 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9790 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9791 else
9792 whole_archive_flag_spec=
9793 fi
9794 supports_anon_versioning=no
9795 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9796 *GNU\ gold*) supports_anon_versioning=yes ;;
9797 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9798 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9799 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9800 *\ 2.11.*) ;; # other 2.11 versions
9801 *) supports_anon_versioning=yes ;;
9802 esac
9803
9804 # See if GNU ld supports shared libraries.
9805 case $host_os in
9806 aix[3-9]*)
9807 # On AIX/PPC, the GNU linker is very broken
9808 if test ia64 != "$host_cpu"; then
9809 ld_shlibs=no
9810 cat <<_LT_EOF 1>&2
9811
9812 *** Warning: the GNU linker, at least up to release 2.19, is reported
9813 *** to be unable to reliably create shared libraries on AIX.
9814 *** Therefore, libtool is disabling shared libraries support. If you
9815 *** really care for shared libraries, you may want to install binutils
9816 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9817 *** You will then need to restart the configuration process.
9818
9819 _LT_EOF
9820 fi
9821 ;;
9822
9823 amigaos*)
9824 case $host_cpu in
9825 powerpc)
9826 # see comment about AmigaOS4 .so support
9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9828 archive_expsym_cmds=''
9829 ;;
9830 m68k)
9831 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)'
9832 hardcode_libdir_flag_spec='-L$libdir'
9833 hardcode_minus_L=yes
9834 ;;
9835 esac
9836 ;;
9837
9838 beos*)
9839 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9840 allow_undefined_flag=unsupported
9841 # Joseph Beckenbach <[email protected]> says some releases of gcc
9842 # support --undefined. This deserves some investigation. FIXME
9843 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9844 else
9845 ld_shlibs=no
9846 fi
9847 ;;
9848
9849 cygwin* | mingw* | pw32* | cegcc*)
9850 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9851 # as there is no search path for DLLs.
9852 hardcode_libdir_flag_spec='-L$libdir'
9853 export_dynamic_flag_spec='$wl--export-all-symbols'
9854 allow_undefined_flag=unsupported
9855 always_export_symbols=no
9856 enable_shared_with_static_runtimes=yes
9857 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9858 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9859
9860 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9862 # If the export-symbols file already is a .def file, use it as
9863 # is; otherwise, prepend EXPORTS...
9864 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9865 cp $export_symbols $output_objdir/$soname.def;
9866 else
9867 echo EXPORTS > $output_objdir/$soname.def;
9868 cat $export_symbols >> $output_objdir/$soname.def;
9869 fi~
9870 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9871 else
9872 ld_shlibs=no
9873 fi
9874 ;;
9875
9876 haiku*)
9877 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9878 link_all_deplibs=yes
9879 ;;
9880
9881 os2*)
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 hardcode_minus_L=yes
9884 allow_undefined_flag=unsupported
9885 shrext_cmds=.dll
9886 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9887 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9888 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9889 $ECHO EXPORTS >> $output_objdir/$libname.def~
9890 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9891 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9892 emximp -o $lib $output_objdir/$libname.def'
9893 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9894 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9895 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9896 $ECHO EXPORTS >> $output_objdir/$libname.def~
9897 prefix_cmds="$SED"~
9898 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9899 prefix_cmds="$prefix_cmds -e 1d";
9900 fi~
9901 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9902 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9903 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9904 emximp -o $lib $output_objdir/$libname.def'
9905 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9906 enable_shared_with_static_runtimes=yes
9907 file_list_spec='@'
9908 ;;
9909
9910 interix[3-9]*)
9911 hardcode_direct=no
9912 hardcode_shlibpath_var=no
9913 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9914 export_dynamic_flag_spec='$wl-E'
9915 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9916 # Instead, shared libraries are loaded at an image base (0x10000000 by
9917 # default) and relocated if they conflict, which is a slow very memory
9918 # consuming and fragmenting process. To avoid this, we pick a random,
9919 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9920 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9921 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9922 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'
9923 ;;
9924
9925 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9926 tmp_diet=no
9927 if test linux-dietlibc = "$host_os"; then
9928 case $cc_basename in
9929 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9930 esac
9931 fi
9932 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9933 && test no = "$tmp_diet"
9934 then
9935 tmp_addflag=' $pic_flag'
9936 tmp_sharedflag='-shared'
9937 case $cc_basename,$host_cpu in
9938 pgcc*) # Portland Group C compiler
9939 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9940 tmp_addflag=' $pic_flag'
9941 ;;
9942 pgf77* | pgf90* | pgf95* | pgfortran*)
9943 # Portland Group f77 and f90 compilers
9944 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9945 tmp_addflag=' $pic_flag -Mnomain' ;;
9946 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9947 tmp_addflag=' -i_dynamic' ;;
9948 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9949 tmp_addflag=' -i_dynamic -nofor_main' ;;
9950 ifc* | ifort*) # Intel Fortran compiler
9951 tmp_addflag=' -nofor_main' ;;
9952 lf95*) # Lahey Fortran 8.1
9953 whole_archive_flag_spec=
9954 tmp_sharedflag='--shared' ;;
9955 nagfor*) # NAGFOR 5.3
9956 tmp_sharedflag='-Wl,-shared' ;;
9957 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9958 tmp_sharedflag='-qmkshrobj'
9959 tmp_addflag= ;;
9960 nvcc*) # Cuda Compiler Driver 2.2
9961 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9962 compiler_needs_object=yes
9963 ;;
9964 esac
9965 case `$CC -V 2>&1 | $SED 5q` in
9966 *Sun\ C*) # Sun C 5.9
9967 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9968 compiler_needs_object=yes
9969 tmp_sharedflag='-G' ;;
9970 *Sun\ F*) # Sun Fortran 8.3
9971 tmp_sharedflag='-G' ;;
9972 esac
9973 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9974
9975 if test yes = "$supports_anon_versioning"; then
9976 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9977 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9978 echo "local: *; };" >> $output_objdir/$libname.ver~
9979 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9980 fi
9981
9982 case $cc_basename in
9983 tcc*)
9984 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9985 export_dynamic_flag_spec='-rdynamic'
9986 ;;
9987 xlf* | bgf* | bgxlf* | mpixlf*)
9988 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9989 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9990 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9991 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9992 if test yes = "$supports_anon_versioning"; then
9993 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9994 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9995 echo "local: *; };" >> $output_objdir/$libname.ver~
9996 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9997 fi
9998 ;;
9999 esac
10000 else
10001 ld_shlibs=no
10002 fi
10003 ;;
10004
10005 netbsd* | netbsdelf*-gnu)
10006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10007 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10008 wlarc=
10009 else
10010 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10011 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10012 fi
10013 ;;
10014
10015 solaris*)
10016 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10017 ld_shlibs=no
10018 cat <<_LT_EOF 1>&2
10019
10020 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10021 *** create shared libraries on Solaris systems. Therefore, libtool
10022 *** is disabling shared libraries support. We urge you to upgrade GNU
10023 *** binutils to release 2.9.1 or newer. Another option is to modify
10024 *** your PATH or compiler configuration so that the native linker is
10025 *** used, and then restart.
10026
10027 _LT_EOF
10028 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10029 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10030 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10031 else
10032 ld_shlibs=no
10033 fi
10034 ;;
10035
10036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10037 case `$LD -v 2>&1` in
10038 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10039 ld_shlibs=no
10040 cat <<_LT_EOF 1>&2
10041
10042 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10043 *** reliably create shared libraries on SCO systems. Therefore, libtool
10044 *** is disabling shared libraries support. We urge you to upgrade GNU
10045 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10046 *** your PATH or compiler configuration so that the native linker is
10047 *** used, and then restart.
10048
10049 _LT_EOF
10050 ;;
10051 *)
10052 # For security reasons, it is highly recommended that you always
10053 # use absolute paths for naming shared libraries, and exclude the
10054 # DT_RUNPATH tag from executables and libraries. But doing so
10055 # requires that you compile everything twice, which is a pain.
10056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10060 else
10061 ld_shlibs=no
10062 fi
10063 ;;
10064 esac
10065 ;;
10066
10067 sunos4*)
10068 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10069 wlarc=
10070 hardcode_direct=yes
10071 hardcode_shlibpath_var=no
10072 ;;
10073
10074 *)
10075 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10076 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10077 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10078 else
10079 ld_shlibs=no
10080 fi
10081 ;;
10082 esac
10083
10084 if test no = "$ld_shlibs"; then
10085 runpath_var=
10086 hardcode_libdir_flag_spec=
10087 export_dynamic_flag_spec=
10088 whole_archive_flag_spec=
10089 fi
10090 else
10091 # PORTME fill in a description of your system's linker (not GNU ld)
10092 case $host_os in
10093 aix3*)
10094 allow_undefined_flag=unsupported
10095 always_export_symbols=yes
10096 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'
10097 # Note: this linker hardcodes the directories in LIBPATH if there
10098 # are no directories specified by -L.
10099 hardcode_minus_L=yes
10100 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10101 # Neither direct hardcoding nor static linking is supported with a
10102 # broken collect2.
10103 hardcode_direct=unsupported
10104 fi
10105 ;;
10106
10107 aix[4-9]*)
10108 if test ia64 = "$host_cpu"; then
10109 # On IA64, the linker does run time linking by default, so we don't
10110 # have to do anything special.
10111 aix_use_runtimelinking=no
10112 exp_sym_flag='-Bexport'
10113 no_entry_flag=
10114 else
10115 # If we're using GNU nm, then we don't want the "-C" option.
10116 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10117 # Without the "-l" option, or with the "-B" option, AIX nm treats
10118 # weak defined symbols like other global defined symbols, whereas
10119 # GNU nm marks them as "W".
10120 # While the 'weak' keyword is ignored in the Export File, we need
10121 # it in the Import File for the 'aix-soname' feature, so we have
10122 # to replace the "-B" option with "-P" for AIX nm.
10123 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10124 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10125 else
10126 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10127 fi
10128 aix_use_runtimelinking=no
10129
10130 # Test if we are trying to use run time linking or normal
10131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10132 # have runtime linking enabled, and use it for executables.
10133 # For shared libraries, we enable/disable runtime linking
10134 # depending on the kind of the shared library created -
10135 # when "with_aix_soname,aix_use_runtimelinking" is:
10136 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10137 # "aix,yes" lib.so shared, rtl:yes, for executables
10138 # lib.a static archive
10139 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10140 # lib.a(lib.so.V) shared, rtl:no, for executables
10141 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10142 # lib.a(lib.so.V) shared, rtl:no
10143 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10144 # lib.a static archive
10145 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10146 for ld_flag in $LDFLAGS; do
10147 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10148 aix_use_runtimelinking=yes
10149 break
10150 fi
10151 done
10152 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10153 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10154 # so we don't have lib.a shared libs to link our executables.
10155 # We have to force runtime linking in this case.
10156 aix_use_runtimelinking=yes
10157 LDFLAGS="$LDFLAGS -Wl,-brtl"
10158 fi
10159 ;;
10160 esac
10161
10162 exp_sym_flag='-bexport'
10163 no_entry_flag='-bnoentry'
10164 fi
10165
10166 # When large executables or shared objects are built, AIX ld can
10167 # have problems creating the table of contents. If linking a library
10168 # or program results in "error TOC overflow" add -mminimal-toc to
10169 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10170 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10171
10172 archive_cmds=''
10173 hardcode_direct=yes
10174 hardcode_direct_absolute=yes
10175 hardcode_libdir_separator=':'
10176 link_all_deplibs=yes
10177 file_list_spec='$wl-f,'
10178 case $with_aix_soname,$aix_use_runtimelinking in
10179 aix,*) ;; # traditional, no import file
10180 svr4,* | *,yes) # use import file
10181 # The Import File defines what to hardcode.
10182 hardcode_direct=no
10183 hardcode_direct_absolute=no
10184 ;;
10185 esac
10186
10187 if test yes = "$GCC"; then
10188 case $host_os in aix4.[012]|aix4.[012].*)
10189 # We only want to do this on AIX 4.2 and lower, the check
10190 # below for broken collect2 doesn't work under 4.3+
10191 collect2name=`$CC -print-prog-name=collect2`
10192 if test -f "$collect2name" &&
10193 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10194 then
10195 # We have reworked collect2
10196 :
10197 else
10198 # We have old collect2
10199 hardcode_direct=unsupported
10200 # It fails to find uninstalled libraries when the uninstalled
10201 # path is not listed in the libpath. Setting hardcode_minus_L
10202 # to unsupported forces relinking
10203 hardcode_minus_L=yes
10204 hardcode_libdir_flag_spec='-L$libdir'
10205 hardcode_libdir_separator=
10206 fi
10207 ;;
10208 esac
10209 shared_flag='-shared'
10210 if test yes = "$aix_use_runtimelinking"; then
10211 shared_flag="$shared_flag "'$wl-G'
10212 fi
10213 # Need to ensure runtime linking is disabled for the traditional
10214 # shared library, or the linker may eventually find shared libraries
10215 # /with/ Import File - we do not want to mix them.
10216 shared_flag_aix='-shared'
10217 shared_flag_svr4='-shared $wl-G'
10218 else
10219 # not using gcc
10220 if test ia64 = "$host_cpu"; then
10221 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10222 # chokes on -Wl,-G. The following line is correct:
10223 shared_flag='-G'
10224 else
10225 if test yes = "$aix_use_runtimelinking"; then
10226 shared_flag='$wl-G'
10227 else
10228 shared_flag='$wl-bM:SRE'
10229 fi
10230 shared_flag_aix='$wl-bM:SRE'
10231 shared_flag_svr4='$wl-G'
10232 fi
10233 fi
10234
10235 export_dynamic_flag_spec='$wl-bexpall'
10236 # It seems that -bexpall does not export symbols beginning with
10237 # underscore (_), so it is better to generate a list of symbols to export.
10238 always_export_symbols=yes
10239 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10240 # Warning - without using the other runtime loading flags (-brtl),
10241 # -berok will link without error, but may produce a broken library.
10242 allow_undefined_flag='-berok'
10243 # Determine the default libpath from the value encoded in an
10244 # empty executable.
10245 if test set = "${lt_cv_aix_libpath+set}"; then
10246 aix_libpath=$lt_cv_aix_libpath
10247 else
10248 if test ${lt_cv_aix_libpath_+y}
10249 then :
10250 printf %s "(cached) " >&6
10251 else $as_nop
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10254
10255 int
10256 main (void)
10257 {
10258
10259 ;
10260 return 0;
10261 }
10262 _ACEOF
10263 if ac_fn_c_try_link "$LINENO"
10264 then :
10265
10266 lt_aix_libpath_sed='
10267 /Import File Strings/,/^$/ {
10268 /^0/ {
10269 s/^0 *\([^ ]*\) *$/\1/
10270 p
10271 }
10272 }'
10273 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10274 # Check for a 64-bit object if we didn't find anything.
10275 if test -z "$lt_cv_aix_libpath_"; then
10276 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10277 fi
10278 fi
10279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10280 conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$lt_cv_aix_libpath_"; then
10282 lt_cv_aix_libpath_=/usr/lib:/lib
10283 fi
10284
10285 fi
10286
10287 aix_libpath=$lt_cv_aix_libpath_
10288 fi
10289
10290 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10291 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10292 else
10293 if test ia64 = "$host_cpu"; then
10294 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10295 allow_undefined_flag="-z nodefs"
10296 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"
10297 else
10298 # Determine the default libpath from the value encoded in an
10299 # empty executable.
10300 if test set = "${lt_cv_aix_libpath+set}"; then
10301 aix_libpath=$lt_cv_aix_libpath
10302 else
10303 if test ${lt_cv_aix_libpath_+y}
10304 then :
10305 printf %s "(cached) " >&6
10306 else $as_nop
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309
10310 int
10311 main (void)
10312 {
10313
10314 ;
10315 return 0;
10316 }
10317 _ACEOF
10318 if ac_fn_c_try_link "$LINENO"
10319 then :
10320
10321 lt_aix_libpath_sed='
10322 /Import File Strings/,/^$/ {
10323 /^0/ {
10324 s/^0 *\([^ ]*\) *$/\1/
10325 p
10326 }
10327 }'
10328 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10329 # Check for a 64-bit object if we didn't find anything.
10330 if test -z "$lt_cv_aix_libpath_"; then
10331 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10332 fi
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10335 conftest$ac_exeext conftest.$ac_ext
10336 if test -z "$lt_cv_aix_libpath_"; then
10337 lt_cv_aix_libpath_=/usr/lib:/lib
10338 fi
10339
10340 fi
10341
10342 aix_libpath=$lt_cv_aix_libpath_
10343 fi
10344
10345 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10346 # Warning - without using the other run time loading flags,
10347 # -berok will link without error, but may produce a broken library.
10348 no_undefined_flag=' $wl-bernotok'
10349 allow_undefined_flag=' $wl-berok'
10350 if test yes = "$with_gnu_ld"; then
10351 # We only use this code for GNU lds that support --whole-archive.
10352 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10353 else
10354 # Exported symbols can be pulled into shared objects from archives
10355 whole_archive_flag_spec='$convenience'
10356 fi
10357 archive_cmds_need_lc=yes
10358 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10359 # -brtl affects multiple linker settings, -berok does not and is overridden later
10360 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10361 if test svr4 != "$with_aix_soname"; then
10362 # This is similar to how AIX traditionally builds its shared libraries.
10363 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10364 fi
10365 if test aix != "$with_aix_soname"; then
10366 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10367 else
10368 # used by -dlpreopen to get the symbols
10369 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10370 fi
10371 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10372 fi
10373 fi
10374 ;;
10375
10376 amigaos*)
10377 case $host_cpu in
10378 powerpc)
10379 # see comment about AmigaOS4 .so support
10380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10381 archive_expsym_cmds=''
10382 ;;
10383 m68k)
10384 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)'
10385 hardcode_libdir_flag_spec='-L$libdir'
10386 hardcode_minus_L=yes
10387 ;;
10388 esac
10389 ;;
10390
10391 bsdi[45]*)
10392 export_dynamic_flag_spec=-rdynamic
10393 ;;
10394
10395 cygwin* | mingw* | pw32* | cegcc*)
10396 # When not using gcc, we currently assume that we are using
10397 # Microsoft Visual C++ or Intel C++ Compiler.
10398 # hardcode_libdir_flag_spec is actually meaningless, as there is
10399 # no search path for DLLs.
10400 case $cc_basename in
10401 cl* | icl*)
10402 # Native MSVC or ICC
10403 hardcode_libdir_flag_spec=' '
10404 allow_undefined_flag=unsupported
10405 always_export_symbols=yes
10406 file_list_spec='@'
10407 # Tell ltmain to make .lib files, not .a files.
10408 libext=lib
10409 # Tell ltmain to make .dll files, not .so files.
10410 shrext_cmds=.dll
10411 # FIXME: Setting linknames here is a bad hack.
10412 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10413 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10414 cp "$export_symbols" "$output_objdir/$soname.def";
10415 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10416 else
10417 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10418 fi~
10419 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10420 linknames='
10421 # The linker will not automatically build a static lib if we build a DLL.
10422 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10423 enable_shared_with_static_runtimes=yes
10424 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10425 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10426 # Don't use ranlib
10427 old_postinstall_cmds='chmod 644 $oldlib'
10428 postlink_cmds='lt_outputfile="@OUTPUT@"~
10429 lt_tool_outputfile="@TOOL_OUTPUT@"~
10430 case $lt_outputfile in
10431 *.exe|*.EXE) ;;
10432 *)
10433 lt_outputfile=$lt_outputfile.exe
10434 lt_tool_outputfile=$lt_tool_outputfile.exe
10435 ;;
10436 esac~
10437 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10438 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10439 $RM "$lt_outputfile.manifest";
10440 fi'
10441 ;;
10442 *)
10443 # Assume MSVC and ICC wrapper
10444 hardcode_libdir_flag_spec=' '
10445 allow_undefined_flag=unsupported
10446 # Tell ltmain to make .lib files, not .a files.
10447 libext=lib
10448 # Tell ltmain to make .dll files, not .so files.
10449 shrext_cmds=.dll
10450 # FIXME: Setting linknames here is a bad hack.
10451 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10452 # The linker will automatically build a .lib file if we build a DLL.
10453 old_archive_from_new_cmds='true'
10454 # FIXME: Should let the user specify the lib program.
10455 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10456 enable_shared_with_static_runtimes=yes
10457 ;;
10458 esac
10459 ;;
10460
10461 darwin* | rhapsody*)
10462
10463
10464 archive_cmds_need_lc=no
10465 hardcode_direct=no
10466 hardcode_automatic=yes
10467 hardcode_shlibpath_var=unsupported
10468 if test yes = "$lt_cv_ld_force_load"; then
10469 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10470
10471 else
10472 whole_archive_flag_spec=''
10473 fi
10474 link_all_deplibs=yes
10475 allow_undefined_flag=$_lt_dar_allow_undefined
10476 case $cc_basename in
10477 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10478 *) _lt_dar_can_shared=$GCC ;;
10479 esac
10480 if test yes = "$_lt_dar_can_shared"; then
10481 output_verbose_link_cmd=func_echo_all
10482 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10483 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10484 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10485 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10486
10487 else
10488 ld_shlibs=no
10489 fi
10490
10491 ;;
10492
10493 dgux*)
10494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10495 hardcode_libdir_flag_spec='-L$libdir'
10496 hardcode_shlibpath_var=no
10497 ;;
10498
10499 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10500 # support. Future versions do this automatically, but an explicit c++rt0.o
10501 # does not break anything, and helps significantly (at the cost of a little
10502 # extra space).
10503 freebsd2.2*)
10504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10505 hardcode_libdir_flag_spec='-R$libdir'
10506 hardcode_direct=yes
10507 hardcode_shlibpath_var=no
10508 ;;
10509
10510 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10511 freebsd2.*)
10512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10513 hardcode_direct=yes
10514 hardcode_minus_L=yes
10515 hardcode_shlibpath_var=no
10516 ;;
10517
10518 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10519 freebsd* | dragonfly* | midnightbsd*)
10520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521 hardcode_libdir_flag_spec='-R$libdir'
10522 hardcode_direct=yes
10523 hardcode_shlibpath_var=no
10524 ;;
10525
10526 hpux9*)
10527 if test yes = "$GCC"; then
10528 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10529 else
10530 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10531 fi
10532 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10533 hardcode_libdir_separator=:
10534 hardcode_direct=yes
10535
10536 # hardcode_minus_L: Not really in the search PATH,
10537 # but as the default location of the library.
10538 hardcode_minus_L=yes
10539 export_dynamic_flag_spec='$wl-E'
10540 ;;
10541
10542 hpux10*)
10543 if test yes,no = "$GCC,$with_gnu_ld"; then
10544 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10545 else
10546 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10547 fi
10548 if test no = "$with_gnu_ld"; then
10549 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10550 hardcode_libdir_separator=:
10551 hardcode_direct=yes
10552 hardcode_direct_absolute=yes
10553 export_dynamic_flag_spec='$wl-E'
10554 # hardcode_minus_L: Not really in the search PATH,
10555 # but as the default location of the library.
10556 hardcode_minus_L=yes
10557 fi
10558 ;;
10559
10560 hpux11*)
10561 if test yes,no = "$GCC,$with_gnu_ld"; then
10562 case $host_cpu in
10563 hppa*64*)
10564 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10565 ;;
10566 ia64*)
10567 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10568 ;;
10569 *)
10570 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10571 ;;
10572 esac
10573 else
10574 case $host_cpu in
10575 hppa*64*)
10576 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10577 ;;
10578 ia64*)
10579 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10580 ;;
10581 *)
10582
10583 # Older versions of the 11.00 compiler do not understand -b yet
10584 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10586 printf %s "checking if $CC understands -b... " >&6; }
10587 if test ${lt_cv_prog_compiler__b+y}
10588 then :
10589 printf %s "(cached) " >&6
10590 else $as_nop
10591 lt_cv_prog_compiler__b=no
10592 save_LDFLAGS=$LDFLAGS
10593 LDFLAGS="$LDFLAGS -b"
10594 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10595 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10596 # The linker can only warn and ignore the option if not recognized
10597 # So say no if there are warnings
10598 if test -s conftest.err; then
10599 # Append any errors to the config.log.
10600 cat conftest.err 1>&5
10601 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10603 if diff conftest.exp conftest.er2 >/dev/null; then
10604 lt_cv_prog_compiler__b=yes
10605 fi
10606 else
10607 lt_cv_prog_compiler__b=yes
10608 fi
10609 fi
10610 $RM -r conftest*
10611 LDFLAGS=$save_LDFLAGS
10612
10613 fi
10614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10615 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10616
10617 if test yes = "$lt_cv_prog_compiler__b"; then
10618 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10619 else
10620 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10621 fi
10622
10623 ;;
10624 esac
10625 fi
10626 if test no = "$with_gnu_ld"; then
10627 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10628 hardcode_libdir_separator=:
10629
10630 case $host_cpu in
10631 hppa*64*|ia64*)
10632 hardcode_direct=no
10633 hardcode_shlibpath_var=no
10634 ;;
10635 *)
10636 hardcode_direct=yes
10637 hardcode_direct_absolute=yes
10638 export_dynamic_flag_spec='$wl-E'
10639
10640 # hardcode_minus_L: Not really in the search PATH,
10641 # but as the default location of the library.
10642 hardcode_minus_L=yes
10643 ;;
10644 esac
10645 fi
10646 ;;
10647
10648 irix5* | irix6* | nonstopux*)
10649 if test yes = "$GCC"; then
10650 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10651 # Try to use the -exported_symbol ld option, if it does not
10652 # work, assume that -exports_file does not work either and
10653 # implicitly export all symbols.
10654 # This should be the same for all languages, so no per-tag cache variable.
10655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10656 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10657 if test ${lt_cv_irix_exported_symbol+y}
10658 then :
10659 printf %s "(cached) " >&6
10660 else $as_nop
10661 save_LDFLAGS=$LDFLAGS
10662 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 int foo (void) { return 0; }
10666 _ACEOF
10667 if ac_fn_c_try_link "$LINENO"
10668 then :
10669 lt_cv_irix_exported_symbol=yes
10670 else $as_nop
10671 lt_cv_irix_exported_symbol=no
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LDFLAGS=$save_LDFLAGS
10676 fi
10677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10678 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10679 if test yes = "$lt_cv_irix_exported_symbol"; then
10680 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10681 fi
10682 link_all_deplibs=no
10683 else
10684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10686 fi
10687 archive_cmds_need_lc='no'
10688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10689 hardcode_libdir_separator=:
10690 inherit_rpath=yes
10691 link_all_deplibs=yes
10692 ;;
10693
10694 linux*)
10695 case $cc_basename in
10696 tcc*)
10697 # Fabrice Bellard et al's Tiny C Compiler
10698 ld_shlibs=yes
10699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10700 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10701 ;;
10702 esac
10703 ;;
10704
10705 netbsd* | netbsdelf*-gnu)
10706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10708 else
10709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10710 fi
10711 hardcode_libdir_flag_spec='-R$libdir'
10712 hardcode_direct=yes
10713 hardcode_shlibpath_var=no
10714 ;;
10715
10716 newsos6)
10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_direct=yes
10719 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10720 hardcode_libdir_separator=:
10721 hardcode_shlibpath_var=no
10722 ;;
10723
10724 *nto* | *qnx*)
10725 ;;
10726
10727 openbsd* | bitrig*)
10728 if test -f /usr/libexec/ld.so; then
10729 hardcode_direct=yes
10730 hardcode_shlibpath_var=no
10731 hardcode_direct_absolute=yes
10732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10733 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10734 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10735 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10736 export_dynamic_flag_spec='$wl-E'
10737 else
10738 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10739 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10740 fi
10741 else
10742 ld_shlibs=no
10743 fi
10744 ;;
10745
10746 os2*)
10747 hardcode_libdir_flag_spec='-L$libdir'
10748 hardcode_minus_L=yes
10749 allow_undefined_flag=unsupported
10750 shrext_cmds=.dll
10751 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10752 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10753 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10754 $ECHO EXPORTS >> $output_objdir/$libname.def~
10755 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10756 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10757 emximp -o $lib $output_objdir/$libname.def'
10758 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10759 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10760 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10761 $ECHO EXPORTS >> $output_objdir/$libname.def~
10762 prefix_cmds="$SED"~
10763 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10764 prefix_cmds="$prefix_cmds -e 1d";
10765 fi~
10766 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10767 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10768 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10769 emximp -o $lib $output_objdir/$libname.def'
10770 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10771 enable_shared_with_static_runtimes=yes
10772 file_list_spec='@'
10773 ;;
10774
10775 osf3*)
10776 if test yes = "$GCC"; then
10777 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10778 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10779 else
10780 allow_undefined_flag=' -expect_unresolved \*'
10781 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10782 fi
10783 archive_cmds_need_lc='no'
10784 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10785 hardcode_libdir_separator=:
10786 ;;
10787
10788 osf4* | osf5*) # as osf3* with the addition of -msym flag
10789 if test yes = "$GCC"; then
10790 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10791 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10792 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10793 else
10794 allow_undefined_flag=' -expect_unresolved \*'
10795 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10796 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10797 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10798
10799 # Both c and cxx compiler support -rpath directly
10800 hardcode_libdir_flag_spec='-rpath $libdir'
10801 fi
10802 archive_cmds_need_lc='no'
10803 hardcode_libdir_separator=:
10804 ;;
10805
10806 solaris*)
10807 no_undefined_flag=' -z defs'
10808 if test yes = "$GCC"; then
10809 wlarc='$wl'
10810 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10812 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10813 else
10814 case `$CC -V 2>&1` in
10815 *"Compilers 5.0"*)
10816 wlarc=''
10817 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10819 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10820 ;;
10821 *)
10822 wlarc='$wl'
10823 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10825 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10826 ;;
10827 esac
10828 fi
10829 hardcode_libdir_flag_spec='-R$libdir'
10830 hardcode_shlibpath_var=no
10831 case $host_os in
10832 solaris2.[0-5] | solaris2.[0-5].*) ;;
10833 *)
10834 # The compiler driver will combine and reorder linker options,
10835 # but understands '-z linker_flag'. GCC discards it without '$wl',
10836 # but is careful enough not to reorder.
10837 # Supported since Solaris 2.6 (maybe 2.5.1?)
10838 if test yes = "$GCC"; then
10839 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10840 else
10841 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10842 fi
10843 ;;
10844 esac
10845 link_all_deplibs=yes
10846 ;;
10847
10848 sunos4*)
10849 if test sequent = "$host_vendor"; then
10850 # Use $CC to link under sequent, because it throws in some extra .o
10851 # files that make .init and .fini sections work.
10852 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10853 else
10854 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10855 fi
10856 hardcode_libdir_flag_spec='-L$libdir'
10857 hardcode_direct=yes
10858 hardcode_minus_L=yes
10859 hardcode_shlibpath_var=no
10860 ;;
10861
10862 sysv4)
10863 case $host_vendor in
10864 sni)
10865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10866 hardcode_direct=yes # is this really true???
10867 ;;
10868 siemens)
10869 ## LD is ld it makes a PLAMLIB
10870 ## CC just makes a GrossModule.
10871 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10872 reload_cmds='$CC -r -o $output$reload_objs'
10873 hardcode_direct=no
10874 ;;
10875 motorola)
10876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10878 ;;
10879 esac
10880 runpath_var='LD_RUN_PATH'
10881 hardcode_shlibpath_var=no
10882 ;;
10883
10884 sysv4.3*)
10885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10886 hardcode_shlibpath_var=no
10887 export_dynamic_flag_spec='-Bexport'
10888 ;;
10889
10890 sysv4*MP*)
10891 if test -d /usr/nec; then
10892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10893 hardcode_shlibpath_var=no
10894 runpath_var=LD_RUN_PATH
10895 hardcode_runpath_var=yes
10896 ld_shlibs=yes
10897 fi
10898 ;;
10899
10900 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10901 no_undefined_flag='$wl-z,text'
10902 archive_cmds_need_lc=no
10903 hardcode_shlibpath_var=no
10904 runpath_var='LD_RUN_PATH'
10905
10906 if test yes = "$GCC"; then
10907 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10908 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10909 else
10910 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10911 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10912 fi
10913 ;;
10914
10915 sysv5* | sco3.2v5* | sco5v6*)
10916 # Note: We CANNOT use -z defs as we might desire, because we do not
10917 # link with -lc, and that would cause any symbols used from libc to
10918 # always be unresolved, which means just about no library would
10919 # ever link correctly. If we're not using GNU ld we use -z text
10920 # though, which does catch some bad symbols but isn't as heavy-handed
10921 # as -z defs.
10922 no_undefined_flag='$wl-z,text'
10923 allow_undefined_flag='$wl-z,nodefs'
10924 archive_cmds_need_lc=no
10925 hardcode_shlibpath_var=no
10926 hardcode_libdir_flag_spec='$wl-R,$libdir'
10927 hardcode_libdir_separator=':'
10928 link_all_deplibs=yes
10929 export_dynamic_flag_spec='$wl-Bexport'
10930 runpath_var='LD_RUN_PATH'
10931
10932 if test yes = "$GCC"; then
10933 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 else
10936 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938 fi
10939 ;;
10940
10941 uts4*)
10942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10943 hardcode_libdir_flag_spec='-L$libdir'
10944 hardcode_shlibpath_var=no
10945 ;;
10946
10947 *)
10948 ld_shlibs=no
10949 ;;
10950 esac
10951
10952 if test sni = "$host_vendor"; then
10953 case $host in
10954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10955 export_dynamic_flag_spec='$wl-Blargedynsym'
10956 ;;
10957 esac
10958 fi
10959 fi
10960
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10962 printf "%s\n" "$ld_shlibs" >&6; }
10963 test no = "$ld_shlibs" && can_build_shared=no
10964
10965 with_gnu_ld=$with_gnu_ld
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981 #
10982 # Do we need to explicitly link libc?
10983 #
10984 case "x$archive_cmds_need_lc" in
10985 x|xyes)
10986 # Assume -lc should be added
10987 archive_cmds_need_lc=yes
10988
10989 if test yes,yes = "$GCC,$enable_shared"; then
10990 case $archive_cmds in
10991 *'~'*)
10992 # FIXME: we may have to deal with multi-command sequences.
10993 ;;
10994 '$CC '*)
10995 # Test whether the compiler implicitly links with -lc since on some
10996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10997 # to ld, don't add -lc before -lgcc.
10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10999 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11000 if test ${lt_cv_archive_cmds_need_lc+y}
11001 then :
11002 printf %s "(cached) " >&6
11003 else $as_nop
11004 $RM conftest*
11005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11006
11007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11008 (eval $ac_compile) 2>&5
11009 ac_status=$?
11010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11011 test $ac_status = 0; } 2>conftest.err; then
11012 soname=conftest
11013 lib=conftest
11014 libobjs=conftest.$ac_objext
11015 deplibs=
11016 wl=$lt_prog_compiler_wl
11017 pic_flag=$lt_prog_compiler_pic
11018 compiler_flags=-v
11019 linker_flags=-v
11020 verstring=
11021 output_objdir=.
11022 libname=conftest
11023 lt_save_allow_undefined_flag=$allow_undefined_flag
11024 allow_undefined_flag=
11025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11026 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11027 ac_status=$?
11028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11029 test $ac_status = 0; }
11030 then
11031 lt_cv_archive_cmds_need_lc=no
11032 else
11033 lt_cv_archive_cmds_need_lc=yes
11034 fi
11035 allow_undefined_flag=$lt_save_allow_undefined_flag
11036 else
11037 cat conftest.err 1>&5
11038 fi
11039 $RM conftest*
11040
11041 fi
11042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11043 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11044 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11045 ;;
11046 esac
11047 fi
11048 ;;
11049 esac
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11203 printf %s "checking dynamic linker characteristics... " >&6; }
11204
11205 if test yes = "$GCC"; then
11206 case $host_os in
11207 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11208 *) lt_awk_arg='/^libraries:/' ;;
11209 esac
11210 case $host_os in
11211 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11212 *) lt_sed_strip_eq='s|=/|/|g' ;;
11213 esac
11214 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11215 case $lt_search_path_spec in
11216 *\;*)
11217 # if the path contains ";" then we assume it to be the separator
11218 # otherwise default to the standard path separator (i.e. ":") - it is
11219 # assumed that no part of a normal pathname contains ";" but that should
11220 # okay in the real world where ";" in dirpaths is itself problematic.
11221 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11222 ;;
11223 *)
11224 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11225 ;;
11226 esac
11227 # Ok, now we have the path, separated by spaces, we can step through it
11228 # and add multilib dir if necessary...
11229 lt_tmp_lt_search_path_spec=
11230 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11231 # ...but if some path component already ends with the multilib dir we assume
11232 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11233 case "$lt_multi_os_dir; $lt_search_path_spec " in
11234 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11235 lt_multi_os_dir=
11236 ;;
11237 esac
11238 for lt_sys_path in $lt_search_path_spec; do
11239 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11240 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11241 elif test -n "$lt_multi_os_dir"; then
11242 test -d "$lt_sys_path" && \
11243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11244 fi
11245 done
11246 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11247 BEGIN {RS = " "; FS = "/|\n";} {
11248 lt_foo = "";
11249 lt_count = 0;
11250 for (lt_i = NF; lt_i > 0; lt_i--) {
11251 if ($lt_i != "" && $lt_i != ".") {
11252 if ($lt_i == "..") {
11253 lt_count++;
11254 } else {
11255 if (lt_count == 0) {
11256 lt_foo = "/" $lt_i lt_foo;
11257 } else {
11258 lt_count--;
11259 }
11260 }
11261 }
11262 }
11263 if (lt_foo != "") { lt_freq[lt_foo]++; }
11264 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11265 }'`
11266 # AWK program above erroneously prepends '/' to C:/dos/paths
11267 # for these hosts.
11268 case $host_os in
11269 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11270 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11271 esac
11272 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11273 else
11274 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11275 fi
11276 library_names_spec=
11277 libname_spec='lib$name'
11278 soname_spec=
11279 shrext_cmds=.so
11280 postinstall_cmds=
11281 postuninstall_cmds=
11282 finish_cmds=
11283 finish_eval=
11284 shlibpath_var=
11285 shlibpath_overrides_runpath=unknown
11286 version_type=none
11287 dynamic_linker="$host_os ld.so"
11288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11289 need_lib_prefix=unknown
11290 hardcode_into_libs=no
11291
11292 # when you set need_version to no, make sure it does not cause -set_version
11293 # flags to be left without arguments
11294 need_version=unknown
11295
11296
11297
11298 case $host_os in
11299 aix3*)
11300 version_type=linux # correct to gnu/linux during the next big refactor
11301 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11302 shlibpath_var=LIBPATH
11303
11304 # AIX 3 has no versioning support, so we append a major version to the name.
11305 soname_spec='$libname$release$shared_ext$major'
11306 ;;
11307
11308 aix[4-9]*)
11309 version_type=linux # correct to gnu/linux during the next big refactor
11310 need_lib_prefix=no
11311 need_version=no
11312 hardcode_into_libs=yes
11313 if test ia64 = "$host_cpu"; then
11314 # AIX 5 supports IA64
11315 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 else
11318 # With GCC up to 2.95.x, collect2 would create an import file
11319 # for dependence libraries. The import file would start with
11320 # the line '#! .'. This would cause the generated library to
11321 # depend on '.', always an invalid library. This was fixed in
11322 # development snapshots of GCC prior to 3.0.
11323 case $host_os in
11324 aix4 | aix4.[01] | aix4.[01].*)
11325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11326 echo ' yes '
11327 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11328 :
11329 else
11330 can_build_shared=no
11331 fi
11332 ;;
11333 esac
11334 # Using Import Files as archive members, it is possible to support
11335 # filename-based versioning of shared library archives on AIX. While
11336 # this would work for both with and without runtime linking, it will
11337 # prevent static linking of such archives. So we do filename-based
11338 # shared library versioning with .so extension only, which is used
11339 # when both runtime linking and shared linking is enabled.
11340 # Unfortunately, runtime linking may impact performance, so we do
11341 # not want this to be the default eventually. Also, we use the
11342 # versioned .so libs for executables only if there is the -brtl
11343 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11344 # To allow for filename-based versioning support, we need to create
11345 # libNAME.so.V as an archive file, containing:
11346 # *) an Import File, referring to the versioned filename of the
11347 # archive as well as the shared archive member, telling the
11348 # bitwidth (32 or 64) of that shared object, and providing the
11349 # list of exported symbols of that shared object, eventually
11350 # decorated with the 'weak' keyword
11351 # *) the shared object with the F_LOADONLY flag set, to really avoid
11352 # it being seen by the linker.
11353 # At run time we better use the real file rather than another symlink,
11354 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11355
11356 case $with_aix_soname,$aix_use_runtimelinking in
11357 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11358 # soname into executable. Probably we can add versioning support to
11359 # collect2, so additional links can be useful in future.
11360 aix,yes) # traditional libtool
11361 dynamic_linker='AIX unversionable lib.so'
11362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11363 # instead of lib<name>.a to let people know that these are not
11364 # typical AIX shared libraries.
11365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11366 ;;
11367 aix,no) # traditional AIX only
11368 dynamic_linker='AIX lib.a(lib.so.V)'
11369 # We preserve .a as extension for shared libraries through AIX4.2
11370 # and later when we are not doing run time linking.
11371 library_names_spec='$libname$release.a $libname.a'
11372 soname_spec='$libname$release$shared_ext$major'
11373 ;;
11374 svr4,*) # full svr4 only
11375 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11376 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11377 # We do not specify a path in Import Files, so LIBPATH fires.
11378 shlibpath_overrides_runpath=yes
11379 ;;
11380 *,yes) # both, prefer svr4
11381 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11382 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11383 # unpreferred sharedlib libNAME.a needs extra handling
11384 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11385 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11386 # We do not specify a path in Import Files, so LIBPATH fires.
11387 shlibpath_overrides_runpath=yes
11388 ;;
11389 *,no) # both, prefer aix
11390 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11391 library_names_spec='$libname$release.a $libname.a'
11392 soname_spec='$libname$release$shared_ext$major'
11393 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11394 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11395 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11396 ;;
11397 esac
11398 shlibpath_var=LIBPATH
11399 fi
11400 ;;
11401
11402 amigaos*)
11403 case $host_cpu in
11404 powerpc)
11405 # Since July 2007 AmigaOS4 officially supports .so libraries.
11406 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11408 ;;
11409 m68k)
11410 library_names_spec='$libname.ixlibrary $libname.a'
11411 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11412 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11413 ;;
11414 esac
11415 ;;
11416
11417 beos*)
11418 library_names_spec='$libname$shared_ext'
11419 dynamic_linker="$host_os ld.so"
11420 shlibpath_var=LIBRARY_PATH
11421 ;;
11422
11423 bsdi[45]*)
11424 version_type=linux # correct to gnu/linux during the next big refactor
11425 need_version=no
11426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11427 soname_spec='$libname$release$shared_ext$major'
11428 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11431 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11432 # the default ld.so.conf also contains /usr/contrib/lib and
11433 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11434 # libtool to hard-code these into programs
11435 ;;
11436
11437 cygwin* | mingw* | pw32* | cegcc*)
11438 version_type=windows
11439 shrext_cmds=.dll
11440 need_version=no
11441 need_lib_prefix=no
11442
11443 case $GCC,$cc_basename in
11444 yes,*)
11445 # gcc
11446 library_names_spec='$libname.dll.a'
11447 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11448 postinstall_cmds='base_file=`basename \$file`~
11449 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11450 dldir=$destdir/`dirname \$dlpath`~
11451 test -d \$dldir || mkdir -p \$dldir~
11452 $install_prog $dir/$dlname \$dldir/$dlname~
11453 chmod a+x \$dldir/$dlname~
11454 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11455 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11456 fi'
11457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11458 dlpath=$dir/\$dldll~
11459 $RM \$dlpath'
11460 shlibpath_overrides_runpath=yes
11461
11462 case $host_os in
11463 cygwin*)
11464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11465 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11466
11467 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11468 ;;
11469 mingw* | cegcc*)
11470 # MinGW DLLs use traditional 'lib' prefix
11471 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11472 ;;
11473 pw32*)
11474 # pw32 DLLs use 'pw' prefix rather than 'lib'
11475 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11476 ;;
11477 esac
11478 dynamic_linker='Win32 ld.exe'
11479 ;;
11480
11481 *,cl* | *,icl*)
11482 # Native MSVC or ICC
11483 libname_spec='$name'
11484 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11485 library_names_spec='$libname.dll.lib'
11486
11487 case $build_os in
11488 mingw*)
11489 sys_lib_search_path_spec=
11490 lt_save_ifs=$IFS
11491 IFS=';'
11492 for lt_path in $LIB
11493 do
11494 IFS=$lt_save_ifs
11495 # Let DOS variable expansion print the short 8.3 style file name.
11496 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11497 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11498 done
11499 IFS=$lt_save_ifs
11500 # Convert to MSYS style.
11501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11502 ;;
11503 cygwin*)
11504 # Convert to unix form, then to dos form, then back to unix form
11505 # but this time dos style (no spaces!) so that the unix form looks
11506 # like /cygdrive/c/PROGRA~1:/cygdr...
11507 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11508 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11509 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11510 ;;
11511 *)
11512 sys_lib_search_path_spec=$LIB
11513 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11514 # It is most probably a Windows format PATH.
11515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11516 else
11517 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11518 fi
11519 # FIXME: find the short name or the path components, as spaces are
11520 # common. (e.g. "Program Files" -> "PROGRA~1")
11521 ;;
11522 esac
11523
11524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11525 postinstall_cmds='base_file=`basename \$file`~
11526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11527 dldir=$destdir/`dirname \$dlpath`~
11528 test -d \$dldir || mkdir -p \$dldir~
11529 $install_prog $dir/$dlname \$dldir/$dlname'
11530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11531 dlpath=$dir/\$dldll~
11532 $RM \$dlpath'
11533 shlibpath_overrides_runpath=yes
11534 dynamic_linker='Win32 link.exe'
11535 ;;
11536
11537 *)
11538 # Assume MSVC and ICC wrapper
11539 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11540 dynamic_linker='Win32 ld.exe'
11541 ;;
11542 esac
11543 # FIXME: first we should search . and the directory the executable is in
11544 shlibpath_var=PATH
11545 ;;
11546
11547 darwin* | rhapsody*)
11548 dynamic_linker="$host_os dyld"
11549 version_type=darwin
11550 need_lib_prefix=no
11551 need_version=no
11552 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11553 soname_spec='$libname$release$major$shared_ext'
11554 shlibpath_overrides_runpath=yes
11555 shlibpath_var=DYLD_LIBRARY_PATH
11556 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11557
11558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11559 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11560 ;;
11561
11562 dgux*)
11563 version_type=linux # correct to gnu/linux during the next big refactor
11564 need_lib_prefix=no
11565 need_version=no
11566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11567 soname_spec='$libname$release$shared_ext$major'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 ;;
11570
11571 freebsd* | dragonfly* | midnightbsd*)
11572 # DragonFly does not have aout. When/if they implement a new
11573 # versioning mechanism, adjust this.
11574 if test -x /usr/bin/objformat; then
11575 objformat=`/usr/bin/objformat`
11576 else
11577 case $host_os in
11578 freebsd[23].*) objformat=aout ;;
11579 *) objformat=elf ;;
11580 esac
11581 fi
11582 version_type=freebsd-$objformat
11583 case $version_type in
11584 freebsd-elf*)
11585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11586 soname_spec='$libname$release$shared_ext$major'
11587 need_version=no
11588 need_lib_prefix=no
11589 ;;
11590 freebsd-*)
11591 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11592 need_version=yes
11593 ;;
11594 esac
11595 shlibpath_var=LD_LIBRARY_PATH
11596 case $host_os in
11597 freebsd2.*)
11598 shlibpath_overrides_runpath=yes
11599 ;;
11600 freebsd3.[01]* | freebsdelf3.[01]*)
11601 shlibpath_overrides_runpath=yes
11602 hardcode_into_libs=yes
11603 ;;
11604 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11605 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11606 shlibpath_overrides_runpath=no
11607 hardcode_into_libs=yes
11608 ;;
11609 *) # from 4.6 on, and DragonFly
11610 shlibpath_overrides_runpath=yes
11611 hardcode_into_libs=yes
11612 ;;
11613 esac
11614 ;;
11615
11616 haiku*)
11617 version_type=linux # correct to gnu/linux during the next big refactor
11618 need_lib_prefix=no
11619 need_version=no
11620 dynamic_linker="$host_os runtime_loader"
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622 soname_spec='$libname$release$shared_ext$major'
11623 shlibpath_var=LIBRARY_PATH
11624 shlibpath_overrides_runpath=no
11625 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11626 hardcode_into_libs=yes
11627 ;;
11628
11629 hpux9* | hpux10* | hpux11*)
11630 # Give a soname corresponding to the major version so that dld.sl refuses to
11631 # link against other versions.
11632 version_type=sunos
11633 need_lib_prefix=no
11634 need_version=no
11635 case $host_cpu in
11636 ia64*)
11637 shrext_cmds='.so'
11638 hardcode_into_libs=yes
11639 dynamic_linker="$host_os dld.so"
11640 shlibpath_var=LD_LIBRARY_PATH
11641 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11643 soname_spec='$libname$release$shared_ext$major'
11644 if test 32 = "$HPUX_IA64_MODE"; then
11645 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11646 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11647 else
11648 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11649 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11650 fi
11651 ;;
11652 hppa*64*)
11653 shrext_cmds='.sl'
11654 hardcode_into_libs=yes
11655 dynamic_linker="$host_os dld.sl"
11656 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 soname_spec='$libname$release$shared_ext$major'
11660 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11662 ;;
11663 *)
11664 shrext_cmds='.sl'
11665 dynamic_linker="$host_os dld.sl"
11666 shlibpath_var=SHLIB_PATH
11667 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11669 soname_spec='$libname$release$shared_ext$major'
11670 ;;
11671 esac
11672 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11673 postinstall_cmds='chmod 555 $lib'
11674 # or fails outright, so override atomically:
11675 install_override_mode=555
11676 ;;
11677
11678 interix[3-9]*)
11679 version_type=linux # correct to gnu/linux during the next big refactor
11680 need_lib_prefix=no
11681 need_version=no
11682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11683 soname_spec='$libname$release$shared_ext$major'
11684 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11685 shlibpath_var=LD_LIBRARY_PATH
11686 shlibpath_overrides_runpath=no
11687 hardcode_into_libs=yes
11688 ;;
11689
11690 irix5* | irix6* | nonstopux*)
11691 case $host_os in
11692 nonstopux*) version_type=nonstopux ;;
11693 *)
11694 if test yes = "$lt_cv_prog_gnu_ld"; then
11695 version_type=linux # correct to gnu/linux during the next big refactor
11696 else
11697 version_type=irix
11698 fi ;;
11699 esac
11700 need_lib_prefix=no
11701 need_version=no
11702 soname_spec='$libname$release$shared_ext$major'
11703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11704 case $host_os in
11705 irix5* | nonstopux*)
11706 libsuff= shlibsuff=
11707 ;;
11708 *)
11709 case $LD in # libtool.m4 will add one of these switches to LD
11710 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11711 libsuff= shlibsuff= libmagic=32-bit;;
11712 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11713 libsuff=32 shlibsuff=N32 libmagic=N32;;
11714 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11715 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11716 *) libsuff= shlibsuff= libmagic=never-match;;
11717 esac
11718 ;;
11719 esac
11720 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11721 shlibpath_overrides_runpath=no
11722 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11723 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11724 hardcode_into_libs=yes
11725 ;;
11726
11727 # No shared lib support for Linux oldld, aout, or coff.
11728 linux*oldld* | linux*aout* | linux*coff*)
11729 dynamic_linker=no
11730 ;;
11731
11732 linux*android*)
11733 version_type=none # Android doesn't support versioned libraries.
11734 need_lib_prefix=no
11735 need_version=no
11736 library_names_spec='$libname$release$shared_ext'
11737 soname_spec='$libname$release$shared_ext'
11738 finish_cmds=
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741
11742 # This implies no fast_install, which is unacceptable.
11743 # Some rework will be needed to allow for fast_install
11744 # before this can be enabled.
11745 hardcode_into_libs=yes
11746
11747 dynamic_linker='Android linker'
11748 # Don't embed -rpath directories since the linker doesn't support them.
11749 hardcode_libdir_flag_spec='-L$libdir'
11750 ;;
11751
11752 # This must be glibc/ELF.
11753 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11754 version_type=linux # correct to gnu/linux during the next big refactor
11755 need_lib_prefix=no
11756 need_version=no
11757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11758 soname_spec='$libname$release$shared_ext$major'
11759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=no
11762
11763 # Some binutils ld are patched to set DT_RUNPATH
11764 if test ${lt_cv_shlibpath_overrides_runpath+y}
11765 then :
11766 printf %s "(cached) " >&6
11767 else $as_nop
11768 lt_cv_shlibpath_overrides_runpath=no
11769 save_LDFLAGS=$LDFLAGS
11770 save_libdir=$libdir
11771 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11772 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775
11776 int
11777 main (void)
11778 {
11779
11780 ;
11781 return 0;
11782 }
11783 _ACEOF
11784 if ac_fn_c_try_link "$LINENO"
11785 then :
11786 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11787 then :
11788 lt_cv_shlibpath_overrides_runpath=yes
11789 fi
11790 fi
11791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11792 conftest$ac_exeext conftest.$ac_ext
11793 LDFLAGS=$save_LDFLAGS
11794 libdir=$save_libdir
11795
11796 fi
11797
11798 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11799
11800 # This implies no fast_install, which is unacceptable.
11801 # Some rework will be needed to allow for fast_install
11802 # before this can be enabled.
11803 hardcode_into_libs=yes
11804
11805 # Ideally, we could use ldconfig to report *all* directores which are
11806 # searched for libraries, however this is still not possible. Aside from not
11807 # being certain /sbin/ldconfig is available, command
11808 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11809 # even though it is searched at run-time. Try to do the best guess by
11810 # appending ld.so.conf contents (and includes) to the search path.
11811 if test -f /etc/ld.so.conf; then
11812 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11813 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11814 fi
11815
11816 # We used to test for /lib/ld.so.1 and disable shared libraries on
11817 # powerpc, because MkLinux only supported shared libraries with the
11818 # GNU dynamic linker. Since this was broken with cross compilers,
11819 # most powerpc-linux boxes support dynamic linking these days and
11820 # people can always --disable-shared, the test was removed, and we
11821 # assume the GNU/Linux dynamic linker is in use.
11822 dynamic_linker='GNU/Linux ld.so'
11823 ;;
11824
11825 netbsdelf*-gnu)
11826 version_type=linux
11827 need_lib_prefix=no
11828 need_version=no
11829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11830 soname_spec='${libname}${release}${shared_ext}$major'
11831 shlibpath_var=LD_LIBRARY_PATH
11832 shlibpath_overrides_runpath=no
11833 hardcode_into_libs=yes
11834 dynamic_linker='NetBSD ld.elf_so'
11835 ;;
11836
11837 netbsd*)
11838 version_type=sunos
11839 need_lib_prefix=no
11840 need_version=no
11841 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11842 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11844 dynamic_linker='NetBSD (a.out) ld.so'
11845 else
11846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11847 soname_spec='$libname$release$shared_ext$major'
11848 dynamic_linker='NetBSD ld.elf_so'
11849 fi
11850 shlibpath_var=LD_LIBRARY_PATH
11851 shlibpath_overrides_runpath=yes
11852 hardcode_into_libs=yes
11853 ;;
11854
11855 newsos6)
11856 version_type=linux # correct to gnu/linux during the next big refactor
11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858 shlibpath_var=LD_LIBRARY_PATH
11859 shlibpath_overrides_runpath=yes
11860 ;;
11861
11862 *nto* | *qnx*)
11863 version_type=qnx
11864 need_lib_prefix=no
11865 need_version=no
11866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11867 soname_spec='$libname$release$shared_ext$major'
11868 shlibpath_var=LD_LIBRARY_PATH
11869 shlibpath_overrides_runpath=no
11870 hardcode_into_libs=yes
11871 dynamic_linker='ldqnx.so'
11872 ;;
11873
11874 openbsd* | bitrig*)
11875 version_type=sunos
11876 sys_lib_dlsearch_path_spec=/usr/lib
11877 need_lib_prefix=no
11878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11879 need_version=no
11880 else
11881 need_version=yes
11882 fi
11883 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=yes
11887 ;;
11888
11889 os2*)
11890 libname_spec='$name'
11891 version_type=windows
11892 shrext_cmds=.dll
11893 need_version=no
11894 need_lib_prefix=no
11895 # OS/2 can only load a DLL with a base name of 8 characters or less.
11896 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11897 v=$($ECHO $release$versuffix | tr -d .-);
11898 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11899 $ECHO $n$v`$shared_ext'
11900 library_names_spec='${libname}_dll.$libext'
11901 dynamic_linker='OS/2 ld.exe'
11902 shlibpath_var=BEGINLIBPATH
11903 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11905 postinstall_cmds='base_file=`basename \$file`~
11906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11907 dldir=$destdir/`dirname \$dlpath`~
11908 test -d \$dldir || mkdir -p \$dldir~
11909 $install_prog $dir/$dlname \$dldir/$dlname~
11910 chmod a+x \$dldir/$dlname~
11911 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11912 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11913 fi'
11914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11915 dlpath=$dir/\$dldll~
11916 $RM \$dlpath'
11917 ;;
11918
11919 osf3* | osf4* | osf5*)
11920 version_type=osf
11921 need_lib_prefix=no
11922 need_version=no
11923 soname_spec='$libname$release$shared_ext$major'
11924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11925 shlibpath_var=LD_LIBRARY_PATH
11926 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11928 ;;
11929
11930 rdos*)
11931 dynamic_linker=no
11932 ;;
11933
11934 solaris*)
11935 version_type=linux # correct to gnu/linux during the next big refactor
11936 need_lib_prefix=no
11937 need_version=no
11938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11939 soname_spec='$libname$release$shared_ext$major'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=yes
11942 hardcode_into_libs=yes
11943 # ldd complains unless libraries are executable
11944 postinstall_cmds='chmod +x $lib'
11945 ;;
11946
11947 sunos4*)
11948 version_type=sunos
11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11950 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11951 shlibpath_var=LD_LIBRARY_PATH
11952 shlibpath_overrides_runpath=yes
11953 if test yes = "$with_gnu_ld"; then
11954 need_lib_prefix=no
11955 fi
11956 need_version=yes
11957 ;;
11958
11959 sysv4 | sysv4.3*)
11960 version_type=linux # correct to gnu/linux during the next big refactor
11961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11962 soname_spec='$libname$release$shared_ext$major'
11963 shlibpath_var=LD_LIBRARY_PATH
11964 case $host_vendor in
11965 sni)
11966 shlibpath_overrides_runpath=no
11967 need_lib_prefix=no
11968 runpath_var=LD_RUN_PATH
11969 ;;
11970 siemens)
11971 need_lib_prefix=no
11972 ;;
11973 motorola)
11974 need_lib_prefix=no
11975 need_version=no
11976 shlibpath_overrides_runpath=no
11977 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11978 ;;
11979 esac
11980 ;;
11981
11982 sysv4*MP*)
11983 if test -d /usr/nec; then
11984 version_type=linux # correct to gnu/linux during the next big refactor
11985 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11986 soname_spec='$libname$shared_ext.$major'
11987 shlibpath_var=LD_LIBRARY_PATH
11988 fi
11989 ;;
11990
11991 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11992 version_type=sco
11993 need_lib_prefix=no
11994 need_version=no
11995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11996 soname_spec='$libname$release$shared_ext$major'
11997 shlibpath_var=LD_LIBRARY_PATH
11998 shlibpath_overrides_runpath=yes
11999 hardcode_into_libs=yes
12000 if test yes = "$with_gnu_ld"; then
12001 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12002 else
12003 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12004 case $host_os in
12005 sco3.2v5*)
12006 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12007 ;;
12008 esac
12009 fi
12010 sys_lib_dlsearch_path_spec='/usr/lib'
12011 ;;
12012
12013 tpf*)
12014 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12015 version_type=linux # correct to gnu/linux during the next big refactor
12016 need_lib_prefix=no
12017 need_version=no
12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12019 shlibpath_var=LD_LIBRARY_PATH
12020 shlibpath_overrides_runpath=no
12021 hardcode_into_libs=yes
12022 ;;
12023
12024 uts4*)
12025 version_type=linux # correct to gnu/linux during the next big refactor
12026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12027 soname_spec='$libname$release$shared_ext$major'
12028 shlibpath_var=LD_LIBRARY_PATH
12029 ;;
12030
12031 *)
12032 dynamic_linker=no
12033 ;;
12034 esac
12035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12036 printf "%s\n" "$dynamic_linker" >&6; }
12037 test no = "$dynamic_linker" && can_build_shared=no
12038
12039 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12040 if test yes = "$GCC"; then
12041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12042 fi
12043
12044 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12045 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12046 fi
12047
12048 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12049 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12050 fi
12051
12052 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12053 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12054
12055 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12056 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12057
12058 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12059 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12158 printf %s "checking how to hardcode library paths into programs... " >&6; }
12159 hardcode_action=
12160 if test -n "$hardcode_libdir_flag_spec" ||
12161 test -n "$runpath_var" ||
12162 test yes = "$hardcode_automatic"; then
12163
12164 # We can hardcode non-existent directories.
12165 if test no != "$hardcode_direct" &&
12166 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12167 # have to relink, otherwise we might link with an installed library
12168 # when we should be linking with a yet-to-be-installed one
12169 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12170 test no != "$hardcode_minus_L"; then
12171 # Linking always hardcodes the temporary library directory.
12172 hardcode_action=relink
12173 else
12174 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12175 hardcode_action=immediate
12176 fi
12177 else
12178 # We cannot hardcode anything, or else we can only hardcode existing
12179 # directories.
12180 hardcode_action=unsupported
12181 fi
12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12183 printf "%s\n" "$hardcode_action" >&6; }
12184
12185 if test relink = "$hardcode_action" ||
12186 test yes = "$inherit_rpath"; then
12187 # Fast installation is not supported
12188 enable_fast_install=no
12189 elif test yes = "$shlibpath_overrides_runpath" ||
12190 test no = "$enable_shared"; then
12191 # Fast installation is not necessary
12192 enable_fast_install=needless
12193 fi
12194
12195
12196
12197
12198
12199
12200 if test yes != "$enable_dlopen"; then
12201 enable_dlopen=unknown
12202 enable_dlopen_self=unknown
12203 enable_dlopen_self_static=unknown
12204 else
12205 lt_cv_dlopen=no
12206 lt_cv_dlopen_libs=
12207
12208 case $host_os in
12209 beos*)
12210 lt_cv_dlopen=load_add_on
12211 lt_cv_dlopen_libs=
12212 lt_cv_dlopen_self=yes
12213 ;;
12214
12215 mingw* | pw32* | cegcc*)
12216 lt_cv_dlopen=LoadLibrary
12217 lt_cv_dlopen_libs=
12218 ;;
12219
12220 cygwin*)
12221 lt_cv_dlopen=dlopen
12222 lt_cv_dlopen_libs=
12223 ;;
12224
12225 darwin*)
12226 # if libdl is installed we need to link against it
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12228 printf %s "checking for dlopen in -ldl... " >&6; }
12229 if test ${ac_cv_lib_dl_dlopen+y}
12230 then :
12231 printf %s "(cached) " >&6
12232 else $as_nop
12233 ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-ldl $LIBS"
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237
12238 /* Override any GCC internal prototype to avoid an error.
12239 Use char because int might match the return type of a GCC
12240 builtin and then its argument prototype would still apply. */
12241 char dlopen ();
12242 int
12243 main (void)
12244 {
12245 return dlopen ();
12246 ;
12247 return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_link "$LINENO"
12251 then :
12252 ac_cv_lib_dl_dlopen=yes
12253 else $as_nop
12254 ac_cv_lib_dl_dlopen=no
12255 fi
12256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12257 conftest$ac_exeext conftest.$ac_ext
12258 LIBS=$ac_check_lib_save_LIBS
12259 fi
12260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12261 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12262 if test "x$ac_cv_lib_dl_dlopen" = xyes
12263 then :
12264 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12265 else $as_nop
12266
12267 lt_cv_dlopen=dyld
12268 lt_cv_dlopen_libs=
12269 lt_cv_dlopen_self=yes
12270
12271 fi
12272
12273 ;;
12274
12275 tpf*)
12276 # Don't try to run any link tests for TPF. We know it's impossible
12277 # because TPF is a cross-compiler, and we know how we open DSOs.
12278 lt_cv_dlopen=dlopen
12279 lt_cv_dlopen_libs=
12280 lt_cv_dlopen_self=no
12281 ;;
12282
12283 *)
12284 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12285 if test "x$ac_cv_func_shl_load" = xyes
12286 then :
12287 lt_cv_dlopen=shl_load
12288 else $as_nop
12289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12290 printf %s "checking for shl_load in -ldld... " >&6; }
12291 if test ${ac_cv_lib_dld_shl_load+y}
12292 then :
12293 printf %s "(cached) " >&6
12294 else $as_nop
12295 ac_check_lib_save_LIBS=$LIBS
12296 LIBS="-ldld $LIBS"
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12303 char shl_load ();
12304 int
12305 main (void)
12306 {
12307 return shl_load ();
12308 ;
12309 return 0;
12310 }
12311 _ACEOF
12312 if ac_fn_c_try_link "$LINENO"
12313 then :
12314 ac_cv_lib_dld_shl_load=yes
12315 else $as_nop
12316 ac_cv_lib_dld_shl_load=no
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12319 conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12321 fi
12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12323 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12324 if test "x$ac_cv_lib_dld_shl_load" = xyes
12325 then :
12326 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12327 else $as_nop
12328 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12329 if test "x$ac_cv_func_dlopen" = xyes
12330 then :
12331 lt_cv_dlopen=dlopen
12332 else $as_nop
12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12334 printf %s "checking for dlopen in -ldl... " >&6; }
12335 if test ${ac_cv_lib_dl_dlopen+y}
12336 then :
12337 printf %s "(cached) " >&6
12338 else $as_nop
12339 ac_check_lib_save_LIBS=$LIBS
12340 LIBS="-ldl $LIBS"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12347 char dlopen ();
12348 int
12349 main (void)
12350 {
12351 return dlopen ();
12352 ;
12353 return 0;
12354 }
12355 _ACEOF
12356 if ac_fn_c_try_link "$LINENO"
12357 then :
12358 ac_cv_lib_dl_dlopen=yes
12359 else $as_nop
12360 ac_cv_lib_dl_dlopen=no
12361 fi
12362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12363 conftest$ac_exeext conftest.$ac_ext
12364 LIBS=$ac_check_lib_save_LIBS
12365 fi
12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12367 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12368 if test "x$ac_cv_lib_dl_dlopen" = xyes
12369 then :
12370 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12371 else $as_nop
12372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12373 printf %s "checking for dlopen in -lsvld... " >&6; }
12374 if test ${ac_cv_lib_svld_dlopen+y}
12375 then :
12376 printf %s "(cached) " >&6
12377 else $as_nop
12378 ac_check_lib_save_LIBS=$LIBS
12379 LIBS="-lsvld $LIBS"
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12382
12383 /* Override any GCC internal prototype to avoid an error.
12384 Use char because int might match the return type of a GCC
12385 builtin and then its argument prototype would still apply. */
12386 char dlopen ();
12387 int
12388 main (void)
12389 {
12390 return dlopen ();
12391 ;
12392 return 0;
12393 }
12394 _ACEOF
12395 if ac_fn_c_try_link "$LINENO"
12396 then :
12397 ac_cv_lib_svld_dlopen=yes
12398 else $as_nop
12399 ac_cv_lib_svld_dlopen=no
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12402 conftest$ac_exeext conftest.$ac_ext
12403 LIBS=$ac_check_lib_save_LIBS
12404 fi
12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12406 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12407 if test "x$ac_cv_lib_svld_dlopen" = xyes
12408 then :
12409 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12410 else $as_nop
12411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12412 printf %s "checking for dld_link in -ldld... " >&6; }
12413 if test ${ac_cv_lib_dld_dld_link+y}
12414 then :
12415 printf %s "(cached) " >&6
12416 else $as_nop
12417 ac_check_lib_save_LIBS=$LIBS
12418 LIBS="-ldld $LIBS"
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421
12422 /* Override any GCC internal prototype to avoid an error.
12423 Use char because int might match the return type of a GCC
12424 builtin and then its argument prototype would still apply. */
12425 char dld_link ();
12426 int
12427 main (void)
12428 {
12429 return dld_link ();
12430 ;
12431 return 0;
12432 }
12433 _ACEOF
12434 if ac_fn_c_try_link "$LINENO"
12435 then :
12436 ac_cv_lib_dld_dld_link=yes
12437 else $as_nop
12438 ac_cv_lib_dld_dld_link=no
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12441 conftest$ac_exeext conftest.$ac_ext
12442 LIBS=$ac_check_lib_save_LIBS
12443 fi
12444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12445 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12446 if test "x$ac_cv_lib_dld_dld_link" = xyes
12447 then :
12448 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12449 fi
12450
12451
12452 fi
12453
12454
12455 fi
12456
12457
12458 fi
12459
12460
12461 fi
12462
12463
12464 fi
12465
12466 ;;
12467 esac
12468
12469 if test no = "$lt_cv_dlopen"; then
12470 enable_dlopen=no
12471 else
12472 enable_dlopen=yes
12473 fi
12474
12475 case $lt_cv_dlopen in
12476 dlopen)
12477 save_CPPFLAGS=$CPPFLAGS
12478 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12479
12480 save_LDFLAGS=$LDFLAGS
12481 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12482
12483 save_LIBS=$LIBS
12484 LIBS="$lt_cv_dlopen_libs $LIBS"
12485
12486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12487 printf %s "checking whether a program can dlopen itself... " >&6; }
12488 if test ${lt_cv_dlopen_self+y}
12489 then :
12490 printf %s "(cached) " >&6
12491 else $as_nop
12492 if test yes = "$cross_compiling"; then :
12493 lt_cv_dlopen_self=cross
12494 else
12495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12496 lt_status=$lt_dlunknown
12497 cat > conftest.$ac_ext <<_LT_EOF
12498 #line $LINENO "configure"
12499 #include "confdefs.h"
12500
12501 #if HAVE_DLFCN_H
12502 #include <dlfcn.h>
12503 #endif
12504
12505 #include <stdio.h>
12506
12507 #ifdef RTLD_GLOBAL
12508 # define LT_DLGLOBAL RTLD_GLOBAL
12509 #else
12510 # ifdef DL_GLOBAL
12511 # define LT_DLGLOBAL DL_GLOBAL
12512 # else
12513 # define LT_DLGLOBAL 0
12514 # endif
12515 #endif
12516
12517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12518 find out it does not work in some platform. */
12519 #ifndef LT_DLLAZY_OR_NOW
12520 # ifdef RTLD_LAZY
12521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12522 # else
12523 # ifdef DL_LAZY
12524 # define LT_DLLAZY_OR_NOW DL_LAZY
12525 # else
12526 # ifdef RTLD_NOW
12527 # define LT_DLLAZY_OR_NOW RTLD_NOW
12528 # else
12529 # ifdef DL_NOW
12530 # define LT_DLLAZY_OR_NOW DL_NOW
12531 # else
12532 # define LT_DLLAZY_OR_NOW 0
12533 # endif
12534 # endif
12535 # endif
12536 # endif
12537 #endif
12538
12539 /* When -fvisibility=hidden is used, assume the code has been annotated
12540 correspondingly for the symbols needed. */
12541 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12542 int fnord () __attribute__((visibility("default")));
12543 #endif
12544
12545 int fnord () { return 42; }
12546 int main ()
12547 {
12548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12549 int status = $lt_dlunknown;
12550
12551 if (self)
12552 {
12553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12554 else
12555 {
12556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12557 else puts (dlerror ());
12558 }
12559 /* dlclose (self); */
12560 }
12561 else
12562 puts (dlerror ());
12563
12564 return status;
12565 }
12566 _LT_EOF
12567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12568 (eval $ac_link) 2>&5
12569 ac_status=$?
12570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12572 (./conftest; exit; ) >&5 2>/dev/null
12573 lt_status=$?
12574 case x$lt_status in
12575 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12576 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12577 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12578 esac
12579 else :
12580 # compilation failed
12581 lt_cv_dlopen_self=no
12582 fi
12583 fi
12584 rm -fr conftest*
12585
12586
12587 fi
12588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12589 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12590
12591 if test yes = "$lt_cv_dlopen_self"; then
12592 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12594 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12595 if test ${lt_cv_dlopen_self_static+y}
12596 then :
12597 printf %s "(cached) " >&6
12598 else $as_nop
12599 if test yes = "$cross_compiling"; then :
12600 lt_cv_dlopen_self_static=cross
12601 else
12602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12603 lt_status=$lt_dlunknown
12604 cat > conftest.$ac_ext <<_LT_EOF
12605 #line $LINENO "configure"
12606 #include "confdefs.h"
12607
12608 #if HAVE_DLFCN_H
12609 #include <dlfcn.h>
12610 #endif
12611
12612 #include <stdio.h>
12613
12614 #ifdef RTLD_GLOBAL
12615 # define LT_DLGLOBAL RTLD_GLOBAL
12616 #else
12617 # ifdef DL_GLOBAL
12618 # define LT_DLGLOBAL DL_GLOBAL
12619 # else
12620 # define LT_DLGLOBAL 0
12621 # endif
12622 #endif
12623
12624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12625 find out it does not work in some platform. */
12626 #ifndef LT_DLLAZY_OR_NOW
12627 # ifdef RTLD_LAZY
12628 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12629 # else
12630 # ifdef DL_LAZY
12631 # define LT_DLLAZY_OR_NOW DL_LAZY
12632 # else
12633 # ifdef RTLD_NOW
12634 # define LT_DLLAZY_OR_NOW RTLD_NOW
12635 # else
12636 # ifdef DL_NOW
12637 # define LT_DLLAZY_OR_NOW DL_NOW
12638 # else
12639 # define LT_DLLAZY_OR_NOW 0
12640 # endif
12641 # endif
12642 # endif
12643 # endif
12644 #endif
12645
12646 /* When -fvisibility=hidden is used, assume the code has been annotated
12647 correspondingly for the symbols needed. */
12648 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12649 int fnord () __attribute__((visibility("default")));
12650 #endif
12651
12652 int fnord () { return 42; }
12653 int main ()
12654 {
12655 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12656 int status = $lt_dlunknown;
12657
12658 if (self)
12659 {
12660 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12661 else
12662 {
12663 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12664 else puts (dlerror ());
12665 }
12666 /* dlclose (self); */
12667 }
12668 else
12669 puts (dlerror ());
12670
12671 return status;
12672 }
12673 _LT_EOF
12674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12675 (eval $ac_link) 2>&5
12676 ac_status=$?
12677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12678 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12679 (./conftest; exit; ) >&5 2>/dev/null
12680 lt_status=$?
12681 case x$lt_status in
12682 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12683 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12684 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12685 esac
12686 else :
12687 # compilation failed
12688 lt_cv_dlopen_self_static=no
12689 fi
12690 fi
12691 rm -fr conftest*
12692
12693
12694 fi
12695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12696 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12697 fi
12698
12699 CPPFLAGS=$save_CPPFLAGS
12700 LDFLAGS=$save_LDFLAGS
12701 LIBS=$save_LIBS
12702 ;;
12703 esac
12704
12705 case $lt_cv_dlopen_self in
12706 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12707 *) enable_dlopen_self=unknown ;;
12708 esac
12709
12710 case $lt_cv_dlopen_self_static in
12711 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12712 *) enable_dlopen_self_static=unknown ;;
12713 esac
12714 fi
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732 striplib=
12733 old_striplib=
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12735 printf %s "checking whether stripping libraries is possible... " >&6; }
12736 if test -z "$STRIP"; then
12737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 printf "%s\n" "no" >&6; }
12739 else
12740 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12741 old_striplib="$STRIP --strip-debug"
12742 striplib="$STRIP --strip-unneeded"
12743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12744 printf "%s\n" "yes" >&6; }
12745 else
12746 case $host_os in
12747 darwin*)
12748 # FIXME - insert some real tests, host_os isn't really good enough
12749 striplib="$STRIP -x"
12750 old_striplib="$STRIP -S"
12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12752 printf "%s\n" "yes" >&6; }
12753 ;;
12754 freebsd*)
12755 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12756 old_striplib="$STRIP --strip-debug"
12757 striplib="$STRIP --strip-unneeded"
12758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759 printf "%s\n" "yes" >&6; }
12760 else
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 printf "%s\n" "no" >&6; }
12763 fi
12764 ;;
12765 *)
12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 printf "%s\n" "no" >&6; }
12768 ;;
12769 esac
12770 fi
12771 fi
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784 # Report what library types will actually be built
12785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12786 printf %s "checking if libtool supports shared libraries... " >&6; }
12787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12788 printf "%s\n" "$can_build_shared" >&6; }
12789
12790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12791 printf %s "checking whether to build shared libraries... " >&6; }
12792 test no = "$can_build_shared" && enable_shared=no
12793
12794 # On AIX, shared libraries and static libraries use the same namespace, and
12795 # are all built from PIC.
12796 case $host_os in
12797 aix3*)
12798 test yes = "$enable_shared" && enable_static=no
12799 if test -n "$RANLIB"; then
12800 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12801 postinstall_cmds='$RANLIB $lib'
12802 fi
12803 ;;
12804
12805 aix[4-9]*)
12806 if test ia64 != "$host_cpu"; then
12807 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12808 yes,aix,yes) ;; # shared object as lib.so file only
12809 yes,svr4,*) ;; # shared object as lib.so archive member only
12810 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12811 esac
12812 fi
12813 ;;
12814 esac
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12816 printf "%s\n" "$enable_shared" >&6; }
12817
12818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12819 printf %s "checking whether to build static libraries... " >&6; }
12820 # Make sure either enable_shared or enable_static is yes.
12821 test yes = "$enable_shared" || enable_static=yes
12822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12823 printf "%s\n" "$enable_static" >&6; }
12824
12825
12826
12827
12828 fi
12829 ac_ext=c
12830 ac_cpp='$CPP $CPPFLAGS'
12831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12834
12835 CC=$lt_save_CC
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851 ac_config_commands="$ac_config_commands libtool"
12852
12853
12854
12855
12856 # Only expand once:
12857
12858
12859
12860 am__api_version='1.16'
12861
12862
12863 # Find a good install program. We prefer a C program (faster),
12864 # so one script is as good as another. But avoid the broken or
12865 # incompatible versions:
12866 # SysV /etc/install, /usr/sbin/install
12867 # SunOS /usr/etc/install
12868 # IRIX /sbin/install
12869 # AIX /bin/install
12870 # AmigaOS /C/install, which installs bootblocks on floppy discs
12871 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12874 # OS/2's system install, which has a completely different semantic
12875 # ./install, which can be erroneously created by make from ./install.sh.
12876 # Reject install programs that cannot install multiple files.
12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12878 printf %s "checking for a BSD-compatible install... " >&6; }
12879 if test -z "$INSTALL"; then
12880 if test ${ac_cv_path_install+y}
12881 then :
12882 printf %s "(cached) " >&6
12883 else $as_nop
12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12885 for as_dir in $PATH
12886 do
12887 IFS=$as_save_IFS
12888 case $as_dir in #(((
12889 '') as_dir=./ ;;
12890 */) ;;
12891 *) as_dir=$as_dir/ ;;
12892 esac
12893 # Account for fact that we put trailing slashes in our PATH walk.
12894 case $as_dir in #((
12895 ./ | /[cC]/* | \
12896 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12897 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12898 /usr/ucb/* ) ;;
12899 *)
12900 # OSF1 and SCO ODT 3.0 have their own names for install.
12901 # Don't use installbsd from OSF since it installs stuff as root
12902 # by default.
12903 for ac_prog in ginstall scoinst install; do
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
12906 if test $ac_prog = install &&
12907 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12908 # AIX install. It has an incompatible calling convention.
12909 :
12910 elif test $ac_prog = install &&
12911 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12912 # program-specific install script used by HP pwplus--don't use.
12913 :
12914 else
12915 rm -rf conftest.one conftest.two conftest.dir
12916 echo one > conftest.one
12917 echo two > conftest.two
12918 mkdir conftest.dir
12919 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
12920 test -s conftest.one && test -s conftest.two &&
12921 test -s conftest.dir/conftest.one &&
12922 test -s conftest.dir/conftest.two
12923 then
12924 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
12925 break 3
12926 fi
12927 fi
12928 fi
12929 done
12930 done
12931 ;;
12932 esac
12933
12934 done
12935 IFS=$as_save_IFS
12936
12937 rm -rf conftest.one conftest.two conftest.dir
12938
12939 fi
12940 if test ${ac_cv_path_install+y}; then
12941 INSTALL=$ac_cv_path_install
12942 else
12943 # As a last resort, use the slow shell script. Don't cache a
12944 # value for INSTALL within a source directory, because that will
12945 # break other packages using the cache if that directory is
12946 # removed, or if the value is a relative name.
12947 INSTALL=$ac_install_sh
12948 fi
12949 fi
12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12951 printf "%s\n" "$INSTALL" >&6; }
12952
12953 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12954 # It thinks the first close brace ends the variable substitution.
12955 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12956
12957 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12958
12959 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12960
12961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
12962 printf %s "checking whether build environment is sane... " >&6; }
12963 # Reject unsafe characters in $srcdir or the absolute working directory
12964 # name. Accept space and tab only in the latter.
12965 am_lf='
12966 '
12967 case `pwd` in
12968 *[\\\"\#\$\&\'\`$am_lf]*)
12969 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
12970 esac
12971 case $srcdir in
12972 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
12973 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
12974 esac
12975
12976 # Do 'set' in a subshell so we don't clobber the current shell's
12977 # arguments. Must try -L first in case configure is actually a
12978 # symlink; some systems play weird games with the mod time of symlinks
12979 # (eg FreeBSD returns the mod time of the symlink's containing
12980 # directory).
12981 if (
12982 am_has_slept=no
12983 for am_try in 1 2; do
12984 echo "timestamp, slept: $am_has_slept" > conftest.file
12985 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
12986 if test "$*" = "X"; then
12987 # -L didn't work.
12988 set X `ls -t "$srcdir/configure" conftest.file`
12989 fi
12990 if test "$*" != "X $srcdir/configure conftest.file" \
12991 && test "$*" != "X conftest.file $srcdir/configure"; then
12992
12993 # If neither matched, then we have a broken ls. This can happen
12994 # if, for instance, CONFIG_SHELL is bash and it inherits a
12995 # broken ls alias from the environment. This has actually
12996 # happened. Such a system could not be considered "sane".
12997 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
12998 alias in your environment" "$LINENO" 5
12999 fi
13000 if test "$2" = conftest.file || test $am_try -eq 2; then
13001 break
13002 fi
13003 # Just in case.
13004 sleep 1
13005 am_has_slept=yes
13006 done
13007 test "$2" = conftest.file
13008 )
13009 then
13010 # Ok.
13011 :
13012 else
13013 as_fn_error $? "newly created file is older than distributed files!
13014 Check your system clock" "$LINENO" 5
13015 fi
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13017 printf "%s\n" "yes" >&6; }
13018 # If we didn't sleep, we still need to ensure time stamps of config.status and
13019 # generated files are strictly newer.
13020 am_sleep_pid=
13021 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13022 ( sleep 1 ) &
13023 am_sleep_pid=$!
13024 fi
13025
13026 rm -f conftest.file
13027
13028 test "$program_prefix" != NONE &&
13029 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13030 # Use a double $ so make ignores it.
13031 test "$program_suffix" != NONE &&
13032 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13033 # Double any \ or $.
13034 # By default was `s,x,x', remove it if useless.
13035 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
13036 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
13037
13038
13039 if test x"${MISSING+set}" != xset; then
13040 MISSING="\${SHELL} '$am_aux_dir/missing'"
13041 fi
13042 # Use eval to expand $SHELL
13043 if eval "$MISSING --is-lightweight"; then
13044 am_missing_run="$MISSING "
13045 else
13046 am_missing_run=
13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13048 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13049 fi
13050
13051 if test x"${install_sh+set}" != xset; then
13052 case $am_aux_dir in
13053 *\ * | *\ *)
13054 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13055 *)
13056 install_sh="\${SHELL} $am_aux_dir/install-sh"
13057 esac
13058 fi
13059
13060 # Installed binaries are usually stripped using 'strip' when the user
13061 # run "make install-strip". However 'strip' might not be the right
13062 # tool to use in cross-compilation environments, therefore Automake
13063 # will honor the 'STRIP' environment variable to overrule this program.
13064 if test "$cross_compiling" != no; then
13065 if test -n "$ac_tool_prefix"; then
13066 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13067 set dummy ${ac_tool_prefix}strip; ac_word=$2
13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13069 printf %s "checking for $ac_word... " >&6; }
13070 if test ${ac_cv_prog_STRIP+y}
13071 then :
13072 printf %s "(cached) " >&6
13073 else $as_nop
13074 if test -n "$STRIP"; then
13075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13076 else
13077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 for as_dir in $PATH
13079 do
13080 IFS=$as_save_IFS
13081 case $as_dir in #(((
13082 '') as_dir=./ ;;
13083 */) ;;
13084 *) as_dir=$as_dir/ ;;
13085 esac
13086 for ac_exec_ext in '' $ac_executable_extensions; do
13087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13090 break 2
13091 fi
13092 done
13093 done
13094 IFS=$as_save_IFS
13095
13096 fi
13097 fi
13098 STRIP=$ac_cv_prog_STRIP
13099 if test -n "$STRIP"; then
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13101 printf "%s\n" "$STRIP" >&6; }
13102 else
13103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104 printf "%s\n" "no" >&6; }
13105 fi
13106
13107
13108 fi
13109 if test -z "$ac_cv_prog_STRIP"; then
13110 ac_ct_STRIP=$STRIP
13111 # Extract the first word of "strip", so it can be a program name with args.
13112 set dummy strip; ac_word=$2
13113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114 printf %s "checking for $ac_word... " >&6; }
13115 if test ${ac_cv_prog_ac_ct_STRIP+y}
13116 then :
13117 printf %s "(cached) " >&6
13118 else $as_nop
13119 if test -n "$ac_ct_STRIP"; then
13120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13121 else
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13124 do
13125 IFS=$as_save_IFS
13126 case $as_dir in #(((
13127 '') as_dir=./ ;;
13128 */) ;;
13129 *) as_dir=$as_dir/ ;;
13130 esac
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13133 ac_cv_prog_ac_ct_STRIP="strip"
13134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13135 break 2
13136 fi
13137 done
13138 done
13139 IFS=$as_save_IFS
13140
13141 fi
13142 fi
13143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13144 if test -n "$ac_ct_STRIP"; then
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13146 printf "%s\n" "$ac_ct_STRIP" >&6; }
13147 else
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149 printf "%s\n" "no" >&6; }
13150 fi
13151
13152 if test "x$ac_ct_STRIP" = x; then
13153 STRIP=":"
13154 else
13155 case $cross_compiling:$ac_tool_warned in
13156 yes:)
13157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13158 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13159 ac_tool_warned=yes ;;
13160 esac
13161 STRIP=$ac_ct_STRIP
13162 fi
13163 else
13164 STRIP="$ac_cv_prog_STRIP"
13165 fi
13166
13167 fi
13168 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13169
13170
13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
13172 printf %s "checking for a race-free mkdir -p... " >&6; }
13173 if test -z "$MKDIR_P"; then
13174 if test ${ac_cv_path_mkdir+y}
13175 then :
13176 printf %s "(cached) " >&6
13177 else $as_nop
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13180 do
13181 IFS=$as_save_IFS
13182 case $as_dir in #(((
13183 '') as_dir=./ ;;
13184 */) ;;
13185 *) as_dir=$as_dir/ ;;
13186 esac
13187 for ac_prog in mkdir gmkdir; do
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
13190 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
13191 'mkdir ('*'coreutils) '* | \
13192 'BusyBox '* | \
13193 'mkdir (fileutils) '4.1*)
13194 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
13195 break 3;;
13196 esac
13197 done
13198 done
13199 done
13200 IFS=$as_save_IFS
13201
13202 fi
13203
13204 test -d ./--version && rmdir ./--version
13205 if test ${ac_cv_path_mkdir+y}; then
13206 MKDIR_P="$ac_cv_path_mkdir -p"
13207 else
13208 # As a last resort, use the slow shell script. Don't cache a
13209 # value for MKDIR_P within a source directory, because that will
13210 # break other packages using the cache if that directory is
13211 # removed, or if the value is a relative name.
13212 MKDIR_P="$ac_install_sh -d"
13213 fi
13214 fi
13215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13216 printf "%s\n" "$MKDIR_P" >&6; }
13217
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13219 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13220 set x ${MAKE-make}
13221 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13222 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
13223 then :
13224 printf %s "(cached) " >&6
13225 else $as_nop
13226 cat >conftest.make <<\_ACEOF
13227 SHELL = /bin/sh
13228 all:
13229 @echo '@@@%%%=$(MAKE)=@@@%%%'
13230 _ACEOF
13231 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13232 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13233 *@@@%%%=?*=@@@%%%*)
13234 eval ac_cv_prog_make_${ac_make}_set=yes;;
13235 *)
13236 eval ac_cv_prog_make_${ac_make}_set=no;;
13237 esac
13238 rm -f conftest.make
13239 fi
13240 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13242 printf "%s\n" "yes" >&6; }
13243 SET_MAKE=
13244 else
13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 printf "%s\n" "no" >&6; }
13247 SET_MAKE="MAKE=${MAKE-make}"
13248 fi
13249
13250 rm -rf .tst 2>/dev/null
13251 mkdir .tst 2>/dev/null
13252 if test -d .tst; then
13253 am__leading_dot=.
13254 else
13255 am__leading_dot=_
13256 fi
13257 rmdir .tst 2>/dev/null
13258
13259 DEPDIR="${am__leading_dot}deps"
13260
13261 ac_config_commands="$ac_config_commands depfiles"
13262
13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
13264 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
13265 cat > confinc.mk << 'END'
13266 am__doit:
13267 @echo this is the am__doit target >confinc.out
13268 .PHONY: am__doit
13269 END
13270 am__include="#"
13271 am__quote=
13272 # BSD make does it like this.
13273 echo '.include "confinc.mk" # ignored' > confmf.BSD
13274 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
13275 echo 'include confinc.mk # ignored' > confmf.GNU
13276 _am_result=no
13277 for s in GNU BSD; do
13278 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
13279 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
13280 ac_status=$?
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }
13283 case $?:`cat confinc.out 2>/dev/null` in #(
13284 '0:this is the am__doit target') :
13285 case $s in #(
13286 BSD) :
13287 am__include='.include' am__quote='"' ;; #(
13288 *) :
13289 am__include='include' am__quote='' ;;
13290 esac ;; #(
13291 *) :
13292 ;;
13293 esac
13294 if test "$am__include" != "#"; then
13295 _am_result="yes ($s style)"
13296 break
13297 fi
13298 done
13299 rm -f confinc.* confmf.*
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
13301 printf "%s\n" "${_am_result}" >&6; }
13302
13303 # Check whether --enable-dependency-tracking was given.
13304 if test ${enable_dependency_tracking+y}
13305 then :
13306 enableval=$enable_dependency_tracking;
13307 fi
13308
13309 if test "x$enable_dependency_tracking" != xno; then
13310 am_depcomp="$ac_aux_dir/depcomp"
13311 AMDEPBACKSLASH='\'
13312 am__nodep='_no'
13313 fi
13314 if test "x$enable_dependency_tracking" != xno; then
13315 AMDEP_TRUE=
13316 AMDEP_FALSE='#'
13317 else
13318 AMDEP_TRUE='#'
13319 AMDEP_FALSE=
13320 fi
13321
13322
13323 # Check whether --enable-silent-rules was given.
13324 if test ${enable_silent_rules+y}
13325 then :
13326 enableval=$enable_silent_rules;
13327 fi
13328
13329 case $enable_silent_rules in # (((
13330 yes) AM_DEFAULT_VERBOSITY=0;;
13331 no) AM_DEFAULT_VERBOSITY=1;;
13332 *) AM_DEFAULT_VERBOSITY=1;;
13333 esac
13334 am_make=${MAKE-make}
13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13336 printf %s "checking whether $am_make supports nested variables... " >&6; }
13337 if test ${am_cv_make_support_nested_variables+y}
13338 then :
13339 printf %s "(cached) " >&6
13340 else $as_nop
13341 if printf "%s\n" 'TRUE=$(BAR$(V))
13342 BAR0=false
13343 BAR1=true
13344 V=1
13345 am__doit:
13346 @$(TRUE)
13347 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13348 am_cv_make_support_nested_variables=yes
13349 else
13350 am_cv_make_support_nested_variables=no
13351 fi
13352 fi
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13354 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13355 if test $am_cv_make_support_nested_variables = yes; then
13356 AM_V='$(V)'
13357 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13358 else
13359 AM_V=$AM_DEFAULT_VERBOSITY
13360 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13361 fi
13362 AM_BACKSLASH='\'
13363
13364 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13365 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13366 # is not polluted with repeated "-I."
13367 am__isrc=' -I$(srcdir)'
13368 # test to see if srcdir already configured
13369 if test -f $srcdir/config.status; then
13370 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13371 fi
13372 fi
13373
13374 # test whether we have cygpath
13375 if test -z "$CYGPATH_W"; then
13376 if (cygpath --version) >/dev/null 2>/dev/null; then
13377 CYGPATH_W='cygpath -w'
13378 else
13379 CYGPATH_W=echo
13380 fi
13381 fi
13382
13383
13384 # Define the identity of the package.
13385 PACKAGE='mpsolve'
13386 VERSION='3.2.3'
13387
13388
13389 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
13390
13391
13392 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
13393
13394 # Some tools Automake needs.
13395
13396 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13397
13398
13399 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13400
13401
13402 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13403
13404
13405 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13406
13407
13408 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13409
13410 # For better backward compatibility. To be removed once Automake 1.9.x
13411 # dies out for good. For more background, see:
13412 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13413 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13414 mkdir_p='$(MKDIR_P)'
13415
13416 # We need awk for the "check" target (and possibly the TAP driver). The
13417 # system "awk" is bad on some platforms.
13418 # Always define AMTAR for backward compatibility. Yes, it's still used
13419 # in the wild :-( We should find a proper way to deprecate it ...
13420 AMTAR='$${TAR-tar}'
13421
13422
13423 # We'll loop over all known methods to create a tar archive until one works.
13424 _am_tools='gnutar pax cpio none'
13425
13426 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
13427
13428
13429
13430
13431
13432 depcc="$CC" am_compiler_list=
13433
13434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13435 printf %s "checking dependency style of $depcc... " >&6; }
13436 if test ${am_cv_CC_dependencies_compiler_type+y}
13437 then :
13438 printf %s "(cached) " >&6
13439 else $as_nop
13440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13441 # We make a subdir and do the tests there. Otherwise we can end up
13442 # making bogus files that we don't know about and never remove. For
13443 # instance it was reported that on HP-UX the gcc test will end up
13444 # making a dummy file named 'D' -- because '-MD' means "put the output
13445 # in D".
13446 rm -rf conftest.dir
13447 mkdir conftest.dir
13448 # Copy depcomp to subdir because otherwise we won't find it if we're
13449 # using a relative directory.
13450 cp "$am_depcomp" conftest.dir
13451 cd conftest.dir
13452 # We will build objects and dependencies in a subdirectory because
13453 # it helps to detect inapplicable dependency modes. For instance
13454 # both Tru64's cc and ICC support -MD to output dependencies as a
13455 # side effect of compilation, but ICC will put the dependencies in
13456 # the current directory while Tru64 will put them in the object
13457 # directory.
13458 mkdir sub
13459
13460 am_cv_CC_dependencies_compiler_type=none
13461 if test "$am_compiler_list" = ""; then
13462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13463 fi
13464 am__universal=false
13465 case " $depcc " in #(
13466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13467 esac
13468
13469 for depmode in $am_compiler_list; do
13470 # Setup a source with many dependencies, because some compilers
13471 # like to wrap large dependency lists on column 80 (with \), and
13472 # we should not choose a depcomp mode which is confused by this.
13473 #
13474 # We need to recreate these files for each test, as the compiler may
13475 # overwrite some of them when testing with obscure command lines.
13476 # This happens at least with the AIX C compiler.
13477 : > sub/conftest.c
13478 for i in 1 2 3 4 5 6; do
13479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13480 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13481 # Solaris 10 /bin/sh.
13482 echo '/* dummy */' > sub/conftst$i.h
13483 done
13484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13485
13486 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13487 # mode. It turns out that the SunPro C++ compiler does not properly
13488 # handle '-M -o', and we need to detect this. Also, some Intel
13489 # versions had trouble with output in subdirs.
13490 am__obj=sub/conftest.${OBJEXT-o}
13491 am__minus_obj="-o $am__obj"
13492 case $depmode in
13493 gcc)
13494 # This depmode causes a compiler race in universal mode.
13495 test "$am__universal" = false || continue
13496 ;;
13497 nosideeffect)
13498 # After this tag, mechanisms are not by side-effect, so they'll
13499 # only be used when explicitly requested.
13500 if test "x$enable_dependency_tracking" = xyes; then
13501 continue
13502 else
13503 break
13504 fi
13505 ;;
13506 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13507 # This compiler won't grok '-c -o', but also, the minuso test has
13508 # not run yet. These depmodes are late enough in the game, and
13509 # so weak that their functioning should not be impacted.
13510 am__obj=conftest.${OBJEXT-o}
13511 am__minus_obj=
13512 ;;
13513 none) break ;;
13514 esac
13515 if depmode=$depmode \
13516 source=sub/conftest.c object=$am__obj \
13517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13519 >/dev/null 2>conftest.err &&
13520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13524 # icc doesn't choke on unknown options, it will just issue warnings
13525 # or remarks (even with -Werror). So we grep stderr for any message
13526 # that says an option was ignored or not supported.
13527 # When given -MP, icc 7.0 and 7.1 complain thusly:
13528 # icc: Command line warning: ignoring option '-M'; no argument required
13529 # The diagnosis changed in icc 8.0:
13530 # icc: Command line remark: option '-MP' not supported
13531 if (grep 'ignoring option' conftest.err ||
13532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13533 am_cv_CC_dependencies_compiler_type=$depmode
13534 break
13535 fi
13536 fi
13537 done
13538
13539 cd ..
13540 rm -rf conftest.dir
13541 else
13542 am_cv_CC_dependencies_compiler_type=none
13543 fi
13544
13545 fi
13546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13547 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
13548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13549
13550 if
13551 test "x$enable_dependency_tracking" != xno \
13552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13553 am__fastdepCC_TRUE=
13554 am__fastdepCC_FALSE='#'
13555 else
13556 am__fastdepCC_TRUE='#'
13557 am__fastdepCC_FALSE=
13558 fi
13559
13560
13561 # Variables for tags utilities; see am/tags.am
13562 if test -z "$CTAGS"; then
13563 CTAGS=ctags
13564 fi
13565
13566 if test -z "$ETAGS"; then
13567 ETAGS=etags
13568 fi
13569
13570 if test -z "$CSCOPE"; then
13571 CSCOPE=cscope
13572 fi
13573
13574
13575
13576 # POSIX will say in a future version that running "rm -f" with no argument
13577 # is OK; and we want to be able to make that assumption in our Makefile
13578 # recipes. So use an aggressive probe to check that the usage we want is
13579 # actually supported "in the wild" to an acceptable degree.
13580 # See automake bug#10828.
13581 # To make any issue more visible, cause the running configure to be aborted
13582 # by default if the 'rm' program in use doesn't match our expectations; the
13583 # user can still override this though.
13584 if rm -f && rm -fr && rm -rf; then : OK; else
13585 cat >&2 <<'END'
13586 Oops!
13587
13588 Your 'rm' program seems unable to run without file operands specified
13589 on the command line, even when the '-f' option is present. This is contrary
13590 to the behaviour of most rm programs out there, and not conforming with
13591 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13592
13593 Please tell [email protected] about your system, including the value
13594 of your $PATH and any error possibly output before this message. This
13595 can help us improve future automake versions.
13596
13597 END
13598 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13599 echo 'Configuration will proceed anyway, since you have set the' >&2
13600 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13601 echo >&2
13602 else
13603 cat >&2 <<'END'
13604 Aborting the configuration process, to ensure you take notice of the issue.
13605
13606 You can download and install GNU coreutils to get an 'rm' implementation
13607 that behaves properly: <https://www.gnu.org/software/coreutils/>.
13608
13609 If you want to complete the configuration process using your problematic
13610 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13611 to "yes", and re-run configure.
13612
13613 END
13614 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13615 fi
13616 fi
13617
13618
13619 # Check whether --enable-silent-rules was given.
13620 if test ${enable_silent_rules+y}
13621 then :
13622 enableval=$enable_silent_rules;
13623 fi
13624
13625 case $enable_silent_rules in # (((
13626 yes) AM_DEFAULT_VERBOSITY=0;;
13627 no) AM_DEFAULT_VERBOSITY=1;;
13628 *) AM_DEFAULT_VERBOSITY=0;;
13629 esac
13630 am_make=${MAKE-make}
13631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13632 printf %s "checking whether $am_make supports nested variables... " >&6; }
13633 if test ${am_cv_make_support_nested_variables+y}
13634 then :
13635 printf %s "(cached) " >&6
13636 else $as_nop
13637 if printf "%s\n" 'TRUE=$(BAR$(V))
13638 BAR0=false
13639 BAR1=true
13640 V=1
13641 am__doit:
13642 @$(TRUE)
13643 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13644 am_cv_make_support_nested_variables=yes
13645 else
13646 am_cv_make_support_nested_variables=no
13647 fi
13648 fi
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13650 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
13651 if test $am_cv_make_support_nested_variables = yes; then
13652 AM_V='$(V)'
13653 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13654 else
13655 AM_V=$AM_DEFAULT_VERBOSITY
13656 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13657 fi
13658 AM_BACKSLASH='\'
13659
13660
13661 #
13662 # ===== OPTION PARSING =====
13663 #
13664 # Add options to the configure script so that the user can select the features
13665 # he's interested in.
13666 #
13667
13668 # Determine CFLAGS based on the options that the user has specified.
13669 # The supported build type are
13670 #
13671 # --without-debug Do not code debug prints (that is not the default)
13672 #
13673 # Check whether --enable-debug was given.
13674 if test ${enable_debug+y}
13675 then :
13676 enableval=$enable_debug; enable_debug=$enableval have_debug=$enableval
13677 else $as_nop
13678 enable_debug=yes have_debug=yes
13679 fi
13680
13681 # AC_MSG_RESULT([$enable_debug])
13682
13683 # Select CFLAGS based on debug enabled or not
13684 if test x$enable_debug != xno
13685 then :
13686
13687 LIBMPS_CFLAGS="$LIBMPS_CFLAGS -DNICE_DEBUG"
13688
13689 else $as_nop
13690
13691 LIBMPS_CFLAGS="$LIBMPS_CFLAGS -DDISABLE_DEBUG"
13692
13693 printf "%s\n" "#define DISABLE_DEBUG 1" >>confdefs.h
13694
13695
13696 fi
13697
13698 # Check if we are building in debug-mode. If that's the case disable the hard-to-debug
13699 # optimization flag of the compiler.
13700 # Check whether --enable-debug-build was given.
13701 if test ${enable_debug_build+y}
13702 then :
13703 enableval=$enable_debug_build; enable_debug_build=$enableval
13704 else $as_nop
13705 enable_debug_build=no
13706
13707 fi
13708
13709
13710 if test x$enable_debug_build == xno
13711 then :
13712
13713 else $as_nop
13714
13715 # CFLAGS=""
13716 # CXXFLAGS=""
13717 LIBMPS_CFLAGS="$LIBMPS_CFLAGS -O0 -g"
13718
13719
13720 fi
13721
13722 # Check if the user wants to build the QML UI
13723 # Check whether --enable-qml-ui was given.
13724 if test ${enable_qml_ui+y}
13725 then :
13726 enableval=$enable_qml_ui; enable_qml_ui=$enableval
13727 else $as_nop
13728 enable_qml_ui=no
13729
13730 fi
13731
13732 if test "x$enable_qml_ui" != "xno"; then
13733 BUILD_QML_UI_TRUE=
13734 BUILD_QML_UI_FALSE='#'
13735 else
13736 BUILD_QML_UI_TRUE='#'
13737 BUILD_QML_UI_FALSE=
13738 fi
13739
13740
13741 # Determine if examples are desired. If that's the case check for the library
13742 # that are installed on the system and see which examples can be added.
13743 # Check whether --enable-examples was given.
13744 if test ${enable_examples+y}
13745 then :
13746 enableval=$enable_examples; build_examples=$enableval have_examples=$enableval
13747 else $as_nop
13748 build_examples=yes have_examples=yes
13749 fi
13750
13751
13752 # Add another option, enable/disable UI.
13753 # Check whether --enable-ui was given.
13754 if test ${enable_ui+y}
13755 then :
13756 enableval=$enable_ui; build_ui=$enableval have_ui=$enableval
13757 else $as_nop
13758 build_ui=yes have_ui=yes
13759 fi
13760
13761
13762 # Determine if the Graphical debugger must be integrated in MPSolve
13763 # Check whether --enable-graphical-debugger was given.
13764 if test ${enable_graphical_debugger+y}
13765 then :
13766 enableval=$enable_graphical_debugger; build_graphical_debugger=$enableval have_graphical_debugger=$enableval
13767 else $as_nop
13768 build_graphical_debugger=yes have_graphical_debugger=yes
13769 fi
13770
13771
13772 # Determine if the user wants to build the documentation
13773 # Check whether --enable-documentation was given.
13774 if test ${enable_documentation+y}
13775 then :
13776 enableval=$enable_documentation; build_doc=$enableval hvae_doc=$enableval
13777 else $as_nop
13778 build_doc=yes have_doc=yes
13779 fi
13780
13781
13782 # Determine if the user wants to build on ARM using hard floating point
13783 # Check whether --enable-vfpv3 was given.
13784 if test ${enable_vfpv3+y}
13785 then :
13786 enableval=$enable_vfpv3; build_hard_float=$enableval
13787 else $as_nop
13788 build_hard_float=no
13789 fi
13790
13791
13792 if test x$build_hard_float = xyes
13793 then :
13794
13795 CFLAGS="$CFLAGS -mfloat-abi=softfp -mfpu=vfpv3-d16"
13796
13797 fi
13798
13799 # Check if the user wants to use the standard system malloc even if tcmalloc
13800 # is installed.
13801 # Check whether --enable-tcmalloc was given.
13802 if test ${enable_tcmalloc+y}
13803 then :
13804 enableval=$enable_tcmalloc; enable_tcmalloc=$enableval have_tcmalloc=$enableval
13805 else $as_nop
13806 enable_tcmalloc=yes have_tcmalloc=yes
13807 fi
13808
13809
13810
13811 #
13812 # ==== LIBRARY DETECTION ====
13813 #
13814 # All these sections handle library detection and understanding the system characteristics.
13815 #
13816
13817
13818 ##
13819 ## Section 0) This section contains checks for compilers, basic headers files, ...
13820 #
13821
13822 # Checks for needed compilers:
13823 ac_ext=${ac_fc_srcext-f}
13824 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
13825 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
13826 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13827 if test -n "$ac_tool_prefix"; then
13828 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
13829 do
13830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13833 printf %s "checking for $ac_word... " >&6; }
13834 if test ${ac_cv_prog_FC+y}
13835 then :
13836 printf %s "(cached) " >&6
13837 else $as_nop
13838 if test -n "$FC"; then
13839 ac_cv_prog_FC="$FC" # Let the user override the test.
13840 else
13841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842 for as_dir in $PATH
13843 do
13844 IFS=$as_save_IFS
13845 case $as_dir in #(((
13846 '') as_dir=./ ;;
13847 */) ;;
13848 *) as_dir=$as_dir/ ;;
13849 esac
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13852 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
13853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13854 break 2
13855 fi
13856 done
13857 done
13858 IFS=$as_save_IFS
13859
13860 fi
13861 fi
13862 FC=$ac_cv_prog_FC
13863 if test -n "$FC"; then
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
13865 printf "%s\n" "$FC" >&6; }
13866 else
13867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868 printf "%s\n" "no" >&6; }
13869 fi
13870
13871
13872 test -n "$FC" && break
13873 done
13874 fi
13875 if test -z "$FC"; then
13876 ac_ct_FC=$FC
13877 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
13878 do
13879 # Extract the first word of "$ac_prog", so it can be a program name with args.
13880 set dummy $ac_prog; ac_word=$2
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882 printf %s "checking for $ac_word... " >&6; }
13883 if test ${ac_cv_prog_ac_ct_FC+y}
13884 then :
13885 printf %s "(cached) " >&6
13886 else $as_nop
13887 if test -n "$ac_ct_FC"; then
13888 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
13889 else
13890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891 for as_dir in $PATH
13892 do
13893 IFS=$as_save_IFS
13894 case $as_dir in #(((
13895 '') as_dir=./ ;;
13896 */) ;;
13897 *) as_dir=$as_dir/ ;;
13898 esac
13899 for ac_exec_ext in '' $ac_executable_extensions; do
13900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13901 ac_cv_prog_ac_ct_FC="$ac_prog"
13902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13903 break 2
13904 fi
13905 done
13906 done
13907 IFS=$as_save_IFS
13908
13909 fi
13910 fi
13911 ac_ct_FC=$ac_cv_prog_ac_ct_FC
13912 if test -n "$ac_ct_FC"; then
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
13914 printf "%s\n" "$ac_ct_FC" >&6; }
13915 else
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 printf "%s\n" "no" >&6; }
13918 fi
13919
13920
13921 test -n "$ac_ct_FC" && break
13922 done
13923
13924 if test "x$ac_ct_FC" = x; then
13925 FC=""
13926 else
13927 case $cross_compiling:$ac_tool_warned in
13928 yes:)
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13930 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13931 ac_tool_warned=yes ;;
13932 esac
13933 FC=$ac_ct_FC
13934 fi
13935 fi
13936
13937
13938 # Provide some information about the compiler.
13939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
13940 set X $ac_compile
13941 ac_compiler=$2
13942 for ac_option in --version -v -V -qversion; do
13943 { { ac_try="$ac_compiler $ac_option >&5"
13944 case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13947 esac
13948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13949 printf "%s\n" "$ac_try_echo"; } >&5
13950 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13951 ac_status=$?
13952 if test -s conftest.err; then
13953 sed '10a\
13954 ... rest of stderr output deleted ...
13955 10q' conftest.err >conftest.er1
13956 cat conftest.er1 >&5
13957 fi
13958 rm -f conftest.er1 conftest.err
13959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13960 test $ac_status = 0; }
13961 done
13962 rm -f a.out
13963
13964 # If we don't use `.F' as extension, the preprocessor is not run on the
13965 # input file. (Note that this only needs to work for GNU compilers.)
13966 ac_save_ext=$ac_ext
13967 ac_ext=F
13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran" >&5
13969 printf %s "checking whether the compiler supports GNU Fortran... " >&6; }
13970 if test ${ac_cv_fc_compiler_gnu+y}
13971 then :
13972 printf %s "(cached) " >&6
13973 else $as_nop
13974 cat > conftest.$ac_ext <<_ACEOF
13975 program main
13976 #ifndef __GNUC__
13977 choke me
13978 #endif
13979
13980 end
13981 _ACEOF
13982 if ac_fn_fc_try_compile "$LINENO"
13983 then :
13984 ac_compiler_gnu=yes
13985 else $as_nop
13986 ac_compiler_gnu=no
13987 fi
13988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13989 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
13990
13991 fi
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
13993 printf "%s\n" "$ac_cv_fc_compiler_gnu" >&6; }
13994 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
13995
13996 ac_ext=$ac_save_ext
13997 ac_test_FCFLAGS=${FCFLAGS+y}
13998 ac_save_FCFLAGS=$FCFLAGS
13999 FCFLAGS=
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
14001 printf %s "checking whether $FC accepts -g... " >&6; }
14002 if test ${ac_cv_prog_fc_g+y}
14003 then :
14004 printf %s "(cached) " >&6
14005 else $as_nop
14006 FCFLAGS=-g
14007 cat > conftest.$ac_ext <<_ACEOF
14008 program main
14009
14010 end
14011 _ACEOF
14012 if ac_fn_fc_try_compile "$LINENO"
14013 then :
14014 ac_cv_prog_fc_g=yes
14015 else $as_nop
14016 ac_cv_prog_fc_g=no
14017 fi
14018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14019
14020 fi
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
14022 printf "%s\n" "$ac_cv_prog_fc_g" >&6; }
14023 if test $ac_test_FCFLAGS; then
14024 FCFLAGS=$ac_save_FCFLAGS
14025 elif test $ac_cv_prog_fc_g = yes; then
14026 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
14027 FCFLAGS="-g -O2"
14028 else
14029 FCFLAGS="-g"
14030 fi
14031 else
14032 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
14033 FCFLAGS="-O2"
14034 else
14035 FCFLAGS=
14036 fi
14037 fi
14038
14039 if test $ac_compiler_gnu = yes; then
14040 GFC=yes
14041 else
14042 GFC=
14043 fi
14044 ac_ext=c
14045 ac_cpp='$CPP $CPPFLAGS'
14046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14049
14050
14051 func_stripname_cnf ()
14052 {
14053 case $2 in
14054 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14055 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14056 esac
14057 } # func_stripname_cnf
14058
14059
14060 ac_ext=${ac_fc_srcext-f}
14061 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
14062 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
14063 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
14064
14065
14066 if test -z "$FC" || test no = "$FC"; then
14067 _lt_disable_FC=yes
14068 fi
14069
14070 archive_cmds_need_lc_FC=no
14071 allow_undefined_flag_FC=
14072 always_export_symbols_FC=no
14073 archive_expsym_cmds_FC=
14074 export_dynamic_flag_spec_FC=
14075 hardcode_direct_FC=no
14076 hardcode_direct_absolute_FC=no
14077 hardcode_libdir_flag_spec_FC=
14078 hardcode_libdir_separator_FC=
14079 hardcode_minus_L_FC=no
14080 hardcode_automatic_FC=no
14081 inherit_rpath_FC=no
14082 module_cmds_FC=
14083 module_expsym_cmds_FC=
14084 link_all_deplibs_FC=unknown
14085 old_archive_cmds_FC=$old_archive_cmds
14086 reload_flag_FC=$reload_flag
14087 reload_cmds_FC=$reload_cmds
14088 no_undefined_flag_FC=
14089 whole_archive_flag_spec_FC=
14090 enable_shared_with_static_runtimes_FC=no
14091
14092 # Source file extension for fc test sources.
14093 ac_ext=${ac_fc_srcext-f}
14094
14095 # Object file extension for compiled fc test sources.
14096 objext=o
14097 objext_FC=$objext
14098
14099 # No sense in running all these tests if we already determined that
14100 # the FC compiler isn't working. Some variables (like enable_shared)
14101 # are currently assumed to apply to all compilers on this platform,
14102 # and will be corrupted by setting them based on a non-working compiler.
14103 if test yes != "$_lt_disable_FC"; then
14104 # Code to be used in simple compile tests
14105 lt_simple_compile_test_code="\
14106 subroutine t
14107 return
14108 end
14109 "
14110
14111 # Code to be used in simple link tests
14112 lt_simple_link_test_code="\
14113 program t
14114 end
14115 "
14116
14117 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14118
14119
14120
14121
14122
14123
14124 # If no C compiler was specified, use CC.
14125 LTCC=${LTCC-"$CC"}
14126
14127 # If no C compiler flags were specified, use CFLAGS.
14128 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14129
14130 # Allow CC to be a program name with arguments.
14131 compiler=$CC
14132
14133
14134 # save warnings/boilerplate of simple test code
14135 ac_outfile=conftest.$ac_objext
14136 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14137 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14138 _lt_compiler_boilerplate=`cat conftest.err`
14139 $RM conftest*
14140
14141 ac_outfile=conftest.$ac_objext
14142 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14143 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14144 _lt_linker_boilerplate=`cat conftest.err`
14145 $RM -r conftest*
14146
14147
14148 # Allow CC to be a program name with arguments.
14149 lt_save_CC=$CC
14150 lt_save_GCC=$GCC
14151 lt_save_CFLAGS=$CFLAGS
14152 CC=${FC-"f95"}
14153 CFLAGS=$FCFLAGS
14154 compiler=$CC
14155 GCC=$ac_cv_fc_compiler_gnu
14156
14157 compiler_FC=$CC
14158 func_cc_basename $compiler
14159 cc_basename=$func_cc_basename_result
14160
14161
14162 if test -n "$compiler"; then
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14164 printf %s "checking if libtool supports shared libraries... " >&6; }
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14166 printf "%s\n" "$can_build_shared" >&6; }
14167
14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14169 printf %s "checking whether to build shared libraries... " >&6; }
14170 test no = "$can_build_shared" && enable_shared=no
14171
14172 # On AIX, shared libraries and static libraries use the same namespace, and
14173 # are all built from PIC.
14174 case $host_os in
14175 aix3*)
14176 test yes = "$enable_shared" && enable_static=no
14177 if test -n "$RANLIB"; then
14178 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14179 postinstall_cmds='$RANLIB $lib'
14180 fi
14181 ;;
14182 aix[4-9]*)
14183 if test ia64 != "$host_cpu"; then
14184 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14185 yes,aix,yes) ;; # shared object as lib.so file only
14186 yes,svr4,*) ;; # shared object as lib.so archive member only
14187 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14188 esac
14189 fi
14190 ;;
14191 esac
14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14193 printf "%s\n" "$enable_shared" >&6; }
14194
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14196 printf %s "checking whether to build static libraries... " >&6; }
14197 # Make sure either enable_shared or enable_static is yes.
14198 test yes = "$enable_shared" || enable_static=yes
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14200 printf "%s\n" "$enable_static" >&6; }
14201
14202 GCC_FC=$ac_cv_fc_compiler_gnu
14203 LD_FC=$LD
14204
14205 ## CAVEAT EMPTOR:
14206 ## There is no encapsulation within the following macros, do not change
14207 ## the running order or otherwise move them around unless you know exactly
14208 ## what you are doing...
14209 # Dependencies to place before and after the object being linked:
14210 predep_objects_FC=
14211 postdep_objects_FC=
14212 predeps_FC=
14213 postdeps_FC=
14214 compiler_lib_search_path_FC=
14215
14216 cat > conftest.$ac_ext <<_LT_EOF
14217 subroutine foo
14218 implicit none
14219 integer a
14220 a=0
14221 return
14222 end
14223 _LT_EOF
14224
14225
14226 _lt_libdeps_save_CFLAGS=$CFLAGS
14227 case "$CC $CFLAGS " in #(
14228 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14229 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14230 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14231 esac
14232
14233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14234 (eval $ac_compile) 2>&5
14235 ac_status=$?
14236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237 test $ac_status = 0; }; then
14238 # Parse the compiler output and extract the necessary
14239 # objects, libraries and library flags.
14240
14241 # Sentinel used to keep track of whether or not we are before
14242 # the conftest object file.
14243 pre_test_object_deps_done=no
14244
14245 for p in `eval "$output_verbose_link_cmd"`; do
14246 case $prev$p in
14247
14248 -L* | -R* | -l*)
14249 # Some compilers place space between "-{L,R}" and the path.
14250 # Remove the space.
14251 if test x-L = "$p" ||
14252 test x-R = "$p"; then
14253 prev=$p
14254 continue
14255 fi
14256
14257 # Expand the sysroot to ease extracting the directories later.
14258 if test -z "$prev"; then
14259 case $p in
14260 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14261 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14262 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14263 esac
14264 fi
14265 case $p in
14266 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14267 esac
14268 if test no = "$pre_test_object_deps_done"; then
14269 case $prev in
14270 -L | -R)
14271 # Internal compiler library paths should come after those
14272 # provided the user. The postdeps already come after the
14273 # user supplied libs so there is no need to process them.
14274 if test -z "$compiler_lib_search_path_FC"; then
14275 compiler_lib_search_path_FC=$prev$p
14276 else
14277 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p"
14278 fi
14279 ;;
14280 # The "-l" case would never come before the object being
14281 # linked, so don't bother handling this case.
14282 esac
14283 else
14284 if test -z "$postdeps_FC"; then
14285 postdeps_FC=$prev$p
14286 else
14287 postdeps_FC="${postdeps_FC} $prev$p"
14288 fi
14289 fi
14290 prev=
14291 ;;
14292
14293 *.lto.$objext) ;; # Ignore GCC LTO objects
14294 *.$objext)
14295 # This assumes that the test object file only shows up
14296 # once in the compiler output.
14297 if test "$p" = "conftest.$objext"; then
14298 pre_test_object_deps_done=yes
14299 continue
14300 fi
14301
14302 if test no = "$pre_test_object_deps_done"; then
14303 if test -z "$predep_objects_FC"; then
14304 predep_objects_FC=$p
14305 else
14306 predep_objects_FC="$predep_objects_FC $p"
14307 fi
14308 else
14309 if test -z "$postdep_objects_FC"; then
14310 postdep_objects_FC=$p
14311 else
14312 postdep_objects_FC="$postdep_objects_FC $p"
14313 fi
14314 fi
14315 ;;
14316
14317 *) ;; # Ignore the rest.
14318
14319 esac
14320 done
14321
14322 # Clean up.
14323 rm -f a.out a.exe
14324 else
14325 echo "libtool.m4: error: problem compiling FC test program"
14326 fi
14327
14328 $RM -f confest.$objext
14329 CFLAGS=$_lt_libdeps_save_CFLAGS
14330
14331 # PORTME: override above test on systems where it is broken
14332
14333
14334 case " $postdeps_FC " in
14335 *" -lc "*) archive_cmds_need_lc_FC=no ;;
14336 esac
14337 compiler_lib_search_dirs_FC=
14338 if test -n "${compiler_lib_search_path_FC}"; then
14339 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14340 fi
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372 lt_prog_compiler_wl_FC=
14373 lt_prog_compiler_pic_FC=
14374 lt_prog_compiler_static_FC=
14375
14376
14377 if test yes = "$GCC"; then
14378 lt_prog_compiler_wl_FC='-Wl,'
14379 lt_prog_compiler_static_FC='-static'
14380
14381 case $host_os in
14382 aix*)
14383 # All AIX code is PIC.
14384 if test ia64 = "$host_cpu"; then
14385 # AIX 5 now supports IA64 processor
14386 lt_prog_compiler_static_FC='-Bstatic'
14387 fi
14388 lt_prog_compiler_pic_FC='-fPIC'
14389 ;;
14390
14391 amigaos*)
14392 case $host_cpu in
14393 powerpc)
14394 # see comment about AmigaOS4 .so support
14395 lt_prog_compiler_pic_FC='-fPIC'
14396 ;;
14397 m68k)
14398 # FIXME: we need at least 68020 code to build shared libraries, but
14399 # adding the '-m68020' flag to GCC prevents building anything better,
14400 # like '-m68040'.
14401 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
14402 ;;
14403 esac
14404 ;;
14405
14406 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14407 # PIC is the default for these OSes.
14408 ;;
14409
14410 mingw* | cygwin* | pw32* | os2* | cegcc*)
14411 # This hack is so that the source file can tell whether it is being
14412 # built for inclusion in a dll (and should export symbols for example).
14413 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14414 # (--disable-auto-import) libraries
14415 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
14416 case $host_os in
14417 os2*)
14418 lt_prog_compiler_static_FC='$wl-static'
14419 ;;
14420 esac
14421 ;;
14422
14423 darwin* | rhapsody*)
14424 # PIC is the default on this platform
14425 # Common symbols not allowed in MH_DYLIB files
14426 lt_prog_compiler_pic_FC='-fno-common'
14427 ;;
14428
14429 haiku*)
14430 # PIC is the default for Haiku.
14431 # The "-static" flag exists, but is broken.
14432 lt_prog_compiler_static_FC=
14433 ;;
14434
14435 hpux*)
14436 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14437 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14438 # sets the default TLS model and affects inlining.
14439 case $host_cpu in
14440 hppa*64*)
14441 # +Z the default
14442 ;;
14443 *)
14444 lt_prog_compiler_pic_FC='-fPIC'
14445 ;;
14446 esac
14447 ;;
14448
14449 interix[3-9]*)
14450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14451 # Instead, we relocate shared libraries at runtime.
14452 ;;
14453
14454 msdosdjgpp*)
14455 # Just because we use GCC doesn't mean we suddenly get shared libraries
14456 # on systems that don't support them.
14457 lt_prog_compiler_can_build_shared_FC=no
14458 enable_shared=no
14459 ;;
14460
14461 *nto* | *qnx*)
14462 # QNX uses GNU C++, but need to define -shared option too, otherwise
14463 # it will coredump.
14464 lt_prog_compiler_pic_FC='-fPIC -shared'
14465 ;;
14466
14467 sysv4*MP*)
14468 if test -d /usr/nec; then
14469 lt_prog_compiler_pic_FC=-Kconform_pic
14470 fi
14471 ;;
14472
14473 *)
14474 lt_prog_compiler_pic_FC='-fPIC'
14475 ;;
14476 esac
14477
14478 case $cc_basename in
14479 nvcc*) # Cuda Compiler Driver 2.2
14480 lt_prog_compiler_wl_FC='-Xlinker '
14481 if test -n "$lt_prog_compiler_pic_FC"; then
14482 lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
14483 fi
14484 ;;
14485 esac
14486 else
14487 # PORTME Check for flag to pass linker flags through the system compiler.
14488 case $host_os in
14489 aix*)
14490 lt_prog_compiler_wl_FC='-Wl,'
14491 if test ia64 = "$host_cpu"; then
14492 # AIX 5 now supports IA64 processor
14493 lt_prog_compiler_static_FC='-Bstatic'
14494 else
14495 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
14496 fi
14497 ;;
14498
14499 darwin* | rhapsody*)
14500 # PIC is the default on this platform
14501 # Common symbols not allowed in MH_DYLIB files
14502 lt_prog_compiler_pic_FC='-fno-common'
14503 case $cc_basename in
14504 nagfor*)
14505 # NAG Fortran compiler
14506 lt_prog_compiler_wl_FC='-Wl,-Wl,,'
14507 lt_prog_compiler_pic_FC='-PIC'
14508 lt_prog_compiler_static_FC='-Bstatic'
14509 ;;
14510 esac
14511 ;;
14512
14513 mingw* | cygwin* | pw32* | os2* | cegcc*)
14514 # This hack is so that the source file can tell whether it is being
14515 # built for inclusion in a dll (and should export symbols for example).
14516 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
14517 case $host_os in
14518 os2*)
14519 lt_prog_compiler_static_FC='$wl-static'
14520 ;;
14521 esac
14522 ;;
14523
14524 hpux9* | hpux10* | hpux11*)
14525 lt_prog_compiler_wl_FC='-Wl,'
14526 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14527 # not for PA HP-UX.
14528 case $host_cpu in
14529 hppa*64*|ia64*)
14530 # +Z the default
14531 ;;
14532 *)
14533 lt_prog_compiler_pic_FC='+Z'
14534 ;;
14535 esac
14536 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14537 lt_prog_compiler_static_FC='$wl-a ${wl}archive'
14538 ;;
14539
14540 irix5* | irix6* | nonstopux*)
14541 lt_prog_compiler_wl_FC='-Wl,'
14542 # PIC (with -KPIC) is the default.
14543 lt_prog_compiler_static_FC='-non_shared'
14544 ;;
14545
14546 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14547 case $cc_basename in
14548 # old Intel for x86_64, which still supported -KPIC.
14549 ecc*)
14550 lt_prog_compiler_wl_FC='-Wl,'
14551 lt_prog_compiler_pic_FC='-KPIC'
14552 lt_prog_compiler_static_FC='-static'
14553 ;;
14554 # flang / f18. f95 an alias for gfortran or flang on Debian
14555 flang* | f18* | f95*)
14556 lt_prog_compiler_wl_FC='-Wl,'
14557 lt_prog_compiler_pic_FC='-fPIC'
14558 lt_prog_compiler_static_FC='-static'
14559 ;;
14560 # icc used to be incompatible with GCC.
14561 # ICC 10 doesn't accept -KPIC any more.
14562 icc* | ifort*)
14563 lt_prog_compiler_wl_FC='-Wl,'
14564 lt_prog_compiler_pic_FC='-fPIC'
14565 lt_prog_compiler_static_FC='-static'
14566 ;;
14567 # Lahey Fortran 8.1.
14568 lf95*)
14569 lt_prog_compiler_wl_FC='-Wl,'
14570 lt_prog_compiler_pic_FC='--shared'
14571 lt_prog_compiler_static_FC='--static'
14572 ;;
14573 nagfor*)
14574 # NAG Fortran compiler
14575 lt_prog_compiler_wl_FC='-Wl,-Wl,,'
14576 lt_prog_compiler_pic_FC='-PIC'
14577 lt_prog_compiler_static_FC='-Bstatic'
14578 ;;
14579 tcc*)
14580 # Fabrice Bellard et al's Tiny C Compiler
14581 lt_prog_compiler_wl_FC='-Wl,'
14582 lt_prog_compiler_pic_FC='-fPIC'
14583 lt_prog_compiler_static_FC='-static'
14584 ;;
14585 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14586 # Portland Group compilers (*not* the Pentium gcc compiler,
14587 # which looks to be a dead project)
14588 lt_prog_compiler_wl_FC='-Wl,'
14589 lt_prog_compiler_pic_FC='-fpic'
14590 lt_prog_compiler_static_FC='-Bstatic'
14591 ;;
14592 ccc*)
14593 lt_prog_compiler_wl_FC='-Wl,'
14594 # All Alpha code is PIC.
14595 lt_prog_compiler_static_FC='-non_shared'
14596 ;;
14597 xl* | bgxl* | bgf* | mpixl*)
14598 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14599 lt_prog_compiler_wl_FC='-Wl,'
14600 lt_prog_compiler_pic_FC='-qpic'
14601 lt_prog_compiler_static_FC='-qstaticlink'
14602 ;;
14603 *)
14604 case `$CC -V 2>&1 | $SED 5q` in
14605 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14606 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14607 lt_prog_compiler_pic_FC='-KPIC'
14608 lt_prog_compiler_static_FC='-Bstatic'
14609 lt_prog_compiler_wl_FC=''
14610 ;;
14611 *Sun\ F* | *Sun*Fortran*)
14612 lt_prog_compiler_pic_FC='-KPIC'
14613 lt_prog_compiler_static_FC='-Bstatic'
14614 lt_prog_compiler_wl_FC='-Qoption ld '
14615 ;;
14616 *Sun\ C*)
14617 # Sun C 5.9
14618 lt_prog_compiler_pic_FC='-KPIC'
14619 lt_prog_compiler_static_FC='-Bstatic'
14620 lt_prog_compiler_wl_FC='-Wl,'
14621 ;;
14622 *Intel*\ [CF]*Compiler*)
14623 lt_prog_compiler_wl_FC='-Wl,'
14624 lt_prog_compiler_pic_FC='-fPIC'
14625 lt_prog_compiler_static_FC='-static'
14626 ;;
14627 *Portland\ Group*)
14628 lt_prog_compiler_wl_FC='-Wl,'
14629 lt_prog_compiler_pic_FC='-fpic'
14630 lt_prog_compiler_static_FC='-Bstatic'
14631 ;;
14632 esac
14633 ;;
14634 esac
14635 ;;
14636
14637 newsos6)
14638 lt_prog_compiler_pic_FC='-KPIC'
14639 lt_prog_compiler_static_FC='-Bstatic'
14640 ;;
14641
14642 *nto* | *qnx*)
14643 # QNX uses GNU C++, but need to define -shared option too, otherwise
14644 # it will coredump.
14645 lt_prog_compiler_pic_FC='-fPIC -shared'
14646 ;;
14647
14648 osf3* | osf4* | osf5*)
14649 lt_prog_compiler_wl_FC='-Wl,'
14650 # All OSF/1 code is PIC.
14651 lt_prog_compiler_static_FC='-non_shared'
14652 ;;
14653
14654 rdos*)
14655 lt_prog_compiler_static_FC='-non_shared'
14656 ;;
14657
14658 solaris*)
14659 lt_prog_compiler_pic_FC='-KPIC'
14660 lt_prog_compiler_static_FC='-Bstatic'
14661 case $cc_basename in
14662 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14663 lt_prog_compiler_wl_FC='-Qoption ld ';;
14664 *)
14665 lt_prog_compiler_wl_FC='-Wl,';;
14666 esac
14667 ;;
14668
14669 sunos4*)
14670 lt_prog_compiler_wl_FC='-Qoption ld '
14671 lt_prog_compiler_pic_FC='-PIC'
14672 lt_prog_compiler_static_FC='-Bstatic'
14673 ;;
14674
14675 sysv4 | sysv4.2uw2* | sysv4.3*)
14676 lt_prog_compiler_wl_FC='-Wl,'
14677 lt_prog_compiler_pic_FC='-KPIC'
14678 lt_prog_compiler_static_FC='-Bstatic'
14679 ;;
14680
14681 sysv4*MP*)
14682 if test -d /usr/nec; then
14683 lt_prog_compiler_pic_FC='-Kconform_pic'
14684 lt_prog_compiler_static_FC='-Bstatic'
14685 fi
14686 ;;
14687
14688 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14689 lt_prog_compiler_wl_FC='-Wl,'
14690 lt_prog_compiler_pic_FC='-KPIC'
14691 lt_prog_compiler_static_FC='-Bstatic'
14692 ;;
14693
14694 unicos*)
14695 lt_prog_compiler_wl_FC='-Wl,'
14696 lt_prog_compiler_can_build_shared_FC=no
14697 ;;
14698
14699 uts4*)
14700 lt_prog_compiler_pic_FC='-pic'
14701 lt_prog_compiler_static_FC='-Bstatic'
14702 ;;
14703
14704 *)
14705 lt_prog_compiler_can_build_shared_FC=no
14706 ;;
14707 esac
14708 fi
14709
14710 case $host_os in
14711 # For platforms that do not support PIC, -DPIC is meaningless:
14712 *djgpp*)
14713 lt_prog_compiler_pic_FC=
14714 ;;
14715 *)
14716 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
14717 ;;
14718 esac
14719
14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14721 printf %s "checking for $compiler option to produce PIC... " >&6; }
14722 if test ${lt_cv_prog_compiler_pic_FC+y}
14723 then :
14724 printf %s "(cached) " >&6
14725 else $as_nop
14726 lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
14727 fi
14728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
14729 printf "%s\n" "$lt_cv_prog_compiler_pic_FC" >&6; }
14730 lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
14731
14732 #
14733 # Check to make sure the PIC flag actually works.
14734 #
14735 if test -n "$lt_prog_compiler_pic_FC"; then
14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
14737 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
14738 if test ${lt_cv_prog_compiler_pic_works_FC+y}
14739 then :
14740 printf %s "(cached) " >&6
14741 else $as_nop
14742 lt_cv_prog_compiler_pic_works_FC=no
14743 ac_outfile=conftest.$ac_objext
14744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14745 lt_compiler_flag="$lt_prog_compiler_pic_FC" ## exclude from sc_useless_quotes_in_assignment
14746 # Insert the option either (1) after the last *FLAGS variable, or
14747 # (2) before a word containing "conftest.", or (3) at the end.
14748 # Note that $ac_compile itself does not contain backslashes and begins
14749 # with a dollar sign (not a hyphen), so the echo should work correctly.
14750 # The option is referenced via a variable to avoid confusing sed.
14751 lt_compile=`echo "$ac_compile" | $SED \
14752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14754 -e 's:$: $lt_compiler_flag:'`
14755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14756 (eval "$lt_compile" 2>conftest.err)
14757 ac_status=$?
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 if (exit $ac_status) && test -s "$ac_outfile"; then
14761 # The compiler can only warn and ignore the option if not recognized
14762 # So say no if there are warnings other than the usual output.
14763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14766 lt_cv_prog_compiler_pic_works_FC=yes
14767 fi
14768 fi
14769 $RM conftest*
14770
14771 fi
14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
14773 printf "%s\n" "$lt_cv_prog_compiler_pic_works_FC" >&6; }
14774
14775 if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then
14776 case $lt_prog_compiler_pic_FC in
14777 "" | " "*) ;;
14778 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
14779 esac
14780 else
14781 lt_prog_compiler_pic_FC=
14782 lt_prog_compiler_can_build_shared_FC=no
14783 fi
14784
14785 fi
14786
14787
14788
14789
14790
14791 #
14792 # Check to make sure the static flag actually works.
14793 #
14794 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
14795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14796 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14797 if test ${lt_cv_prog_compiler_static_works_FC+y}
14798 then :
14799 printf %s "(cached) " >&6
14800 else $as_nop
14801 lt_cv_prog_compiler_static_works_FC=no
14802 save_LDFLAGS=$LDFLAGS
14803 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14804 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14805 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14806 # The linker can only warn and ignore the option if not recognized
14807 # So say no if there are warnings
14808 if test -s conftest.err; then
14809 # Append any errors to the config.log.
14810 cat conftest.err 1>&5
14811 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14813 if diff conftest.exp conftest.er2 >/dev/null; then
14814 lt_cv_prog_compiler_static_works_FC=yes
14815 fi
14816 else
14817 lt_cv_prog_compiler_static_works_FC=yes
14818 fi
14819 fi
14820 $RM -r conftest*
14821 LDFLAGS=$save_LDFLAGS
14822
14823 fi
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
14825 printf "%s\n" "$lt_cv_prog_compiler_static_works_FC" >&6; }
14826
14827 if test yes = "$lt_cv_prog_compiler_static_works_FC"; then
14828 :
14829 else
14830 lt_prog_compiler_static_FC=
14831 fi
14832
14833
14834
14835
14836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14837 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14838 if test ${lt_cv_prog_compiler_c_o_FC+y}
14839 then :
14840 printf %s "(cached) " >&6
14841 else $as_nop
14842 lt_cv_prog_compiler_c_o_FC=no
14843 $RM -r conftest 2>/dev/null
14844 mkdir conftest
14845 cd conftest
14846 mkdir out
14847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14848
14849 lt_compiler_flag="-o out/conftest2.$ac_objext"
14850 # Insert the option either (1) after the last *FLAGS variable, or
14851 # (2) before a word containing "conftest.", or (3) at the end.
14852 # Note that $ac_compile itself does not contain backslashes and begins
14853 # with a dollar sign (not a hyphen), so the echo should work correctly.
14854 lt_compile=`echo "$ac_compile" | $SED \
14855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14857 -e 's:$: $lt_compiler_flag:'`
14858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14859 (eval "$lt_compile" 2>out/conftest.err)
14860 ac_status=$?
14861 cat out/conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14864 then
14865 # The compiler can only warn and ignore the option if not recognized
14866 # So say no if there are warnings
14867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14870 lt_cv_prog_compiler_c_o_FC=yes
14871 fi
14872 fi
14873 chmod u+w . 2>&5
14874 $RM conftest*
14875 # SGI C++ compiler will create directory out/ii_files/ for
14876 # template instantiation
14877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14878 $RM out/* && rmdir out
14879 cd ..
14880 $RM -r conftest
14881 $RM conftest*
14882
14883 fi
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14885 printf "%s\n" "$lt_cv_prog_compiler_c_o_FC" >&6; }
14886
14887
14888
14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14890 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14891 if test ${lt_cv_prog_compiler_c_o_FC+y}
14892 then :
14893 printf %s "(cached) " >&6
14894 else $as_nop
14895 lt_cv_prog_compiler_c_o_FC=no
14896 $RM -r conftest 2>/dev/null
14897 mkdir conftest
14898 cd conftest
14899 mkdir out
14900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14901
14902 lt_compiler_flag="-o out/conftest2.$ac_objext"
14903 # Insert the option either (1) after the last *FLAGS variable, or
14904 # (2) before a word containing "conftest.", or (3) at the end.
14905 # Note that $ac_compile itself does not contain backslashes and begins
14906 # with a dollar sign (not a hyphen), so the echo should work correctly.
14907 lt_compile=`echo "$ac_compile" | $SED \
14908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14910 -e 's:$: $lt_compiler_flag:'`
14911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14912 (eval "$lt_compile" 2>out/conftest.err)
14913 ac_status=$?
14914 cat out/conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14917 then
14918 # The compiler can only warn and ignore the option if not recognized
14919 # So say no if there are warnings
14920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14923 lt_cv_prog_compiler_c_o_FC=yes
14924 fi
14925 fi
14926 chmod u+w . 2>&5
14927 $RM conftest*
14928 # SGI C++ compiler will create directory out/ii_files/ for
14929 # template instantiation
14930 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14931 $RM out/* && rmdir out
14932 cd ..
14933 $RM -r conftest
14934 $RM conftest*
14935
14936 fi
14937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
14938 printf "%s\n" "$lt_cv_prog_compiler_c_o_FC" >&6; }
14939
14940
14941
14942
14943 hard_links=nottested
14944 if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then
14945 # do not overwrite the value of need_locks provided by the user
14946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14947 printf %s "checking if we can lock with hard links... " >&6; }
14948 hard_links=yes
14949 $RM conftest*
14950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14951 touch conftest.a
14952 ln conftest.a conftest.b 2>&5 || hard_links=no
14953 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14955 printf "%s\n" "$hard_links" >&6; }
14956 if test no = "$hard_links"; then
14957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14958 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14959 need_locks=warn
14960 fi
14961 else
14962 need_locks=no
14963 fi
14964
14965
14966
14967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14968 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14969
14970 runpath_var=
14971 allow_undefined_flag_FC=
14972 always_export_symbols_FC=no
14973 archive_cmds_FC=
14974 archive_expsym_cmds_FC=
14975 compiler_needs_object_FC=no
14976 enable_shared_with_static_runtimes_FC=no
14977 export_dynamic_flag_spec_FC=
14978 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14979 hardcode_automatic_FC=no
14980 hardcode_direct_FC=no
14981 hardcode_direct_absolute_FC=no
14982 hardcode_libdir_flag_spec_FC=
14983 hardcode_libdir_separator_FC=
14984 hardcode_minus_L_FC=no
14985 hardcode_shlibpath_var_FC=unsupported
14986 inherit_rpath_FC=no
14987 link_all_deplibs_FC=unknown
14988 module_cmds_FC=
14989 module_expsym_cmds_FC=
14990 old_archive_from_new_cmds_FC=
14991 old_archive_from_expsyms_cmds_FC=
14992 thread_safe_flag_spec_FC=
14993 whole_archive_flag_spec_FC=
14994 # include_expsyms should be a list of space-separated symbols to be *always*
14995 # included in the symbol list
14996 include_expsyms_FC=
14997 # exclude_expsyms can be an extended regexp of symbols to exclude
14998 # it will be wrapped by ' (' and ')$', so one must not match beginning or
14999 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15000 # as well as any symbol that contains 'd'.
15001 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15002 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15003 # platforms (ab)use it in PIC code, but their linkers get confused if
15004 # the symbol is explicitly referenced. Since portable code cannot
15005 # rely on this symbol name, it's probably fine to never include it in
15006 # preloaded symbol tables.
15007 # Exclude shared library initialization/finalization symbols.
15008 extract_expsyms_cmds=
15009
15010 case $host_os in
15011 cygwin* | mingw* | pw32* | cegcc*)
15012 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
15013 # When not using gcc, we currently assume that we are using
15014 # Microsoft Visual C++ or Intel C++ Compiler.
15015 if test yes != "$GCC"; then
15016 with_gnu_ld=no
15017 fi
15018 ;;
15019 interix*)
15020 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
15021 with_gnu_ld=yes
15022 ;;
15023 openbsd* | bitrig*)
15024 with_gnu_ld=no
15025 ;;
15026 linux* | k*bsd*-gnu | gnu*)
15027 link_all_deplibs_FC=no
15028 ;;
15029 esac
15030
15031 ld_shlibs_FC=yes
15032
15033 # On some targets, GNU ld is compatible enough with the native linker
15034 # that we're better off using the native interface for both.
15035 lt_use_gnu_ld_interface=no
15036 if test yes = "$with_gnu_ld"; then
15037 case $host_os in
15038 aix*)
15039 # The AIX port of GNU ld has always aspired to compatibility
15040 # with the native linker. However, as the warning in the GNU ld
15041 # block says, versions before 2.19.5* couldn't really create working
15042 # shared libraries, regardless of the interface used.
15043 case `$LD -v 2>&1` in
15044 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15045 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15046 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15047 *)
15048 lt_use_gnu_ld_interface=yes
15049 ;;
15050 esac
15051 ;;
15052 *)
15053 lt_use_gnu_ld_interface=yes
15054 ;;
15055 esac
15056 fi
15057
15058 if test yes = "$lt_use_gnu_ld_interface"; then
15059 # If archive_cmds runs LD, not CC, wlarc should be empty
15060 wlarc='$wl'
15061
15062 # Set some defaults for GNU ld with shared library support. These
15063 # are reset later if shared libraries are not supported. Putting them
15064 # here allows them to be overridden if necessary.
15065 runpath_var=LD_RUN_PATH
15066 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
15067 export_dynamic_flag_spec_FC='$wl--export-dynamic'
15068 # ancient GNU ld didn't support --whole-archive et. al.
15069 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15070 whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15071 else
15072 whole_archive_flag_spec_FC=
15073 fi
15074 supports_anon_versioning=no
15075 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
15076 *GNU\ gold*) supports_anon_versioning=yes ;;
15077 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15078 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15079 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15080 *\ 2.11.*) ;; # other 2.11 versions
15081 *) supports_anon_versioning=yes ;;
15082 esac
15083
15084 # See if GNU ld supports shared libraries.
15085 case $host_os in
15086 aix[3-9]*)
15087 # On AIX/PPC, the GNU linker is very broken
15088 if test ia64 != "$host_cpu"; then
15089 ld_shlibs_FC=no
15090 cat <<_LT_EOF 1>&2
15091
15092 *** Warning: the GNU linker, at least up to release 2.19, is reported
15093 *** to be unable to reliably create shared libraries on AIX.
15094 *** Therefore, libtool is disabling shared libraries support. If you
15095 *** really care for shared libraries, you may want to install binutils
15096 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15097 *** You will then need to restart the configuration process.
15098
15099 _LT_EOF
15100 fi
15101 ;;
15102
15103 amigaos*)
15104 case $host_cpu in
15105 powerpc)
15106 # see comment about AmigaOS4 .so support
15107 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15108 archive_expsym_cmds_FC=''
15109 ;;
15110 m68k)
15111 archive_cmds_FC='$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)'
15112 hardcode_libdir_flag_spec_FC='-L$libdir'
15113 hardcode_minus_L_FC=yes
15114 ;;
15115 esac
15116 ;;
15117
15118 beos*)
15119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15120 allow_undefined_flag_FC=unsupported
15121 # Joseph Beckenbach <[email protected]> says some releases of gcc
15122 # support --undefined. This deserves some investigation. FIXME
15123 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15124 else
15125 ld_shlibs_FC=no
15126 fi
15127 ;;
15128
15129 cygwin* | mingw* | pw32* | cegcc*)
15130 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
15131 # as there is no search path for DLLs.
15132 hardcode_libdir_flag_spec_FC='-L$libdir'
15133 export_dynamic_flag_spec_FC='$wl--export-all-symbols'
15134 allow_undefined_flag_FC=unsupported
15135 always_export_symbols_FC=no
15136 enable_shared_with_static_runtimes_FC=yes
15137 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15138 exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15139
15140 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15141 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15142 # If the export-symbols file already is a .def file, use it as
15143 # is; otherwise, prepend EXPORTS...
15144 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15145 cp $export_symbols $output_objdir/$soname.def;
15146 else
15147 echo EXPORTS > $output_objdir/$soname.def;
15148 cat $export_symbols >> $output_objdir/$soname.def;
15149 fi~
15150 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15151 else
15152 ld_shlibs_FC=no
15153 fi
15154 ;;
15155
15156 haiku*)
15157 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15158 link_all_deplibs_FC=yes
15159 ;;
15160
15161 os2*)
15162 hardcode_libdir_flag_spec_FC='-L$libdir'
15163 hardcode_minus_L_FC=yes
15164 allow_undefined_flag_FC=unsupported
15165 shrext_cmds=.dll
15166 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15167 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15168 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15169 $ECHO EXPORTS >> $output_objdir/$libname.def~
15170 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15171 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15172 emximp -o $lib $output_objdir/$libname.def'
15173 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15174 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15175 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15176 $ECHO EXPORTS >> $output_objdir/$libname.def~
15177 prefix_cmds="$SED"~
15178 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15179 prefix_cmds="$prefix_cmds -e 1d";
15180 fi~
15181 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15182 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15183 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15184 emximp -o $lib $output_objdir/$libname.def'
15185 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15186 enable_shared_with_static_runtimes_FC=yes
15187 file_list_spec_FC='@'
15188 ;;
15189
15190 interix[3-9]*)
15191 hardcode_direct_FC=no
15192 hardcode_shlibpath_var_FC=no
15193 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
15194 export_dynamic_flag_spec_FC='$wl-E'
15195 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15196 # Instead, shared libraries are loaded at an image base (0x10000000 by
15197 # default) and relocated if they conflict, which is a slow very memory
15198 # consuming and fragmenting process. To avoid this, we pick a random,
15199 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15200 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15201 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15202 archive_expsym_cmds_FC='$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'
15203 ;;
15204
15205 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15206 tmp_diet=no
15207 if test linux-dietlibc = "$host_os"; then
15208 case $cc_basename in
15209 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15210 esac
15211 fi
15212 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15213 && test no = "$tmp_diet"
15214 then
15215 tmp_addflag=' $pic_flag'
15216 tmp_sharedflag='-shared'
15217 case $cc_basename,$host_cpu in
15218 pgcc*) # Portland Group C compiler
15219 whole_archive_flag_spec_FC='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15220 tmp_addflag=' $pic_flag'
15221 ;;
15222 pgf77* | pgf90* | pgf95* | pgfortran*)
15223 # Portland Group f77 and f90 compilers
15224 whole_archive_flag_spec_FC='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15225 tmp_addflag=' $pic_flag -Mnomain' ;;
15226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15227 tmp_addflag=' -i_dynamic' ;;
15228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15229 tmp_addflag=' -i_dynamic -nofor_main' ;;
15230 ifc* | ifort*) # Intel Fortran compiler
15231 tmp_addflag=' -nofor_main' ;;
15232 lf95*) # Lahey Fortran 8.1
15233 whole_archive_flag_spec_FC=
15234 tmp_sharedflag='--shared' ;;
15235 nagfor*) # NAGFOR 5.3
15236 tmp_sharedflag='-Wl,-shared' ;;
15237 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15238 tmp_sharedflag='-qmkshrobj'
15239 tmp_addflag= ;;
15240 nvcc*) # Cuda Compiler Driver 2.2
15241 whole_archive_flag_spec_FC='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15242 compiler_needs_object_FC=yes
15243 ;;
15244 esac
15245 case `$CC -V 2>&1 | $SED 5q` in
15246 *Sun\ C*) # Sun C 5.9
15247 whole_archive_flag_spec_FC='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15248 compiler_needs_object_FC=yes
15249 tmp_sharedflag='-G' ;;
15250 *Sun\ F*) # Sun Fortran 8.3
15251 tmp_sharedflag='-G' ;;
15252 esac
15253 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15254
15255 if test yes = "$supports_anon_versioning"; then
15256 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
15257 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15258 echo "local: *; };" >> $output_objdir/$libname.ver~
15259 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15260 fi
15261
15262 case $cc_basename in
15263 tcc*)
15264 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
15265 export_dynamic_flag_spec_FC='-rdynamic'
15266 ;;
15267 xlf* | bgf* | bgxlf* | mpixlf*)
15268 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15269 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
15270 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
15271 archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15272 if test yes = "$supports_anon_versioning"; then
15273 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
15274 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15275 echo "local: *; };" >> $output_objdir/$libname.ver~
15276 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15277 fi
15278 ;;
15279 esac
15280 else
15281 ld_shlibs_FC=no
15282 fi
15283 ;;
15284
15285 netbsd* | netbsdelf*-gnu)
15286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15287 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15288 wlarc=
15289 else
15290 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15291 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15292 fi
15293 ;;
15294
15295 solaris*)
15296 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15297 ld_shlibs_FC=no
15298 cat <<_LT_EOF 1>&2
15299
15300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15301 *** create shared libraries on Solaris systems. Therefore, libtool
15302 *** is disabling shared libraries support. We urge you to upgrade GNU
15303 *** binutils to release 2.9.1 or newer. Another option is to modify
15304 *** your PATH or compiler configuration so that the native linker is
15305 *** used, and then restart.
15306
15307 _LT_EOF
15308 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15309 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15310 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15311 else
15312 ld_shlibs_FC=no
15313 fi
15314 ;;
15315
15316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15317 case `$LD -v 2>&1` in
15318 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15319 ld_shlibs_FC=no
15320 cat <<_LT_EOF 1>&2
15321
15322 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15323 *** reliably create shared libraries on SCO systems. Therefore, libtool
15324 *** is disabling shared libraries support. We urge you to upgrade GNU
15325 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15326 *** your PATH or compiler configuration so that the native linker is
15327 *** used, and then restart.
15328
15329 _LT_EOF
15330 ;;
15331 *)
15332 # For security reasons, it is highly recommended that you always
15333 # use absolute paths for naming shared libraries, and exclude the
15334 # DT_RUNPATH tag from executables and libraries. But doing so
15335 # requires that you compile everything twice, which is a pain.
15336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15337 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
15338 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15339 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15340 else
15341 ld_shlibs_FC=no
15342 fi
15343 ;;
15344 esac
15345 ;;
15346
15347 sunos4*)
15348 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15349 wlarc=
15350 hardcode_direct_FC=yes
15351 hardcode_shlibpath_var_FC=no
15352 ;;
15353
15354 *)
15355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15356 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15357 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15358 else
15359 ld_shlibs_FC=no
15360 fi
15361 ;;
15362 esac
15363
15364 if test no = "$ld_shlibs_FC"; then
15365 runpath_var=
15366 hardcode_libdir_flag_spec_FC=
15367 export_dynamic_flag_spec_FC=
15368 whole_archive_flag_spec_FC=
15369 fi
15370 else
15371 # PORTME fill in a description of your system's linker (not GNU ld)
15372 case $host_os in
15373 aix3*)
15374 allow_undefined_flag_FC=unsupported
15375 always_export_symbols_FC=yes
15376 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15377 # Note: this linker hardcodes the directories in LIBPATH if there
15378 # are no directories specified by -L.
15379 hardcode_minus_L_FC=yes
15380 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15381 # Neither direct hardcoding nor static linking is supported with a
15382 # broken collect2.
15383 hardcode_direct_FC=unsupported
15384 fi
15385 ;;
15386
15387 aix[4-9]*)
15388 if test ia64 = "$host_cpu"; then
15389 # On IA64, the linker does run time linking by default, so we don't
15390 # have to do anything special.
15391 aix_use_runtimelinking=no
15392 exp_sym_flag='-Bexport'
15393 no_entry_flag=
15394 else
15395 # If we're using GNU nm, then we don't want the "-C" option.
15396 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15397 # Without the "-l" option, or with the "-B" option, AIX nm treats
15398 # weak defined symbols like other global defined symbols, whereas
15399 # GNU nm marks them as "W".
15400 # While the 'weak' keyword is ignored in the Export File, we need
15401 # it in the Import File for the 'aix-soname' feature, so we have
15402 # to replace the "-B" option with "-P" for AIX nm.
15403 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15404 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15405 else
15406 export_symbols_cmds_FC='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15407 fi
15408 aix_use_runtimelinking=no
15409
15410 # Test if we are trying to use run time linking or normal
15411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15412 # have runtime linking enabled, and use it for executables.
15413 # For shared libraries, we enable/disable runtime linking
15414 # depending on the kind of the shared library created -
15415 # when "with_aix_soname,aix_use_runtimelinking" is:
15416 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15417 # "aix,yes" lib.so shared, rtl:yes, for executables
15418 # lib.a static archive
15419 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15420 # lib.a(lib.so.V) shared, rtl:no, for executables
15421 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15422 # lib.a(lib.so.V) shared, rtl:no
15423 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15424 # lib.a static archive
15425 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15426 for ld_flag in $LDFLAGS; do
15427 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15428 aix_use_runtimelinking=yes
15429 break
15430 fi
15431 done
15432 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15433 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15434 # so we don't have lib.a shared libs to link our executables.
15435 # We have to force runtime linking in this case.
15436 aix_use_runtimelinking=yes
15437 LDFLAGS="$LDFLAGS -Wl,-brtl"
15438 fi
15439 ;;
15440 esac
15441
15442 exp_sym_flag='-bexport'
15443 no_entry_flag='-bnoentry'
15444 fi
15445
15446 # When large executables or shared objects are built, AIX ld can
15447 # have problems creating the table of contents. If linking a library
15448 # or program results in "error TOC overflow" add -mminimal-toc to
15449 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15450 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15451
15452 archive_cmds_FC=''
15453 hardcode_direct_FC=yes
15454 hardcode_direct_absolute_FC=yes
15455 hardcode_libdir_separator_FC=':'
15456 link_all_deplibs_FC=yes
15457 file_list_spec_FC='$wl-f,'
15458 case $with_aix_soname,$aix_use_runtimelinking in
15459 aix,*) ;; # traditional, no import file
15460 svr4,* | *,yes) # use import file
15461 # The Import File defines what to hardcode.
15462 hardcode_direct_FC=no
15463 hardcode_direct_absolute_FC=no
15464 ;;
15465 esac
15466
15467 if test yes = "$GCC"; then
15468 case $host_os in aix4.[012]|aix4.[012].*)
15469 # We only want to do this on AIX 4.2 and lower, the check
15470 # below for broken collect2 doesn't work under 4.3+
15471 collect2name=`$CC -print-prog-name=collect2`
15472 if test -f "$collect2name" &&
15473 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15474 then
15475 # We have reworked collect2
15476 :
15477 else
15478 # We have old collect2
15479 hardcode_direct_FC=unsupported
15480 # It fails to find uninstalled libraries when the uninstalled
15481 # path is not listed in the libpath. Setting hardcode_minus_L
15482 # to unsupported forces relinking
15483 hardcode_minus_L_FC=yes
15484 hardcode_libdir_flag_spec_FC='-L$libdir'
15485 hardcode_libdir_separator_FC=
15486 fi
15487 ;;
15488 esac
15489 shared_flag='-shared'
15490 if test yes = "$aix_use_runtimelinking"; then
15491 shared_flag="$shared_flag "'$wl-G'
15492 fi
15493 # Need to ensure runtime linking is disabled for the traditional
15494 # shared library, or the linker may eventually find shared libraries
15495 # /with/ Import File - we do not want to mix them.
15496 shared_flag_aix='-shared'
15497 shared_flag_svr4='-shared $wl-G'
15498 else
15499 # not using gcc
15500 if test ia64 = "$host_cpu"; then
15501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15502 # chokes on -Wl,-G. The following line is correct:
15503 shared_flag='-G'
15504 else
15505 if test yes = "$aix_use_runtimelinking"; then
15506 shared_flag='$wl-G'
15507 else
15508 shared_flag='$wl-bM:SRE'
15509 fi
15510 shared_flag_aix='$wl-bM:SRE'
15511 shared_flag_svr4='$wl-G'
15512 fi
15513 fi
15514
15515 export_dynamic_flag_spec_FC='$wl-bexpall'
15516 # It seems that -bexpall does not export symbols beginning with
15517 # underscore (_), so it is better to generate a list of symbols to export.
15518 always_export_symbols_FC=yes
15519 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15520 # Warning - without using the other runtime loading flags (-brtl),
15521 # -berok will link without error, but may produce a broken library.
15522 allow_undefined_flag_FC='-berok'
15523 # Determine the default libpath from the value encoded in an
15524 # empty executable.
15525 if test set = "${lt_cv_aix_libpath+set}"; then
15526 aix_libpath=$lt_cv_aix_libpath
15527 else
15528 if test ${lt_cv_aix_libpath__FC+y}
15529 then :
15530 printf %s "(cached) " >&6
15531 else $as_nop
15532 cat > conftest.$ac_ext <<_ACEOF
15533 program main
15534
15535 end
15536 _ACEOF
15537 if ac_fn_fc_try_link "$LINENO"
15538 then :
15539
15540 lt_aix_libpath_sed='
15541 /Import File Strings/,/^$/ {
15542 /^0/ {
15543 s/^0 *\([^ ]*\) *$/\1/
15544 p
15545 }
15546 }'
15547 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15548 # Check for a 64-bit object if we didn't find anything.
15549 if test -z "$lt_cv_aix_libpath__FC"; then
15550 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15551 fi
15552 fi
15553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15554 conftest$ac_exeext conftest.$ac_ext
15555 if test -z "$lt_cv_aix_libpath__FC"; then
15556 lt_cv_aix_libpath__FC=/usr/lib:/lib
15557 fi
15558
15559 fi
15560
15561 aix_libpath=$lt_cv_aix_libpath__FC
15562 fi
15563
15564 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
15565 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15566 else
15567 if test ia64 = "$host_cpu"; then
15568 hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib'
15569 allow_undefined_flag_FC="-z nodefs"
15570 archive_expsym_cmds_FC="\$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"
15571 else
15572 # Determine the default libpath from the value encoded in an
15573 # empty executable.
15574 if test set = "${lt_cv_aix_libpath+set}"; then
15575 aix_libpath=$lt_cv_aix_libpath
15576 else
15577 if test ${lt_cv_aix_libpath__FC+y}
15578 then :
15579 printf %s "(cached) " >&6
15580 else $as_nop
15581 cat > conftest.$ac_ext <<_ACEOF
15582 program main
15583
15584 end
15585 _ACEOF
15586 if ac_fn_fc_try_link "$LINENO"
15587 then :
15588
15589 lt_aix_libpath_sed='
15590 /Import File Strings/,/^$/ {
15591 /^0/ {
15592 s/^0 *\([^ ]*\) *$/\1/
15593 p
15594 }
15595 }'
15596 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15597 # Check for a 64-bit object if we didn't find anything.
15598 if test -z "$lt_cv_aix_libpath__FC"; then
15599 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15600 fi
15601 fi
15602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15603 conftest$ac_exeext conftest.$ac_ext
15604 if test -z "$lt_cv_aix_libpath__FC"; then
15605 lt_cv_aix_libpath__FC=/usr/lib:/lib
15606 fi
15607
15608 fi
15609
15610 aix_libpath=$lt_cv_aix_libpath__FC
15611 fi
15612
15613 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
15614 # Warning - without using the other run time loading flags,
15615 # -berok will link without error, but may produce a broken library.
15616 no_undefined_flag_FC=' $wl-bernotok'
15617 allow_undefined_flag_FC=' $wl-berok'
15618 if test yes = "$with_gnu_ld"; then
15619 # We only use this code for GNU lds that support --whole-archive.
15620 whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive'
15621 else
15622 # Exported symbols can be pulled into shared objects from archives
15623 whole_archive_flag_spec_FC='$convenience'
15624 fi
15625 archive_cmds_need_lc_FC=yes
15626 archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15627 # -brtl affects multiple linker settings, -berok does not and is overridden later
15628 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15629 if test svr4 != "$with_aix_soname"; then
15630 # This is similar to how AIX traditionally builds its shared libraries.
15631 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15632 fi
15633 if test aix != "$with_aix_soname"; then
15634 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15635 else
15636 # used by -dlpreopen to get the symbols
15637 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15638 fi
15639 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d'
15640 fi
15641 fi
15642 ;;
15643
15644 amigaos*)
15645 case $host_cpu in
15646 powerpc)
15647 # see comment about AmigaOS4 .so support
15648 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15649 archive_expsym_cmds_FC=''
15650 ;;
15651 m68k)
15652 archive_cmds_FC='$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)'
15653 hardcode_libdir_flag_spec_FC='-L$libdir'
15654 hardcode_minus_L_FC=yes
15655 ;;
15656 esac
15657 ;;
15658
15659 bsdi[45]*)
15660 export_dynamic_flag_spec_FC=-rdynamic
15661 ;;
15662
15663 cygwin* | mingw* | pw32* | cegcc*)
15664 # When not using gcc, we currently assume that we are using
15665 # Microsoft Visual C++ or Intel C++ Compiler.
15666 # hardcode_libdir_flag_spec is actually meaningless, as there is
15667 # no search path for DLLs.
15668 case $cc_basename in
15669 cl* | icl*)
15670 # Native MSVC or ICC
15671 hardcode_libdir_flag_spec_FC=' '
15672 allow_undefined_flag_FC=unsupported
15673 always_export_symbols_FC=yes
15674 file_list_spec_FC='@'
15675 # Tell ltmain to make .lib files, not .a files.
15676 libext=lib
15677 # Tell ltmain to make .dll files, not .so files.
15678 shrext_cmds=.dll
15679 # FIXME: Setting linknames here is a bad hack.
15680 archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15681 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15682 cp "$export_symbols" "$output_objdir/$soname.def";
15683 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15684 else
15685 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15686 fi~
15687 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15688 linknames='
15689 # The linker will not automatically build a static lib if we build a DLL.
15690 # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
15691 enable_shared_with_static_runtimes_FC=yes
15692 exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15693 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15694 # Don't use ranlib
15695 old_postinstall_cmds_FC='chmod 644 $oldlib'
15696 postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
15697 lt_tool_outputfile="@TOOL_OUTPUT@"~
15698 case $lt_outputfile in
15699 *.exe|*.EXE) ;;
15700 *)
15701 lt_outputfile=$lt_outputfile.exe
15702 lt_tool_outputfile=$lt_tool_outputfile.exe
15703 ;;
15704 esac~
15705 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15706 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15707 $RM "$lt_outputfile.manifest";
15708 fi'
15709 ;;
15710 *)
15711 # Assume MSVC and ICC wrapper
15712 hardcode_libdir_flag_spec_FC=' '
15713 allow_undefined_flag_FC=unsupported
15714 # Tell ltmain to make .lib files, not .a files.
15715 libext=lib
15716 # Tell ltmain to make .dll files, not .so files.
15717 shrext_cmds=.dll
15718 # FIXME: Setting linknames here is a bad hack.
15719 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15720 # The linker will automatically build a .lib file if we build a DLL.
15721 old_archive_from_new_cmds_FC='true'
15722 # FIXME: Should let the user specify the lib program.
15723 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
15724 enable_shared_with_static_runtimes_FC=yes
15725 ;;
15726 esac
15727 ;;
15728
15729 darwin* | rhapsody*)
15730
15731
15732 archive_cmds_need_lc_FC=no
15733 hardcode_direct_FC=no
15734 hardcode_automatic_FC=yes
15735 hardcode_shlibpath_var_FC=unsupported
15736 if test yes = "$lt_cv_ld_force_load"; then
15737 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15738 compiler_needs_object_FC=yes
15739 else
15740 whole_archive_flag_spec_FC=''
15741 fi
15742 link_all_deplibs_FC=yes
15743 allow_undefined_flag_FC=$_lt_dar_allow_undefined
15744 case $cc_basename in
15745 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15746 *) _lt_dar_can_shared=$GCC ;;
15747 esac
15748 if test yes = "$_lt_dar_can_shared"; then
15749 output_verbose_link_cmd=func_echo_all
15750 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15751 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15752 archive_expsym_cmds_FC="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15753 module_expsym_cmds_FC="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15754
15755 else
15756 ld_shlibs_FC=no
15757 fi
15758
15759 ;;
15760
15761 dgux*)
15762 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763 hardcode_libdir_flag_spec_FC='-L$libdir'
15764 hardcode_shlibpath_var_FC=no
15765 ;;
15766
15767 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15768 # support. Future versions do this automatically, but an explicit c++rt0.o
15769 # does not break anything, and helps significantly (at the cost of a little
15770 # extra space).
15771 freebsd2.2*)
15772 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15773 hardcode_libdir_flag_spec_FC='-R$libdir'
15774 hardcode_direct_FC=yes
15775 hardcode_shlibpath_var_FC=no
15776 ;;
15777
15778 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15779 freebsd2.*)
15780 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15781 hardcode_direct_FC=yes
15782 hardcode_minus_L_FC=yes
15783 hardcode_shlibpath_var_FC=no
15784 ;;
15785
15786 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15787 freebsd* | dragonfly* | midnightbsd*)
15788 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15789 hardcode_libdir_flag_spec_FC='-R$libdir'
15790 hardcode_direct_FC=yes
15791 hardcode_shlibpath_var_FC=no
15792 ;;
15793
15794 hpux9*)
15795 if test yes = "$GCC"; then
15796 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15797 else
15798 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15799 fi
15800 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
15801 hardcode_libdir_separator_FC=:
15802 hardcode_direct_FC=yes
15803
15804 # hardcode_minus_L: Not really in the search PATH,
15805 # but as the default location of the library.
15806 hardcode_minus_L_FC=yes
15807 export_dynamic_flag_spec_FC='$wl-E'
15808 ;;
15809
15810 hpux10*)
15811 if test yes,no = "$GCC,$with_gnu_ld"; then
15812 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15813 else
15814 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15815 fi
15816 if test no = "$with_gnu_ld"; then
15817 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
15818 hardcode_libdir_separator_FC=:
15819 hardcode_direct_FC=yes
15820 hardcode_direct_absolute_FC=yes
15821 export_dynamic_flag_spec_FC='$wl-E'
15822 # hardcode_minus_L: Not really in the search PATH,
15823 # but as the default location of the library.
15824 hardcode_minus_L_FC=yes
15825 fi
15826 ;;
15827
15828 hpux11*)
15829 if test yes,no = "$GCC,$with_gnu_ld"; then
15830 case $host_cpu in
15831 hppa*64*)
15832 archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15833 ;;
15834 ia64*)
15835 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15836 ;;
15837 *)
15838 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15839 ;;
15840 esac
15841 else
15842 case $host_cpu in
15843 hppa*64*)
15844 archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15845 ;;
15846 ia64*)
15847 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15848 ;;
15849 *)
15850 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15851 ;;
15852 esac
15853 fi
15854 if test no = "$with_gnu_ld"; then
15855 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
15856 hardcode_libdir_separator_FC=:
15857
15858 case $host_cpu in
15859 hppa*64*|ia64*)
15860 hardcode_direct_FC=no
15861 hardcode_shlibpath_var_FC=no
15862 ;;
15863 *)
15864 hardcode_direct_FC=yes
15865 hardcode_direct_absolute_FC=yes
15866 export_dynamic_flag_spec_FC='$wl-E'
15867
15868 # hardcode_minus_L: Not really in the search PATH,
15869 # but as the default location of the library.
15870 hardcode_minus_L_FC=yes
15871 ;;
15872 esac
15873 fi
15874 ;;
15875
15876 irix5* | irix6* | nonstopux*)
15877 if test yes = "$GCC"; then
15878 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15879 # Try to use the -exported_symbol ld option, if it does not
15880 # work, assume that -exports_file does not work either and
15881 # implicitly export all symbols.
15882 # This should be the same for all languages, so no per-tag cache variable.
15883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15884 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15885 if test ${lt_cv_irix_exported_symbol+y}
15886 then :
15887 printf %s "(cached) " >&6
15888 else $as_nop
15889 save_LDFLAGS=$LDFLAGS
15890 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
15891 cat > conftest.$ac_ext <<_ACEOF
15892
15893 subroutine foo
15894 end
15895 _ACEOF
15896 if ac_fn_fc_try_link "$LINENO"
15897 then :
15898 lt_cv_irix_exported_symbol=yes
15899 else $as_nop
15900 lt_cv_irix_exported_symbol=no
15901 fi
15902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15903 conftest$ac_exeext conftest.$ac_ext
15904 LDFLAGS=$save_LDFLAGS
15905 fi
15906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15907 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
15908 if test yes = "$lt_cv_irix_exported_symbol"; then
15909 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
15910 fi
15911 link_all_deplibs_FC=no
15912 else
15913 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15914 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
15915 fi
15916 archive_cmds_need_lc_FC='no'
15917 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
15918 hardcode_libdir_separator_FC=:
15919 inherit_rpath_FC=yes
15920 link_all_deplibs_FC=yes
15921 ;;
15922
15923 linux*)
15924 case $cc_basename in
15925 tcc*)
15926 # Fabrice Bellard et al's Tiny C Compiler
15927 ld_shlibs_FC=yes
15928 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15929 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
15930 ;;
15931 esac
15932 ;;
15933
15934 netbsd* | netbsdelf*-gnu)
15935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15936 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15937 else
15938 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15939 fi
15940 hardcode_libdir_flag_spec_FC='-R$libdir'
15941 hardcode_direct_FC=yes
15942 hardcode_shlibpath_var_FC=no
15943 ;;
15944
15945 newsos6)
15946 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15947 hardcode_direct_FC=yes
15948 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
15949 hardcode_libdir_separator_FC=:
15950 hardcode_shlibpath_var_FC=no
15951 ;;
15952
15953 *nto* | *qnx*)
15954 ;;
15955
15956 openbsd* | bitrig*)
15957 if test -f /usr/libexec/ld.so; then
15958 hardcode_direct_FC=yes
15959 hardcode_shlibpath_var_FC=no
15960 hardcode_direct_absolute_FC=yes
15961 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15962 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15963 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
15964 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
15965 export_dynamic_flag_spec_FC='$wl-E'
15966 else
15967 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15968 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
15969 fi
15970 else
15971 ld_shlibs_FC=no
15972 fi
15973 ;;
15974
15975 os2*)
15976 hardcode_libdir_flag_spec_FC='-L$libdir'
15977 hardcode_minus_L_FC=yes
15978 allow_undefined_flag_FC=unsupported
15979 shrext_cmds=.dll
15980 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15981 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15982 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15983 $ECHO EXPORTS >> $output_objdir/$libname.def~
15984 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15985 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15986 emximp -o $lib $output_objdir/$libname.def'
15987 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15988 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15989 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15990 $ECHO EXPORTS >> $output_objdir/$libname.def~
15991 prefix_cmds="$SED"~
15992 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15993 prefix_cmds="$prefix_cmds -e 1d";
15994 fi~
15995 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15996 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15997 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15998 emximp -o $lib $output_objdir/$libname.def'
15999 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16000 enable_shared_with_static_runtimes_FC=yes
16001 file_list_spec_FC='@'
16002 ;;
16003
16004 osf3*)
16005 if test yes = "$GCC"; then
16006 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
16007 archive_cmds_FC='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16008 else
16009 allow_undefined_flag_FC=' -expect_unresolved \*'
16010 archive_cmds_FC='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16011 fi
16012 archive_cmds_need_lc_FC='no'
16013 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
16014 hardcode_libdir_separator_FC=:
16015 ;;
16016
16017 osf4* | osf5*) # as osf3* with the addition of -msym flag
16018 if test yes = "$GCC"; then
16019 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
16020 archive_cmds_FC='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
16021 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
16022 else
16023 allow_undefined_flag_FC=' -expect_unresolved \*'
16024 archive_cmds_FC='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
16025 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
16026 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
16027
16028 # Both c and cxx compiler support -rpath directly
16029 hardcode_libdir_flag_spec_FC='-rpath $libdir'
16030 fi
16031 archive_cmds_need_lc_FC='no'
16032 hardcode_libdir_separator_FC=:
16033 ;;
16034
16035 solaris*)
16036 no_undefined_flag_FC=' -z defs'
16037 if test yes = "$GCC"; then
16038 wlarc='$wl'
16039 archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16040 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16041 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16042 else
16043 case `$CC -V 2>&1` in
16044 *"Compilers 5.0"*)
16045 wlarc=''
16046 archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16048 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16049 ;;
16050 *)
16051 wlarc='$wl'
16052 archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16053 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16054 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16055 ;;
16056 esac
16057 fi
16058 hardcode_libdir_flag_spec_FC='-R$libdir'
16059 hardcode_shlibpath_var_FC=no
16060 case $host_os in
16061 solaris2.[0-5] | solaris2.[0-5].*) ;;
16062 *)
16063 # The compiler driver will combine and reorder linker options,
16064 # but understands '-z linker_flag'. GCC discards it without '$wl',
16065 # but is careful enough not to reorder.
16066 # Supported since Solaris 2.6 (maybe 2.5.1?)
16067 if test yes = "$GCC"; then
16068 whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16069 else
16070 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
16071 fi
16072 ;;
16073 esac
16074 link_all_deplibs_FC=yes
16075 ;;
16076
16077 sunos4*)
16078 if test sequent = "$host_vendor"; then
16079 # Use $CC to link under sequent, because it throws in some extra .o
16080 # files that make .init and .fini sections work.
16081 archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16082 else
16083 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16084 fi
16085 hardcode_libdir_flag_spec_FC='-L$libdir'
16086 hardcode_direct_FC=yes
16087 hardcode_minus_L_FC=yes
16088 hardcode_shlibpath_var_FC=no
16089 ;;
16090
16091 sysv4)
16092 case $host_vendor in
16093 sni)
16094 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16095 hardcode_direct_FC=yes # is this really true???
16096 ;;
16097 siemens)
16098 ## LD is ld it makes a PLAMLIB
16099 ## CC just makes a GrossModule.
16100 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16101 reload_cmds_FC='$CC -r -o $output$reload_objs'
16102 hardcode_direct_FC=no
16103 ;;
16104 motorola)
16105 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16106 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
16107 ;;
16108 esac
16109 runpath_var='LD_RUN_PATH'
16110 hardcode_shlibpath_var_FC=no
16111 ;;
16112
16113 sysv4.3*)
16114 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_shlibpath_var_FC=no
16116 export_dynamic_flag_spec_FC='-Bexport'
16117 ;;
16118
16119 sysv4*MP*)
16120 if test -d /usr/nec; then
16121 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16122 hardcode_shlibpath_var_FC=no
16123 runpath_var=LD_RUN_PATH
16124 hardcode_runpath_var=yes
16125 ld_shlibs_FC=yes
16126 fi
16127 ;;
16128
16129 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16130 no_undefined_flag_FC='$wl-z,text'
16131 archive_cmds_need_lc_FC=no
16132 hardcode_shlibpath_var_FC=no
16133 runpath_var='LD_RUN_PATH'
16134
16135 if test yes = "$GCC"; then
16136 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16137 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138 else
16139 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16140 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16141 fi
16142 ;;
16143
16144 sysv5* | sco3.2v5* | sco5v6*)
16145 # Note: We CANNOT use -z defs as we might desire, because we do not
16146 # link with -lc, and that would cause any symbols used from libc to
16147 # always be unresolved, which means just about no library would
16148 # ever link correctly. If we're not using GNU ld we use -z text
16149 # though, which does catch some bad symbols but isn't as heavy-handed
16150 # as -z defs.
16151 no_undefined_flag_FC='$wl-z,text'
16152 allow_undefined_flag_FC='$wl-z,nodefs'
16153 archive_cmds_need_lc_FC=no
16154 hardcode_shlibpath_var_FC=no
16155 hardcode_libdir_flag_spec_FC='$wl-R,$libdir'
16156 hardcode_libdir_separator_FC=':'
16157 link_all_deplibs_FC=yes
16158 export_dynamic_flag_spec_FC='$wl-Bexport'
16159 runpath_var='LD_RUN_PATH'
16160
16161 if test yes = "$GCC"; then
16162 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16163 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16164 else
16165 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16167 fi
16168 ;;
16169
16170 uts4*)
16171 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16172 hardcode_libdir_flag_spec_FC='-L$libdir'
16173 hardcode_shlibpath_var_FC=no
16174 ;;
16175
16176 *)
16177 ld_shlibs_FC=no
16178 ;;
16179 esac
16180
16181 if test sni = "$host_vendor"; then
16182 case $host in
16183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16184 export_dynamic_flag_spec_FC='$wl-Blargedynsym'
16185 ;;
16186 esac
16187 fi
16188 fi
16189
16190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
16191 printf "%s\n" "$ld_shlibs_FC" >&6; }
16192 test no = "$ld_shlibs_FC" && can_build_shared=no
16193
16194 with_gnu_ld_FC=$with_gnu_ld
16195
16196
16197
16198
16199
16200
16201 #
16202 # Do we need to explicitly link libc?
16203 #
16204 case "x$archive_cmds_need_lc_FC" in
16205 x|xyes)
16206 # Assume -lc should be added
16207 archive_cmds_need_lc_FC=yes
16208
16209 if test yes,yes = "$GCC,$enable_shared"; then
16210 case $archive_cmds_FC in
16211 *'~'*)
16212 # FIXME: we may have to deal with multi-command sequences.
16213 ;;
16214 '$CC '*)
16215 # Test whether the compiler implicitly links with -lc since on some
16216 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16217 # to ld, don't add -lc before -lgcc.
16218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16219 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16220 if test ${lt_cv_archive_cmds_need_lc_FC+y}
16221 then :
16222 printf %s "(cached) " >&6
16223 else $as_nop
16224 $RM conftest*
16225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16226
16227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16228 (eval $ac_compile) 2>&5
16229 ac_status=$?
16230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16231 test $ac_status = 0; } 2>conftest.err; then
16232 soname=conftest
16233 lib=conftest
16234 libobjs=conftest.$ac_objext
16235 deplibs=
16236 wl=$lt_prog_compiler_wl_FC
16237 pic_flag=$lt_prog_compiler_pic_FC
16238 compiler_flags=-v
16239 linker_flags=-v
16240 verstring=
16241 output_objdir=.
16242 libname=conftest
16243 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
16244 allow_undefined_flag_FC=
16245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16246 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16247 ac_status=$?
16248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16249 test $ac_status = 0; }
16250 then
16251 lt_cv_archive_cmds_need_lc_FC=no
16252 else
16253 lt_cv_archive_cmds_need_lc_FC=yes
16254 fi
16255 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
16256 else
16257 cat conftest.err 1>&5
16258 fi
16259 $RM conftest*
16260
16261 fi
16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
16263 printf "%s\n" "$lt_cv_archive_cmds_need_lc_FC" >&6; }
16264 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
16265 ;;
16266 esac
16267 fi
16268 ;;
16269 esac
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16333 printf %s "checking dynamic linker characteristics... " >&6; }
16334
16335 library_names_spec=
16336 libname_spec='lib$name'
16337 soname_spec=
16338 shrext_cmds=.so
16339 postinstall_cmds=
16340 postuninstall_cmds=
16341 finish_cmds=
16342 finish_eval=
16343 shlibpath_var=
16344 shlibpath_overrides_runpath=unknown
16345 version_type=none
16346 dynamic_linker="$host_os ld.so"
16347 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16348 need_lib_prefix=unknown
16349 hardcode_into_libs=no
16350
16351 # when you set need_version to no, make sure it does not cause -set_version
16352 # flags to be left without arguments
16353 need_version=unknown
16354
16355
16356
16357 case $host_os in
16358 aix3*)
16359 version_type=linux # correct to gnu/linux during the next big refactor
16360 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16361 shlibpath_var=LIBPATH
16362
16363 # AIX 3 has no versioning support, so we append a major version to the name.
16364 soname_spec='$libname$release$shared_ext$major'
16365 ;;
16366
16367 aix[4-9]*)
16368 version_type=linux # correct to gnu/linux during the next big refactor
16369 need_lib_prefix=no
16370 need_version=no
16371 hardcode_into_libs=yes
16372 if test ia64 = "$host_cpu"; then
16373 # AIX 5 supports IA64
16374 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16375 shlibpath_var=LD_LIBRARY_PATH
16376 else
16377 # With GCC up to 2.95.x, collect2 would create an import file
16378 # for dependence libraries. The import file would start with
16379 # the line '#! .'. This would cause the generated library to
16380 # depend on '.', always an invalid library. This was fixed in
16381 # development snapshots of GCC prior to 3.0.
16382 case $host_os in
16383 aix4 | aix4.[01] | aix4.[01].*)
16384 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16385 echo ' yes '
16386 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16387 :
16388 else
16389 can_build_shared=no
16390 fi
16391 ;;
16392 esac
16393 # Using Import Files as archive members, it is possible to support
16394 # filename-based versioning of shared library archives on AIX. While
16395 # this would work for both with and without runtime linking, it will
16396 # prevent static linking of such archives. So we do filename-based
16397 # shared library versioning with .so extension only, which is used
16398 # when both runtime linking and shared linking is enabled.
16399 # Unfortunately, runtime linking may impact performance, so we do
16400 # not want this to be the default eventually. Also, we use the
16401 # versioned .so libs for executables only if there is the -brtl
16402 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16403 # To allow for filename-based versioning support, we need to create
16404 # libNAME.so.V as an archive file, containing:
16405 # *) an Import File, referring to the versioned filename of the
16406 # archive as well as the shared archive member, telling the
16407 # bitwidth (32 or 64) of that shared object, and providing the
16408 # list of exported symbols of that shared object, eventually
16409 # decorated with the 'weak' keyword
16410 # *) the shared object with the F_LOADONLY flag set, to really avoid
16411 # it being seen by the linker.
16412 # At run time we better use the real file rather than another symlink,
16413 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16414
16415 case $with_aix_soname,$aix_use_runtimelinking in
16416 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16417 # soname into executable. Probably we can add versioning support to
16418 # collect2, so additional links can be useful in future.
16419 aix,yes) # traditional libtool
16420 dynamic_linker='AIX unversionable lib.so'
16421 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16422 # instead of lib<name>.a to let people know that these are not
16423 # typical AIX shared libraries.
16424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16425 ;;
16426 aix,no) # traditional AIX only
16427 dynamic_linker='AIX lib.a(lib.so.V)'
16428 # We preserve .a as extension for shared libraries through AIX4.2
16429 # and later when we are not doing run time linking.
16430 library_names_spec='$libname$release.a $libname.a'
16431 soname_spec='$libname$release$shared_ext$major'
16432 ;;
16433 svr4,*) # full svr4 only
16434 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16435 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16436 # We do not specify a path in Import Files, so LIBPATH fires.
16437 shlibpath_overrides_runpath=yes
16438 ;;
16439 *,yes) # both, prefer svr4
16440 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16441 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16442 # unpreferred sharedlib libNAME.a needs extra handling
16443 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16444 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16445 # We do not specify a path in Import Files, so LIBPATH fires.
16446 shlibpath_overrides_runpath=yes
16447 ;;
16448 *,no) # both, prefer aix
16449 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16450 library_names_spec='$libname$release.a $libname.a'
16451 soname_spec='$libname$release$shared_ext$major'
16452 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16453 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16454 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16455 ;;
16456 esac
16457 shlibpath_var=LIBPATH
16458 fi
16459 ;;
16460
16461 amigaos*)
16462 case $host_cpu in
16463 powerpc)
16464 # Since July 2007 AmigaOS4 officially supports .so libraries.
16465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16467 ;;
16468 m68k)
16469 library_names_spec='$libname.ixlibrary $libname.a'
16470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16471 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16472 ;;
16473 esac
16474 ;;
16475
16476 beos*)
16477 library_names_spec='$libname$shared_ext'
16478 dynamic_linker="$host_os ld.so"
16479 shlibpath_var=LIBRARY_PATH
16480 ;;
16481
16482 bsdi[45]*)
16483 version_type=linux # correct to gnu/linux during the next big refactor
16484 need_version=no
16485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16486 soname_spec='$libname$release$shared_ext$major'
16487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16488 shlibpath_var=LD_LIBRARY_PATH
16489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16491 # the default ld.so.conf also contains /usr/contrib/lib and
16492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16493 # libtool to hard-code these into programs
16494 ;;
16495
16496 cygwin* | mingw* | pw32* | cegcc*)
16497 version_type=windows
16498 shrext_cmds=.dll
16499 need_version=no
16500 need_lib_prefix=no
16501
16502 case $GCC,$cc_basename in
16503 yes,*)
16504 # gcc
16505 library_names_spec='$libname.dll.a'
16506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16507 postinstall_cmds='base_file=`basename \$file`~
16508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16509 dldir=$destdir/`dirname \$dlpath`~
16510 test -d \$dldir || mkdir -p \$dldir~
16511 $install_prog $dir/$dlname \$dldir/$dlname~
16512 chmod a+x \$dldir/$dlname~
16513 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16514 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16515 fi'
16516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16517 dlpath=$dir/\$dldll~
16518 $RM \$dlpath'
16519 shlibpath_overrides_runpath=yes
16520
16521 case $host_os in
16522 cygwin*)
16523 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16524 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16525
16526 ;;
16527 mingw* | cegcc*)
16528 # MinGW DLLs use traditional 'lib' prefix
16529 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16530 ;;
16531 pw32*)
16532 # pw32 DLLs use 'pw' prefix rather than 'lib'
16533 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16534 ;;
16535 esac
16536 dynamic_linker='Win32 ld.exe'
16537 ;;
16538
16539 *,cl* | *,icl*)
16540 # Native MSVC or ICC
16541 libname_spec='$name'
16542 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16543 library_names_spec='$libname.dll.lib'
16544
16545 case $build_os in
16546 mingw*)
16547 sys_lib_search_path_spec=
16548 lt_save_ifs=$IFS
16549 IFS=';'
16550 for lt_path in $LIB
16551 do
16552 IFS=$lt_save_ifs
16553 # Let DOS variable expansion print the short 8.3 style file name.
16554 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16555 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16556 done
16557 IFS=$lt_save_ifs
16558 # Convert to MSYS style.
16559 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16560 ;;
16561 cygwin*)
16562 # Convert to unix form, then to dos form, then back to unix form
16563 # but this time dos style (no spaces!) so that the unix form looks
16564 # like /cygdrive/c/PROGRA~1:/cygdr...
16565 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16566 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16567 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16568 ;;
16569 *)
16570 sys_lib_search_path_spec=$LIB
16571 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16572 # It is most probably a Windows format PATH.
16573 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16574 else
16575 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16576 fi
16577 # FIXME: find the short name or the path components, as spaces are
16578 # common. (e.g. "Program Files" -> "PROGRA~1")
16579 ;;
16580 esac
16581
16582 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16583 postinstall_cmds='base_file=`basename \$file`~
16584 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16585 dldir=$destdir/`dirname \$dlpath`~
16586 test -d \$dldir || mkdir -p \$dldir~
16587 $install_prog $dir/$dlname \$dldir/$dlname'
16588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16589 dlpath=$dir/\$dldll~
16590 $RM \$dlpath'
16591 shlibpath_overrides_runpath=yes
16592 dynamic_linker='Win32 link.exe'
16593 ;;
16594
16595 *)
16596 # Assume MSVC and ICC wrapper
16597 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16598 dynamic_linker='Win32 ld.exe'
16599 ;;
16600 esac
16601 # FIXME: first we should search . and the directory the executable is in
16602 shlibpath_var=PATH
16603 ;;
16604
16605 darwin* | rhapsody*)
16606 dynamic_linker="$host_os dyld"
16607 version_type=darwin
16608 need_lib_prefix=no
16609 need_version=no
16610 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16611 soname_spec='$libname$release$major$shared_ext'
16612 shlibpath_overrides_runpath=yes
16613 shlibpath_var=DYLD_LIBRARY_PATH
16614 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16615
16616 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16617 ;;
16618
16619 dgux*)
16620 version_type=linux # correct to gnu/linux during the next big refactor
16621 need_lib_prefix=no
16622 need_version=no
16623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16624 soname_spec='$libname$release$shared_ext$major'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 ;;
16627
16628 freebsd* | dragonfly* | midnightbsd*)
16629 # DragonFly does not have aout. When/if they implement a new
16630 # versioning mechanism, adjust this.
16631 if test -x /usr/bin/objformat; then
16632 objformat=`/usr/bin/objformat`
16633 else
16634 case $host_os in
16635 freebsd[23].*) objformat=aout ;;
16636 *) objformat=elf ;;
16637 esac
16638 fi
16639 version_type=freebsd-$objformat
16640 case $version_type in
16641 freebsd-elf*)
16642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16643 soname_spec='$libname$release$shared_ext$major'
16644 need_version=no
16645 need_lib_prefix=no
16646 ;;
16647 freebsd-*)
16648 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16649 need_version=yes
16650 ;;
16651 esac
16652 shlibpath_var=LD_LIBRARY_PATH
16653 case $host_os in
16654 freebsd2.*)
16655 shlibpath_overrides_runpath=yes
16656 ;;
16657 freebsd3.[01]* | freebsdelf3.[01]*)
16658 shlibpath_overrides_runpath=yes
16659 hardcode_into_libs=yes
16660 ;;
16661 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16662 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16663 shlibpath_overrides_runpath=no
16664 hardcode_into_libs=yes
16665 ;;
16666 *) # from 4.6 on, and DragonFly
16667 shlibpath_overrides_runpath=yes
16668 hardcode_into_libs=yes
16669 ;;
16670 esac
16671 ;;
16672
16673 haiku*)
16674 version_type=linux # correct to gnu/linux during the next big refactor
16675 need_lib_prefix=no
16676 need_version=no
16677 dynamic_linker="$host_os runtime_loader"
16678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16679 soname_spec='$libname$release$shared_ext$major'
16680 shlibpath_var=LIBRARY_PATH
16681 shlibpath_overrides_runpath=no
16682 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16683 hardcode_into_libs=yes
16684 ;;
16685
16686 hpux9* | hpux10* | hpux11*)
16687 # Give a soname corresponding to the major version so that dld.sl refuses to
16688 # link against other versions.
16689 version_type=sunos
16690 need_lib_prefix=no
16691 need_version=no
16692 case $host_cpu in
16693 ia64*)
16694 shrext_cmds='.so'
16695 hardcode_into_libs=yes
16696 dynamic_linker="$host_os dld.so"
16697 shlibpath_var=LD_LIBRARY_PATH
16698 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16700 soname_spec='$libname$release$shared_ext$major'
16701 if test 32 = "$HPUX_IA64_MODE"; then
16702 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16703 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16704 else
16705 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16706 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16707 fi
16708 ;;
16709 hppa*64*)
16710 shrext_cmds='.sl'
16711 hardcode_into_libs=yes
16712 dynamic_linker="$host_os dld.sl"
16713 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16714 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16716 soname_spec='$libname$release$shared_ext$major'
16717 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16719 ;;
16720 *)
16721 shrext_cmds='.sl'
16722 dynamic_linker="$host_os dld.sl"
16723 shlibpath_var=SHLIB_PATH
16724 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16726 soname_spec='$libname$release$shared_ext$major'
16727 ;;
16728 esac
16729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16730 postinstall_cmds='chmod 555 $lib'
16731 # or fails outright, so override atomically:
16732 install_override_mode=555
16733 ;;
16734
16735 interix[3-9]*)
16736 version_type=linux # correct to gnu/linux during the next big refactor
16737 need_lib_prefix=no
16738 need_version=no
16739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16740 soname_spec='$libname$release$shared_ext$major'
16741 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16742 shlibpath_var=LD_LIBRARY_PATH
16743 shlibpath_overrides_runpath=no
16744 hardcode_into_libs=yes
16745 ;;
16746
16747 irix5* | irix6* | nonstopux*)
16748 case $host_os in
16749 nonstopux*) version_type=nonstopux ;;
16750 *)
16751 if test yes = "$lt_cv_prog_gnu_ld"; then
16752 version_type=linux # correct to gnu/linux during the next big refactor
16753 else
16754 version_type=irix
16755 fi ;;
16756 esac
16757 need_lib_prefix=no
16758 need_version=no
16759 soname_spec='$libname$release$shared_ext$major'
16760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16761 case $host_os in
16762 irix5* | nonstopux*)
16763 libsuff= shlibsuff=
16764 ;;
16765 *)
16766 case $LD in # libtool.m4 will add one of these switches to LD
16767 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16768 libsuff= shlibsuff= libmagic=32-bit;;
16769 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16770 libsuff=32 shlibsuff=N32 libmagic=N32;;
16771 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16772 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16773 *) libsuff= shlibsuff= libmagic=never-match;;
16774 esac
16775 ;;
16776 esac
16777 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16778 shlibpath_overrides_runpath=no
16779 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16780 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16781 hardcode_into_libs=yes
16782 ;;
16783
16784 # No shared lib support for Linux oldld, aout, or coff.
16785 linux*oldld* | linux*aout* | linux*coff*)
16786 dynamic_linker=no
16787 ;;
16788
16789 linux*android*)
16790 version_type=none # Android doesn't support versioned libraries.
16791 need_lib_prefix=no
16792 need_version=no
16793 library_names_spec='$libname$release$shared_ext'
16794 soname_spec='$libname$release$shared_ext'
16795 finish_cmds=
16796 shlibpath_var=LD_LIBRARY_PATH
16797 shlibpath_overrides_runpath=yes
16798
16799 # This implies no fast_install, which is unacceptable.
16800 # Some rework will be needed to allow for fast_install
16801 # before this can be enabled.
16802 hardcode_into_libs=yes
16803
16804 dynamic_linker='Android linker'
16805 # Don't embed -rpath directories since the linker doesn't support them.
16806 hardcode_libdir_flag_spec_FC='-L$libdir'
16807 ;;
16808
16809 # This must be glibc/ELF.
16810 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16811 version_type=linux # correct to gnu/linux during the next big refactor
16812 need_lib_prefix=no
16813 need_version=no
16814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16815 soname_spec='$libname$release$shared_ext$major'
16816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16817 shlibpath_var=LD_LIBRARY_PATH
16818 shlibpath_overrides_runpath=no
16819
16820 # Some binutils ld are patched to set DT_RUNPATH
16821 if test ${lt_cv_shlibpath_overrides_runpath+y}
16822 then :
16823 printf %s "(cached) " >&6
16824 else $as_nop
16825 lt_cv_shlibpath_overrides_runpath=no
16826 save_LDFLAGS=$LDFLAGS
16827 save_libdir=$libdir
16828 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
16829 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
16830 cat > conftest.$ac_ext <<_ACEOF
16831 program main
16832
16833 end
16834 _ACEOF
16835 if ac_fn_fc_try_link "$LINENO"
16836 then :
16837 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16838 then :
16839 lt_cv_shlibpath_overrides_runpath=yes
16840 fi
16841 fi
16842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16843 conftest$ac_exeext conftest.$ac_ext
16844 LDFLAGS=$save_LDFLAGS
16845 libdir=$save_libdir
16846
16847 fi
16848
16849 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16850
16851 # This implies no fast_install, which is unacceptable.
16852 # Some rework will be needed to allow for fast_install
16853 # before this can be enabled.
16854 hardcode_into_libs=yes
16855
16856 # Ideally, we could use ldconfig to report *all* directores which are
16857 # searched for libraries, however this is still not possible. Aside from not
16858 # being certain /sbin/ldconfig is available, command
16859 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16860 # even though it is searched at run-time. Try to do the best guess by
16861 # appending ld.so.conf contents (and includes) to the search path.
16862 if test -f /etc/ld.so.conf; then
16863 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16865 fi
16866
16867 # We used to test for /lib/ld.so.1 and disable shared libraries on
16868 # powerpc, because MkLinux only supported shared libraries with the
16869 # GNU dynamic linker. Since this was broken with cross compilers,
16870 # most powerpc-linux boxes support dynamic linking these days and
16871 # people can always --disable-shared, the test was removed, and we
16872 # assume the GNU/Linux dynamic linker is in use.
16873 dynamic_linker='GNU/Linux ld.so'
16874 ;;
16875
16876 netbsdelf*-gnu)
16877 version_type=linux
16878 need_lib_prefix=no
16879 need_version=no
16880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16881 soname_spec='${libname}${release}${shared_ext}$major'
16882 shlibpath_var=LD_LIBRARY_PATH
16883 shlibpath_overrides_runpath=no
16884 hardcode_into_libs=yes
16885 dynamic_linker='NetBSD ld.elf_so'
16886 ;;
16887
16888 netbsd*)
16889 version_type=sunos
16890 need_lib_prefix=no
16891 need_version=no
16892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16893 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16895 dynamic_linker='NetBSD (a.out) ld.so'
16896 else
16897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16898 soname_spec='$libname$release$shared_ext$major'
16899 dynamic_linker='NetBSD ld.elf_so'
16900 fi
16901 shlibpath_var=LD_LIBRARY_PATH
16902 shlibpath_overrides_runpath=yes
16903 hardcode_into_libs=yes
16904 ;;
16905
16906 newsos6)
16907 version_type=linux # correct to gnu/linux during the next big refactor
16908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16909 shlibpath_var=LD_LIBRARY_PATH
16910 shlibpath_overrides_runpath=yes
16911 ;;
16912
16913 *nto* | *qnx*)
16914 version_type=qnx
16915 need_lib_prefix=no
16916 need_version=no
16917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16918 soname_spec='$libname$release$shared_ext$major'
16919 shlibpath_var=LD_LIBRARY_PATH
16920 shlibpath_overrides_runpath=no
16921 hardcode_into_libs=yes
16922 dynamic_linker='ldqnx.so'
16923 ;;
16924
16925 openbsd* | bitrig*)
16926 version_type=sunos
16927 sys_lib_dlsearch_path_spec=/usr/lib
16928 need_lib_prefix=no
16929 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16930 need_version=no
16931 else
16932 need_version=yes
16933 fi
16934 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16936 shlibpath_var=LD_LIBRARY_PATH
16937 shlibpath_overrides_runpath=yes
16938 ;;
16939
16940 os2*)
16941 libname_spec='$name'
16942 version_type=windows
16943 shrext_cmds=.dll
16944 need_version=no
16945 need_lib_prefix=no
16946 # OS/2 can only load a DLL with a base name of 8 characters or less.
16947 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16948 v=$($ECHO $release$versuffix | tr -d .-);
16949 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16950 $ECHO $n$v`$shared_ext'
16951 library_names_spec='${libname}_dll.$libext'
16952 dynamic_linker='OS/2 ld.exe'
16953 shlibpath_var=BEGINLIBPATH
16954 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16956 postinstall_cmds='base_file=`basename \$file`~
16957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16958 dldir=$destdir/`dirname \$dlpath`~
16959 test -d \$dldir || mkdir -p \$dldir~
16960 $install_prog $dir/$dlname \$dldir/$dlname~
16961 chmod a+x \$dldir/$dlname~
16962 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16963 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16964 fi'
16965 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16966 dlpath=$dir/\$dldll~
16967 $RM \$dlpath'
16968 ;;
16969
16970 osf3* | osf4* | osf5*)
16971 version_type=osf
16972 need_lib_prefix=no
16973 need_version=no
16974 soname_spec='$libname$release$shared_ext$major'
16975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16976 shlibpath_var=LD_LIBRARY_PATH
16977 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16979 ;;
16980
16981 rdos*)
16982 dynamic_linker=no
16983 ;;
16984
16985 solaris*)
16986 version_type=linux # correct to gnu/linux during the next big refactor
16987 need_lib_prefix=no
16988 need_version=no
16989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16990 soname_spec='$libname$release$shared_ext$major'
16991 shlibpath_var=LD_LIBRARY_PATH
16992 shlibpath_overrides_runpath=yes
16993 hardcode_into_libs=yes
16994 # ldd complains unless libraries are executable
16995 postinstall_cmds='chmod +x $lib'
16996 ;;
16997
16998 sunos4*)
16999 version_type=sunos
17000 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17001 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17002 shlibpath_var=LD_LIBRARY_PATH
17003 shlibpath_overrides_runpath=yes
17004 if test yes = "$with_gnu_ld"; then
17005 need_lib_prefix=no
17006 fi
17007 need_version=yes
17008 ;;
17009
17010 sysv4 | sysv4.3*)
17011 version_type=linux # correct to gnu/linux during the next big refactor
17012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17013 soname_spec='$libname$release$shared_ext$major'
17014 shlibpath_var=LD_LIBRARY_PATH
17015 case $host_vendor in
17016 sni)
17017 shlibpath_overrides_runpath=no
17018 need_lib_prefix=no
17019 runpath_var=LD_RUN_PATH
17020 ;;
17021 siemens)
17022 need_lib_prefix=no
17023 ;;
17024 motorola)
17025 need_lib_prefix=no
17026 need_version=no
17027 shlibpath_overrides_runpath=no
17028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17029 ;;
17030 esac
17031 ;;
17032
17033 sysv4*MP*)
17034 if test -d /usr/nec; then
17035 version_type=linux # correct to gnu/linux during the next big refactor
17036 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17037 soname_spec='$libname$shared_ext.$major'
17038 shlibpath_var=LD_LIBRARY_PATH
17039 fi
17040 ;;
17041
17042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17043 version_type=sco
17044 need_lib_prefix=no
17045 need_version=no
17046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17047 soname_spec='$libname$release$shared_ext$major'
17048 shlibpath_var=LD_LIBRARY_PATH
17049 shlibpath_overrides_runpath=yes
17050 hardcode_into_libs=yes
17051 if test yes = "$with_gnu_ld"; then
17052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17053 else
17054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17055 case $host_os in
17056 sco3.2v5*)
17057 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17058 ;;
17059 esac
17060 fi
17061 sys_lib_dlsearch_path_spec='/usr/lib'
17062 ;;
17063
17064 tpf*)
17065 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17066 version_type=linux # correct to gnu/linux during the next big refactor
17067 need_lib_prefix=no
17068 need_version=no
17069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17070 shlibpath_var=LD_LIBRARY_PATH
17071 shlibpath_overrides_runpath=no
17072 hardcode_into_libs=yes
17073 ;;
17074
17075 uts4*)
17076 version_type=linux # correct to gnu/linux during the next big refactor
17077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17078 soname_spec='$libname$release$shared_ext$major'
17079 shlibpath_var=LD_LIBRARY_PATH
17080 ;;
17081
17082 *)
17083 dynamic_linker=no
17084 ;;
17085 esac
17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17087 printf "%s\n" "$dynamic_linker" >&6; }
17088 test no = "$dynamic_linker" && can_build_shared=no
17089
17090 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17091 if test yes = "$GCC"; then
17092 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17093 fi
17094
17095 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17096 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17097 fi
17098
17099 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17100 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17101 fi
17102
17103 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17104 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17105
17106 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17107 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17108
17109 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17110 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17152 printf %s "checking how to hardcode library paths into programs... " >&6; }
17153 hardcode_action_FC=
17154 if test -n "$hardcode_libdir_flag_spec_FC" ||
17155 test -n "$runpath_var_FC" ||
17156 test yes = "$hardcode_automatic_FC"; then
17157
17158 # We can hardcode non-existent directories.
17159 if test no != "$hardcode_direct_FC" &&
17160 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17161 # have to relink, otherwise we might link with an installed library
17162 # when we should be linking with a yet-to-be-installed one
17163 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" &&
17164 test no != "$hardcode_minus_L_FC"; then
17165 # Linking always hardcodes the temporary library directory.
17166 hardcode_action_FC=relink
17167 else
17168 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17169 hardcode_action_FC=immediate
17170 fi
17171 else
17172 # We cannot hardcode anything, or else we can only hardcode existing
17173 # directories.
17174 hardcode_action_FC=unsupported
17175 fi
17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
17177 printf "%s\n" "$hardcode_action_FC" >&6; }
17178
17179 if test relink = "$hardcode_action_FC" ||
17180 test yes = "$inherit_rpath_FC"; then
17181 # Fast installation is not supported
17182 enable_fast_install=no
17183 elif test yes = "$shlibpath_overrides_runpath" ||
17184 test no = "$enable_shared"; then
17185 # Fast installation is not necessary
17186 enable_fast_install=needless
17187 fi
17188
17189
17190
17191
17192
17193
17194
17195 fi # test -n "$compiler"
17196
17197 GCC=$lt_save_GCC
17198 CC=$lt_save_CC
17199 CFLAGS=$lt_save_CFLAGS
17200 fi # test yes != "$_lt_disable_FC"
17201
17202 ac_ext=c
17203 ac_cpp='$CPP $CPPFLAGS'
17204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17207
17208
17209 ac_ext=c
17210 ac_cpp='$CPP $CPPFLAGS'
17211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17214 if test -n "$ac_tool_prefix"; then
17215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
17216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
17217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17218 printf %s "checking for $ac_word... " >&6; }
17219 if test ${ac_cv_prog_CC+y}
17220 then :
17221 printf %s "(cached) " >&6
17222 else $as_nop
17223 if test -n "$CC"; then
17224 ac_cv_prog_CC="$CC" # Let the user override the test.
17225 else
17226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17227 for as_dir in $PATH
17228 do
17229 IFS=$as_save_IFS
17230 case $as_dir in #(((
17231 '') as_dir=./ ;;
17232 */) ;;
17233 *) as_dir=$as_dir/ ;;
17234 esac
17235 for ac_exec_ext in '' $ac_executable_extensions; do
17236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17237 ac_cv_prog_CC="${ac_tool_prefix}gcc"
17238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17239 break 2
17240 fi
17241 done
17242 done
17243 IFS=$as_save_IFS
17244
17245 fi
17246 fi
17247 CC=$ac_cv_prog_CC
17248 if test -n "$CC"; then
17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17250 printf "%s\n" "$CC" >&6; }
17251 else
17252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17253 printf "%s\n" "no" >&6; }
17254 fi
17255
17256
17257 fi
17258 if test -z "$ac_cv_prog_CC"; then
17259 ac_ct_CC=$CC
17260 # Extract the first word of "gcc", so it can be a program name with args.
17261 set dummy gcc; ac_word=$2
17262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17263 printf %s "checking for $ac_word... " >&6; }
17264 if test ${ac_cv_prog_ac_ct_CC+y}
17265 then :
17266 printf %s "(cached) " >&6
17267 else $as_nop
17268 if test -n "$ac_ct_CC"; then
17269 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17270 else
17271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17272 for as_dir in $PATH
17273 do
17274 IFS=$as_save_IFS
17275 case $as_dir in #(((
17276 '') as_dir=./ ;;
17277 */) ;;
17278 *) as_dir=$as_dir/ ;;
17279 esac
17280 for ac_exec_ext in '' $ac_executable_extensions; do
17281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17282 ac_cv_prog_ac_ct_CC="gcc"
17283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17284 break 2
17285 fi
17286 done
17287 done
17288 IFS=$as_save_IFS
17289
17290 fi
17291 fi
17292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17293 if test -n "$ac_ct_CC"; then
17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17295 printf "%s\n" "$ac_ct_CC" >&6; }
17296 else
17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17298 printf "%s\n" "no" >&6; }
17299 fi
17300
17301 if test "x$ac_ct_CC" = x; then
17302 CC=""
17303 else
17304 case $cross_compiling:$ac_tool_warned in
17305 yes:)
17306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17307 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17308 ac_tool_warned=yes ;;
17309 esac
17310 CC=$ac_ct_CC
17311 fi
17312 else
17313 CC="$ac_cv_prog_CC"
17314 fi
17315
17316 if test -z "$CC"; then
17317 if test -n "$ac_tool_prefix"; then
17318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
17319 set dummy ${ac_tool_prefix}cc; ac_word=$2
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17321 printf %s "checking for $ac_word... " >&6; }
17322 if test ${ac_cv_prog_CC+y}
17323 then :
17324 printf %s "(cached) " >&6
17325 else $as_nop
17326 if test -n "$CC"; then
17327 ac_cv_prog_CC="$CC" # Let the user override the test.
17328 else
17329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17330 for as_dir in $PATH
17331 do
17332 IFS=$as_save_IFS
17333 case $as_dir in #(((
17334 '') as_dir=./ ;;
17335 */) ;;
17336 *) as_dir=$as_dir/ ;;
17337 esac
17338 for ac_exec_ext in '' $ac_executable_extensions; do
17339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17340 ac_cv_prog_CC="${ac_tool_prefix}cc"
17341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17342 break 2
17343 fi
17344 done
17345 done
17346 IFS=$as_save_IFS
17347
17348 fi
17349 fi
17350 CC=$ac_cv_prog_CC
17351 if test -n "$CC"; then
17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17353 printf "%s\n" "$CC" >&6; }
17354 else
17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17356 printf "%s\n" "no" >&6; }
17357 fi
17358
17359
17360 fi
17361 fi
17362 if test -z "$CC"; then
17363 # Extract the first word of "cc", so it can be a program name with args.
17364 set dummy cc; ac_word=$2
17365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17366 printf %s "checking for $ac_word... " >&6; }
17367 if test ${ac_cv_prog_CC+y}
17368 then :
17369 printf %s "(cached) " >&6
17370 else $as_nop
17371 if test -n "$CC"; then
17372 ac_cv_prog_CC="$CC" # Let the user override the test.
17373 else
17374 ac_prog_rejected=no
17375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17376 for as_dir in $PATH
17377 do
17378 IFS=$as_save_IFS
17379 case $as_dir in #(((
17380 '') as_dir=./ ;;
17381 */) ;;
17382 *) as_dir=$as_dir/ ;;
17383 esac
17384 for ac_exec_ext in '' $ac_executable_extensions; do
17385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17386 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
17387 ac_prog_rejected=yes
17388 continue
17389 fi
17390 ac_cv_prog_CC="cc"
17391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17392 break 2
17393 fi
17394 done
17395 done
17396 IFS=$as_save_IFS
17397
17398 if test $ac_prog_rejected = yes; then
17399 # We found a bogon in the path, so make sure we never use it.
17400 set dummy $ac_cv_prog_CC
17401 shift
17402 if test $# != 0; then
17403 # We chose a different compiler from the bogus one.
17404 # However, it has the same basename, so the bogon will be chosen
17405 # first if we set CC to just the basename; use the full file name.
17406 shift
17407 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
17408 fi
17409 fi
17410 fi
17411 fi
17412 CC=$ac_cv_prog_CC
17413 if test -n "$CC"; then
17414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17415 printf "%s\n" "$CC" >&6; }
17416 else
17417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17418 printf "%s\n" "no" >&6; }
17419 fi
17420
17421
17422 fi
17423 if test -z "$CC"; then
17424 if test -n "$ac_tool_prefix"; then
17425 for ac_prog in cl.exe
17426 do
17427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17430 printf %s "checking for $ac_word... " >&6; }
17431 if test ${ac_cv_prog_CC+y}
17432 then :
17433 printf %s "(cached) " >&6
17434 else $as_nop
17435 if test -n "$CC"; then
17436 ac_cv_prog_CC="$CC" # Let the user override the test.
17437 else
17438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17439 for as_dir in $PATH
17440 do
17441 IFS=$as_save_IFS
17442 case $as_dir in #(((
17443 '') as_dir=./ ;;
17444 */) ;;
17445 *) as_dir=$as_dir/ ;;
17446 esac
17447 for ac_exec_ext in '' $ac_executable_extensions; do
17448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
17450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17451 break 2
17452 fi
17453 done
17454 done
17455 IFS=$as_save_IFS
17456
17457 fi
17458 fi
17459 CC=$ac_cv_prog_CC
17460 if test -n "$CC"; then
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17462 printf "%s\n" "$CC" >&6; }
17463 else
17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17465 printf "%s\n" "no" >&6; }
17466 fi
17467
17468
17469 test -n "$CC" && break
17470 done
17471 fi
17472 if test -z "$CC"; then
17473 ac_ct_CC=$CC
17474 for ac_prog in cl.exe
17475 do
17476 # Extract the first word of "$ac_prog", so it can be a program name with args.
17477 set dummy $ac_prog; ac_word=$2
17478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17479 printf %s "checking for $ac_word... " >&6; }
17480 if test ${ac_cv_prog_ac_ct_CC+y}
17481 then :
17482 printf %s "(cached) " >&6
17483 else $as_nop
17484 if test -n "$ac_ct_CC"; then
17485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17486 else
17487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17488 for as_dir in $PATH
17489 do
17490 IFS=$as_save_IFS
17491 case $as_dir in #(((
17492 '') as_dir=./ ;;
17493 */) ;;
17494 *) as_dir=$as_dir/ ;;
17495 esac
17496 for ac_exec_ext in '' $ac_executable_extensions; do
17497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17498 ac_cv_prog_ac_ct_CC="$ac_prog"
17499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17500 break 2
17501 fi
17502 done
17503 done
17504 IFS=$as_save_IFS
17505
17506 fi
17507 fi
17508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17509 if test -n "$ac_ct_CC"; then
17510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17511 printf "%s\n" "$ac_ct_CC" >&6; }
17512 else
17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17514 printf "%s\n" "no" >&6; }
17515 fi
17516
17517
17518 test -n "$ac_ct_CC" && break
17519 done
17520
17521 if test "x$ac_ct_CC" = x; then
17522 CC=""
17523 else
17524 case $cross_compiling:$ac_tool_warned in
17525 yes:)
17526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17527 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17528 ac_tool_warned=yes ;;
17529 esac
17530 CC=$ac_ct_CC
17531 fi
17532 fi
17533
17534 fi
17535 if test -z "$CC"; then
17536 if test -n "$ac_tool_prefix"; then
17537 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
17538 set dummy ${ac_tool_prefix}clang; ac_word=$2
17539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17540 printf %s "checking for $ac_word... " >&6; }
17541 if test ${ac_cv_prog_CC+y}
17542 then :
17543 printf %s "(cached) " >&6
17544 else $as_nop
17545 if test -n "$CC"; then
17546 ac_cv_prog_CC="$CC" # Let the user override the test.
17547 else
17548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17549 for as_dir in $PATH
17550 do
17551 IFS=$as_save_IFS
17552 case $as_dir in #(((
17553 '') as_dir=./ ;;
17554 */) ;;
17555 *) as_dir=$as_dir/ ;;
17556 esac
17557 for ac_exec_ext in '' $ac_executable_extensions; do
17558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17559 ac_cv_prog_CC="${ac_tool_prefix}clang"
17560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17561 break 2
17562 fi
17563 done
17564 done
17565 IFS=$as_save_IFS
17566
17567 fi
17568 fi
17569 CC=$ac_cv_prog_CC
17570 if test -n "$CC"; then
17571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
17572 printf "%s\n" "$CC" >&6; }
17573 else
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17575 printf "%s\n" "no" >&6; }
17576 fi
17577
17578
17579 fi
17580 if test -z "$ac_cv_prog_CC"; then
17581 ac_ct_CC=$CC
17582 # Extract the first word of "clang", so it can be a program name with args.
17583 set dummy clang; ac_word=$2
17584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17585 printf %s "checking for $ac_word... " >&6; }
17586 if test ${ac_cv_prog_ac_ct_CC+y}
17587 then :
17588 printf %s "(cached) " >&6
17589 else $as_nop
17590 if test -n "$ac_ct_CC"; then
17591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
17592 else
17593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17594 for as_dir in $PATH
17595 do
17596 IFS=$as_save_IFS
17597 case $as_dir in #(((
17598 '') as_dir=./ ;;
17599 */) ;;
17600 *) as_dir=$as_dir/ ;;
17601 esac
17602 for ac_exec_ext in '' $ac_executable_extensions; do
17603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17604 ac_cv_prog_ac_ct_CC="clang"
17605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17606 break 2
17607 fi
17608 done
17609 done
17610 IFS=$as_save_IFS
17611
17612 fi
17613 fi
17614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
17615 if test -n "$ac_ct_CC"; then
17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
17617 printf "%s\n" "$ac_ct_CC" >&6; }
17618 else
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620 printf "%s\n" "no" >&6; }
17621 fi
17622
17623 if test "x$ac_ct_CC" = x; then
17624 CC=""
17625 else
17626 case $cross_compiling:$ac_tool_warned in
17627 yes:)
17628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17629 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17630 ac_tool_warned=yes ;;
17631 esac
17632 CC=$ac_ct_CC
17633 fi
17634 else
17635 CC="$ac_cv_prog_CC"
17636 fi
17637
17638 fi
17639
17640
17641 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17642 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17643 as_fn_error $? "no acceptable C compiler found in \$PATH
17644 See \`config.log' for more details" "$LINENO" 5; }
17645
17646 # Provide some information about the compiler.
17647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
17648 set X $ac_compile
17649 ac_compiler=$2
17650 for ac_option in --version -v -V -qversion -version; do
17651 { { ac_try="$ac_compiler $ac_option >&5"
17652 case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17655 esac
17656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17657 printf "%s\n" "$ac_try_echo"; } >&5
17658 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17659 ac_status=$?
17660 if test -s conftest.err; then
17661 sed '10a\
17662 ... rest of stderr output deleted ...
17663 10q' conftest.err >conftest.er1
17664 cat conftest.er1 >&5
17665 fi
17666 rm -f conftest.er1 conftest.err
17667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17668 test $ac_status = 0; }
17669 done
17670
17671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
17672 printf %s "checking whether the compiler supports GNU C... " >&6; }
17673 if test ${ac_cv_c_compiler_gnu+y}
17674 then :
17675 printf %s "(cached) " >&6
17676 else $as_nop
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17679
17680 int
17681 main (void)
17682 {
17683 #ifndef __GNUC__
17684 choke me
17685 #endif
17686
17687 ;
17688 return 0;
17689 }
17690 _ACEOF
17691 if ac_fn_c_try_compile "$LINENO"
17692 then :
17693 ac_compiler_gnu=yes
17694 else $as_nop
17695 ac_compiler_gnu=no
17696 fi
17697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
17699
17700 fi
17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
17702 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
17703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17704
17705 if test $ac_compiler_gnu = yes; then
17706 GCC=yes
17707 else
17708 GCC=
17709 fi
17710 ac_test_CFLAGS=${CFLAGS+y}
17711 ac_save_CFLAGS=$CFLAGS
17712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
17713 printf %s "checking whether $CC accepts -g... " >&6; }
17714 if test ${ac_cv_prog_cc_g+y}
17715 then :
17716 printf %s "(cached) " >&6
17717 else $as_nop
17718 ac_save_c_werror_flag=$ac_c_werror_flag
17719 ac_c_werror_flag=yes
17720 ac_cv_prog_cc_g=no
17721 CFLAGS="-g"
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17724
17725 int
17726 main (void)
17727 {
17728
17729 ;
17730 return 0;
17731 }
17732 _ACEOF
17733 if ac_fn_c_try_compile "$LINENO"
17734 then :
17735 ac_cv_prog_cc_g=yes
17736 else $as_nop
17737 CFLAGS=""
17738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739 /* end confdefs.h. */
17740
17741 int
17742 main (void)
17743 {
17744
17745 ;
17746 return 0;
17747 }
17748 _ACEOF
17749 if ac_fn_c_try_compile "$LINENO"
17750 then :
17751
17752 else $as_nop
17753 ac_c_werror_flag=$ac_save_c_werror_flag
17754 CFLAGS="-g"
17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17756 /* end confdefs.h. */
17757
17758 int
17759 main (void)
17760 {
17761
17762 ;
17763 return 0;
17764 }
17765 _ACEOF
17766 if ac_fn_c_try_compile "$LINENO"
17767 then :
17768 ac_cv_prog_cc_g=yes
17769 fi
17770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17771 fi
17772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17773 fi
17774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17775 ac_c_werror_flag=$ac_save_c_werror_flag
17776 fi
17777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
17778 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
17779 if test $ac_test_CFLAGS; then
17780 CFLAGS=$ac_save_CFLAGS
17781 elif test $ac_cv_prog_cc_g = yes; then
17782 if test "$GCC" = yes; then
17783 CFLAGS="-g -O2"
17784 else
17785 CFLAGS="-g"
17786 fi
17787 else
17788 if test "$GCC" = yes; then
17789 CFLAGS="-O2"
17790 else
17791 CFLAGS=
17792 fi
17793 fi
17794 ac_prog_cc_stdc=no
17795 if test x$ac_prog_cc_stdc = xno
17796 then :
17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
17798 printf %s "checking for $CC option to enable C11 features... " >&6; }
17799 if test ${ac_cv_prog_cc_c11+y}
17800 then :
17801 printf %s "(cached) " >&6
17802 else $as_nop
17803 ac_cv_prog_cc_c11=no
17804 ac_save_CC=$CC
17805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806 /* end confdefs.h. */
17807 $ac_c_conftest_c11_program
17808 _ACEOF
17809 for ac_arg in '' -std=gnu11
17810 do
17811 CC="$ac_save_CC $ac_arg"
17812 if ac_fn_c_try_compile "$LINENO"
17813 then :
17814 ac_cv_prog_cc_c11=$ac_arg
17815 fi
17816 rm -f core conftest.err conftest.$ac_objext conftest.beam
17817 test "x$ac_cv_prog_cc_c11" != "xno" && break
17818 done
17819 rm -f conftest.$ac_ext
17820 CC=$ac_save_CC
17821 fi
17822
17823 if test "x$ac_cv_prog_cc_c11" = xno
17824 then :
17825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17826 printf "%s\n" "unsupported" >&6; }
17827 else $as_nop
17828 if test "x$ac_cv_prog_cc_c11" = x
17829 then :
17830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17831 printf "%s\n" "none needed" >&6; }
17832 else $as_nop
17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
17834 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
17835 CC="$CC $ac_cv_prog_cc_c11"
17836 fi
17837 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
17838 ac_prog_cc_stdc=c11
17839 fi
17840 fi
17841 if test x$ac_prog_cc_stdc = xno
17842 then :
17843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
17844 printf %s "checking for $CC option to enable C99 features... " >&6; }
17845 if test ${ac_cv_prog_cc_c99+y}
17846 then :
17847 printf %s "(cached) " >&6
17848 else $as_nop
17849 ac_cv_prog_cc_c99=no
17850 ac_save_CC=$CC
17851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17852 /* end confdefs.h. */
17853 $ac_c_conftest_c99_program
17854 _ACEOF
17855 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
17856 do
17857 CC="$ac_save_CC $ac_arg"
17858 if ac_fn_c_try_compile "$LINENO"
17859 then :
17860 ac_cv_prog_cc_c99=$ac_arg
17861 fi
17862 rm -f core conftest.err conftest.$ac_objext conftest.beam
17863 test "x$ac_cv_prog_cc_c99" != "xno" && break
17864 done
17865 rm -f conftest.$ac_ext
17866 CC=$ac_save_CC
17867 fi
17868
17869 if test "x$ac_cv_prog_cc_c99" = xno
17870 then :
17871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17872 printf "%s\n" "unsupported" >&6; }
17873 else $as_nop
17874 if test "x$ac_cv_prog_cc_c99" = x
17875 then :
17876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17877 printf "%s\n" "none needed" >&6; }
17878 else $as_nop
17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
17880 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
17881 CC="$CC $ac_cv_prog_cc_c99"
17882 fi
17883 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
17884 ac_prog_cc_stdc=c99
17885 fi
17886 fi
17887 if test x$ac_prog_cc_stdc = xno
17888 then :
17889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
17890 printf %s "checking for $CC option to enable C89 features... " >&6; }
17891 if test ${ac_cv_prog_cc_c89+y}
17892 then :
17893 printf %s "(cached) " >&6
17894 else $as_nop
17895 ac_cv_prog_cc_c89=no
17896 ac_save_CC=$CC
17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17899 $ac_c_conftest_c89_program
17900 _ACEOF
17901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17902 do
17903 CC="$ac_save_CC $ac_arg"
17904 if ac_fn_c_try_compile "$LINENO"
17905 then :
17906 ac_cv_prog_cc_c89=$ac_arg
17907 fi
17908 rm -f core conftest.err conftest.$ac_objext conftest.beam
17909 test "x$ac_cv_prog_cc_c89" != "xno" && break
17910 done
17911 rm -f conftest.$ac_ext
17912 CC=$ac_save_CC
17913 fi
17914
17915 if test "x$ac_cv_prog_cc_c89" = xno
17916 then :
17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17918 printf "%s\n" "unsupported" >&6; }
17919 else $as_nop
17920 if test "x$ac_cv_prog_cc_c89" = x
17921 then :
17922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17923 printf "%s\n" "none needed" >&6; }
17924 else $as_nop
17925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
17926 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
17927 CC="$CC $ac_cv_prog_cc_c89"
17928 fi
17929 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
17930 ac_prog_cc_stdc=c89
17931 fi
17932 fi
17933
17934 ac_ext=c
17935 ac_cpp='$CPP $CPPFLAGS'
17936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17939
17940
17941 ac_ext=c
17942 ac_cpp='$CPP $CPPFLAGS'
17943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
17947 printf %s "checking whether $CC understands -c and -o together... " >&6; }
17948 if test ${am_cv_prog_cc_c_o+y}
17949 then :
17950 printf %s "(cached) " >&6
17951 else $as_nop
17952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17953 /* end confdefs.h. */
17954
17955 int
17956 main (void)
17957 {
17958
17959 ;
17960 return 0;
17961 }
17962 _ACEOF
17963 # Make sure it works both with $CC and with simple cc.
17964 # Following AC_PROG_CC_C_O, we do the test twice because some
17965 # compilers refuse to overwrite an existing .o file with -o,
17966 # though they will create one.
17967 am_cv_prog_cc_c_o=yes
17968 for am_i in 1 2; do
17969 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
17970 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } \
17974 && test -f conftest2.$ac_objext; then
17975 : OK
17976 else
17977 am_cv_prog_cc_c_o=no
17978 break
17979 fi
17980 done
17981 rm -f core conftest*
17982 unset am_i
17983 fi
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
17985 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
17986 if test "$am_cv_prog_cc_c_o" != yes; then
17987 # Losing compiler, so override with the script.
17988 # FIXME: It is wrong to rewrite CC.
17989 # But if we don't then we get into trouble of one sort or another.
17990 # A longer-term fix would be to have automake use am__CC in this case,
17991 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17992 CC="$am_aux_dir/compile $CC"
17993 fi
17994 ac_ext=c
17995 ac_cpp='$CPP $CPPFLAGS'
17996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17999
18000
18001
18002
18003
18004
18005
18006
18007 ac_ext=cpp
18008 ac_cpp='$CXXCPP $CPPFLAGS'
18009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18012 if test -z "$CXX"; then
18013 if test -n "$CCC"; then
18014 CXX=$CCC
18015 else
18016 if test -n "$ac_tool_prefix"; then
18017 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
18018 do
18019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18022 printf %s "checking for $ac_word... " >&6; }
18023 if test ${ac_cv_prog_CXX+y}
18024 then :
18025 printf %s "(cached) " >&6
18026 else $as_nop
18027 if test -n "$CXX"; then
18028 ac_cv_prog_CXX="$CXX" # Let the user override the test.
18029 else
18030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18031 for as_dir in $PATH
18032 do
18033 IFS=$as_save_IFS
18034 case $as_dir in #(((
18035 '') as_dir=./ ;;
18036 */) ;;
18037 *) as_dir=$as_dir/ ;;
18038 esac
18039 for ac_exec_ext in '' $ac_executable_extensions; do
18040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18041 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18043 break 2
18044 fi
18045 done
18046 done
18047 IFS=$as_save_IFS
18048
18049 fi
18050 fi
18051 CXX=$ac_cv_prog_CXX
18052 if test -n "$CXX"; then
18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
18054 printf "%s\n" "$CXX" >&6; }
18055 else
18056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18057 printf "%s\n" "no" >&6; }
18058 fi
18059
18060
18061 test -n "$CXX" && break
18062 done
18063 fi
18064 if test -z "$CXX"; then
18065 ac_ct_CXX=$CXX
18066 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
18067 do
18068 # Extract the first word of "$ac_prog", so it can be a program name with args.
18069 set dummy $ac_prog; ac_word=$2
18070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18071 printf %s "checking for $ac_word... " >&6; }
18072 if test ${ac_cv_prog_ac_ct_CXX+y}
18073 then :
18074 printf %s "(cached) " >&6
18075 else $as_nop
18076 if test -n "$ac_ct_CXX"; then
18077 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18078 else
18079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18080 for as_dir in $PATH
18081 do
18082 IFS=$as_save_IFS
18083 case $as_dir in #(((
18084 '') as_dir=./ ;;
18085 */) ;;
18086 *) as_dir=$as_dir/ ;;
18087 esac
18088 for ac_exec_ext in '' $ac_executable_extensions; do
18089 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18090 ac_cv_prog_ac_ct_CXX="$ac_prog"
18091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18092 break 2
18093 fi
18094 done
18095 done
18096 IFS=$as_save_IFS
18097
18098 fi
18099 fi
18100 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18101 if test -n "$ac_ct_CXX"; then
18102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
18103 printf "%s\n" "$ac_ct_CXX" >&6; }
18104 else
18105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18106 printf "%s\n" "no" >&6; }
18107 fi
18108
18109
18110 test -n "$ac_ct_CXX" && break
18111 done
18112
18113 if test "x$ac_ct_CXX" = x; then
18114 CXX="g++"
18115 else
18116 case $cross_compiling:$ac_tool_warned in
18117 yes:)
18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18119 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18120 ac_tool_warned=yes ;;
18121 esac
18122 CXX=$ac_ct_CXX
18123 fi
18124 fi
18125
18126 fi
18127 fi
18128 # Provide some information about the compiler.
18129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
18130 set X $ac_compile
18131 ac_compiler=$2
18132 for ac_option in --version -v -V -qversion; do
18133 { { ac_try="$ac_compiler $ac_option >&5"
18134 case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18137 esac
18138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18139 printf "%s\n" "$ac_try_echo"; } >&5
18140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18141 ac_status=$?
18142 if test -s conftest.err; then
18143 sed '10a\
18144 ... rest of stderr output deleted ...
18145 10q' conftest.err >conftest.er1
18146 cat conftest.er1 >&5
18147 fi
18148 rm -f conftest.er1 conftest.err
18149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18150 test $ac_status = 0; }
18151 done
18152
18153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
18154 printf %s "checking whether the compiler supports GNU C++... " >&6; }
18155 if test ${ac_cv_cxx_compiler_gnu+y}
18156 then :
18157 printf %s "(cached) " >&6
18158 else $as_nop
18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18160 /* end confdefs.h. */
18161
18162 int
18163 main (void)
18164 {
18165 #ifndef __GNUC__
18166 choke me
18167 #endif
18168
18169 ;
18170 return 0;
18171 }
18172 _ACEOF
18173 if ac_fn_cxx_try_compile "$LINENO"
18174 then :
18175 ac_compiler_gnu=yes
18176 else $as_nop
18177 ac_compiler_gnu=no
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18180 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18181
18182 fi
18183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
18184 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
18185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18186
18187 if test $ac_compiler_gnu = yes; then
18188 GXX=yes
18189 else
18190 GXX=
18191 fi
18192 ac_test_CXXFLAGS=${CXXFLAGS+y}
18193 ac_save_CXXFLAGS=$CXXFLAGS
18194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
18195 printf %s "checking whether $CXX accepts -g... " >&6; }
18196 if test ${ac_cv_prog_cxx_g+y}
18197 then :
18198 printf %s "(cached) " >&6
18199 else $as_nop
18200 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18201 ac_cxx_werror_flag=yes
18202 ac_cv_prog_cxx_g=no
18203 CXXFLAGS="-g"
18204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18205 /* end confdefs.h. */
18206
18207 int
18208 main (void)
18209 {
18210
18211 ;
18212 return 0;
18213 }
18214 _ACEOF
18215 if ac_fn_cxx_try_compile "$LINENO"
18216 then :
18217 ac_cv_prog_cxx_g=yes
18218 else $as_nop
18219 CXXFLAGS=""
18220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18222
18223 int
18224 main (void)
18225 {
18226
18227 ;
18228 return 0;
18229 }
18230 _ACEOF
18231 if ac_fn_cxx_try_compile "$LINENO"
18232 then :
18233
18234 else $as_nop
18235 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18236 CXXFLAGS="-g"
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239
18240 int
18241 main (void)
18242 {
18243
18244 ;
18245 return 0;
18246 }
18247 _ACEOF
18248 if ac_fn_cxx_try_compile "$LINENO"
18249 then :
18250 ac_cv_prog_cxx_g=yes
18251 fi
18252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18255 fi
18256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18257 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18258 fi
18259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
18260 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
18261 if test $ac_test_CXXFLAGS; then
18262 CXXFLAGS=$ac_save_CXXFLAGS
18263 elif test $ac_cv_prog_cxx_g = yes; then
18264 if test "$GXX" = yes; then
18265 CXXFLAGS="-g -O2"
18266 else
18267 CXXFLAGS="-g"
18268 fi
18269 else
18270 if test "$GXX" = yes; then
18271 CXXFLAGS="-O2"
18272 else
18273 CXXFLAGS=
18274 fi
18275 fi
18276 ac_prog_cxx_stdcxx=no
18277 if test x$ac_prog_cxx_stdcxx = xno
18278 then :
18279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
18280 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
18281 if test ${ac_cv_prog_cxx_cxx11+y}
18282 then :
18283 printf %s "(cached) " >&6
18284 else $as_nop
18285 ac_cv_prog_cxx_cxx11=no
18286 ac_save_CXX=$CXX
18287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288 /* end confdefs.h. */
18289 $ac_cxx_conftest_cxx11_program
18290 _ACEOF
18291 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
18292 do
18293 CXX="$ac_save_CXX $ac_arg"
18294 if ac_fn_cxx_try_compile "$LINENO"
18295 then :
18296 ac_cv_prog_cxx_cxx11=$ac_arg
18297 fi
18298 rm -f core conftest.err conftest.$ac_objext conftest.beam
18299 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
18300 done
18301 rm -f conftest.$ac_ext
18302 CXX=$ac_save_CXX
18303 fi
18304
18305 if test "x$ac_cv_prog_cxx_cxx11" = xno
18306 then :
18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18308 printf "%s\n" "unsupported" >&6; }
18309 else $as_nop
18310 if test "x$ac_cv_prog_cxx_cxx11" = x
18311 then :
18312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18313 printf "%s\n" "none needed" >&6; }
18314 else $as_nop
18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
18316 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
18317 CXX="$CXX $ac_cv_prog_cxx_cxx11"
18318 fi
18319 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
18320 ac_prog_cxx_stdcxx=cxx11
18321 fi
18322 fi
18323 if test x$ac_prog_cxx_stdcxx = xno
18324 then :
18325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
18326 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
18327 if test ${ac_cv_prog_cxx_cxx98+y}
18328 then :
18329 printf %s "(cached) " >&6
18330 else $as_nop
18331 ac_cv_prog_cxx_cxx98=no
18332 ac_save_CXX=$CXX
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18335 $ac_cxx_conftest_cxx98_program
18336 _ACEOF
18337 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
18338 do
18339 CXX="$ac_save_CXX $ac_arg"
18340 if ac_fn_cxx_try_compile "$LINENO"
18341 then :
18342 ac_cv_prog_cxx_cxx98=$ac_arg
18343 fi
18344 rm -f core conftest.err conftest.$ac_objext conftest.beam
18345 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
18346 done
18347 rm -f conftest.$ac_ext
18348 CXX=$ac_save_CXX
18349 fi
18350
18351 if test "x$ac_cv_prog_cxx_cxx98" = xno
18352 then :
18353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18354 printf "%s\n" "unsupported" >&6; }
18355 else $as_nop
18356 if test "x$ac_cv_prog_cxx_cxx98" = x
18357 then :
18358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18359 printf "%s\n" "none needed" >&6; }
18360 else $as_nop
18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
18362 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
18363 CXX="$CXX $ac_cv_prog_cxx_cxx98"
18364 fi
18365 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
18366 ac_prog_cxx_stdcxx=cxx98
18367 fi
18368 fi
18369
18370 ac_ext=c
18371 ac_cpp='$CPP $CPPFLAGS'
18372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18375
18376 if test -n "$CXX" && ( test no != "$CXX" &&
18377 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
18378 (test g++ != "$CXX"))); then
18379 ac_ext=cpp
18380 ac_cpp='$CXXCPP $CPPFLAGS'
18381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18385 printf %s "checking how to run the C++ preprocessor... " >&6; }
18386 if test -z "$CXXCPP"; then
18387 if test ${ac_cv_prog_CXXCPP+y}
18388 then :
18389 printf %s "(cached) " >&6
18390 else $as_nop
18391 # Double quotes because $CXX needs to be expanded
18392 for CXXCPP in "$CXX -E" cpp /lib/cpp
18393 do
18394 ac_preproc_ok=false
18395 for ac_cxx_preproc_warn_flag in '' yes
18396 do
18397 # Use a header file that comes with gcc, so configuring glibc
18398 # with a fresh cross-compiler works.
18399 # On the NeXT, cc -E runs the code through the compiler's parser,
18400 # not just through cpp. "Syntax error" is here to catch this case.
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18403 #include <limits.h>
18404 Syntax error
18405 _ACEOF
18406 if ac_fn_cxx_try_cpp "$LINENO"
18407 then :
18408
18409 else $as_nop
18410 # Broken: fails on valid input.
18411 continue
18412 fi
18413 rm -f conftest.err conftest.i conftest.$ac_ext
18414
18415 # OK, works on sane cases. Now check whether nonexistent headers
18416 # can be detected and how.
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h. */
18419 #include <ac_nonexistent.h>
18420 _ACEOF
18421 if ac_fn_cxx_try_cpp "$LINENO"
18422 then :
18423 # Broken: success on invalid input.
18424 continue
18425 else $as_nop
18426 # Passes both tests.
18427 ac_preproc_ok=:
18428 break
18429 fi
18430 rm -f conftest.err conftest.i conftest.$ac_ext
18431
18432 done
18433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18434 rm -f conftest.i conftest.err conftest.$ac_ext
18435 if $ac_preproc_ok
18436 then :
18437 break
18438 fi
18439
18440 done
18441 ac_cv_prog_CXXCPP=$CXXCPP
18442
18443 fi
18444 CXXCPP=$ac_cv_prog_CXXCPP
18445 else
18446 ac_cv_prog_CXXCPP=$CXXCPP
18447 fi
18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18449 printf "%s\n" "$CXXCPP" >&6; }
18450 ac_preproc_ok=false
18451 for ac_cxx_preproc_warn_flag in '' yes
18452 do
18453 # Use a header file that comes with gcc, so configuring glibc
18454 # with a fresh cross-compiler works.
18455 # On the NeXT, cc -E runs the code through the compiler's parser,
18456 # not just through cpp. "Syntax error" is here to catch this case.
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18459 #include <limits.h>
18460 Syntax error
18461 _ACEOF
18462 if ac_fn_cxx_try_cpp "$LINENO"
18463 then :
18464
18465 else $as_nop
18466 # Broken: fails on valid input.
18467 continue
18468 fi
18469 rm -f conftest.err conftest.i conftest.$ac_ext
18470
18471 # OK, works on sane cases. Now check whether nonexistent headers
18472 # can be detected and how.
18473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18474 /* end confdefs.h. */
18475 #include <ac_nonexistent.h>
18476 _ACEOF
18477 if ac_fn_cxx_try_cpp "$LINENO"
18478 then :
18479 # Broken: success on invalid input.
18480 continue
18481 else $as_nop
18482 # Passes both tests.
18483 ac_preproc_ok=:
18484 break
18485 fi
18486 rm -f conftest.err conftest.i conftest.$ac_ext
18487
18488 done
18489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18490 rm -f conftest.i conftest.err conftest.$ac_ext
18491 if $ac_preproc_ok
18492 then :
18493
18494 else $as_nop
18495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18496 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18497 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18498 See \`config.log' for more details" "$LINENO" 5; }
18499 fi
18500
18501 ac_ext=c
18502 ac_cpp='$CPP $CPPFLAGS'
18503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18506
18507 else
18508 _lt_caught_CXX_error=yes
18509 fi
18510
18511 ac_ext=cpp
18512 ac_cpp='$CXXCPP $CPPFLAGS'
18513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18516
18517 archive_cmds_need_lc_CXX=no
18518 allow_undefined_flag_CXX=
18519 always_export_symbols_CXX=no
18520 archive_expsym_cmds_CXX=
18521 compiler_needs_object_CXX=no
18522 export_dynamic_flag_spec_CXX=
18523 hardcode_direct_CXX=no
18524 hardcode_direct_absolute_CXX=no
18525 hardcode_libdir_flag_spec_CXX=
18526 hardcode_libdir_separator_CXX=
18527 hardcode_minus_L_CXX=no
18528 hardcode_shlibpath_var_CXX=unsupported
18529 hardcode_automatic_CXX=no
18530 inherit_rpath_CXX=no
18531 module_cmds_CXX=
18532 module_expsym_cmds_CXX=
18533 link_all_deplibs_CXX=unknown
18534 old_archive_cmds_CXX=$old_archive_cmds
18535 reload_flag_CXX=$reload_flag
18536 reload_cmds_CXX=$reload_cmds
18537 no_undefined_flag_CXX=
18538 whole_archive_flag_spec_CXX=
18539 enable_shared_with_static_runtimes_CXX=no
18540
18541 # Source file extension for C++ test sources.
18542 ac_ext=cpp
18543
18544 # Object file extension for compiled C++ test sources.
18545 objext=o
18546 objext_CXX=$objext
18547
18548 # No sense in running all these tests if we already determined that
18549 # the CXX compiler isn't working. Some variables (like enable_shared)
18550 # are currently assumed to apply to all compilers on this platform,
18551 # and will be corrupted by setting them based on a non-working compiler.
18552 if test yes != "$_lt_caught_CXX_error"; then
18553 # Code to be used in simple compile tests
18554 lt_simple_compile_test_code="int some_variable = 0;"
18555
18556 # Code to be used in simple link tests
18557 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18558
18559 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18560
18561
18562
18563
18564
18565
18566 # If no C compiler was specified, use CC.
18567 LTCC=${LTCC-"$CC"}
18568
18569 # If no C compiler flags were specified, use CFLAGS.
18570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18571
18572 # Allow CC to be a program name with arguments.
18573 compiler=$CC
18574
18575
18576 # save warnings/boilerplate of simple test code
18577 ac_outfile=conftest.$ac_objext
18578 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18579 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18580 _lt_compiler_boilerplate=`cat conftest.err`
18581 $RM conftest*
18582
18583 ac_outfile=conftest.$ac_objext
18584 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18585 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18586 _lt_linker_boilerplate=`cat conftest.err`
18587 $RM -r conftest*
18588
18589
18590 # Allow CC to be a program name with arguments.
18591 lt_save_CC=$CC
18592 lt_save_CFLAGS=$CFLAGS
18593 lt_save_LD=$LD
18594 lt_save_GCC=$GCC
18595 GCC=$GXX
18596 lt_save_with_gnu_ld=$with_gnu_ld
18597 lt_save_path_LD=$lt_cv_path_LD
18598 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18599 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18600 else
18601 $as_unset lt_cv_prog_gnu_ld
18602 fi
18603 if test -n "${lt_cv_path_LDCXX+set}"; then
18604 lt_cv_path_LD=$lt_cv_path_LDCXX
18605 else
18606 $as_unset lt_cv_path_LD
18607 fi
18608 test -z "${LDCXX+set}" || LD=$LDCXX
18609 CC=${CXX-"c++"}
18610 CFLAGS=$CXXFLAGS
18611 compiler=$CC
18612 compiler_CXX=$CC
18613 func_cc_basename $compiler
18614 cc_basename=$func_cc_basename_result
18615
18616
18617 if test -n "$compiler"; then
18618 # We don't want -fno-exception when compiling C++ code, so set the
18619 # no_builtin_flag separately
18620 if test yes = "$GXX"; then
18621 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18622 else
18623 lt_prog_compiler_no_builtin_flag_CXX=
18624 fi
18625
18626 if test yes = "$GXX"; then
18627 # Set up default GNU C++ configuration
18628
18629
18630
18631 # Check whether --with-gnu-ld was given.
18632 if test ${with_gnu_ld+y}
18633 then :
18634 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
18635 else $as_nop
18636 with_gnu_ld=no
18637 fi
18638
18639 ac_prog=ld
18640 if test yes = "$GCC"; then
18641 # Check if gcc -print-prog-name=ld gives a path.
18642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18643 printf %s "checking for ld used by $CC... " >&6; }
18644 case $host in
18645 *-*-mingw*)
18646 # gcc leaves a trailing carriage return, which upsets mingw
18647 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18648 *)
18649 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18650 esac
18651 case $ac_prog in
18652 # Accept absolute paths.
18653 [\\/]* | ?:[\\/]*)
18654 re_direlt='/[^/][^/]*/\.\./'
18655 # Canonicalize the pathname of ld
18656 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18657 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18658 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18659 done
18660 test -z "$LD" && LD=$ac_prog
18661 ;;
18662 "")
18663 # If it fails, then pretend we aren't using GCC.
18664 ac_prog=ld
18665 ;;
18666 *)
18667 # If it is relative, then search for the first ld in PATH.
18668 with_gnu_ld=unknown
18669 ;;
18670 esac
18671 elif test yes = "$with_gnu_ld"; then
18672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18673 printf %s "checking for GNU ld... " >&6; }
18674 else
18675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18676 printf %s "checking for non-GNU ld... " >&6; }
18677 fi
18678 if test ${lt_cv_path_LD+y}
18679 then :
18680 printf %s "(cached) " >&6
18681 else $as_nop
18682 if test -z "$LD"; then
18683 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18684 for ac_dir in $PATH; do
18685 IFS=$lt_save_ifs
18686 test -z "$ac_dir" && ac_dir=.
18687 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18688 lt_cv_path_LD=$ac_dir/$ac_prog
18689 # Check to see if the program is GNU ld. I'd rather use --version,
18690 # but apparently some variants of GNU ld only accept -v.
18691 # Break only if it was the GNU/non-GNU ld that we prefer.
18692 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18693 *GNU* | *'with BFD'*)
18694 test no != "$with_gnu_ld" && break
18695 ;;
18696 *)
18697 test yes != "$with_gnu_ld" && break
18698 ;;
18699 esac
18700 fi
18701 done
18702 IFS=$lt_save_ifs
18703 else
18704 lt_cv_path_LD=$LD # Let the user override the test with a path.
18705 fi
18706 fi
18707
18708 LD=$lt_cv_path_LD
18709 if test -n "$LD"; then
18710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18711 printf "%s\n" "$LD" >&6; }
18712 else
18713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18714 printf "%s\n" "no" >&6; }
18715 fi
18716 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18718 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
18719 if test ${lt_cv_prog_gnu_ld+y}
18720 then :
18721 printf %s "(cached) " >&6
18722 else $as_nop
18723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18724 case `$LD -v 2>&1 </dev/null` in
18725 *GNU* | *'with BFD'*)
18726 lt_cv_prog_gnu_ld=yes
18727 ;;
18728 *)
18729 lt_cv_prog_gnu_ld=no
18730 ;;
18731 esac
18732 fi
18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18734 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
18735 with_gnu_ld=$lt_cv_prog_gnu_ld
18736
18737
18738
18739
18740
18741
18742
18743 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18744 # archiving commands below assume that GNU ld is being used.
18745 if test yes = "$with_gnu_ld"; then
18746 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18747 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18748
18749 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18750 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18751
18752 # If archive_cmds runs LD, not CC, wlarc should be empty
18753 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18754 # investigate it a little bit more. (MM)
18755 wlarc='$wl'
18756
18757 # ancient GNU ld didn't support --whole-archive et. al.
18758 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18759 $GREP 'no-whole-archive' > /dev/null; then
18760 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18761 else
18762 whole_archive_flag_spec_CXX=
18763 fi
18764 else
18765 with_gnu_ld=no
18766 wlarc=
18767
18768 # A generic and very simple default shared library creation
18769 # command for GNU C++ for the case where it uses the native
18770 # linker, instead of GNU ld. If possible, this setting should
18771 # overridden to take advantage of the native linker features on
18772 # the platform it is being used on.
18773 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18774 fi
18775
18776 # Commands to make compiler produce verbose output that lists
18777 # what "hidden" libraries, object files and flags are used when
18778 # linking a shared library.
18779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
18780
18781 else
18782 GXX=no
18783 with_gnu_ld=no
18784 wlarc=
18785 fi
18786
18787 # PORTME: fill in a description of your system's C++ link characteristics
18788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18789 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18790 ld_shlibs_CXX=yes
18791 case $host_os in
18792 aix3*)
18793 # FIXME: insert proper C++ library support
18794 ld_shlibs_CXX=no
18795 ;;
18796 aix[4-9]*)
18797 if test ia64 = "$host_cpu"; then
18798 # On IA64, the linker does run time linking by default, so we don't
18799 # have to do anything special.
18800 aix_use_runtimelinking=no
18801 exp_sym_flag='-Bexport'
18802 no_entry_flag=
18803 else
18804 aix_use_runtimelinking=no
18805
18806 # Test if we are trying to use run time linking or normal
18807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18808 # have runtime linking enabled, and use it for executables.
18809 # For shared libraries, we enable/disable runtime linking
18810 # depending on the kind of the shared library created -
18811 # when "with_aix_soname,aix_use_runtimelinking" is:
18812 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
18813 # "aix,yes" lib.so shared, rtl:yes, for executables
18814 # lib.a static archive
18815 # "both,no" lib.so.V(shr.o) shared, rtl:yes
18816 # lib.a(lib.so.V) shared, rtl:no, for executables
18817 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
18818 # lib.a(lib.so.V) shared, rtl:no
18819 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
18820 # lib.a static archive
18821 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18822 for ld_flag in $LDFLAGS; do
18823 case $ld_flag in
18824 *-brtl*)
18825 aix_use_runtimelinking=yes
18826 break
18827 ;;
18828 esac
18829 done
18830 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
18831 # With aix-soname=svr4, we create the lib.so.V shared archives only,
18832 # so we don't have lib.a shared libs to link our executables.
18833 # We have to force runtime linking in this case.
18834 aix_use_runtimelinking=yes
18835 LDFLAGS="$LDFLAGS -Wl,-brtl"
18836 fi
18837 ;;
18838 esac
18839
18840 exp_sym_flag='-bexport'
18841 no_entry_flag='-bnoentry'
18842 fi
18843
18844 # When large executables or shared objects are built, AIX ld can
18845 # have problems creating the table of contents. If linking a library
18846 # or program results in "error TOC overflow" add -mminimal-toc to
18847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18849
18850 archive_cmds_CXX=''
18851 hardcode_direct_CXX=yes
18852 hardcode_direct_absolute_CXX=yes
18853 hardcode_libdir_separator_CXX=':'
18854 link_all_deplibs_CXX=yes
18855 file_list_spec_CXX='$wl-f,'
18856 case $with_aix_soname,$aix_use_runtimelinking in
18857 aix,*) ;; # no import file
18858 svr4,* | *,yes) # use import file
18859 # The Import File defines what to hardcode.
18860 hardcode_direct_CXX=no
18861 hardcode_direct_absolute_CXX=no
18862 ;;
18863 esac
18864
18865 if test yes = "$GXX"; then
18866 case $host_os in aix4.[012]|aix4.[012].*)
18867 # We only want to do this on AIX 4.2 and lower, the check
18868 # below for broken collect2 doesn't work under 4.3+
18869 collect2name=`$CC -print-prog-name=collect2`
18870 if test -f "$collect2name" &&
18871 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18872 then
18873 # We have reworked collect2
18874 :
18875 else
18876 # We have old collect2
18877 hardcode_direct_CXX=unsupported
18878 # It fails to find uninstalled libraries when the uninstalled
18879 # path is not listed in the libpath. Setting hardcode_minus_L
18880 # to unsupported forces relinking
18881 hardcode_minus_L_CXX=yes
18882 hardcode_libdir_flag_spec_CXX='-L$libdir'
18883 hardcode_libdir_separator_CXX=
18884 fi
18885 esac
18886 shared_flag='-shared'
18887 if test yes = "$aix_use_runtimelinking"; then
18888 shared_flag=$shared_flag' $wl-G'
18889 fi
18890 # Need to ensure runtime linking is disabled for the traditional
18891 # shared library, or the linker may eventually find shared libraries
18892 # /with/ Import File - we do not want to mix them.
18893 shared_flag_aix='-shared'
18894 shared_flag_svr4='-shared $wl-G'
18895 else
18896 # not using gcc
18897 if test ia64 = "$host_cpu"; then
18898 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18899 # chokes on -Wl,-G. The following line is correct:
18900 shared_flag='-G'
18901 else
18902 if test yes = "$aix_use_runtimelinking"; then
18903 shared_flag='$wl-G'
18904 else
18905 shared_flag='$wl-bM:SRE'
18906 fi
18907 shared_flag_aix='$wl-bM:SRE'
18908 shared_flag_svr4='$wl-G'
18909 fi
18910 fi
18911
18912 export_dynamic_flag_spec_CXX='$wl-bexpall'
18913 # It seems that -bexpall does not export symbols beginning with
18914 # underscore (_), so it is better to generate a list of symbols to
18915 # export.
18916 always_export_symbols_CXX=yes
18917 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
18918 # Warning - without using the other runtime loading flags (-brtl),
18919 # -berok will link without error, but may produce a broken library.
18920 # The "-G" linker flag allows undefined symbols.
18921 no_undefined_flag_CXX='-bernotok'
18922 # Determine the default libpath from the value encoded in an empty
18923 # executable.
18924 if test set = "${lt_cv_aix_libpath+set}"; then
18925 aix_libpath=$lt_cv_aix_libpath
18926 else
18927 if test ${lt_cv_aix_libpath__CXX+y}
18928 then :
18929 printf %s "(cached) " >&6
18930 else $as_nop
18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h. */
18933
18934 int
18935 main (void)
18936 {
18937
18938 ;
18939 return 0;
18940 }
18941 _ACEOF
18942 if ac_fn_cxx_try_link "$LINENO"
18943 then :
18944
18945 lt_aix_libpath_sed='
18946 /Import File Strings/,/^$/ {
18947 /^0/ {
18948 s/^0 *\([^ ]*\) *$/\1/
18949 p
18950 }
18951 }'
18952 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18953 # Check for a 64-bit object if we didn't find anything.
18954 if test -z "$lt_cv_aix_libpath__CXX"; then
18955 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18956 fi
18957 fi
18958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18959 conftest$ac_exeext conftest.$ac_ext
18960 if test -z "$lt_cv_aix_libpath__CXX"; then
18961 lt_cv_aix_libpath__CXX=/usr/lib:/lib
18962 fi
18963
18964 fi
18965
18966 aix_libpath=$lt_cv_aix_libpath__CXX
18967 fi
18968
18969 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
18970
18971 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
18972 else
18973 if test ia64 = "$host_cpu"; then
18974 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
18975 allow_undefined_flag_CXX="-z nodefs"
18976 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"
18977 else
18978 # Determine the default libpath from the value encoded in an
18979 # empty executable.
18980 if test set = "${lt_cv_aix_libpath+set}"; then
18981 aix_libpath=$lt_cv_aix_libpath
18982 else
18983 if test ${lt_cv_aix_libpath__CXX+y}
18984 then :
18985 printf %s "(cached) " >&6
18986 else $as_nop
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988 /* end confdefs.h. */
18989
18990 int
18991 main (void)
18992 {
18993
18994 ;
18995 return 0;
18996 }
18997 _ACEOF
18998 if ac_fn_cxx_try_link "$LINENO"
18999 then :
19000
19001 lt_aix_libpath_sed='
19002 /Import File Strings/,/^$/ {
19003 /^0/ {
19004 s/^0 *\([^ ]*\) *$/\1/
19005 p
19006 }
19007 }'
19008 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19009 # Check for a 64-bit object if we didn't find anything.
19010 if test -z "$lt_cv_aix_libpath__CXX"; then
19011 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19012 fi
19013 fi
19014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19015 conftest$ac_exeext conftest.$ac_ext
19016 if test -z "$lt_cv_aix_libpath__CXX"; then
19017 lt_cv_aix_libpath__CXX=/usr/lib:/lib
19018 fi
19019
19020 fi
19021
19022 aix_libpath=$lt_cv_aix_libpath__CXX
19023 fi
19024
19025 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19026 # Warning - without using the other run time loading flags,
19027 # -berok will link without error, but may produce a broken library.
19028 no_undefined_flag_CXX=' $wl-bernotok'
19029 allow_undefined_flag_CXX=' $wl-berok'
19030 if test yes = "$with_gnu_ld"; then
19031 # We only use this code for GNU lds that support --whole-archive.
19032 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19033 else
19034 # Exported symbols can be pulled into shared objects from archives
19035 whole_archive_flag_spec_CXX='$convenience'
19036 fi
19037 archive_cmds_need_lc_CXX=yes
19038 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19039 # -brtl affects multiple linker settings, -berok does not and is overridden later
19040 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19041 if test svr4 != "$with_aix_soname"; then
19042 # This is similar to how AIX traditionally builds its shared
19043 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
19044 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
19045 fi
19046 if test aix != "$with_aix_soname"; then
19047 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
19048 else
19049 # used by -dlpreopen to get the symbols
19050 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
19051 fi
19052 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
19053 fi
19054 fi
19055 ;;
19056
19057 beos*)
19058 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19059 allow_undefined_flag_CXX=unsupported
19060 # Joseph Beckenbach <[email protected]> says some releases of gcc
19061 # support --undefined. This deserves some investigation. FIXME
19062 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19063 else
19064 ld_shlibs_CXX=no
19065 fi
19066 ;;
19067
19068 chorus*)
19069 case $cc_basename in
19070 *)
19071 # FIXME: insert proper C++ library support
19072 ld_shlibs_CXX=no
19073 ;;
19074 esac
19075 ;;
19076
19077 cygwin* | mingw* | pw32* | cegcc*)
19078 case $GXX,$cc_basename in
19079 ,cl* | no,cl* | ,icl* | no,icl*)
19080 # Native MSVC or ICC
19081 # hardcode_libdir_flag_spec is actually meaningless, as there is
19082 # no search path for DLLs.
19083 hardcode_libdir_flag_spec_CXX=' '
19084 allow_undefined_flag_CXX=unsupported
19085 always_export_symbols_CXX=yes
19086 file_list_spec_CXX='@'
19087 # Tell ltmain to make .lib files, not .a files.
19088 libext=lib
19089 # Tell ltmain to make .dll files, not .so files.
19090 shrext_cmds=.dll
19091 # FIXME: Setting linknames here is a bad hack.
19092 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19093 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19094 cp "$export_symbols" "$output_objdir/$soname.def";
19095 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19096 else
19097 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19098 fi~
19099 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19100 linknames='
19101 # The linker will not automatically build a static lib if we build a DLL.
19102 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19103 enable_shared_with_static_runtimes_CXX=yes
19104 # Don't use ranlib
19105 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19106 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
19107 lt_tool_outputfile="@TOOL_OUTPUT@"~
19108 case $lt_outputfile in
19109 *.exe|*.EXE) ;;
19110 *)
19111 lt_outputfile=$lt_outputfile.exe
19112 lt_tool_outputfile=$lt_tool_outputfile.exe
19113 ;;
19114 esac~
19115 func_to_tool_file "$lt_outputfile"~
19116 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19117 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19118 $RM "$lt_outputfile.manifest";
19119 fi'
19120 ;;
19121 *)
19122 # g++
19123 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19124 # as there is no search path for DLLs.
19125 hardcode_libdir_flag_spec_CXX='-L$libdir'
19126 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
19127 allow_undefined_flag_CXX=unsupported
19128 always_export_symbols_CXX=no
19129 enable_shared_with_static_runtimes_CXX=yes
19130
19131 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19132 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'
19133 # If the export-symbols file already is a .def file, use it as
19134 # is; otherwise, prepend EXPORTS...
19135 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19136 cp $export_symbols $output_objdir/$soname.def;
19137 else
19138 echo EXPORTS > $output_objdir/$soname.def;
19139 cat $export_symbols >> $output_objdir/$soname.def;
19140 fi~
19141 $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'
19142 else
19143 ld_shlibs_CXX=no
19144 fi
19145 ;;
19146 esac
19147 ;;
19148 darwin* | rhapsody*)
19149
19150
19151 archive_cmds_need_lc_CXX=no
19152 hardcode_direct_CXX=no
19153 hardcode_automatic_CXX=yes
19154 hardcode_shlibpath_var_CXX=unsupported
19155 if test yes = "$lt_cv_ld_force_load"; then
19156 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19157
19158 else
19159 whole_archive_flag_spec_CXX=''
19160 fi
19161 link_all_deplibs_CXX=yes
19162 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
19163 case $cc_basename in
19164 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19165 *) _lt_dar_can_shared=$GCC ;;
19166 esac
19167 if test yes = "$_lt_dar_can_shared"; then
19168 output_verbose_link_cmd=func_echo_all
19169 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
19170 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19171 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
19172 module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
19173 if test yes != "$lt_cv_apple_cc_single_mod"; then
19174 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$_lt_dsymutil"
19175 archive_expsym_cmds_CXX="$SED '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$_lt_dar_export_syms$_lt_dsymutil"
19176 fi
19177
19178 else
19179 ld_shlibs_CXX=no
19180 fi
19181
19182 ;;
19183
19184 os2*)
19185 hardcode_libdir_flag_spec_CXX='-L$libdir'
19186 hardcode_minus_L_CXX=yes
19187 allow_undefined_flag_CXX=unsupported
19188 shrext_cmds=.dll
19189 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19190 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19191 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19192 $ECHO EXPORTS >> $output_objdir/$libname.def~
19193 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19194 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19195 emximp -o $lib $output_objdir/$libname.def'
19196 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19197 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19198 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19199 $ECHO EXPORTS >> $output_objdir/$libname.def~
19200 prefix_cmds="$SED"~
19201 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19202 prefix_cmds="$prefix_cmds -e 1d";
19203 fi~
19204 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19205 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19206 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19207 emximp -o $lib $output_objdir/$libname.def'
19208 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19209 enable_shared_with_static_runtimes_CXX=yes
19210 file_list_spec_CXX='@'
19211 ;;
19212
19213 dgux*)
19214 case $cc_basename in
19215 ec++*)
19216 # FIXME: insert proper C++ library support
19217 ld_shlibs_CXX=no
19218 ;;
19219 ghcx*)
19220 # Green Hills C++ Compiler
19221 # FIXME: insert proper C++ library support
19222 ld_shlibs_CXX=no
19223 ;;
19224 *)
19225 # FIXME: insert proper C++ library support
19226 ld_shlibs_CXX=no
19227 ;;
19228 esac
19229 ;;
19230
19231 freebsd2.*)
19232 # C++ shared libraries reported to be fairly broken before
19233 # switch to ELF
19234 ld_shlibs_CXX=no
19235 ;;
19236
19237 freebsd-elf*)
19238 archive_cmds_need_lc_CXX=no
19239 ;;
19240
19241 freebsd* | dragonfly* | midnightbsd*)
19242 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19243 # conventions
19244 ld_shlibs_CXX=yes
19245 ;;
19246
19247 haiku*)
19248 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19249 link_all_deplibs_CXX=yes
19250 ;;
19251
19252 hpux9*)
19253 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
19254 hardcode_libdir_separator_CXX=:
19255 export_dynamic_flag_spec_CXX='$wl-E'
19256 hardcode_direct_CXX=yes
19257 hardcode_minus_L_CXX=yes # Not in the search PATH,
19258 # but as the default
19259 # location of the library.
19260
19261 case $cc_basename in
19262 CC*)
19263 # FIXME: insert proper C++ library support
19264 ld_shlibs_CXX=no
19265 ;;
19266 aCC*)
19267 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
19268 # Commands to make compiler produce verbose output that lists
19269 # what "hidden" libraries, object files and flags are used when
19270 # linking a shared library.
19271 #
19272 # There doesn't appear to be a way to prevent this compiler from
19273 # explicitly linking system object files so we need to strip them
19274 # from the output so that they don't get included in the library
19275 # dependencies.
19276 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19277 ;;
19278 *)
19279 if test yes = "$GXX"; then
19280 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
19281 else
19282 # FIXME: insert proper C++ library support
19283 ld_shlibs_CXX=no
19284 fi
19285 ;;
19286 esac
19287 ;;
19288
19289 hpux10*|hpux11*)
19290 if test no = "$with_gnu_ld"; then
19291 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
19292 hardcode_libdir_separator_CXX=:
19293
19294 case $host_cpu in
19295 hppa*64*|ia64*)
19296 ;;
19297 *)
19298 export_dynamic_flag_spec_CXX='$wl-E'
19299 ;;
19300 esac
19301 fi
19302 case $host_cpu in
19303 hppa*64*|ia64*)
19304 hardcode_direct_CXX=no
19305 hardcode_shlibpath_var_CXX=no
19306 ;;
19307 *)
19308 hardcode_direct_CXX=yes
19309 hardcode_direct_absolute_CXX=yes
19310 hardcode_minus_L_CXX=yes # Not in the search PATH,
19311 # but as the default
19312 # location of the library.
19313 ;;
19314 esac
19315
19316 case $cc_basename in
19317 CC*)
19318 # FIXME: insert proper C++ library support
19319 ld_shlibs_CXX=no
19320 ;;
19321 aCC*)
19322 case $host_cpu in
19323 hppa*64*)
19324 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19325 ;;
19326 ia64*)
19327 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19328 ;;
19329 *)
19330 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19331 ;;
19332 esac
19333 # Commands to make compiler produce verbose output that lists
19334 # what "hidden" libraries, object files and flags are used when
19335 # linking a shared library.
19336 #
19337 # There doesn't appear to be a way to prevent this compiler from
19338 # explicitly linking system object files so we need to strip them
19339 # from the output so that they don't get included in the library
19340 # dependencies.
19341 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; func_echo_all "$list"'
19342 ;;
19343 *)
19344 if test yes = "$GXX"; then
19345 if test no = "$with_gnu_ld"; then
19346 case $host_cpu in
19347 hppa*64*)
19348 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19349 ;;
19350 ia64*)
19351 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19352 ;;
19353 *)
19354 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19355 ;;
19356 esac
19357 fi
19358 else
19359 # FIXME: insert proper C++ library support
19360 ld_shlibs_CXX=no
19361 fi
19362 ;;
19363 esac
19364 ;;
19365
19366 interix[3-9]*)
19367 hardcode_direct_CXX=no
19368 hardcode_shlibpath_var_CXX=no
19369 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19370 export_dynamic_flag_spec_CXX='$wl-E'
19371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19372 # Instead, shared libraries are loaded at an image base (0x10000000 by
19373 # default) and relocated if they conflict, which is a slow very memory
19374 # consuming and fragmenting process. To avoid this, we pick a random,
19375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19376 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19377 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'
19378 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'
19379 ;;
19380 irix5* | irix6*)
19381 case $cc_basename in
19382 CC*)
19383 # SGI C++
19384 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
19385
19386 # Archives containing C++ object files must be created using
19387 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19388 # necessary to make sure instantiated templates are included
19389 # in the archive.
19390 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19391 ;;
19392 *)
19393 if test yes = "$GXX"; then
19394 if test no = "$with_gnu_ld"; then
19395 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
19396 else
19397 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
19398 fi
19399 fi
19400 link_all_deplibs_CXX=yes
19401 ;;
19402 esac
19403 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19404 hardcode_libdir_separator_CXX=:
19405 inherit_rpath_CXX=yes
19406 ;;
19407
19408 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19409 case $cc_basename in
19410 KCC*)
19411 # Kuck and Associates, Inc. (KAI) C++ Compiler
19412
19413 # KCC will only create a shared library if the output file
19414 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19415 # to its proper name (with version) after linking.
19416 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'
19417 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'
19418 # Commands to make compiler produce verbose output that lists
19419 # what "hidden" libraries, object files and flags are used when
19420 # linking a shared library.
19421 #
19422 # There doesn't appear to be a way to prevent this compiler from
19423 # explicitly linking system object files so we need to strip them
19424 # from the output so that they don't get included in the library
19425 # dependencies.
19426 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; func_echo_all "$list"'
19427
19428 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19429 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19430
19431 # Archives containing C++ object files must be created using
19432 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19433 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19434 ;;
19435 icpc* | ecpc* )
19436 # Intel C++
19437 with_gnu_ld=yes
19438 # version 8.0 and above of icpc choke on multiply defined symbols
19439 # if we add $predep_objects and $postdep_objects, however 7.1 and
19440 # earlier do not add the objects themselves.
19441 case `$CC -V 2>&1` in
19442 *"Version 7."*)
19443 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19444 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'
19445 ;;
19446 *) # Version 8.0 or newer
19447 tmp_idyn=
19448 case $host_cpu in
19449 ia64*) tmp_idyn=' -i_dynamic';;
19450 esac
19451 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19452 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'
19453 ;;
19454 esac
19455 archive_cmds_need_lc_CXX=no
19456 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19457 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19458 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19459 ;;
19460 pgCC* | pgcpp*)
19461 # Portland Group C++ compiler
19462 case `$CC -V` in
19463 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19464 prelink_cmds_CXX='tpldir=Template.dir~
19465 rm -rf $tpldir~
19466 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19467 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19468 old_archive_cmds_CXX='tpldir=Template.dir~
19469 rm -rf $tpldir~
19470 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19471 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19472 $RANLIB $oldlib'
19473 archive_cmds_CXX='tpldir=Template.dir~
19474 rm -rf $tpldir~
19475 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19476 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19477 archive_expsym_cmds_CXX='tpldir=Template.dir~
19478 rm -rf $tpldir~
19479 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19480 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19481 ;;
19482 *) # Version 6 and above use weak symbols
19483 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19484 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'
19485 ;;
19486 esac
19487
19488 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
19489 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19490 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
19491 ;;
19492 cxx*)
19493 # Compaq C++
19494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19495 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'
19496
19497 runpath_var=LD_RUN_PATH
19498 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19499 hardcode_libdir_separator_CXX=:
19500
19501 # Commands to make compiler produce verbose output that lists
19502 # what "hidden" libraries, object files and flags are used when
19503 # linking a shared library.
19504 #
19505 # There doesn't appear to be a way to prevent this compiler from
19506 # explicitly linking system object files so we need to strip them
19507 # from the output so that they don't get included in the library
19508 # dependencies.
19509 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
19510 ;;
19511 xl* | mpixl* | bgxl*)
19512 # IBM XL 8.0 on PPC, with GNU ld
19513 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19514 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19515 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19516 if test yes = "$supports_anon_versioning"; then
19517 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19518 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19519 echo "local: *; };" >> $output_objdir/$libname.ver~
19520 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
19521 fi
19522 ;;
19523 *)
19524 case `$CC -V 2>&1 | $SED 5q` in
19525 *Sun\ C*)
19526 # Sun C++ 5.9
19527 no_undefined_flag_CXX=' -zdefs'
19528 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19529 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
19530 hardcode_libdir_flag_spec_CXX='-R$libdir'
19531 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
19532 compiler_needs_object_CXX=yes
19533
19534 # Not sure whether something based on
19535 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19536 # would be better.
19537 output_verbose_link_cmd='func_echo_all'
19538
19539 # Archives containing C++ object files must be created using
19540 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19541 # necessary to make sure instantiated templates are included
19542 # in the archive.
19543 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19544 ;;
19545 esac
19546 ;;
19547 esac
19548 ;;
19549
19550 lynxos*)
19551 # FIXME: insert proper C++ library support
19552 ld_shlibs_CXX=no
19553 ;;
19554
19555 m88k*)
19556 # FIXME: insert proper C++ library support
19557 ld_shlibs_CXX=no
19558 ;;
19559
19560 mvs*)
19561 case $cc_basename in
19562 cxx*)
19563 # FIXME: insert proper C++ library support
19564 ld_shlibs_CXX=no
19565 ;;
19566 *)
19567 # FIXME: insert proper C++ library support
19568 ld_shlibs_CXX=no
19569 ;;
19570 esac
19571 ;;
19572
19573 netbsd*)
19574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19575 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19576 wlarc=
19577 hardcode_libdir_flag_spec_CXX='-R$libdir'
19578 hardcode_direct_CXX=yes
19579 hardcode_shlibpath_var_CXX=no
19580 fi
19581 # Workaround some broken pre-1.5 toolchains
19582 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19583 ;;
19584
19585 *nto* | *qnx*)
19586 ld_shlibs_CXX=yes
19587 ;;
19588
19589 openbsd* | bitrig*)
19590 if test -f /usr/libexec/ld.so; then
19591 hardcode_direct_CXX=yes
19592 hardcode_shlibpath_var_CXX=no
19593 hardcode_direct_absolute_CXX=yes
19594 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19595 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
19597 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
19598 export_dynamic_flag_spec_CXX='$wl-E'
19599 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19600 fi
19601 output_verbose_link_cmd=func_echo_all
19602 else
19603 ld_shlibs_CXX=no
19604 fi
19605 ;;
19606
19607 osf3* | osf4* | osf5*)
19608 case $cc_basename in
19609 KCC*)
19610 # Kuck and Associates, Inc. (KAI) C++ Compiler
19611
19612 # KCC will only create a shared library if the output file
19613 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19614 # to its proper name (with version) after linking.
19615 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'
19616
19617 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19618 hardcode_libdir_separator_CXX=:
19619
19620 # Archives containing C++ object files must be created using
19621 # the KAI C++ compiler.
19622 case $host in
19623 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19624 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19625 esac
19626 ;;
19627 RCC*)
19628 # Rational C++ 2.4.1
19629 # FIXME: insert proper C++ library support
19630 ld_shlibs_CXX=no
19631 ;;
19632 cxx*)
19633 case $host in
19634 osf3*)
19635 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
19636 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
19637 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19638 ;;
19639 *)
19640 allow_undefined_flag_CXX=' -expect_unresolved \*'
19641 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
19642 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19643 echo "-hidden">> $lib.exp~
19644 $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~
19645 $RM $lib.exp'
19646 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19647 ;;
19648 esac
19649
19650 hardcode_libdir_separator_CXX=:
19651
19652 # Commands to make compiler produce verbose output that lists
19653 # what "hidden" libraries, object files and flags are used when
19654 # linking a shared library.
19655 #
19656 # There doesn't appear to be a way to prevent this compiler from
19657 # explicitly linking system object files so we need to strip them
19658 # from the output so that they don't get included in the library
19659 # dependencies.
19660 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
19661 ;;
19662 *)
19663 if test yes,no = "$GXX,$with_gnu_ld"; then
19664 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
19665 case $host in
19666 osf3*)
19667 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
19668 ;;
19669 *)
19670 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
19671 ;;
19672 esac
19673
19674 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19675 hardcode_libdir_separator_CXX=:
19676
19677 # Commands to make compiler produce verbose output that lists
19678 # what "hidden" libraries, object files and flags are used when
19679 # linking a shared library.
19680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
19681
19682 else
19683 # FIXME: insert proper C++ library support
19684 ld_shlibs_CXX=no
19685 fi
19686 ;;
19687 esac
19688 ;;
19689
19690 psos*)
19691 # FIXME: insert proper C++ library support
19692 ld_shlibs_CXX=no
19693 ;;
19694
19695 sunos4*)
19696 case $cc_basename in
19697 CC*)
19698 # Sun C++ 4.x
19699 # FIXME: insert proper C++ library support
19700 ld_shlibs_CXX=no
19701 ;;
19702 lcc*)
19703 # Lucid
19704 # FIXME: insert proper C++ library support
19705 ld_shlibs_CXX=no
19706 ;;
19707 *)
19708 # FIXME: insert proper C++ library support
19709 ld_shlibs_CXX=no
19710 ;;
19711 esac
19712 ;;
19713
19714 solaris*)
19715 case $cc_basename in
19716 CC* | sunCC*)
19717 # Sun C++ 4.2, 5.x and Centerline C++
19718 archive_cmds_need_lc_CXX=yes
19719 no_undefined_flag_CXX=' -zdefs'
19720 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19721 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19722 $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'
19723
19724 hardcode_libdir_flag_spec_CXX='-R$libdir'
19725 hardcode_shlibpath_var_CXX=no
19726 case $host_os in
19727 solaris2.[0-5] | solaris2.[0-5].*) ;;
19728 *)
19729 # The compiler driver will combine and reorder linker options,
19730 # but understands '-z linker_flag'.
19731 # Supported since Solaris 2.6 (maybe 2.5.1?)
19732 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19733 ;;
19734 esac
19735 link_all_deplibs_CXX=yes
19736
19737 output_verbose_link_cmd='func_echo_all'
19738
19739 # Archives containing C++ object files must be created using
19740 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19741 # necessary to make sure instantiated templates are included
19742 # in the archive.
19743 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19744 ;;
19745 gcx*)
19746 # Green Hills C++ Compiler
19747 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
19748
19749 # The C++ compiler must be used to create the archive.
19750 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19751 ;;
19752 *)
19753 # GNU C++ compiler with Solaris linker
19754 if test yes,no = "$GXX,$with_gnu_ld"; then
19755 no_undefined_flag_CXX=' $wl-z ${wl}defs'
19756 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19757 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
19758 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19759 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19760
19761 # Commands to make compiler produce verbose output that lists
19762 # what "hidden" libraries, object files and flags are used when
19763 # linking a shared library.
19764 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
19765 else
19766 # g++ 2.7 appears to require '-G' NOT '-shared' on this
19767 # platform.
19768 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
19769 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19770 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19771
19772 # Commands to make compiler produce verbose output that lists
19773 # what "hidden" libraries, object files and flags are used when
19774 # linking a shared library.
19775 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
19776 fi
19777
19778 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
19779 case $host_os in
19780 solaris2.[0-5] | solaris2.[0-5].*) ;;
19781 *)
19782 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
19783 ;;
19784 esac
19785 fi
19786 ;;
19787 esac
19788 ;;
19789
19790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19791 no_undefined_flag_CXX='$wl-z,text'
19792 archive_cmds_need_lc_CXX=no
19793 hardcode_shlibpath_var_CXX=no
19794 runpath_var='LD_RUN_PATH'
19795
19796 case $cc_basename in
19797 CC*)
19798 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19799 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19800 ;;
19801 *)
19802 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19803 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19804 ;;
19805 esac
19806 ;;
19807
19808 sysv5* | sco3.2v5* | sco5v6*)
19809 # Note: We CANNOT use -z defs as we might desire, because we do not
19810 # link with -lc, and that would cause any symbols used from libc to
19811 # always be unresolved, which means just about no library would
19812 # ever link correctly. If we're not using GNU ld we use -z text
19813 # though, which does catch some bad symbols but isn't as heavy-handed
19814 # as -z defs.
19815 no_undefined_flag_CXX='$wl-z,text'
19816 allow_undefined_flag_CXX='$wl-z,nodefs'
19817 archive_cmds_need_lc_CXX=no
19818 hardcode_shlibpath_var_CXX=no
19819 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
19820 hardcode_libdir_separator_CXX=':'
19821 link_all_deplibs_CXX=yes
19822 export_dynamic_flag_spec_CXX='$wl-Bexport'
19823 runpath_var='LD_RUN_PATH'
19824
19825 case $cc_basename in
19826 CC*)
19827 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19828 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19829 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19830 '"$old_archive_cmds_CXX"
19831 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19832 '"$reload_cmds_CXX"
19833 ;;
19834 *)
19835 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19836 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19837 ;;
19838 esac
19839 ;;
19840
19841 tandem*)
19842 case $cc_basename in
19843 NCC*)
19844 # NonStop-UX NCC 3.20
19845 # FIXME: insert proper C++ library support
19846 ld_shlibs_CXX=no
19847 ;;
19848 *)
19849 # FIXME: insert proper C++ library support
19850 ld_shlibs_CXX=no
19851 ;;
19852 esac
19853 ;;
19854
19855 vxworks*)
19856 # FIXME: insert proper C++ library support
19857 ld_shlibs_CXX=no
19858 ;;
19859
19860 *)
19861 # FIXME: insert proper C++ library support
19862 ld_shlibs_CXX=no
19863 ;;
19864 esac
19865
19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19867 printf "%s\n" "$ld_shlibs_CXX" >&6; }
19868 test no = "$ld_shlibs_CXX" && can_build_shared=no
19869
19870 GCC_CXX=$GXX
19871 LD_CXX=$LD
19872
19873 ## CAVEAT EMPTOR:
19874 ## There is no encapsulation within the following macros, do not change
19875 ## the running order or otherwise move them around unless you know exactly
19876 ## what you are doing...
19877 # Dependencies to place before and after the object being linked:
19878 predep_objects_CXX=
19879 postdep_objects_CXX=
19880 predeps_CXX=
19881 postdeps_CXX=
19882 compiler_lib_search_path_CXX=
19883
19884 cat > conftest.$ac_ext <<_LT_EOF
19885 class Foo
19886 {
19887 public:
19888 Foo (void) { a = 0; }
19889 private:
19890 int a;
19891 };
19892 _LT_EOF
19893
19894
19895 _lt_libdeps_save_CFLAGS=$CFLAGS
19896 case "$CC $CFLAGS " in #(
19897 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19898 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
19899 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
19900 esac
19901
19902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19903 (eval $ac_compile) 2>&5
19904 ac_status=$?
19905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19906 test $ac_status = 0; }; then
19907 # Parse the compiler output and extract the necessary
19908 # objects, libraries and library flags.
19909
19910 # Sentinel used to keep track of whether or not we are before
19911 # the conftest object file.
19912 pre_test_object_deps_done=no
19913
19914 for p in `eval "$output_verbose_link_cmd"`; do
19915 case $prev$p in
19916
19917 -L* | -R* | -l*)
19918 # Some compilers place space between "-{L,R}" and the path.
19919 # Remove the space.
19920 if test x-L = "$p" ||
19921 test x-R = "$p"; then
19922 prev=$p
19923 continue
19924 fi
19925
19926 # Expand the sysroot to ease extracting the directories later.
19927 if test -z "$prev"; then
19928 case $p in
19929 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19930 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19931 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19932 esac
19933 fi
19934 case $p in
19935 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19936 esac
19937 if test no = "$pre_test_object_deps_done"; then
19938 case $prev in
19939 -L | -R)
19940 # Internal compiler library paths should come after those
19941 # provided the user. The postdeps already come after the
19942 # user supplied libs so there is no need to process them.
19943 if test -z "$compiler_lib_search_path_CXX"; then
19944 compiler_lib_search_path_CXX=$prev$p
19945 else
19946 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
19947 fi
19948 ;;
19949 # The "-l" case would never come before the object being
19950 # linked, so don't bother handling this case.
19951 esac
19952 else
19953 if test -z "$postdeps_CXX"; then
19954 postdeps_CXX=$prev$p
19955 else
19956 postdeps_CXX="${postdeps_CXX} $prev$p"
19957 fi
19958 fi
19959 prev=
19960 ;;
19961
19962 *.lto.$objext) ;; # Ignore GCC LTO objects
19963 *.$objext)
19964 # This assumes that the test object file only shows up
19965 # once in the compiler output.
19966 if test "$p" = "conftest.$objext"; then
19967 pre_test_object_deps_done=yes
19968 continue
19969 fi
19970
19971 if test no = "$pre_test_object_deps_done"; then
19972 if test -z "$predep_objects_CXX"; then
19973 predep_objects_CXX=$p
19974 else
19975 predep_objects_CXX="$predep_objects_CXX $p"
19976 fi
19977 else
19978 if test -z "$postdep_objects_CXX"; then
19979 postdep_objects_CXX=$p
19980 else
19981 postdep_objects_CXX="$postdep_objects_CXX $p"
19982 fi
19983 fi
19984 ;;
19985
19986 *) ;; # Ignore the rest.
19987
19988 esac
19989 done
19990
19991 # Clean up.
19992 rm -f a.out a.exe
19993 else
19994 echo "libtool.m4: error: problem compiling CXX test program"
19995 fi
19996
19997 $RM -f confest.$objext
19998 CFLAGS=$_lt_libdeps_save_CFLAGS
19999
20000 # PORTME: override above test on systems where it is broken
20001 case $host_os in
20002 interix[3-9]*)
20003 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20004 # hack all around it, let's just trust "g++" to DTRT.
20005 predep_objects_CXX=
20006 postdep_objects_CXX=
20007 postdeps_CXX=
20008 ;;
20009 esac
20010
20011
20012 case " $postdeps_CXX " in
20013 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
20014 esac
20015 compiler_lib_search_dirs_CXX=
20016 if test -n "${compiler_lib_search_path_CXX}"; then
20017 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
20018 fi
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032 lt_prog_compiler_wl_CXX=
20033 lt_prog_compiler_pic_CXX=
20034 lt_prog_compiler_static_CXX=
20035
20036
20037 # C++ specific cases for pic, static, wl, etc.
20038 if test yes = "$GXX"; then
20039 lt_prog_compiler_wl_CXX='-Wl,'
20040 lt_prog_compiler_static_CXX='-static'
20041
20042 case $host_os in
20043 aix*)
20044 # All AIX code is PIC.
20045 if test ia64 = "$host_cpu"; then
20046 # AIX 5 now supports IA64 processor
20047 lt_prog_compiler_static_CXX='-Bstatic'
20048 fi
20049 lt_prog_compiler_pic_CXX='-fPIC'
20050 ;;
20051
20052 amigaos*)
20053 case $host_cpu in
20054 powerpc)
20055 # see comment about AmigaOS4 .so support
20056 lt_prog_compiler_pic_CXX='-fPIC'
20057 ;;
20058 m68k)
20059 # FIXME: we need at least 68020 code to build shared libraries, but
20060 # adding the '-m68020' flag to GCC prevents building anything better,
20061 # like '-m68040'.
20062 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20063 ;;
20064 esac
20065 ;;
20066
20067 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20068 # PIC is the default for these OSes.
20069 ;;
20070 mingw* | cygwin* | os2* | pw32* | cegcc*)
20071 # This hack is so that the source file can tell whether it is being
20072 # built for inclusion in a dll (and should export symbols for example).
20073 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20074 # (--disable-auto-import) libraries
20075 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20076 case $host_os in
20077 os2*)
20078 lt_prog_compiler_static_CXX='$wl-static'
20079 ;;
20080 esac
20081 ;;
20082 darwin* | rhapsody*)
20083 # PIC is the default on this platform
20084 # Common symbols not allowed in MH_DYLIB files
20085 lt_prog_compiler_pic_CXX='-fno-common'
20086 ;;
20087 *djgpp*)
20088 # DJGPP does not support shared libraries at all
20089 lt_prog_compiler_pic_CXX=
20090 ;;
20091 haiku*)
20092 # PIC is the default for Haiku.
20093 # The "-static" flag exists, but is broken.
20094 lt_prog_compiler_static_CXX=
20095 ;;
20096 interix[3-9]*)
20097 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20098 # Instead, we relocate shared libraries at runtime.
20099 ;;
20100 sysv4*MP*)
20101 if test -d /usr/nec; then
20102 lt_prog_compiler_pic_CXX=-Kconform_pic
20103 fi
20104 ;;
20105 hpux*)
20106 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20107 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20108 # sets the default TLS model and affects inlining.
20109 case $host_cpu in
20110 hppa*64*)
20111 ;;
20112 *)
20113 lt_prog_compiler_pic_CXX='-fPIC'
20114 ;;
20115 esac
20116 ;;
20117 *qnx* | *nto*)
20118 # QNX uses GNU C++, but need to define -shared option too, otherwise
20119 # it will coredump.
20120 lt_prog_compiler_pic_CXX='-fPIC -shared'
20121 ;;
20122 *)
20123 lt_prog_compiler_pic_CXX='-fPIC'
20124 ;;
20125 esac
20126 else
20127 case $host_os in
20128 aix[4-9]*)
20129 # All AIX code is PIC.
20130 if test ia64 = "$host_cpu"; then
20131 # AIX 5 now supports IA64 processor
20132 lt_prog_compiler_static_CXX='-Bstatic'
20133 else
20134 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20135 fi
20136 ;;
20137 chorus*)
20138 case $cc_basename in
20139 cxch68*)
20140 # Green Hills C++ Compiler
20141 # _LT_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"
20142 ;;
20143 esac
20144 ;;
20145 mingw* | cygwin* | os2* | pw32* | cegcc*)
20146 # This hack is so that the source file can tell whether it is being
20147 # built for inclusion in a dll (and should export symbols for example).
20148 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20149 ;;
20150 dgux*)
20151 case $cc_basename in
20152 ec++*)
20153 lt_prog_compiler_pic_CXX='-KPIC'
20154 ;;
20155 ghcx*)
20156 # Green Hills C++ Compiler
20157 lt_prog_compiler_pic_CXX='-pic'
20158 ;;
20159 *)
20160 ;;
20161 esac
20162 ;;
20163 freebsd* | dragonfly* | midnightbsd*)
20164 # FreeBSD uses GNU C++
20165 ;;
20166 hpux9* | hpux10* | hpux11*)
20167 case $cc_basename in
20168 CC*)
20169 lt_prog_compiler_wl_CXX='-Wl,'
20170 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20171 if test ia64 != "$host_cpu"; then
20172 lt_prog_compiler_pic_CXX='+Z'
20173 fi
20174 ;;
20175 aCC*)
20176 lt_prog_compiler_wl_CXX='-Wl,'
20177 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20178 case $host_cpu in
20179 hppa*64*|ia64*)
20180 # +Z the default
20181 ;;
20182 *)
20183 lt_prog_compiler_pic_CXX='+Z'
20184 ;;
20185 esac
20186 ;;
20187 *)
20188 ;;
20189 esac
20190 ;;
20191 interix*)
20192 # This is c89, which is MS Visual C++ (no shared libs)
20193 # Anyone wants to do a port?
20194 ;;
20195 irix5* | irix6* | nonstopux*)
20196 case $cc_basename in
20197 CC*)
20198 lt_prog_compiler_wl_CXX='-Wl,'
20199 lt_prog_compiler_static_CXX='-non_shared'
20200 # CC pic flag -KPIC is the default.
20201 ;;
20202 *)
20203 ;;
20204 esac
20205 ;;
20206 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20207 case $cc_basename in
20208 KCC*)
20209 # KAI C++ Compiler
20210 lt_prog_compiler_wl_CXX='--backend -Wl,'
20211 lt_prog_compiler_pic_CXX='-fPIC'
20212 ;;
20213 ecpc* )
20214 # old Intel C++ for x86_64, which still supported -KPIC.
20215 lt_prog_compiler_wl_CXX='-Wl,'
20216 lt_prog_compiler_pic_CXX='-KPIC'
20217 lt_prog_compiler_static_CXX='-static'
20218 ;;
20219 icpc* )
20220 # Intel C++, used to be incompatible with GCC.
20221 # ICC 10 doesn't accept -KPIC any more.
20222 lt_prog_compiler_wl_CXX='-Wl,'
20223 lt_prog_compiler_pic_CXX='-fPIC'
20224 lt_prog_compiler_static_CXX='-static'
20225 ;;
20226 pgCC* | pgcpp*)
20227 # Portland Group C++ compiler
20228 lt_prog_compiler_wl_CXX='-Wl,'
20229 lt_prog_compiler_pic_CXX='-fpic'
20230 lt_prog_compiler_static_CXX='-Bstatic'
20231 ;;
20232 cxx*)
20233 # Compaq C++
20234 # Make sure the PIC flag is empty. It appears that all Alpha
20235 # Linux and Compaq Tru64 Unix objects are PIC.
20236 lt_prog_compiler_pic_CXX=
20237 lt_prog_compiler_static_CXX='-non_shared'
20238 ;;
20239 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20240 # IBM XL 8.0, 9.0 on PPC and BlueGene
20241 lt_prog_compiler_wl_CXX='-Wl,'
20242 lt_prog_compiler_pic_CXX='-qpic'
20243 lt_prog_compiler_static_CXX='-qstaticlink'
20244 ;;
20245 *)
20246 case `$CC -V 2>&1 | $SED 5q` in
20247 *Sun\ C*)
20248 # Sun C++ 5.9
20249 lt_prog_compiler_pic_CXX='-KPIC'
20250 lt_prog_compiler_static_CXX='-Bstatic'
20251 lt_prog_compiler_wl_CXX='-Qoption ld '
20252 ;;
20253 esac
20254 ;;
20255 esac
20256 ;;
20257 lynxos*)
20258 ;;
20259 m88k*)
20260 ;;
20261 mvs*)
20262 case $cc_basename in
20263 cxx*)
20264 lt_prog_compiler_pic_CXX='-W c,exportall'
20265 ;;
20266 *)
20267 ;;
20268 esac
20269 ;;
20270 netbsd* | netbsdelf*-gnu)
20271 ;;
20272 *qnx* | *nto*)
20273 # QNX uses GNU C++, but need to define -shared option too, otherwise
20274 # it will coredump.
20275 lt_prog_compiler_pic_CXX='-fPIC -shared'
20276 ;;
20277 osf3* | osf4* | osf5*)
20278 case $cc_basename in
20279 KCC*)
20280 lt_prog_compiler_wl_CXX='--backend -Wl,'
20281 ;;
20282 RCC*)
20283 # Rational C++ 2.4.1
20284 lt_prog_compiler_pic_CXX='-pic'
20285 ;;
20286 cxx*)
20287 # Digital/Compaq C++
20288 lt_prog_compiler_wl_CXX='-Wl,'
20289 # Make sure the PIC flag is empty. It appears that all Alpha
20290 # Linux and Compaq Tru64 Unix objects are PIC.
20291 lt_prog_compiler_pic_CXX=
20292 lt_prog_compiler_static_CXX='-non_shared'
20293 ;;
20294 *)
20295 ;;
20296 esac
20297 ;;
20298 psos*)
20299 ;;
20300 solaris*)
20301 case $cc_basename in
20302 CC* | sunCC*)
20303 # Sun C++ 4.2, 5.x and Centerline C++
20304 lt_prog_compiler_pic_CXX='-KPIC'
20305 lt_prog_compiler_static_CXX='-Bstatic'
20306 lt_prog_compiler_wl_CXX='-Qoption ld '
20307 ;;
20308 gcx*)
20309 # Green Hills C++ Compiler
20310 lt_prog_compiler_pic_CXX='-PIC'
20311 ;;
20312 *)
20313 ;;
20314 esac
20315 ;;
20316 sunos4*)
20317 case $cc_basename in
20318 CC*)
20319 # Sun C++ 4.x
20320 lt_prog_compiler_pic_CXX='-pic'
20321 lt_prog_compiler_static_CXX='-Bstatic'
20322 ;;
20323 lcc*)
20324 # Lucid
20325 lt_prog_compiler_pic_CXX='-pic'
20326 ;;
20327 *)
20328 ;;
20329 esac
20330 ;;
20331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20332 case $cc_basename in
20333 CC*)
20334 lt_prog_compiler_wl_CXX='-Wl,'
20335 lt_prog_compiler_pic_CXX='-KPIC'
20336 lt_prog_compiler_static_CXX='-Bstatic'
20337 ;;
20338 esac
20339 ;;
20340 tandem*)
20341 case $cc_basename in
20342 NCC*)
20343 # NonStop-UX NCC 3.20
20344 lt_prog_compiler_pic_CXX='-KPIC'
20345 ;;
20346 *)
20347 ;;
20348 esac
20349 ;;
20350 vxworks*)
20351 ;;
20352 *)
20353 lt_prog_compiler_can_build_shared_CXX=no
20354 ;;
20355 esac
20356 fi
20357
20358 case $host_os in
20359 # For platforms that do not support PIC, -DPIC is meaningless:
20360 *djgpp*)
20361 lt_prog_compiler_pic_CXX=
20362 ;;
20363 *)
20364 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20365 ;;
20366 esac
20367
20368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20369 printf %s "checking for $compiler option to produce PIC... " >&6; }
20370 if test ${lt_cv_prog_compiler_pic_CXX+y}
20371 then :
20372 printf %s "(cached) " >&6
20373 else $as_nop
20374 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20375 fi
20376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20377 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
20378 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
20379
20380 #
20381 # Check to make sure the PIC flag actually works.
20382 #
20383 if test -n "$lt_prog_compiler_pic_CXX"; then
20384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20385 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20386 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
20387 then :
20388 printf %s "(cached) " >&6
20389 else $as_nop
20390 lt_cv_prog_compiler_pic_works_CXX=no
20391 ac_outfile=conftest.$ac_objext
20392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20393 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
20394 # Insert the option either (1) after the last *FLAGS variable, or
20395 # (2) before a word containing "conftest.", or (3) at the end.
20396 # Note that $ac_compile itself does not contain backslashes and begins
20397 # with a dollar sign (not a hyphen), so the echo should work correctly.
20398 # The option is referenced via a variable to avoid confusing sed.
20399 lt_compile=`echo "$ac_compile" | $SED \
20400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20402 -e 's:$: $lt_compiler_flag:'`
20403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20404 (eval "$lt_compile" 2>conftest.err)
20405 ac_status=$?
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 if (exit $ac_status) && test -s "$ac_outfile"; then
20409 # The compiler can only warn and ignore the option if not recognized
20410 # So say no if there are warnings other than the usual output.
20411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20414 lt_cv_prog_compiler_pic_works_CXX=yes
20415 fi
20416 fi
20417 $RM conftest*
20418
20419 fi
20420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20421 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20422
20423 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
20424 case $lt_prog_compiler_pic_CXX in
20425 "" | " "*) ;;
20426 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20427 esac
20428 else
20429 lt_prog_compiler_pic_CXX=
20430 lt_prog_compiler_can_build_shared_CXX=no
20431 fi
20432
20433 fi
20434
20435
20436
20437
20438
20439 #
20440 # Check to make sure the static flag actually works.
20441 #
20442 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20444 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20445 if test ${lt_cv_prog_compiler_static_works_CXX+y}
20446 then :
20447 printf %s "(cached) " >&6
20448 else $as_nop
20449 lt_cv_prog_compiler_static_works_CXX=no
20450 save_LDFLAGS=$LDFLAGS
20451 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20452 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20454 # The linker can only warn and ignore the option if not recognized
20455 # So say no if there are warnings
20456 if test -s conftest.err; then
20457 # Append any errors to the config.log.
20458 cat conftest.err 1>&5
20459 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20461 if diff conftest.exp conftest.er2 >/dev/null; then
20462 lt_cv_prog_compiler_static_works_CXX=yes
20463 fi
20464 else
20465 lt_cv_prog_compiler_static_works_CXX=yes
20466 fi
20467 fi
20468 $RM -r conftest*
20469 LDFLAGS=$save_LDFLAGS
20470
20471 fi
20472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20473 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20474
20475 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
20476 :
20477 else
20478 lt_prog_compiler_static_CXX=
20479 fi
20480
20481
20482
20483
20484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20485 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20486 if test ${lt_cv_prog_compiler_c_o_CXX+y}
20487 then :
20488 printf %s "(cached) " >&6
20489 else $as_nop
20490 lt_cv_prog_compiler_c_o_CXX=no
20491 $RM -r conftest 2>/dev/null
20492 mkdir conftest
20493 cd conftest
20494 mkdir out
20495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20496
20497 lt_compiler_flag="-o out/conftest2.$ac_objext"
20498 # Insert the option either (1) after the last *FLAGS variable, or
20499 # (2) before a word containing "conftest.", or (3) at the end.
20500 # Note that $ac_compile itself does not contain backslashes and begins
20501 # with a dollar sign (not a hyphen), so the echo should work correctly.
20502 lt_compile=`echo "$ac_compile" | $SED \
20503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20505 -e 's:$: $lt_compiler_flag:'`
20506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20507 (eval "$lt_compile" 2>out/conftest.err)
20508 ac_status=$?
20509 cat out/conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20512 then
20513 # The compiler can only warn and ignore the option if not recognized
20514 # So say no if there are warnings
20515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20518 lt_cv_prog_compiler_c_o_CXX=yes
20519 fi
20520 fi
20521 chmod u+w . 2>&5
20522 $RM conftest*
20523 # SGI C++ compiler will create directory out/ii_files/ for
20524 # template instantiation
20525 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20526 $RM out/* && rmdir out
20527 cd ..
20528 $RM -r conftest
20529 $RM conftest*
20530
20531 fi
20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20533 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20534
20535
20536
20537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20538 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20539 if test ${lt_cv_prog_compiler_c_o_CXX+y}
20540 then :
20541 printf %s "(cached) " >&6
20542 else $as_nop
20543 lt_cv_prog_compiler_c_o_CXX=no
20544 $RM -r conftest 2>/dev/null
20545 mkdir conftest
20546 cd conftest
20547 mkdir out
20548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20549
20550 lt_compiler_flag="-o out/conftest2.$ac_objext"
20551 # Insert the option either (1) after the last *FLAGS variable, or
20552 # (2) before a word containing "conftest.", or (3) at the end.
20553 # Note that $ac_compile itself does not contain backslashes and begins
20554 # with a dollar sign (not a hyphen), so the echo should work correctly.
20555 lt_compile=`echo "$ac_compile" | $SED \
20556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20558 -e 's:$: $lt_compiler_flag:'`
20559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20560 (eval "$lt_compile" 2>out/conftest.err)
20561 ac_status=$?
20562 cat out/conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20565 then
20566 # The compiler can only warn and ignore the option if not recognized
20567 # So say no if there are warnings
20568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20571 lt_cv_prog_compiler_c_o_CXX=yes
20572 fi
20573 fi
20574 chmod u+w . 2>&5
20575 $RM conftest*
20576 # SGI C++ compiler will create directory out/ii_files/ for
20577 # template instantiation
20578 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20579 $RM out/* && rmdir out
20580 cd ..
20581 $RM -r conftest
20582 $RM conftest*
20583
20584 fi
20585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20586 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20587
20588
20589
20590
20591 hard_links=nottested
20592 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
20593 # do not overwrite the value of need_locks provided by the user
20594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20595 printf %s "checking if we can lock with hard links... " >&6; }
20596 hard_links=yes
20597 $RM conftest*
20598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20599 touch conftest.a
20600 ln conftest.a conftest.b 2>&5 || hard_links=no
20601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20603 printf "%s\n" "$hard_links" >&6; }
20604 if test no = "$hard_links"; then
20605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
20606 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
20607 need_locks=warn
20608 fi
20609 else
20610 need_locks=no
20611 fi
20612
20613
20614
20615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20616 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20617
20618 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20619 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20620 case $host_os in
20621 aix[4-9]*)
20622 # If we're using GNU nm, then we don't want the "-C" option.
20623 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
20624 # Without the "-l" option, or with the "-B" option, AIX nm treats
20625 # weak defined symbols like other global defined symbols, whereas
20626 # GNU nm marks them as "W".
20627 # While the 'weak' keyword is ignored in the Export File, we need
20628 # it in the Import File for the 'aix-soname' feature, so we have
20629 # to replace the "-B" option with "-P" for AIX nm.
20630 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20631 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
20632 else
20633 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
20634 fi
20635 ;;
20636 pw32*)
20637 export_symbols_cmds_CXX=$ltdll_cmds
20638 ;;
20639 cygwin* | mingw* | cegcc*)
20640 case $cc_basename in
20641 cl* | icl*)
20642 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20643 ;;
20644 *)
20645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20646 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20647 ;;
20648 esac
20649 ;;
20650 linux* | k*bsd*-gnu | gnu*)
20651 link_all_deplibs_CXX=no
20652 ;;
20653 *)
20654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20655 ;;
20656 esac
20657
20658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20659 printf "%s\n" "$ld_shlibs_CXX" >&6; }
20660 test no = "$ld_shlibs_CXX" && can_build_shared=no
20661
20662 with_gnu_ld_CXX=$with_gnu_ld
20663
20664
20665
20666
20667
20668
20669 #
20670 # Do we need to explicitly link libc?
20671 #
20672 case "x$archive_cmds_need_lc_CXX" in
20673 x|xyes)
20674 # Assume -lc should be added
20675 archive_cmds_need_lc_CXX=yes
20676
20677 if test yes,yes = "$GCC,$enable_shared"; then
20678 case $archive_cmds_CXX in
20679 *'~'*)
20680 # FIXME: we may have to deal with multi-command sequences.
20681 ;;
20682 '$CC '*)
20683 # Test whether the compiler implicitly links with -lc since on some
20684 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20685 # to ld, don't add -lc before -lgcc.
20686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20687 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
20688 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
20689 then :
20690 printf %s "(cached) " >&6
20691 else $as_nop
20692 $RM conftest*
20693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20694
20695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20696 (eval $ac_compile) 2>&5
20697 ac_status=$?
20698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20699 test $ac_status = 0; } 2>conftest.err; then
20700 soname=conftest
20701 lib=conftest
20702 libobjs=conftest.$ac_objext
20703 deplibs=
20704 wl=$lt_prog_compiler_wl_CXX
20705 pic_flag=$lt_prog_compiler_pic_CXX
20706 compiler_flags=-v
20707 linker_flags=-v
20708 verstring=
20709 output_objdir=.
20710 libname=conftest
20711 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20712 allow_undefined_flag_CXX=
20713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20714 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20715 ac_status=$?
20716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20717 test $ac_status = 0; }
20718 then
20719 lt_cv_archive_cmds_need_lc_CXX=no
20720 else
20721 lt_cv_archive_cmds_need_lc_CXX=yes
20722 fi
20723 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20724 else
20725 cat conftest.err 1>&5
20726 fi
20727 $RM conftest*
20728
20729 fi
20730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20731 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20732 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20733 ;;
20734 esac
20735 fi
20736 ;;
20737 esac
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20801 printf %s "checking dynamic linker characteristics... " >&6; }
20802
20803 library_names_spec=
20804 libname_spec='lib$name'
20805 soname_spec=
20806 shrext_cmds=.so
20807 postinstall_cmds=
20808 postuninstall_cmds=
20809 finish_cmds=
20810 finish_eval=
20811 shlibpath_var=
20812 shlibpath_overrides_runpath=unknown
20813 version_type=none
20814 dynamic_linker="$host_os ld.so"
20815 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20816 need_lib_prefix=unknown
20817 hardcode_into_libs=no
20818
20819 # when you set need_version to no, make sure it does not cause -set_version
20820 # flags to be left without arguments
20821 need_version=unknown
20822
20823
20824
20825 case $host_os in
20826 aix3*)
20827 version_type=linux # correct to gnu/linux during the next big refactor
20828 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
20829 shlibpath_var=LIBPATH
20830
20831 # AIX 3 has no versioning support, so we append a major version to the name.
20832 soname_spec='$libname$release$shared_ext$major'
20833 ;;
20834
20835 aix[4-9]*)
20836 version_type=linux # correct to gnu/linux during the next big refactor
20837 need_lib_prefix=no
20838 need_version=no
20839 hardcode_into_libs=yes
20840 if test ia64 = "$host_cpu"; then
20841 # AIX 5 supports IA64
20842 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
20843 shlibpath_var=LD_LIBRARY_PATH
20844 else
20845 # With GCC up to 2.95.x, collect2 would create an import file
20846 # for dependence libraries. The import file would start with
20847 # the line '#! .'. This would cause the generated library to
20848 # depend on '.', always an invalid library. This was fixed in
20849 # development snapshots of GCC prior to 3.0.
20850 case $host_os in
20851 aix4 | aix4.[01] | aix4.[01].*)
20852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20853 echo ' yes '
20854 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
20855 :
20856 else
20857 can_build_shared=no
20858 fi
20859 ;;
20860 esac
20861 # Using Import Files as archive members, it is possible to support
20862 # filename-based versioning of shared library archives on AIX. While
20863 # this would work for both with and without runtime linking, it will
20864 # prevent static linking of such archives. So we do filename-based
20865 # shared library versioning with .so extension only, which is used
20866 # when both runtime linking and shared linking is enabled.
20867 # Unfortunately, runtime linking may impact performance, so we do
20868 # not want this to be the default eventually. Also, we use the
20869 # versioned .so libs for executables only if there is the -brtl
20870 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
20871 # To allow for filename-based versioning support, we need to create
20872 # libNAME.so.V as an archive file, containing:
20873 # *) an Import File, referring to the versioned filename of the
20874 # archive as well as the shared archive member, telling the
20875 # bitwidth (32 or 64) of that shared object, and providing the
20876 # list of exported symbols of that shared object, eventually
20877 # decorated with the 'weak' keyword
20878 # *) the shared object with the F_LOADONLY flag set, to really avoid
20879 # it being seen by the linker.
20880 # At run time we better use the real file rather than another symlink,
20881 # but for link time we create the symlink libNAME.so -> libNAME.so.V
20882
20883 case $with_aix_soname,$aix_use_runtimelinking in
20884 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
20885 # soname into executable. Probably we can add versioning support to
20886 # collect2, so additional links can be useful in future.
20887 aix,yes) # traditional libtool
20888 dynamic_linker='AIX unversionable lib.so'
20889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20890 # instead of lib<name>.a to let people know that these are not
20891 # typical AIX shared libraries.
20892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20893 ;;
20894 aix,no) # traditional AIX only
20895 dynamic_linker='AIX lib.a(lib.so.V)'
20896 # We preserve .a as extension for shared libraries through AIX4.2
20897 # and later when we are not doing run time linking.
20898 library_names_spec='$libname$release.a $libname.a'
20899 soname_spec='$libname$release$shared_ext$major'
20900 ;;
20901 svr4,*) # full svr4 only
20902 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
20903 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20904 # We do not specify a path in Import Files, so LIBPATH fires.
20905 shlibpath_overrides_runpath=yes
20906 ;;
20907 *,yes) # both, prefer svr4
20908 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
20909 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
20910 # unpreferred sharedlib libNAME.a needs extra handling
20911 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
20912 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
20913 # We do not specify a path in Import Files, so LIBPATH fires.
20914 shlibpath_overrides_runpath=yes
20915 ;;
20916 *,no) # both, prefer aix
20917 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
20918 library_names_spec='$libname$release.a $libname.a'
20919 soname_spec='$libname$release$shared_ext$major'
20920 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
20921 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
20922 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
20923 ;;
20924 esac
20925 shlibpath_var=LIBPATH
20926 fi
20927 ;;
20928
20929 amigaos*)
20930 case $host_cpu in
20931 powerpc)
20932 # Since July 2007 AmigaOS4 officially supports .so libraries.
20933 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20935 ;;
20936 m68k)
20937 library_names_spec='$libname.ixlibrary $libname.a'
20938 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20939 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
20940 ;;
20941 esac
20942 ;;
20943
20944 beos*)
20945 library_names_spec='$libname$shared_ext'
20946 dynamic_linker="$host_os ld.so"
20947 shlibpath_var=LIBRARY_PATH
20948 ;;
20949
20950 bsdi[45]*)
20951 version_type=linux # correct to gnu/linux during the next big refactor
20952 need_version=no
20953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20954 soname_spec='$libname$release$shared_ext$major'
20955 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20956 shlibpath_var=LD_LIBRARY_PATH
20957 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20958 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20959 # the default ld.so.conf also contains /usr/contrib/lib and
20960 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20961 # libtool to hard-code these into programs
20962 ;;
20963
20964 cygwin* | mingw* | pw32* | cegcc*)
20965 version_type=windows
20966 shrext_cmds=.dll
20967 need_version=no
20968 need_lib_prefix=no
20969
20970 case $GCC,$cc_basename in
20971 yes,*)
20972 # gcc
20973 library_names_spec='$libname.dll.a'
20974 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20975 postinstall_cmds='base_file=`basename \$file`~
20976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20977 dldir=$destdir/`dirname \$dlpath`~
20978 test -d \$dldir || mkdir -p \$dldir~
20979 $install_prog $dir/$dlname \$dldir/$dlname~
20980 chmod a+x \$dldir/$dlname~
20981 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20982 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20983 fi'
20984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20985 dlpath=$dir/\$dldll~
20986 $RM \$dlpath'
20987 shlibpath_overrides_runpath=yes
20988
20989 case $host_os in
20990 cygwin*)
20991 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20992 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20993
20994 ;;
20995 mingw* | cegcc*)
20996 # MinGW DLLs use traditional 'lib' prefix
20997 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20998 ;;
20999 pw32*)
21000 # pw32 DLLs use 'pw' prefix rather than 'lib'
21001 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21002 ;;
21003 esac
21004 dynamic_linker='Win32 ld.exe'
21005 ;;
21006
21007 *,cl* | *,icl*)
21008 # Native MSVC or ICC
21009 libname_spec='$name'
21010 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21011 library_names_spec='$libname.dll.lib'
21012
21013 case $build_os in
21014 mingw*)
21015 sys_lib_search_path_spec=
21016 lt_save_ifs=$IFS
21017 IFS=';'
21018 for lt_path in $LIB
21019 do
21020 IFS=$lt_save_ifs
21021 # Let DOS variable expansion print the short 8.3 style file name.
21022 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21023 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21024 done
21025 IFS=$lt_save_ifs
21026 # Convert to MSYS style.
21027 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21028 ;;
21029 cygwin*)
21030 # Convert to unix form, then to dos form, then back to unix form
21031 # but this time dos style (no spaces!) so that the unix form looks
21032 # like /cygdrive/c/PROGRA~1:/cygdr...
21033 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21034 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21035 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21036 ;;
21037 *)
21038 sys_lib_search_path_spec=$LIB
21039 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21040 # It is most probably a Windows format PATH.
21041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21042 else
21043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21044 fi
21045 # FIXME: find the short name or the path components, as spaces are
21046 # common. (e.g. "Program Files" -> "PROGRA~1")
21047 ;;
21048 esac
21049
21050 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21051 postinstall_cmds='base_file=`basename \$file`~
21052 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21053 dldir=$destdir/`dirname \$dlpath`~
21054 test -d \$dldir || mkdir -p \$dldir~
21055 $install_prog $dir/$dlname \$dldir/$dlname'
21056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21057 dlpath=$dir/\$dldll~
21058 $RM \$dlpath'
21059 shlibpath_overrides_runpath=yes
21060 dynamic_linker='Win32 link.exe'
21061 ;;
21062
21063 *)
21064 # Assume MSVC and ICC wrapper
21065 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21066 dynamic_linker='Win32 ld.exe'
21067 ;;
21068 esac
21069 # FIXME: first we should search . and the directory the executable is in
21070 shlibpath_var=PATH
21071 ;;
21072
21073 darwin* | rhapsody*)
21074 dynamic_linker="$host_os dyld"
21075 version_type=darwin
21076 need_lib_prefix=no
21077 need_version=no
21078 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21079 soname_spec='$libname$release$major$shared_ext'
21080 shlibpath_overrides_runpath=yes
21081 shlibpath_var=DYLD_LIBRARY_PATH
21082 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21083
21084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21085 ;;
21086
21087 dgux*)
21088 version_type=linux # correct to gnu/linux during the next big refactor
21089 need_lib_prefix=no
21090 need_version=no
21091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21092 soname_spec='$libname$release$shared_ext$major'
21093 shlibpath_var=LD_LIBRARY_PATH
21094 ;;
21095
21096 freebsd* | dragonfly* | midnightbsd*)
21097 # DragonFly does not have aout. When/if they implement a new
21098 # versioning mechanism, adjust this.
21099 if test -x /usr/bin/objformat; then
21100 objformat=`/usr/bin/objformat`
21101 else
21102 case $host_os in
21103 freebsd[23].*) objformat=aout ;;
21104 *) objformat=elf ;;
21105 esac
21106 fi
21107 version_type=freebsd-$objformat
21108 case $version_type in
21109 freebsd-elf*)
21110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21111 soname_spec='$libname$release$shared_ext$major'
21112 need_version=no
21113 need_lib_prefix=no
21114 ;;
21115 freebsd-*)
21116 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21117 need_version=yes
21118 ;;
21119 esac
21120 shlibpath_var=LD_LIBRARY_PATH
21121 case $host_os in
21122 freebsd2.*)
21123 shlibpath_overrides_runpath=yes
21124 ;;
21125 freebsd3.[01]* | freebsdelf3.[01]*)
21126 shlibpath_overrides_runpath=yes
21127 hardcode_into_libs=yes
21128 ;;
21129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21131 shlibpath_overrides_runpath=no
21132 hardcode_into_libs=yes
21133 ;;
21134 *) # from 4.6 on, and DragonFly
21135 shlibpath_overrides_runpath=yes
21136 hardcode_into_libs=yes
21137 ;;
21138 esac
21139 ;;
21140
21141 haiku*)
21142 version_type=linux # correct to gnu/linux during the next big refactor
21143 need_lib_prefix=no
21144 need_version=no
21145 dynamic_linker="$host_os runtime_loader"
21146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21147 soname_spec='$libname$release$shared_ext$major'
21148 shlibpath_var=LIBRARY_PATH
21149 shlibpath_overrides_runpath=no
21150 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21151 hardcode_into_libs=yes
21152 ;;
21153
21154 hpux9* | hpux10* | hpux11*)
21155 # Give a soname corresponding to the major version so that dld.sl refuses to
21156 # link against other versions.
21157 version_type=sunos
21158 need_lib_prefix=no
21159 need_version=no
21160 case $host_cpu in
21161 ia64*)
21162 shrext_cmds='.so'
21163 hardcode_into_libs=yes
21164 dynamic_linker="$host_os dld.so"
21165 shlibpath_var=LD_LIBRARY_PATH
21166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21168 soname_spec='$libname$release$shared_ext$major'
21169 if test 32 = "$HPUX_IA64_MODE"; then
21170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21171 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21172 else
21173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21174 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21175 fi
21176 ;;
21177 hppa*64*)
21178 shrext_cmds='.sl'
21179 hardcode_into_libs=yes
21180 dynamic_linker="$host_os dld.sl"
21181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21184 soname_spec='$libname$release$shared_ext$major'
21185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21187 ;;
21188 *)
21189 shrext_cmds='.sl'
21190 dynamic_linker="$host_os dld.sl"
21191 shlibpath_var=SHLIB_PATH
21192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21194 soname_spec='$libname$release$shared_ext$major'
21195 ;;
21196 esac
21197 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21198 postinstall_cmds='chmod 555 $lib'
21199 # or fails outright, so override atomically:
21200 install_override_mode=555
21201 ;;
21202
21203 interix[3-9]*)
21204 version_type=linux # correct to gnu/linux during the next big refactor
21205 need_lib_prefix=no
21206 need_version=no
21207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21208 soname_spec='$libname$release$shared_ext$major'
21209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21210 shlibpath_var=LD_LIBRARY_PATH
21211 shlibpath_overrides_runpath=no
21212 hardcode_into_libs=yes
21213 ;;
21214
21215 irix5* | irix6* | nonstopux*)
21216 case $host_os in
21217 nonstopux*) version_type=nonstopux ;;
21218 *)
21219 if test yes = "$lt_cv_prog_gnu_ld"; then
21220 version_type=linux # correct to gnu/linux during the next big refactor
21221 else
21222 version_type=irix
21223 fi ;;
21224 esac
21225 need_lib_prefix=no
21226 need_version=no
21227 soname_spec='$libname$release$shared_ext$major'
21228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21229 case $host_os in
21230 irix5* | nonstopux*)
21231 libsuff= shlibsuff=
21232 ;;
21233 *)
21234 case $LD in # libtool.m4 will add one of these switches to LD
21235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21236 libsuff= shlibsuff= libmagic=32-bit;;
21237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21238 libsuff=32 shlibsuff=N32 libmagic=N32;;
21239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21240 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21241 *) libsuff= shlibsuff= libmagic=never-match;;
21242 esac
21243 ;;
21244 esac
21245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21246 shlibpath_overrides_runpath=no
21247 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21248 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21249 hardcode_into_libs=yes
21250 ;;
21251
21252 # No shared lib support for Linux oldld, aout, or coff.
21253 linux*oldld* | linux*aout* | linux*coff*)
21254 dynamic_linker=no
21255 ;;
21256
21257 linux*android*)
21258 version_type=none # Android doesn't support versioned libraries.
21259 need_lib_prefix=no
21260 need_version=no
21261 library_names_spec='$libname$release$shared_ext'
21262 soname_spec='$libname$release$shared_ext'
21263 finish_cmds=
21264 shlibpath_var=LD_LIBRARY_PATH
21265 shlibpath_overrides_runpath=yes
21266
21267 # This implies no fast_install, which is unacceptable.
21268 # Some rework will be needed to allow for fast_install
21269 # before this can be enabled.
21270 hardcode_into_libs=yes
21271
21272 dynamic_linker='Android linker'
21273 # Don't embed -rpath directories since the linker doesn't support them.
21274 hardcode_libdir_flag_spec_CXX='-L$libdir'
21275 ;;
21276
21277 # This must be glibc/ELF.
21278 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21279 version_type=linux # correct to gnu/linux during the next big refactor
21280 need_lib_prefix=no
21281 need_version=no
21282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21283 soname_spec='$libname$release$shared_ext$major'
21284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21285 shlibpath_var=LD_LIBRARY_PATH
21286 shlibpath_overrides_runpath=no
21287
21288 # Some binutils ld are patched to set DT_RUNPATH
21289 if test ${lt_cv_shlibpath_overrides_runpath+y}
21290 then :
21291 printf %s "(cached) " >&6
21292 else $as_nop
21293 lt_cv_shlibpath_overrides_runpath=no
21294 save_LDFLAGS=$LDFLAGS
21295 save_libdir=$libdir
21296 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21297 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21299 /* end confdefs.h. */
21300
21301 int
21302 main (void)
21303 {
21304
21305 ;
21306 return 0;
21307 }
21308 _ACEOF
21309 if ac_fn_cxx_try_link "$LINENO"
21310 then :
21311 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
21312 then :
21313 lt_cv_shlibpath_overrides_runpath=yes
21314 fi
21315 fi
21316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21317 conftest$ac_exeext conftest.$ac_ext
21318 LDFLAGS=$save_LDFLAGS
21319 libdir=$save_libdir
21320
21321 fi
21322
21323 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21324
21325 # This implies no fast_install, which is unacceptable.
21326 # Some rework will be needed to allow for fast_install
21327 # before this can be enabled.
21328 hardcode_into_libs=yes
21329
21330 # Ideally, we could use ldconfig to report *all* directores which are
21331 # searched for libraries, however this is still not possible. Aside from not
21332 # being certain /sbin/ldconfig is available, command
21333 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21334 # even though it is searched at run-time. Try to do the best guess by
21335 # appending ld.so.conf contents (and includes) to the search path.
21336 if test -f /etc/ld.so.conf; then
21337 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
21338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21339 fi
21340
21341 # We used to test for /lib/ld.so.1 and disable shared libraries on
21342 # powerpc, because MkLinux only supported shared libraries with the
21343 # GNU dynamic linker. Since this was broken with cross compilers,
21344 # most powerpc-linux boxes support dynamic linking these days and
21345 # people can always --disable-shared, the test was removed, and we
21346 # assume the GNU/Linux dynamic linker is in use.
21347 dynamic_linker='GNU/Linux ld.so'
21348 ;;
21349
21350 netbsdelf*-gnu)
21351 version_type=linux
21352 need_lib_prefix=no
21353 need_version=no
21354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21355 soname_spec='${libname}${release}${shared_ext}$major'
21356 shlibpath_var=LD_LIBRARY_PATH
21357 shlibpath_overrides_runpath=no
21358 hardcode_into_libs=yes
21359 dynamic_linker='NetBSD ld.elf_so'
21360 ;;
21361
21362 netbsd*)
21363 version_type=sunos
21364 need_lib_prefix=no
21365 need_version=no
21366 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21367 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21368 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21369 dynamic_linker='NetBSD (a.out) ld.so'
21370 else
21371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21372 soname_spec='$libname$release$shared_ext$major'
21373 dynamic_linker='NetBSD ld.elf_so'
21374 fi
21375 shlibpath_var=LD_LIBRARY_PATH
21376 shlibpath_overrides_runpath=yes
21377 hardcode_into_libs=yes
21378 ;;
21379
21380 newsos6)
21381 version_type=linux # correct to gnu/linux during the next big refactor
21382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21383 shlibpath_var=LD_LIBRARY_PATH
21384 shlibpath_overrides_runpath=yes
21385 ;;
21386
21387 *nto* | *qnx*)
21388 version_type=qnx
21389 need_lib_prefix=no
21390 need_version=no
21391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21392 soname_spec='$libname$release$shared_ext$major'
21393 shlibpath_var=LD_LIBRARY_PATH
21394 shlibpath_overrides_runpath=no
21395 hardcode_into_libs=yes
21396 dynamic_linker='ldqnx.so'
21397 ;;
21398
21399 openbsd* | bitrig*)
21400 version_type=sunos
21401 sys_lib_dlsearch_path_spec=/usr/lib
21402 need_lib_prefix=no
21403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21404 need_version=no
21405 else
21406 need_version=yes
21407 fi
21408 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21410 shlibpath_var=LD_LIBRARY_PATH
21411 shlibpath_overrides_runpath=yes
21412 ;;
21413
21414 os2*)
21415 libname_spec='$name'
21416 version_type=windows
21417 shrext_cmds=.dll
21418 need_version=no
21419 need_lib_prefix=no
21420 # OS/2 can only load a DLL with a base name of 8 characters or less.
21421 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21422 v=$($ECHO $release$versuffix | tr -d .-);
21423 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21424 $ECHO $n$v`$shared_ext'
21425 library_names_spec='${libname}_dll.$libext'
21426 dynamic_linker='OS/2 ld.exe'
21427 shlibpath_var=BEGINLIBPATH
21428 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21430 postinstall_cmds='base_file=`basename \$file`~
21431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21432 dldir=$destdir/`dirname \$dlpath`~
21433 test -d \$dldir || mkdir -p \$dldir~
21434 $install_prog $dir/$dlname \$dldir/$dlname~
21435 chmod a+x \$dldir/$dlname~
21436 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21437 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21438 fi'
21439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21440 dlpath=$dir/\$dldll~
21441 $RM \$dlpath'
21442 ;;
21443
21444 osf3* | osf4* | osf5*)
21445 version_type=osf
21446 need_lib_prefix=no
21447 need_version=no
21448 soname_spec='$libname$release$shared_ext$major'
21449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21450 shlibpath_var=LD_LIBRARY_PATH
21451 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21453 ;;
21454
21455 rdos*)
21456 dynamic_linker=no
21457 ;;
21458
21459 solaris*)
21460 version_type=linux # correct to gnu/linux during the next big refactor
21461 need_lib_prefix=no
21462 need_version=no
21463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21464 soname_spec='$libname$release$shared_ext$major'
21465 shlibpath_var=LD_LIBRARY_PATH
21466 shlibpath_overrides_runpath=yes
21467 hardcode_into_libs=yes
21468 # ldd complains unless libraries are executable
21469 postinstall_cmds='chmod +x $lib'
21470 ;;
21471
21472 sunos4*)
21473 version_type=sunos
21474 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21476 shlibpath_var=LD_LIBRARY_PATH
21477 shlibpath_overrides_runpath=yes
21478 if test yes = "$with_gnu_ld"; then
21479 need_lib_prefix=no
21480 fi
21481 need_version=yes
21482 ;;
21483
21484 sysv4 | sysv4.3*)
21485 version_type=linux # correct to gnu/linux during the next big refactor
21486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21487 soname_spec='$libname$release$shared_ext$major'
21488 shlibpath_var=LD_LIBRARY_PATH
21489 case $host_vendor in
21490 sni)
21491 shlibpath_overrides_runpath=no
21492 need_lib_prefix=no
21493 runpath_var=LD_RUN_PATH
21494 ;;
21495 siemens)
21496 need_lib_prefix=no
21497 ;;
21498 motorola)
21499 need_lib_prefix=no
21500 need_version=no
21501 shlibpath_overrides_runpath=no
21502 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21503 ;;
21504 esac
21505 ;;
21506
21507 sysv4*MP*)
21508 if test -d /usr/nec; then
21509 version_type=linux # correct to gnu/linux during the next big refactor
21510 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
21511 soname_spec='$libname$shared_ext.$major'
21512 shlibpath_var=LD_LIBRARY_PATH
21513 fi
21514 ;;
21515
21516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21517 version_type=sco
21518 need_lib_prefix=no
21519 need_version=no
21520 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
21521 soname_spec='$libname$release$shared_ext$major'
21522 shlibpath_var=LD_LIBRARY_PATH
21523 shlibpath_overrides_runpath=yes
21524 hardcode_into_libs=yes
21525 if test yes = "$with_gnu_ld"; then
21526 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21527 else
21528 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21529 case $host_os in
21530 sco3.2v5*)
21531 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21532 ;;
21533 esac
21534 fi
21535 sys_lib_dlsearch_path_spec='/usr/lib'
21536 ;;
21537
21538 tpf*)
21539 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21540 version_type=linux # correct to gnu/linux during the next big refactor
21541 need_lib_prefix=no
21542 need_version=no
21543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21544 shlibpath_var=LD_LIBRARY_PATH
21545 shlibpath_overrides_runpath=no
21546 hardcode_into_libs=yes
21547 ;;
21548
21549 uts4*)
21550 version_type=linux # correct to gnu/linux during the next big refactor
21551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21552 soname_spec='$libname$release$shared_ext$major'
21553 shlibpath_var=LD_LIBRARY_PATH
21554 ;;
21555
21556 *)
21557 dynamic_linker=no
21558 ;;
21559 esac
21560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21561 printf "%s\n" "$dynamic_linker" >&6; }
21562 test no = "$dynamic_linker" && can_build_shared=no
21563
21564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21565 if test yes = "$GCC"; then
21566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21567 fi
21568
21569 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
21570 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
21571 fi
21572
21573 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
21574 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
21575 fi
21576
21577 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
21578 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
21579
21580 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
21581 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
21582
21583 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
21584 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21626 printf %s "checking how to hardcode library paths into programs... " >&6; }
21627 hardcode_action_CXX=
21628 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21629 test -n "$runpath_var_CXX" ||
21630 test yes = "$hardcode_automatic_CXX"; then
21631
21632 # We can hardcode non-existent directories.
21633 if test no != "$hardcode_direct_CXX" &&
21634 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21635 # have to relink, otherwise we might link with an installed library
21636 # when we should be linking with a yet-to-be-installed one
21637 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
21638 test no != "$hardcode_minus_L_CXX"; then
21639 # Linking always hardcodes the temporary library directory.
21640 hardcode_action_CXX=relink
21641 else
21642 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21643 hardcode_action_CXX=immediate
21644 fi
21645 else
21646 # We cannot hardcode anything, or else we can only hardcode existing
21647 # directories.
21648 hardcode_action_CXX=unsupported
21649 fi
21650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21651 printf "%s\n" "$hardcode_action_CXX" >&6; }
21652
21653 if test relink = "$hardcode_action_CXX" ||
21654 test yes = "$inherit_rpath_CXX"; then
21655 # Fast installation is not supported
21656 enable_fast_install=no
21657 elif test yes = "$shlibpath_overrides_runpath" ||
21658 test no = "$enable_shared"; then
21659 # Fast installation is not necessary
21660 enable_fast_install=needless
21661 fi
21662
21663
21664
21665
21666
21667
21668
21669 fi # test -n "$compiler"
21670
21671 CC=$lt_save_CC
21672 CFLAGS=$lt_save_CFLAGS
21673 LDCXX=$LD
21674 LD=$lt_save_LD
21675 GCC=$lt_save_GCC
21676 with_gnu_ld=$lt_save_with_gnu_ld
21677 lt_cv_path_LDCXX=$lt_cv_path_LD
21678 lt_cv_path_LD=$lt_save_path_LD
21679 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21680 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21681 fi # test yes != "$_lt_caught_CXX_error"
21682
21683 ac_ext=c
21684 ac_cpp='$CPP $CPPFLAGS'
21685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21688
21689
21690 depcc="$CXX" am_compiler_list=
21691
21692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
21693 printf %s "checking dependency style of $depcc... " >&6; }
21694 if test ${am_cv_CXX_dependencies_compiler_type+y}
21695 then :
21696 printf %s "(cached) " >&6
21697 else $as_nop
21698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21699 # We make a subdir and do the tests there. Otherwise we can end up
21700 # making bogus files that we don't know about and never remove. For
21701 # instance it was reported that on HP-UX the gcc test will end up
21702 # making a dummy file named 'D' -- because '-MD' means "put the output
21703 # in D".
21704 rm -rf conftest.dir
21705 mkdir conftest.dir
21706 # Copy depcomp to subdir because otherwise we won't find it if we're
21707 # using a relative directory.
21708 cp "$am_depcomp" conftest.dir
21709 cd conftest.dir
21710 # We will build objects and dependencies in a subdirectory because
21711 # it helps to detect inapplicable dependency modes. For instance
21712 # both Tru64's cc and ICC support -MD to output dependencies as a
21713 # side effect of compilation, but ICC will put the dependencies in
21714 # the current directory while Tru64 will put them in the object
21715 # directory.
21716 mkdir sub
21717
21718 am_cv_CXX_dependencies_compiler_type=none
21719 if test "$am_compiler_list" = ""; then
21720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21721 fi
21722 am__universal=false
21723 case " $depcc " in #(
21724 *\ -arch\ *\ -arch\ *) am__universal=true ;;
21725 esac
21726
21727 for depmode in $am_compiler_list; do
21728 # Setup a source with many dependencies, because some compilers
21729 # like to wrap large dependency lists on column 80 (with \), and
21730 # we should not choose a depcomp mode which is confused by this.
21731 #
21732 # We need to recreate these files for each test, as the compiler may
21733 # overwrite some of them when testing with obscure command lines.
21734 # This happens at least with the AIX C compiler.
21735 : > sub/conftest.c
21736 for i in 1 2 3 4 5 6; do
21737 echo '#include "conftst'$i'.h"' >> sub/conftest.c
21738 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
21739 # Solaris 10 /bin/sh.
21740 echo '/* dummy */' > sub/conftst$i.h
21741 done
21742 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21743
21744 # We check with '-c' and '-o' for the sake of the "dashmstdout"
21745 # mode. It turns out that the SunPro C++ compiler does not properly
21746 # handle '-M -o', and we need to detect this. Also, some Intel
21747 # versions had trouble with output in subdirs.
21748 am__obj=sub/conftest.${OBJEXT-o}
21749 am__minus_obj="-o $am__obj"
21750 case $depmode in
21751 gcc)
21752 # This depmode causes a compiler race in universal mode.
21753 test "$am__universal" = false || continue
21754 ;;
21755 nosideeffect)
21756 # After this tag, mechanisms are not by side-effect, so they'll
21757 # only be used when explicitly requested.
21758 if test "x$enable_dependency_tracking" = xyes; then
21759 continue
21760 else
21761 break
21762 fi
21763 ;;
21764 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
21765 # This compiler won't grok '-c -o', but also, the minuso test has
21766 # not run yet. These depmodes are late enough in the game, and
21767 # so weak that their functioning should not be impacted.
21768 am__obj=conftest.${OBJEXT-o}
21769 am__minus_obj=
21770 ;;
21771 none) break ;;
21772 esac
21773 if depmode=$depmode \
21774 source=sub/conftest.c object=$am__obj \
21775 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21776 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
21777 >/dev/null 2>conftest.err &&
21778 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
21779 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21780 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
21781 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21782 # icc doesn't choke on unknown options, it will just issue warnings
21783 # or remarks (even with -Werror). So we grep stderr for any message
21784 # that says an option was ignored or not supported.
21785 # When given -MP, icc 7.0 and 7.1 complain thusly:
21786 # icc: Command line warning: ignoring option '-M'; no argument required
21787 # The diagnosis changed in icc 8.0:
21788 # icc: Command line remark: option '-MP' not supported
21789 if (grep 'ignoring option' conftest.err ||
21790 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21791 am_cv_CXX_dependencies_compiler_type=$depmode
21792 break
21793 fi
21794 fi
21795 done
21796
21797 cd ..
21798 rm -rf conftest.dir
21799 else
21800 am_cv_CXX_dependencies_compiler_type=none
21801 fi
21802
21803 fi
21804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
21805 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
21806 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
21807
21808 if
21809 test "x$enable_dependency_tracking" != xno \
21810 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
21811 am__fastdepCXX_TRUE=
21812 am__fastdepCXX_FALSE='#'
21813 else
21814 am__fastdepCXX_TRUE='#'
21815 am__fastdepCXX_FALSE=
21816 fi
21817
21818
21819
21820 for ac_prog in 'bison -y' byacc
21821 do
21822 # Extract the first word of "$ac_prog", so it can be a program name with args.
21823 set dummy $ac_prog; ac_word=$2
21824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21825 printf %s "checking for $ac_word... " >&6; }
21826 if test ${ac_cv_prog_YACC+y}
21827 then :
21828 printf %s "(cached) " >&6
21829 else $as_nop
21830 if test -n "$YACC"; then
21831 ac_cv_prog_YACC="$YACC" # Let the user override the test.
21832 else
21833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21834 for as_dir in $PATH
21835 do
21836 IFS=$as_save_IFS
21837 case $as_dir in #(((
21838 '') as_dir=./ ;;
21839 */) ;;
21840 *) as_dir=$as_dir/ ;;
21841 esac
21842 for ac_exec_ext in '' $ac_executable_extensions; do
21843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21844 ac_cv_prog_YACC="$ac_prog"
21845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21846 break 2
21847 fi
21848 done
21849 done
21850 IFS=$as_save_IFS
21851
21852 fi
21853 fi
21854 YACC=$ac_cv_prog_YACC
21855 if test -n "$YACC"; then
21856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
21857 printf "%s\n" "$YACC" >&6; }
21858 else
21859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21860 printf "%s\n" "no" >&6; }
21861 fi
21862
21863
21864 test -n "$YACC" && break
21865 done
21866 test -n "$YACC" || YACC="yacc"
21867
21868 for ac_prog in flex lex
21869 do
21870 # Extract the first word of "$ac_prog", so it can be a program name with args.
21871 set dummy $ac_prog; ac_word=$2
21872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21873 printf %s "checking for $ac_word... " >&6; }
21874 if test ${ac_cv_prog_LEX+y}
21875 then :
21876 printf %s "(cached) " >&6
21877 else $as_nop
21878 if test -n "$LEX"; then
21879 ac_cv_prog_LEX="$LEX" # Let the user override the test.
21880 else
21881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21882 for as_dir in $PATH
21883 do
21884 IFS=$as_save_IFS
21885 case $as_dir in #(((
21886 '') as_dir=./ ;;
21887 */) ;;
21888 *) as_dir=$as_dir/ ;;
21889 esac
21890 for ac_exec_ext in '' $ac_executable_extensions; do
21891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21892 ac_cv_prog_LEX="$ac_prog"
21893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21894 break 2
21895 fi
21896 done
21897 done
21898 IFS=$as_save_IFS
21899
21900 fi
21901 fi
21902 LEX=$ac_cv_prog_LEX
21903 if test -n "$LEX"; then
21904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
21905 printf "%s\n" "$LEX" >&6; }
21906 else
21907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21908 printf "%s\n" "no" >&6; }
21909 fi
21910
21911
21912 test -n "$LEX" && break
21913 done
21914 test -n "$LEX" || LEX=":"
21915
21916 if test "x$LEX" != "x:"; then
21917 cat >conftest.l <<_ACEOF
21918 %{
21919 #ifdef __cplusplus
21920 extern "C"
21921 #endif
21922 int yywrap(void);
21923 %}
21924 %%
21925 a { ECHO; }
21926 b { REJECT; }
21927 c { yymore (); }
21928 d { yyless (1); }
21929 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
21930 #ifdef __cplusplus
21931 yyless ((yyinput () != 0));
21932 #else
21933 yyless ((input () != 0));
21934 #endif
21935 }
21936 f { unput (yytext[0]); }
21937 . { BEGIN INITIAL; }
21938 %%
21939 #ifdef YYTEXT_POINTER
21940 extern char *yytext;
21941 #endif
21942 int
21943 yywrap (void)
21944 {
21945 return 1;
21946 }
21947 int
21948 main (void)
21949 {
21950 return ! yylex ();
21951 }
21952 _ACEOF
21953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
21954 printf %s "checking for lex output file root... " >&6; }
21955 if test ${ac_cv_prog_lex_root+y}
21956 then :
21957 printf %s "(cached) " >&6
21958 else $as_nop
21959
21960 ac_cv_prog_lex_root=unknown
21961 { { ac_try="$LEX conftest.l"
21962 case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965 esac
21966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21967 printf "%s\n" "$ac_try_echo"; } >&5
21968 (eval "$LEX conftest.l") 2>&5
21969 ac_status=$?
21970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21971 test $ac_status = 0; } &&
21972 if test -f lex.yy.c; then
21973 ac_cv_prog_lex_root=lex.yy
21974 elif test -f lexyy.c; then
21975 ac_cv_prog_lex_root=lexyy
21976 fi
21977 fi
21978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
21979 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
21980 if test "$ac_cv_prog_lex_root" = unknown
21981 then :
21982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
21983 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
21984 LEX=: LEXLIB=
21985 fi
21986 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21987
21988 if test ${LEXLIB+y}
21989 then :
21990
21991 else $as_nop
21992
21993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
21994 printf %s "checking for lex library... " >&6; }
21995 if test ${ac_cv_lib_lex+y}
21996 then :
21997 printf %s "(cached) " >&6
21998 else $as_nop
21999
22000 ac_save_LIBS="$LIBS"
22001 ac_found=false
22002 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
22003 case $ac_cv_lib_lex in #(
22004 'none needed') :
22005 ;; #(
22006 'not found') :
22007 break ;; #(
22008 *) :
22009 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
22010 *) :
22011 ;;
22012 esac
22013
22014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h. */
22016 `cat $LEX_OUTPUT_ROOT.c`
22017 _ACEOF
22018 if ac_fn_c_try_link "$LINENO"
22019 then :
22020 ac_found=:
22021 fi
22022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22023 conftest$ac_exeext conftest.$ac_ext
22024 if $ac_found; then
22025 break
22026 fi
22027 done
22028 LIBS="$ac_save_LIBS"
22029
22030 fi
22031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
22032 printf "%s\n" "$ac_cv_lib_lex" >&6; }
22033 if test "$ac_cv_lib_lex" = 'not found'
22034 then :
22035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
22036 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
22037 LEX=: LEXLIB=
22038 elif test "$ac_cv_lib_lex" = 'none needed'
22039 then :
22040 LEXLIB=''
22041 else $as_nop
22042 LEXLIB=$ac_cv_lib_lex
22043 fi
22044 ac_save_LIBS="$LIBS"
22045 LIBS=
22046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
22047 printf %s "checking for library containing yywrap... " >&6; }
22048 if test ${ac_cv_search_yywrap+y}
22049 then :
22050 printf %s "(cached) " >&6
22051 else $as_nop
22052 ac_func_search_save_LIBS=$LIBS
22053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22054 /* end confdefs.h. */
22055
22056 /* Override any GCC internal prototype to avoid an error.
22057 Use char because int might match the return type of a GCC
22058 builtin and then its argument prototype would still apply. */
22059 char yywrap ();
22060 int
22061 main (void)
22062 {
22063 return yywrap ();
22064 ;
22065 return 0;
22066 }
22067 _ACEOF
22068 for ac_lib in '' fl l
22069 do
22070 if test -z "$ac_lib"; then
22071 ac_res="none required"
22072 else
22073 ac_res=-l$ac_lib
22074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22075 fi
22076 if ac_fn_c_try_link "$LINENO"
22077 then :
22078 ac_cv_search_yywrap=$ac_res
22079 fi
22080 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22081 conftest$ac_exeext
22082 if test ${ac_cv_search_yywrap+y}
22083 then :
22084 break
22085 fi
22086 done
22087 if test ${ac_cv_search_yywrap+y}
22088 then :
22089
22090 else $as_nop
22091 ac_cv_search_yywrap=no
22092 fi
22093 rm conftest.$ac_ext
22094 LIBS=$ac_func_search_save_LIBS
22095 fi
22096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
22097 printf "%s\n" "$ac_cv_search_yywrap" >&6; }
22098 ac_res=$ac_cv_search_yywrap
22099 if test "$ac_res" != no
22100 then :
22101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22102 LEXLIB="$LIBS"
22103 fi
22104
22105 LIBS="$ac_save_LIBS"
22106 fi
22107
22108
22109 if test "$LEX" != :
22110 then :
22111
22112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
22113 printf %s "checking whether yytext is a pointer... " >&6; }
22114 if test ${ac_cv_prog_lex_yytext_pointer+y}
22115 then :
22116 printf %s "(cached) " >&6
22117 else $as_nop
22118 # POSIX says lex can declare yytext either as a pointer or an array; the
22119 # default is implementation-dependent. Figure out which it is, since
22120 # not all implementations provide the %pointer and %array declarations.
22121 ac_cv_prog_lex_yytext_pointer=no
22122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h. */
22124
22125 #define YYTEXT_POINTER 1
22126 `cat $LEX_OUTPUT_ROOT.c`
22127 _ACEOF
22128 if ac_fn_c_try_compile "$LINENO"
22129 then :
22130 ac_cv_prog_lex_yytext_pointer=yes
22131 fi
22132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22133
22134 fi
22135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
22136 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
22137 if test $ac_cv_prog_lex_yytext_pointer = yes; then
22138
22139 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
22140
22141 fi
22142
22143 fi
22144 rm -f conftest.l $LEX_OUTPUT_ROOT.c
22145
22146 fi
22147 if test "$LEX" = :; then
22148 LEX=${am_missing_run}flex
22149 fi
22150
22151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22152 printf %s "checking for inline... " >&6; }
22153 if test ${ac_cv_c_inline+y}
22154 then :
22155 printf %s "(cached) " >&6
22156 else $as_nop
22157 ac_cv_c_inline=no
22158 for ac_kw in inline __inline__ __inline; do
22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h. */
22161 #ifndef __cplusplus
22162 typedef int foo_t;
22163 static $ac_kw foo_t static_foo (void) {return 0; }
22164 $ac_kw foo_t foo (void) {return 0; }
22165 #endif
22166
22167 _ACEOF
22168 if ac_fn_c_try_compile "$LINENO"
22169 then :
22170 ac_cv_c_inline=$ac_kw
22171 fi
22172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22173 test "$ac_cv_c_inline" != no && break
22174 done
22175
22176 fi
22177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22178 printf "%s\n" "$ac_cv_c_inline" >&6; }
22179
22180 case $ac_cv_c_inline in
22181 inline | yes) ;;
22182 *)
22183 case $ac_cv_c_inline in
22184 no) ac_val=;;
22185 *) ac_val=$ac_cv_c_inline;;
22186 esac
22187 cat >>confdefs.h <<_ACEOF
22188 #ifndef __cplusplus
22189 #define inline $ac_val
22190 #endif
22191 _ACEOF
22192 ;;
22193 esac
22194
22195
22196 # Check for some compiler options that provide significant optimizations
22197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fcx-limited-range" >&5
22198 printf %s "checking whether C compiler accepts -fcx-limited-range... " >&6; }
22199 if test ${ax_cv_check_cflags___fcx_limited_range+y}
22200 then :
22201 printf %s "(cached) " >&6
22202 else $as_nop
22203
22204 ax_check_save_flags=$CFLAGS
22205 CFLAGS="$CFLAGS -fcx-limited-range"
22206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h. */
22208
22209 int
22210 main (void)
22211 {
22212
22213 ;
22214 return 0;
22215 }
22216 _ACEOF
22217 if ac_fn_c_try_compile "$LINENO"
22218 then :
22219 ax_cv_check_cflags___fcx_limited_range=yes
22220 else $as_nop
22221 ax_cv_check_cflags___fcx_limited_range=no
22222 fi
22223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22224 CFLAGS=$ax_check_save_flags
22225 fi
22226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fcx_limited_range" >&5
22227 printf "%s\n" "$ax_cv_check_cflags___fcx_limited_range" >&6; }
22228 if test x"$ax_cv_check_cflags___fcx_limited_range" = xyes
22229 then :
22230 LIBMPS_CFLAGS="$LIBMPS_CFLAGS -fcx-limited-range"
22231 else $as_nop
22232 :
22233 fi
22234
22235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-math-errno" >&5
22236 printf %s "checking whether C compiler accepts -fno-math-errno... " >&6; }
22237 if test ${ax_cv_check_cflags___fno_math_errno+y}
22238 then :
22239 printf %s "(cached) " >&6
22240 else $as_nop
22241
22242 ax_check_save_flags=$CFLAGS
22243 CFLAGS="$CFLAGS -fno-math-errno"
22244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22245 /* end confdefs.h. */
22246
22247 int
22248 main (void)
22249 {
22250
22251 ;
22252 return 0;
22253 }
22254 _ACEOF
22255 if ac_fn_c_try_compile "$LINENO"
22256 then :
22257 ax_cv_check_cflags___fno_math_errno=yes
22258 else $as_nop
22259 ax_cv_check_cflags___fno_math_errno=no
22260 fi
22261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22262 CFLAGS=$ax_check_save_flags
22263 fi
22264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_math_errno" >&5
22265 printf "%s\n" "$ax_cv_check_cflags___fno_math_errno" >&6; }
22266 if test x"$ax_cv_check_cflags___fno_math_errno" = xyes
22267 then :
22268 LIBMPS_CFLAGS="$LIBMPS_CFLAGS -fno-math-errno"
22269 else $as_nop
22270 :
22271 fi
22272
22273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fomit-frame-pointer" >&5
22274 printf %s "checking whether C compiler accepts -fomit-frame-pointer... " >&6; }
22275 if test ${ax_cv_check_cflags___fomit_frame_pointer+y}
22276 then :
22277 printf %s "(cached) " >&6
22278 else $as_nop
22279
22280 ax_check_save_flags=$CFLAGS
22281 CFLAGS="$CFLAGS -fomit-frame-pointer"
22282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283 /* end confdefs.h. */
22284
22285 int
22286 main (void)
22287 {
22288
22289 ;
22290 return 0;
22291 }
22292 _ACEOF
22293 if ac_fn_c_try_compile "$LINENO"
22294 then :
22295 ax_cv_check_cflags___fomit_frame_pointer=yes
22296 else $as_nop
22297 ax_cv_check_cflags___fomit_frame_pointer=no
22298 fi
22299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22300 CFLAGS=$ax_check_save_flags
22301 fi
22302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fomit_frame_pointer" >&5
22303 printf "%s\n" "$ax_cv_check_cflags___fomit_frame_pointer" >&6; }
22304 if test x"$ax_cv_check_cflags___fomit_frame_pointer" = xyes
22305 then :
22306 LIBMPS_CFLAGS="$LIBMPS_CFLAGS -fomit-frame-pointer"
22307 else $as_nop
22308 :
22309 fi
22310
22311
22312 # Checks for typedefs, structures, and compiler characteristics.
22313 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
22314 if test "x$ac_cv_type__Bool" = xyes
22315 then :
22316
22317 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
22318
22319
22320 fi
22321
22322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
22323 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
22324 if test ${ac_cv_header_stdbool_h+y}
22325 then :
22326 printf %s "(cached) " >&6
22327 else $as_nop
22328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22329 /* end confdefs.h. */
22330 #include <stdbool.h>
22331
22332 #ifndef __bool_true_false_are_defined
22333 #error "__bool_true_false_are_defined is not defined"
22334 #endif
22335 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
22336
22337 /* Regardless of whether this is C++ or "_Bool" is a
22338 valid type name, "true" and "false" should be usable
22339 in #if expressions and integer constant expressions,
22340 and "bool" should be a valid type name. */
22341
22342 #if !true
22343 #error "'true' is not true"
22344 #endif
22345 #if true != 1
22346 #error "'true' is not equal to 1"
22347 #endif
22348 char b[true == 1 ? 1 : -1];
22349 char c[true];
22350
22351 #if false
22352 #error "'false' is not false"
22353 #endif
22354 #if false != 0
22355 #error "'false' is not equal to 0"
22356 #endif
22357 char d[false == 0 ? 1 : -1];
22358
22359 enum { e = false, f = true, g = false * true, h = true * 256 };
22360
22361 char i[(bool) 0.5 == true ? 1 : -1];
22362 char j[(bool) 0.0 == false ? 1 : -1];
22363 char k[sizeof (bool) > 0 ? 1 : -1];
22364
22365 struct sb { bool s: 1; bool t; } s;
22366 char l[sizeof s.t > 0 ? 1 : -1];
22367
22368 /* The following fails for
22369 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22370 bool m[h];
22371 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
22372 char o[-1 - (bool) 0 < 0 ? 1 : -1];
22373 /* Catch a bug in an HP-UX C compiler. See
22374 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22375 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22376 */
22377 bool p = true;
22378 bool *pp = &p;
22379
22380 /* C 1999 specifies that bool, true, and false are to be
22381 macros, but C++ 2011 and later overrule this. */
22382 #if __cplusplus < 201103
22383 #ifndef bool
22384 #error "bool is not defined"
22385 #endif
22386 #ifndef false
22387 #error "false is not defined"
22388 #endif
22389 #ifndef true
22390 #error "true is not defined"
22391 #endif
22392 #endif
22393
22394 /* If _Bool is available, repeat with it all the tests
22395 above that used bool. */
22396 #ifdef HAVE__BOOL
22397 struct sB { _Bool s: 1; _Bool t; } t;
22398
22399 char q[(_Bool) 0.5 == true ? 1 : -1];
22400 char r[(_Bool) 0.0 == false ? 1 : -1];
22401 char u[sizeof (_Bool) > 0 ? 1 : -1];
22402 char v[sizeof t.t > 0 ? 1 : -1];
22403
22404 _Bool w[h];
22405 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
22406 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
22407 _Bool z = true;
22408 _Bool *pz = &p;
22409 #endif
22410
22411 int
22412 main (void)
22413 {
22414
22415 bool ps = &s;
22416 *pp |= p;
22417 *pp |= ! p;
22418
22419 #ifdef HAVE__BOOL
22420 _Bool pt = &t;
22421 *pz |= z;
22422 *pz |= ! z;
22423 #endif
22424
22425 /* Refer to every declared value, so they cannot be
22426 discarded as unused. */
22427 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
22428 + !l + !m + !n + !o + !p + !pp + !ps
22429 #ifdef HAVE__BOOL
22430 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
22431 #endif
22432 );
22433
22434 ;
22435 return 0;
22436 }
22437 _ACEOF
22438 if ac_fn_c_try_compile "$LINENO"
22439 then :
22440 ac_cv_header_stdbool_h=yes
22441 else $as_nop
22442 ac_cv_header_stdbool_h=no
22443 fi
22444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22445 fi
22446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
22447 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
22448
22449 if test $ac_cv_header_stdbool_h = yes; then
22450
22451 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
22452
22453 fi
22454
22455 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22456 if test "x$ac_cv_type_size_t" = xyes
22457 then :
22458
22459 else $as_nop
22460
22461 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
22462
22463 fi
22464
22465
22466 # Checks for basic library functions. Without these there will be no hope
22467 # of compiling MPSolve.
22468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
22469 printf %s "checking for error_at_line... " >&6; }
22470 if test ${ac_cv_lib_error_at_line+y}
22471 then :
22472 printf %s "(cached) " >&6
22473 else $as_nop
22474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22475 /* end confdefs.h. */
22476 #include <error.h>
22477 int
22478 main (void)
22479 {
22480 error_at_line (0, 0, "", 0, "an error occurred");
22481 ;
22482 return 0;
22483 }
22484 _ACEOF
22485 if ac_fn_c_try_link "$LINENO"
22486 then :
22487 ac_cv_lib_error_at_line=yes
22488 else $as_nop
22489 ac_cv_lib_error_at_line=no
22490 fi
22491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22492 conftest$ac_exeext conftest.$ac_ext
22493 fi
22494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
22495 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
22496 if test $ac_cv_lib_error_at_line = no; then
22497 case " $LIBOBJS " in
22498 *" error.$ac_objext "* ) ;;
22499 *) LIBOBJS="$LIBOBJS error.$ac_objext"
22500 ;;
22501 esac
22502
22503 fi
22504
22505 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
22506 if test "x$ac_cv_func_memset" = xyes
22507 then :
22508 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
22509
22510 fi
22511 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
22512 if test "x$ac_cv_func_modf" = xyes
22513 then :
22514 printf "%s\n" "#define HAVE_MODF 1" >>confdefs.h
22515
22516 fi
22517 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22518 if test "x$ac_cv_func_pow" = xyes
22519 then :
22520 printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
22521
22522 fi
22523 ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
22524 if test "x$ac_cv_func_sqrt" = xyes
22525 then :
22526 printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
22527
22528 fi
22529 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
22530 if test "x$ac_cv_func_strchr" = xyes
22531 then :
22532 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
22533
22534 fi
22535
22536
22537 ## Subsection 0.1) Check if we are building on Windows and tune the CFLAGS accordingly
22538
22539 # Check if we are building on Windows, so we can add additional
22540 # hacks to make MPSolve work there.
22541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Win32 platform" >&5
22542 printf %s "checking for Win32 platform... " >&6; }
22543 case "$host" in
22544 *-*-mingw*|*-*-cygwin*)
22545 platform_win32=yes
22546 ;;
22547 *)
22548 platform_win32=no
22549 ;;
22550 esac
22551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
22552 printf "%s\n" "$platform_win32" >&6; }
22553
22554 # This makes detecting Windows real easy...
22555 if test "$platform_win32" = yes; then
22556 CFLAGS="$CFLAGS -D__WINDOWS"
22557 LDFLAGS="$LDFLAGS -mwindows"
22558
22559 # In this case check if we have windres compiler
22560 if test -n "$ac_tool_prefix"; then
22561 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
22562 set dummy ${ac_tool_prefix}windres; ac_word=$2
22563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22564 printf %s "checking for $ac_word... " >&6; }
22565 if test ${ac_cv_prog_WINDRES+y}
22566 then :
22567 printf %s "(cached) " >&6
22568 else $as_nop
22569 if test -n "$WINDRES"; then
22570 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
22571 else
22572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22573 for as_dir in $PATH
22574 do
22575 IFS=$as_save_IFS
22576 case $as_dir in #(((
22577 '') as_dir=./ ;;
22578 */) ;;
22579 *) as_dir=$as_dir/ ;;
22580 esac
22581 for ac_exec_ext in '' $ac_executable_extensions; do
22582 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22583 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
22584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22585 break 2
22586 fi
22587 done
22588 done
22589 IFS=$as_save_IFS
22590
22591 fi
22592 fi
22593 WINDRES=$ac_cv_prog_WINDRES
22594 if test -n "$WINDRES"; then
22595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
22596 printf "%s\n" "$WINDRES" >&6; }
22597 else
22598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22599 printf "%s\n" "no" >&6; }
22600 fi
22601
22602
22603 fi
22604 if test -z "$ac_cv_prog_WINDRES"; then
22605 ac_ct_WINDRES=$WINDRES
22606 # Extract the first word of "windres", so it can be a program name with args.
22607 set dummy windres; ac_word=$2
22608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22609 printf %s "checking for $ac_word... " >&6; }
22610 if test ${ac_cv_prog_ac_ct_WINDRES+y}
22611 then :
22612 printf %s "(cached) " >&6
22613 else $as_nop
22614 if test -n "$ac_ct_WINDRES"; then
22615 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
22616 else
22617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22618 for as_dir in $PATH
22619 do
22620 IFS=$as_save_IFS
22621 case $as_dir in #(((
22622 '') as_dir=./ ;;
22623 */) ;;
22624 *) as_dir=$as_dir/ ;;
22625 esac
22626 for ac_exec_ext in '' $ac_executable_extensions; do
22627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22628 ac_cv_prog_ac_ct_WINDRES="windres"
22629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22630 break 2
22631 fi
22632 done
22633 done
22634 IFS=$as_save_IFS
22635
22636 fi
22637 fi
22638 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
22639 if test -n "$ac_ct_WINDRES"; then
22640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
22641 printf "%s\n" "$ac_ct_WINDRES" >&6; }
22642 else
22643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22644 printf "%s\n" "no" >&6; }
22645 fi
22646
22647 if test "x$ac_ct_WINDRES" = x; then
22648 WINDRES=""
22649 else
22650 case $cross_compiling:$ac_tool_warned in
22651 yes:)
22652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22653 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22654 ac_tool_warned=yes ;;
22655 esac
22656 WINDRES=$ac_ct_WINDRES
22657 fi
22658 else
22659 WINDRES="$ac_cv_prog_WINDRES"
22660 fi
22661
22662 fi
22663
22664 if test "$platform_win32" == "yes"; then
22665 WINDOWS_BUILD_TRUE=
22666 WINDOWS_BUILD_FALSE='#'
22667 else
22668 WINDOWS_BUILD_TRUE='#'
22669 WINDOWS_BUILD_FALSE=
22670 fi
22671
22672 if test "$WINDRES" != ""; then
22673 HAVE_WINDRES_TRUE=
22674 HAVE_WINDRES_FALSE='#'
22675 else
22676 HAVE_WINDRES_TRUE='#'
22677 HAVE_WINDRES_FALSE=
22678 fi
22679
22680
22681 ## Subsection 0.2) Check for the support of the visibily attribute. If this is supported
22682 ## we can make a lot of routines "private", protecting misuse of libmps and shortening
22683 ## load times.
22684
22685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
22686 printf %s "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
22687 if test ${ac_cv_hidden_visibility_attribute+y}
22688 then :
22689 printf %s "(cached) " >&6
22690 else $as_nop
22691
22692 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
22693 ac_cv_hidden_visibility_attribute=no
22694 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
22695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22696 (eval $ac_try) 2>&5
22697 ac_status=$?
22698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22699 test $ac_status = 0; }; };
22700 then
22701 if grep '\.hidden.*foo' conftest.s >/dev/null;
22702 then
22703 ac_cv_hidden_visibility_attribute=yes
22704 fi
22705 fi
22706 rm -f conftest.*
22707
22708 fi
22709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hidden_visibility_attribute" >&5
22710 printf "%s\n" "$ac_cv_hidden_visibility_attribute" >&6; }
22711
22712 if test $ac_cv_hidden_visibility_attribute = yes;
22713 then
22714
22715 printf "%s\n" "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
22716
22717 fi
22718
22719
22720 ## Subsection 0.3) Multithread support.
22721
22722
22723
22724
22725
22726 ac_ext=c
22727 ac_cpp='$CPP $CPPFLAGS'
22728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22731
22732 acx_pthread_ok=no
22733
22734 # We used to check for pthread.h first, but this fails if pthread.h
22735 # requires special compiler flags (e.g. on True64 or Sequent).
22736 # It gets checked for in the link test anyway.
22737
22738 # First of all, check if the user has set any of the PTHREAD_LIBS,
22739 # etcetera environment variables, and if threads linking works using
22740 # them:
22741 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22742 save_CFLAGS="$CFLAGS"
22743 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22744 save_LIBS="$LIBS"
22745 LIBS="$PTHREAD_LIBS $LIBS"
22746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22747 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h. */
22750
22751 /* Override any GCC internal prototype to avoid an error.
22752 Use char because int might match the return type of a GCC
22753 builtin and then its argument prototype would still apply. */
22754 char pthread_join ();
22755 int
22756 main (void)
22757 {
22758 return pthread_join ();
22759 ;
22760 return 0;
22761 }
22762 _ACEOF
22763 if ac_fn_c_try_link "$LINENO"
22764 then :
22765 acx_pthread_ok=yes
22766 fi
22767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22768 conftest$ac_exeext conftest.$ac_ext
22769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
22770 printf "%s\n" "$acx_pthread_ok" >&6; }
22771 if test x"$acx_pthread_ok" = xno; then
22772 PTHREAD_LIBS=""
22773 PTHREAD_CFLAGS=""
22774 fi
22775 LIBS="$save_LIBS"
22776 CFLAGS="$save_CFLAGS"
22777 fi
22778
22779 # We must check for the threads library under a number of different
22780 # names; the ordering is very important because some systems
22781 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22782 # libraries is broken (non-POSIX).
22783
22784 # Create a list of thread flags to try. Items starting with a "-" are
22785 # C compiler flags, and other items are library names, except for "none"
22786 # which indicates that we try without any flags at all, and "pthread-config"
22787 # which is a program returning the flags for the Pth emulation library.
22788
22789 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22790
22791 # The ordering *is* (sometimes) important. Some notes on the
22792 # individual items follow:
22793
22794 # pthreads: AIX (must check this before -lpthread)
22795 # none: in case threads are in libc; should be tried before -Kthread and
22796 # other compiler flags to prevent continual compiler warnings
22797 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22798 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22799 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22800 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22801 # -pthreads: Solaris/gcc
22802 # -mthreads: Mingw32/gcc, Lynx/gcc
22803 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22804 # doesn't hurt to check since this sometimes defines pthreads too;
22805 # also defines -D_REENTRANT)
22806 # ... -mt is also the pthreads flag for HP/aCC
22807 # pthread: Linux, etcetera
22808 # --thread-safe: KAI C++
22809 # pthread-config: use pthread-config program (for GNU Pth library)
22810
22811 case "${host_cpu}-${host_os}" in
22812 *solaris*)
22813
22814 # On Solaris (at least, for some versions), libc contains stubbed
22815 # (non-functional) versions of the pthreads routines, so link-based
22816 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
22817 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22818 # a function called by this macro, so we could check for that, but
22819 # who knows whether they'll stub that too in a future libc.) So,
22820 # we'll just look for -pthreads and -lpthread first:
22821
22822 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22823 ;;
22824 esac
22825
22826 if test x"$acx_pthread_ok" = xno; then
22827 for flag in $acx_pthread_flags; do
22828
22829 case $flag in
22830 none)
22831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
22832 printf %s "checking whether pthreads work without any flags... " >&6; }
22833 ;;
22834
22835 -*)
22836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
22837 printf %s "checking whether pthreads work with $flag... " >&6; }
22838 PTHREAD_CFLAGS="$flag"
22839 ;;
22840
22841 pthread-config)
22842 # Extract the first word of "pthread-config", so it can be a program name with args.
22843 set dummy pthread-config; ac_word=$2
22844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22845 printf %s "checking for $ac_word... " >&6; }
22846 if test ${ac_cv_prog_acx_pthread_config+y}
22847 then :
22848 printf %s "(cached) " >&6
22849 else $as_nop
22850 if test -n "$acx_pthread_config"; then
22851 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22852 else
22853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22854 for as_dir in $PATH
22855 do
22856 IFS=$as_save_IFS
22857 case $as_dir in #(((
22858 '') as_dir=./ ;;
22859 */) ;;
22860 *) as_dir=$as_dir/ ;;
22861 esac
22862 for ac_exec_ext in '' $ac_executable_extensions; do
22863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22864 ac_cv_prog_acx_pthread_config="yes"
22865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22866 break 2
22867 fi
22868 done
22869 done
22870 IFS=$as_save_IFS
22871
22872 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22873 fi
22874 fi
22875 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22876 if test -n "$acx_pthread_config"; then
22877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
22878 printf "%s\n" "$acx_pthread_config" >&6; }
22879 else
22880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22881 printf "%s\n" "no" >&6; }
22882 fi
22883
22884
22885 if test x"$acx_pthread_config" = xno; then continue; fi
22886 PTHREAD_CFLAGS="`pthread-config --cflags`"
22887 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22888 ;;
22889
22890 *)
22891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
22892 printf %s "checking for the pthreads library -l$flag... " >&6; }
22893 PTHREAD_LIBS="-l$flag"
22894 ;;
22895 esac
22896
22897 save_LIBS="$LIBS"
22898 save_CFLAGS="$CFLAGS"
22899 LIBS="$PTHREAD_LIBS $LIBS"
22900 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22901
22902 # Check for various functions. We must include pthread.h,
22903 # since some functions may be macros. (On the Sequent, we
22904 # need a special flag -Kthread to make this header compile.)
22905 # We check for pthread_join because it is in -lpthread on IRIX
22906 # while pthread_create is in libc. We check for pthread_attr_init
22907 # due to DEC craziness with -lpthreads. We check for
22908 # pthread_cleanup_push because it is one of the few pthread
22909 # functions on Solaris that doesn't have a non-functional libc stub.
22910 # We try pthread_create on general principles.
22911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22912 /* end confdefs.h. */
22913 #include <pthread.h>
22914 int
22915 main (void)
22916 {
22917 pthread_t th; pthread_join(th, 0);
22918 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22919 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22920 ;
22921 return 0;
22922 }
22923 _ACEOF
22924 if ac_fn_c_try_link "$LINENO"
22925 then :
22926 acx_pthread_ok=yes
22927 fi
22928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22929 conftest$ac_exeext conftest.$ac_ext
22930
22931 LIBS="$save_LIBS"
22932 CFLAGS="$save_CFLAGS"
22933
22934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
22935 printf "%s\n" "$acx_pthread_ok" >&6; }
22936 if test "x$acx_pthread_ok" = xyes; then
22937 break;
22938 fi
22939
22940 PTHREAD_LIBS=""
22941 PTHREAD_CFLAGS=""
22942 done
22943 fi
22944
22945 # Various other checks:
22946 if test "x$acx_pthread_ok" = xyes; then
22947 save_LIBS="$LIBS"
22948 LIBS="$PTHREAD_LIBS $LIBS"
22949 save_CFLAGS="$CFLAGS"
22950 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22951
22952 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
22954 printf %s "checking for joinable pthread attribute... " >&6; }
22955 attr_name=unknown
22956 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h. */
22959 #include <pthread.h>
22960 int
22961 main (void)
22962 {
22963 int attr=$attr; return attr;
22964 ;
22965 return 0;
22966 }
22967 _ACEOF
22968 if ac_fn_c_try_link "$LINENO"
22969 then :
22970 attr_name=$attr; break
22971 fi
22972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22973 conftest$ac_exeext conftest.$ac_ext
22974 done
22975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
22976 printf "%s\n" "$attr_name" >&6; }
22977 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22978
22979 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
22980
22981 fi
22982
22983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
22984 printf %s "checking if more special flags are required for pthreads... " >&6; }
22985 flag=no
22986 case "${host_cpu}-${host_os}" in
22987 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22988 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22989 esac
22990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
22991 printf "%s\n" "${flag}" >&6; }
22992 if test "x$flag" != xno; then
22993 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22994 fi
22995
22996 LIBS="$save_LIBS"
22997 CFLAGS="$save_CFLAGS"
22998 # More AIX lossage: must compile with xlc_r or cc_r
22999 if test x"$GCC" != xyes; then
23000 for ac_prog in xlc_r cc_r
23001 do
23002 # Extract the first word of "$ac_prog", so it can be a program name with args.
23003 set dummy $ac_prog; ac_word=$2
23004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23005 printf %s "checking for $ac_word... " >&6; }
23006 if test ${ac_cv_prog_PTHREAD_CC+y}
23007 then :
23008 printf %s "(cached) " >&6
23009 else $as_nop
23010 if test -n "$PTHREAD_CC"; then
23011 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23012 else
23013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23014 for as_dir in $PATH
23015 do
23016 IFS=$as_save_IFS
23017 case $as_dir in #(((
23018 '') as_dir=./ ;;
23019 */) ;;
23020 *) as_dir=$as_dir/ ;;
23021 esac
23022 for ac_exec_ext in '' $ac_executable_extensions; do
23023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23024 ac_cv_prog_PTHREAD_CC="$ac_prog"
23025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23026 break 2
23027 fi
23028 done
23029 done
23030 IFS=$as_save_IFS
23031
23032 fi
23033 fi
23034 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23035 if test -n "$PTHREAD_CC"; then
23036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
23037 printf "%s\n" "$PTHREAD_CC" >&6; }
23038 else
23039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23040 printf "%s\n" "no" >&6; }
23041 fi
23042
23043
23044 test -n "$PTHREAD_CC" && break
23045 done
23046 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23047
23048 else
23049 PTHREAD_CC=$CC
23050 fi
23051
23052 # The next part tries to detect GCC inconsistency with -shared on some
23053 # architectures and systems. The problem is that in certain
23054 # configurations, when -shared is specified, GCC "forgets" to
23055 # internally use various flags which are still necessary.
23056
23057 #
23058 # Prepare the flags
23059 #
23060 save_CFLAGS="$CFLAGS"
23061 save_LIBS="$LIBS"
23062 save_CC="$CC"
23063
23064 # Try with the flags determined by the earlier checks.
23065 #
23066 # -Wl,-z,defs forces link-time symbol resolution, so that the
23067 # linking checks with -shared actually have any value
23068 #
23069 # FIXME: -fPIC is required for -shared on many architectures,
23070 # so we specify it here, but the right way would probably be to
23071 # properly detect whether it is actually required.
23072 CFLAGS="-shared -fPIC $CFLAGS $PTHREAD_CFLAGS"
23073 LIBS="$PTHREAD_LIBS $LIBS"
23074 CC="$PTHREAD_CC"
23075
23076 # In order not to create several levels of indentation, we test
23077 # the value of "$done" until we find the cure or run out of ideas.
23078 done="no"
23079
23080 # First, make sure the CFLAGS we added are actually accepted by our
23081 # compiler. If not (and OS X's ld, for instance, does not accept -z),
23082 # then we can't do this test.
23083 if test x"$done" = xno; then
23084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
23085 printf %s "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
23086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23087 /* end confdefs.h. */
23088
23089 int
23090 main (void)
23091 {
23092
23093 ;
23094 return 0;
23095 }
23096 _ACEOF
23097 if ac_fn_c_try_link "$LINENO"
23098 then :
23099
23100 else $as_nop
23101 done=yes
23102 fi
23103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23104 conftest$ac_exeext conftest.$ac_ext
23105
23106 if test "x$done" = xyes ; then
23107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23108 printf "%s\n" "no" >&6; }
23109 else
23110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23111 printf "%s\n" "yes" >&6; }
23112 fi
23113 fi
23114
23115 done="no"
23116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
23117 printf %s "checking whether -pthread is sufficient with -shared... " >&6; }
23118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23119 /* end confdefs.h. */
23120 #include <pthread.h>
23121 int
23122 main (void)
23123 {
23124 pthread_t th; pthread_join(th, 0);
23125 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23126 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23127 ;
23128 return 0;
23129 }
23130 _ACEOF
23131 if ac_fn_c_try_link "$LINENO"
23132 then :
23133 done=yes
23134 fi
23135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23136 conftest$ac_exeext conftest.$ac_ext
23137
23138 if test "x$done" = xyes; then
23139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23140 printf "%s\n" "yes" >&6; }
23141 else
23142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23143 printf "%s\n" "no" >&6; }
23144 fi
23145
23146 #
23147 # Linux gcc on some architectures such as mips/mipsel forgets
23148 # about -lpthread
23149 #
23150 if test x"$done" = xno; then
23151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
23152 printf %s "checking whether -lpthread fixes that... " >&6; }
23153 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23155 /* end confdefs.h. */
23156 #include <pthread.h>
23157 int
23158 main (void)
23159 {
23160 pthread_t th; pthread_join(th, 0);
23161 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23162 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23163 ;
23164 return 0;
23165 }
23166 _ACEOF
23167 if ac_fn_c_try_link "$LINENO"
23168 then :
23169 done=yes
23170 fi
23171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23172 conftest$ac_exeext conftest.$ac_ext
23173
23174 if test "x$done" = xyes; then
23175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23176 printf "%s\n" "yes" >&6; }
23177 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23178 else
23179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23180 printf "%s\n" "no" >&6; }
23181 fi
23182 fi
23183 #
23184 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23185 #
23186 if test x"$done" = xno; then
23187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
23188 printf %s "checking whether -lc_r fixes that... " >&6; }
23189 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h. */
23192 #include <pthread.h>
23193 int
23194 main (void)
23195 {
23196 pthread_t th; pthread_join(th, 0);
23197 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23198 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23199 ;
23200 return 0;
23201 }
23202 _ACEOF
23203 if ac_fn_c_try_link "$LINENO"
23204 then :
23205 done=yes
23206 fi
23207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23208 conftest$ac_exeext conftest.$ac_ext
23209
23210 if test "x$done" = xyes; then
23211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23212 printf "%s\n" "yes" >&6; }
23213 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23214 else
23215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23216 printf "%s\n" "no" >&6; }
23217 fi
23218 fi
23219 if test x"$done" = xno; then
23220 # OK, we have run out of ideas
23221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23222 printf "%s\n" "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23223
23224 # so it's not safe to assume that we may use pthreads
23225 acx_pthread_ok=no
23226 fi
23227
23228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
23229 printf %s "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
23230 CFLAGS="-nostdlib $CFLAGS"
23231 # we need c with nostdlib
23232 LIBS="$LIBS -lc"
23233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23234 /* end confdefs.h. */
23235 #include <pthread.h>
23236 int
23237 main (void)
23238 {
23239 pthread_t th; pthread_join(th, 0);
23240 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23241 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23242 ;
23243 return 0;
23244 }
23245 _ACEOF
23246 if ac_fn_c_try_link "$LINENO"
23247 then :
23248 done=yes
23249 else $as_nop
23250 done=no
23251 fi
23252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23253 conftest$ac_exeext conftest.$ac_ext
23254
23255 if test "x$done" = xyes; then
23256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23257 printf "%s\n" "yes" >&6; }
23258 else
23259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23260 printf "%s\n" "no" >&6; }
23261 fi
23262
23263 if test x"$done" = xno; then
23264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
23265 printf %s "checking whether -lpthread saves the day... " >&6; }
23266 LIBS="-lpthread $LIBS"
23267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23268 /* end confdefs.h. */
23269 #include <pthread.h>
23270 int
23271 main (void)
23272 {
23273 pthread_t th; pthread_join(th, 0);
23274 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23275 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23276 ;
23277 return 0;
23278 }
23279 _ACEOF
23280 if ac_fn_c_try_link "$LINENO"
23281 then :
23282 done=yes
23283 else $as_nop
23284 done=no
23285 fi
23286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23287 conftest$ac_exeext conftest.$ac_ext
23288
23289 if test "x$done" = xyes; then
23290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23291 printf "%s\n" "yes" >&6; }
23292 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
23293 else
23294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23295 printf "%s\n" "no" >&6; }
23296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
23297 printf "%s\n" "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
23298 fi
23299 fi
23300
23301 CFLAGS="$save_CFLAGS"
23302 LIBS="$save_LIBS"
23303 CC="$save_CC"
23304 else
23305 PTHREAD_CC="$CC"
23306 fi
23307
23308
23309
23310
23311
23312 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23313 if test x"$acx_pthread_ok" = xyes; then
23314
23315 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
23316
23317 :
23318 else
23319 acx_pthread_ok=no
23320
23321 as_fn_error $? "Pthread library not found. Please set PTHREAD_CFLAGS and PTHREAD_LIBS correctly for your setup" "$LINENO" 5
23322
23323 fi
23324 ac_ext=c
23325 ac_cpp='$CPP $CPPFLAGS'
23326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23329
23330
23331 CC="$PTHREAD_CC"
23332
23333 # Set the correct PTHREAD flags and, if needed, change the compiler to one that is pthread-enabled.
23334
23335
23336
23337
23338
23339 ## Subsection 0.3) Check for a way to get the number of cores installed on the system.
23340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sysconf(_SC_NPROCESSORS_ONLN) is supported" >&5
23341 printf %s "checking if sysconf(_SC_NPROCESSORS_ONLN) is supported... " >&6; }
23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h. */
23344
23345
23346 #include <unistd.h>
23347 int main() {
23348 int cores = sysconf(_SC_NPROCESSORS_ONLN);
23349 return 0;
23350 }
23351
23352
23353
23354 _ACEOF
23355 if ac_fn_c_try_compile "$LINENO"
23356 then :
23357 have_sysconf=yes
23358 else $as_nop
23359 have_sysconf=no
23360
23361 fi
23362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23363
23364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sysconf" >&5
23365 printf "%s\n" "$have_sysconf" >&6; }
23366 if test "$have_sysconf" == "yes"
23367 then :
23368
23369
23370 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
23371
23372
23373 fi
23374
23375
23376 ## Subsection 0.4) Check for a custom malloc implementation with threading support and a good
23377 ## caching algorithm.
23378 if test "$have_tcmalloc" == "yes"
23379 then :
23380
23381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc in -ltcmalloc_minimal" >&5
23382 printf %s "checking for malloc in -ltcmalloc_minimal... " >&6; }
23383 if test ${ac_cv_lib_tcmalloc_minimal_malloc+y}
23384 then :
23385 printf %s "(cached) " >&6
23386 else $as_nop
23387 ac_check_lib_save_LIBS=$LIBS
23388 LIBS="-ltcmalloc_minimal $LIBS"
23389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23390 /* end confdefs.h. */
23391
23392 /* Override any GCC internal prototype to avoid an error.
23393 Use char because int might match the return type of a GCC
23394 builtin and then its argument prototype would still apply. */
23395 char malloc ();
23396 int
23397 main (void)
23398 {
23399 return malloc ();
23400 ;
23401 return 0;
23402 }
23403 _ACEOF
23404 if ac_fn_c_try_link "$LINENO"
23405 then :
23406 ac_cv_lib_tcmalloc_minimal_malloc=yes
23407 else $as_nop
23408 ac_cv_lib_tcmalloc_minimal_malloc=no
23409 fi
23410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23411 conftest$ac_exeext conftest.$ac_ext
23412 LIBS=$ac_check_lib_save_LIBS
23413 fi
23414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_minimal_malloc" >&5
23415 printf "%s\n" "$ac_cv_lib_tcmalloc_minimal_malloc" >&6; }
23416 if test "x$ac_cv_lib_tcmalloc_minimal_malloc" = xyes
23417 then :
23418 printf "%s\n" "#define HAVE_LIBTCMALLOC_MINIMAL 1" >>confdefs.h
23419
23420 LIBS="-ltcmalloc_minimal $LIBS"
23421
23422 fi
23423
23424
23425 fi
23426
23427
23428
23429
23430 ##
23431 ## Section 1) Input/Output routines
23432 ##
23433
23434 # The function vsnprintf() is used in input-output.c
23435 # to handle the mps_error() outputs in a proper way.
23436 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
23437 if test "x$ac_cv_func_snprintf" = xyes
23438 then :
23439 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
23440
23441 fi
23442 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
23443 if test "x$ac_cv_func_vsnprintf" = xyes
23444 then :
23445 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
23446
23447 fi
23448
23449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
23450 printf %s "checking for working snprintf... " >&6; }
23451 if test ${ac_cv_have_working_snprintf+y}
23452 then :
23453 printf %s "(cached) " >&6
23454 else $as_nop
23455 if test "$cross_compiling" = yes
23456 then :
23457 ac_cv_have_working_snprintf=cross
23458 else $as_nop
23459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23460 /* end confdefs.h. */
23461 #include <stdio.h>
23462 #include <stdlib.h>
23463 #include <string.h>
23464
23465 int main(void)
23466 {
23467 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
23468 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
23469 int i;
23470 i = snprintf (bufs, 2, "%s", "111");
23471 if (strcmp (bufs, "1")) exit (1);
23472 if (i != 3) exit (1);
23473 i = snprintf (bufd, 2, "%d", 111);
23474 if (strcmp (bufd, "1")) exit (1);
23475 if (i != 3) exit (1);
23476 exit(0);
23477 }
23478 _ACEOF
23479 if ac_fn_c_try_run "$LINENO"
23480 then :
23481 ac_cv_have_working_snprintf=yes
23482 else $as_nop
23483 ac_cv_have_working_snprintf=no
23484 fi
23485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23486 conftest.$ac_objext conftest.beam conftest.$ac_ext
23487 fi
23488
23489 fi
23490
23491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_working_snprintf" >&5
23492 printf "%s\n" "$ac_cv_have_working_snprintf" >&6; }
23493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vsnprintf" >&5
23494 printf %s "checking for working vsnprintf... " >&6; }
23495 if test ${ac_cv_have_working_vsnprintf+y}
23496 then :
23497 printf %s "(cached) " >&6
23498 else $as_nop
23499 if test "$cross_compiling" = yes
23500 then :
23501 ac_cv_have_working_vsnprintf=cross
23502 else $as_nop
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504 /* end confdefs.h. */
23505 #include <stdio.h>
23506 #include <stdarg.h>
23507 #include <stdlib.h>
23508 #include <string.h>
23509
23510 int my_vsnprintf (char *buf, const char *tmpl, ...)
23511 {
23512 int i;
23513 va_list args;
23514 va_start (args, tmpl);
23515 i = vsnprintf (buf, 2, tmpl, args);
23516 va_end (args);
23517 return i;
23518 }
23519
23520 int main(void)
23521 {
23522 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
23523 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
23524 int i;
23525 i = my_vsnprintf (bufs, "%s", "111");
23526 if (strcmp (bufs, "1")) exit (1);
23527 if (i != 3) exit (1);
23528 i = my_vsnprintf (bufd, "%d", 111);
23529 if (strcmp (bufd, "1")) exit (1);
23530 if (i != 3) exit (1);
23531 exit(0);
23532 }
23533 _ACEOF
23534 if ac_fn_c_try_run "$LINENO"
23535 then :
23536 ac_cv_have_working_vsnprintf=yes
23537 else $as_nop
23538 ac_cv_have_working_vsnprintf=no
23539 fi
23540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23541 conftest.$ac_objext conftest.beam conftest.$ac_ext
23542 fi
23543
23544 fi
23545
23546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_working_vsnprintf" >&5
23547 printf "%s\n" "$ac_cv_have_working_vsnprintf" >&6; }
23548 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
23549 case " $LIBOBJS " in
23550 *" snprintf.$ac_objext "* ) ;;
23551 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
23552 ;;
23553 esac
23554
23555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
23556 printf "%s\n" "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
23557
23558 printf "%s\n" "#define PREFER_PORTABLE_SNPRINTF 1" >>confdefs.h
23559
23560 fi
23561
23562 # Checks for basic header files that should be present on
23563 # the system.
23564 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23565 if test "x$ac_cv_header_stdlib_h" = xyes
23566 then :
23567 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
23568
23569 fi
23570 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
23571 if test "x$ac_cv_header_string_h" = xyes
23572 then :
23573 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
23574
23575 fi
23576 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
23577 if test "x$ac_cv_header_unistd_h" = xyes
23578 then :
23579 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
23580
23581 fi
23582
23583
23584 # getline is used to parse the input files.
23585 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
23586 if test "x$ac_cv_func_getline" = xyes
23587 then :
23588 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
23589
23590 fi
23591
23592
23593 # strndup is used in the source, but we provide a fallback
23594 # implementation if it's not available in the system.
23595 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
23596 if test "x$ac_cv_func_strndup" = xyes
23597 then :
23598 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
23599
23600 fi
23601
23602
23603
23604 ##
23605 ## Section 2) Mathematical routines and libaries
23606 ##
23607
23608 # If available, the <complex.h> header will be used since
23609 # it will probably provide a better (and faster) implementation
23610 # of floating point complex arithmetic.
23611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99 complex.h is supported from the C++ compiler" >&5
23612 printf %s "checking if C99 complex.h is supported from the C++ compiler... " >&6; }
23613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23614 /* end confdefs.h. */
23615
23616
23617 extern "C" {
23618 #include <complex.h>
23619 }
23620
23621 int main() {
23622 _Complex double a;
23623 return 0;
23624 }
23625
23626 _ACEOF
23627 if ac_fn_c_try_compile "$LINENO"
23628 then :
23629 have_complex_h=yes
23630 else $as_nop
23631 have_complex_h=no
23632
23633 fi
23634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_complex_h" >&5
23636 printf "%s\n" "$have_complex_h" >&6; }
23637
23638 if test x$have_complex_h == xyes
23639 then :
23640
23641 MPS_USE_BUILTIN_COMPLEX=0
23642
23643
23644 else $as_nop
23645
23646 COMPLEX_CFLAGS="-DMPS_USE_BUILTIN_COMPLEX"
23647 MPS_USE_BUILTIN_COMPLEX=1
23648
23649
23650 fi
23651
23652 # The general C math library.
23653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23654 printf %s "checking for pow in -lm... " >&6; }
23655 if test ${ac_cv_lib_m_pow+y}
23656 then :
23657 printf %s "(cached) " >&6
23658 else $as_nop
23659 ac_check_lib_save_LIBS=$LIBS
23660 LIBS="-lm $LIBS"
23661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23662 /* end confdefs.h. */
23663
23664 /* Override any GCC internal prototype to avoid an error.
23665 Use char because int might match the return type of a GCC
23666 builtin and then its argument prototype would still apply. */
23667 char pow ();
23668 int
23669 main (void)
23670 {
23671 return pow ();
23672 ;
23673 return 0;
23674 }
23675 _ACEOF
23676 if ac_fn_c_try_link "$LINENO"
23677 then :
23678 ac_cv_lib_m_pow=yes
23679 else $as_nop
23680 ac_cv_lib_m_pow=no
23681 fi
23682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23683 conftest$ac_exeext conftest.$ac_ext
23684 LIBS=$ac_check_lib_save_LIBS
23685 fi
23686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23687 printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
23688 if test "x$ac_cv_lib_m_pow" = xyes
23689 then :
23690 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
23691
23692 LIBS="-lm $LIBS"
23693
23694 fi
23695
23696
23697 ## Subsection 2.1) Check for GMP
23698
23699 # Add GMP_CFLAGS and GMP_LIBS to CFLAGS and LDFLAGS in case they are set.
23700 # This is an easy way for the user to override system libgmp or to provide
23701 # its location if it's not installed system-wide.
23702 if test -z $GMP_CFLAGS
23703 then :
23704
23705 else $as_nop
23706
23707 CFLAGS="$GMP_CFLAGS $CFLAGS"
23708
23709 fi
23710 if test -z $GMP_LDFLAGS
23711 then :
23712
23713 else $as_nop
23714
23715 LDFLAGS="$GMP_LDFLAGS $LDFLAGS"
23716
23717 fi
23718 if test -z $GMP_LIBS
23719 then :
23720
23721 else $as_nop
23722
23723 LDFLAGS="$GMP_LIBS $LDFLAGS"
23724
23725 fi
23726
23727
23728
23729
23730 LIBMPS_CFLAGS="-D_REENTRANT -Wall $COMPLEX_CFLAGS $LIBMPS_CFLAGS"
23731
23732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init2 in -lgmp" >&5
23733 printf %s "checking for __gmpz_init2 in -lgmp... " >&6; }
23734 if test ${ac_cv_lib_gmp___gmpz_init2+y}
23735 then :
23736 printf %s "(cached) " >&6
23737 else $as_nop
23738 ac_check_lib_save_LIBS=$LIBS
23739 LIBS="-lgmp $LIBS"
23740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23741 /* end confdefs.h. */
23742
23743 /* Override any GCC internal prototype to avoid an error.
23744 Use char because int might match the return type of a GCC
23745 builtin and then its argument prototype would still apply. */
23746 char __gmpz_init2 ();
23747 int
23748 main (void)
23749 {
23750 return __gmpz_init2 ();
23751 ;
23752 return 0;
23753 }
23754 _ACEOF
23755 if ac_fn_c_try_link "$LINENO"
23756 then :
23757 ac_cv_lib_gmp___gmpz_init2=yes
23758 else $as_nop
23759 ac_cv_lib_gmp___gmpz_init2=no
23760 fi
23761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23762 conftest$ac_exeext conftest.$ac_ext
23763 LIBS=$ac_check_lib_save_LIBS
23764 fi
23765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init2" >&5
23766 printf "%s\n" "$ac_cv_lib_gmp___gmpz_init2" >&6; }
23767 if test "x$ac_cv_lib_gmp___gmpz_init2" = xyes
23768 then :
23769 printf "%s\n" "#define HAVE_LIBGMP 1" >>confdefs.h
23770
23771 LIBS="-lgmp $LIBS"
23772
23773 fi
23774
23775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lgmpxx" >&5
23776 printf %s "checking for main in -lgmpxx... " >&6; }
23777 if test ${ac_cv_lib_gmpxx_main+y}
23778 then :
23779 printf %s "(cached) " >&6
23780 else $as_nop
23781 ac_check_lib_save_LIBS=$LIBS
23782 LIBS="-lgmpxx $LIBS"
23783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23784 /* end confdefs.h. */
23785
23786
23787 int
23788 main (void)
23789 {
23790 return main ();
23791 ;
23792 return 0;
23793 }
23794 _ACEOF
23795 if ac_fn_c_try_link "$LINENO"
23796 then :
23797 ac_cv_lib_gmpxx_main=yes
23798 else $as_nop
23799 ac_cv_lib_gmpxx_main=no
23800 fi
23801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23802 conftest$ac_exeext conftest.$ac_ext
23803 LIBS=$ac_check_lib_save_LIBS
23804 fi
23805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmpxx_main" >&5
23806 printf "%s\n" "$ac_cv_lib_gmpxx_main" >&6; }
23807 if test "x$ac_cv_lib_gmpxx_main" = xyes
23808 then :
23809 printf "%s\n" "#define HAVE_LIBGMPXX 1" >>confdefs.h
23810
23811 LIBS="-lgmpxx $LIBS"
23812
23813 fi
23814
23815 for ac_header in gmp.h
23816 do :
23817 ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23818 if test "x$ac_cv_header_gmp_h" = xyes
23819 then :
23820 printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h
23821 mpsolve_found_gmp_headers=yes; break;
23822 fi
23823
23824 done
23825
23826 # Raise an error if GMP is not correctly installed on this system.
23827 if test "x$mpsolve_found_gmp_headers" != "xyes"
23828 then :
23829 as_fn_error $? "Unable to find gmp headers, please install libgmp-dev" "$LINENO" 5
23830 fi
23831
23832 ##
23833 ## Section 3) Check support: try to find all the necessary headers and libraries
23834 ## that are needed to run the test cases. This way MPSolve will be checked by the
23835 ## make check command.
23836 ##
23837
23838 # Check for the check module, so MPSolve tests can be run.
23839
23840
23841
23842
23843
23844
23845
23846 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23847 if test -n "$ac_tool_prefix"; then
23848 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23849 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23851 printf %s "checking for $ac_word... " >&6; }
23852 if test ${ac_cv_path_PKG_CONFIG+y}
23853 then :
23854 printf %s "(cached) " >&6
23855 else $as_nop
23856 case $PKG_CONFIG in
23857 [\\/]* | ?:[\\/]*)
23858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23859 ;;
23860 *)
23861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23862 for as_dir in $PATH
23863 do
23864 IFS=$as_save_IFS
23865 case $as_dir in #(((
23866 '') as_dir=./ ;;
23867 */) ;;
23868 *) as_dir=$as_dir/ ;;
23869 esac
23870 for ac_exec_ext in '' $ac_executable_extensions; do
23871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23872 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23874 break 2
23875 fi
23876 done
23877 done
23878 IFS=$as_save_IFS
23879
23880 ;;
23881 esac
23882 fi
23883 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23884 if test -n "$PKG_CONFIG"; then
23885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23886 printf "%s\n" "$PKG_CONFIG" >&6; }
23887 else
23888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23889 printf "%s\n" "no" >&6; }
23890 fi
23891
23892
23893 fi
23894 if test -z "$ac_cv_path_PKG_CONFIG"; then
23895 ac_pt_PKG_CONFIG=$PKG_CONFIG
23896 # Extract the first word of "pkg-config", so it can be a program name with args.
23897 set dummy pkg-config; ac_word=$2
23898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23899 printf %s "checking for $ac_word... " >&6; }
23900 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
23901 then :
23902 printf %s "(cached) " >&6
23903 else $as_nop
23904 case $ac_pt_PKG_CONFIG in
23905 [\\/]* | ?:[\\/]*)
23906 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23907 ;;
23908 *)
23909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23910 for as_dir in $PATH
23911 do
23912 IFS=$as_save_IFS
23913 case $as_dir in #(((
23914 '') as_dir=./ ;;
23915 */) ;;
23916 *) as_dir=$as_dir/ ;;
23917 esac
23918 for ac_exec_ext in '' $ac_executable_extensions; do
23919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23920 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23922 break 2
23923 fi
23924 done
23925 done
23926 IFS=$as_save_IFS
23927
23928 ;;
23929 esac
23930 fi
23931 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23932 if test -n "$ac_pt_PKG_CONFIG"; then
23933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23934 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
23935 else
23936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23937 printf "%s\n" "no" >&6; }
23938 fi
23939
23940 if test "x$ac_pt_PKG_CONFIG" = x; then
23941 PKG_CONFIG=""
23942 else
23943 case $cross_compiling:$ac_tool_warned in
23944 yes:)
23945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23946 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23947 ac_tool_warned=yes ;;
23948 esac
23949 PKG_CONFIG=$ac_pt_PKG_CONFIG
23950 fi
23951 else
23952 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23953 fi
23954
23955 fi
23956 if test -n "$PKG_CONFIG"; then
23957 _pkg_min_version=0.9.0
23958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23959 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23960 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23962 printf "%s\n" "yes" >&6; }
23963 else
23964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23965 printf "%s\n" "no" >&6; }
23966 PKG_CONFIG=""
23967 fi
23968 fi
23969
23970 pkg_failed=no
23971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.4" >&5
23972 printf %s "checking for check >= 0.9.4... " >&6; }
23973
23974 if test -n "$CHECK_CFLAGS"; then
23975 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
23976 elif test -n "$PKG_CONFIG"; then
23977 if test -n "$PKG_CONFIG" && \
23978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
23979 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
23980 ac_status=$?
23981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23982 test $ac_status = 0; }; then
23983 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
23984 test "x$?" != "x0" && pkg_failed=yes
23985 else
23986 pkg_failed=yes
23987 fi
23988 else
23989 pkg_failed=untried
23990 fi
23991 if test -n "$CHECK_LIBS"; then
23992 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
23993 elif test -n "$PKG_CONFIG"; then
23994 if test -n "$PKG_CONFIG" && \
23995 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
23996 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
23997 ac_status=$?
23998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; then
24000 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
24001 test "x$?" != "x0" && pkg_failed=yes
24002 else
24003 pkg_failed=yes
24004 fi
24005 else
24006 pkg_failed=untried
24007 fi
24008
24009
24010
24011 if test $pkg_failed = yes; then
24012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24013 printf "%s\n" "no" >&6; }
24014
24015 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24016 _pkg_short_errors_supported=yes
24017 else
24018 _pkg_short_errors_supported=no
24019 fi
24020 if test $_pkg_short_errors_supported = yes; then
24021 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
24022 else
24023 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
24024 fi
24025 # Put the nasty error message in config.log where it belongs
24026 echo "$CHECK_PKG_ERRORS" >&5
24027
24028 have_check=no
24029 elif test $pkg_failed = untried; then
24030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24031 printf "%s\n" "no" >&6; }
24032 have_check=no
24033 else
24034 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
24035 CHECK_LIBS=$pkg_cv_CHECK_LIBS
24036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24037 printf "%s\n" "yes" >&6; }
24038 have_check=yes
24039 fi
24040 if test x$have_check = xyes; then
24041 CHECK_TRUE=
24042 CHECK_FALSE='#'
24043 else
24044 CHECK_TRUE='#'
24045 CHECK_FALSE=
24046 fi
24047
24048
24049
24050
24051
24052
24053
24054
24055 ##
24056 ## Section 4) Graphical toolkits: MPSolve has some parts that can be optionally compiled if
24057 ## the appropriate GUI toolkits are present.
24058 ##
24059
24060 ## Subsection 4.1) GTK support for mpsolve -x (live approximation tracking)
24061
24062 # Check for the GTK libraries on this system. We can use both GTK 2.0 and GTK 3.0
24063 have_gtk="1"
24064
24065 pkg_failed=no
24066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-3.0" >&5
24067 printf %s "checking for gtk+-3.0... " >&6; }
24068
24069 if test -n "$GTK_CFLAGS"; then
24070 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
24071 elif test -n "$PKG_CONFIG"; then
24072 if test -n "$PKG_CONFIG" && \
24073 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
24074 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
24075 ac_status=$?
24076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24077 test $ac_status = 0; }; then
24078 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0" 2>/dev/null`
24079 test "x$?" != "x0" && pkg_failed=yes
24080 else
24081 pkg_failed=yes
24082 fi
24083 else
24084 pkg_failed=untried
24085 fi
24086 if test -n "$GTK_LIBS"; then
24087 pkg_cv_GTK_LIBS="$GTK_LIBS"
24088 elif test -n "$PKG_CONFIG"; then
24089 if test -n "$PKG_CONFIG" && \
24090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0\""; } >&5
24091 ($PKG_CONFIG --exists --print-errors "gtk+-3.0") 2>&5
24092 ac_status=$?
24093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24094 test $ac_status = 0; }; then
24095 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0" 2>/dev/null`
24096 test "x$?" != "x0" && pkg_failed=yes
24097 else
24098 pkg_failed=yes
24099 fi
24100 else
24101 pkg_failed=untried
24102 fi
24103
24104
24105
24106 if test $pkg_failed = yes; then
24107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24108 printf "%s\n" "no" >&6; }
24109
24110 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24111 _pkg_short_errors_supported=yes
24112 else
24113 _pkg_short_errors_supported=no
24114 fi
24115 if test $_pkg_short_errors_supported = yes; then
24116 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0" 2>&1`
24117 else
24118 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0" 2>&1`
24119 fi
24120 # Put the nasty error message in config.log where it belongs
24121 echo "$GTK_PKG_ERRORS" >&5
24122
24123
24124
24125 pkg_failed=no
24126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0" >&5
24127 printf %s "checking for gtk+-2.0... " >&6; }
24128
24129 if test -n "$GTK_CFLAGS"; then
24130 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
24131 elif test -n "$PKG_CONFIG"; then
24132 if test -n "$PKG_CONFIG" && \
24133 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
24134 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
24135 ac_status=$?
24136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24137 test $ac_status = 0; }; then
24138 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
24139 test "x$?" != "x0" && pkg_failed=yes
24140 else
24141 pkg_failed=yes
24142 fi
24143 else
24144 pkg_failed=untried
24145 fi
24146 if test -n "$GTK_LIBS"; then
24147 pkg_cv_GTK_LIBS="$GTK_LIBS"
24148 elif test -n "$PKG_CONFIG"; then
24149 if test -n "$PKG_CONFIG" && \
24150 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
24151 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
24152 ac_status=$?
24153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24154 test $ac_status = 0; }; then
24155 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
24156 test "x$?" != "x0" && pkg_failed=yes
24157 else
24158 pkg_failed=yes
24159 fi
24160 else
24161 pkg_failed=untried
24162 fi
24163
24164
24165
24166 if test $pkg_failed = yes; then
24167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24168 printf "%s\n" "no" >&6; }
24169
24170 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24171 _pkg_short_errors_supported=yes
24172 else
24173 _pkg_short_errors_supported=no
24174 fi
24175 if test $_pkg_short_errors_supported = yes; then
24176 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
24177 else
24178 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
24179 fi
24180 # Put the nasty error message in config.log where it belongs
24181 echo "$GTK_PKG_ERRORS" >&5
24182
24183
24184 have_gtk="0"
24185
24186 elif test $pkg_failed = untried; then
24187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24188 printf "%s\n" "no" >&6; }
24189
24190 have_gtk="0"
24191
24192 else
24193 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
24194 GTK_LIBS=$pkg_cv_GTK_LIBS
24195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24196 printf "%s\n" "yes" >&6; }
24197
24198 fi
24199
24200 elif test $pkg_failed = untried; then
24201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24202 printf "%s\n" "no" >&6; }
24203
24204
24205 pkg_failed=no
24206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0" >&5
24207 printf %s "checking for gtk+-2.0... " >&6; }
24208
24209 if test -n "$GTK_CFLAGS"; then
24210 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
24211 elif test -n "$PKG_CONFIG"; then
24212 if test -n "$PKG_CONFIG" && \
24213 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
24214 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
24215 ac_status=$?
24216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24217 test $ac_status = 0; }; then
24218 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
24219 test "x$?" != "x0" && pkg_failed=yes
24220 else
24221 pkg_failed=yes
24222 fi
24223 else
24224 pkg_failed=untried
24225 fi
24226 if test -n "$GTK_LIBS"; then
24227 pkg_cv_GTK_LIBS="$GTK_LIBS"
24228 elif test -n "$PKG_CONFIG"; then
24229 if test -n "$PKG_CONFIG" && \
24230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
24231 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
24232 ac_status=$?
24233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24234 test $ac_status = 0; }; then
24235 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
24236 test "x$?" != "x0" && pkg_failed=yes
24237 else
24238 pkg_failed=yes
24239 fi
24240 else
24241 pkg_failed=untried
24242 fi
24243
24244
24245
24246 if test $pkg_failed = yes; then
24247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24248 printf "%s\n" "no" >&6; }
24249
24250 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24251 _pkg_short_errors_supported=yes
24252 else
24253 _pkg_short_errors_supported=no
24254 fi
24255 if test $_pkg_short_errors_supported = yes; then
24256 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
24257 else
24258 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
24259 fi
24260 # Put the nasty error message in config.log where it belongs
24261 echo "$GTK_PKG_ERRORS" >&5
24262
24263
24264 have_gtk="0"
24265
24266 elif test $pkg_failed = untried; then
24267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24268 printf "%s\n" "no" >&6; }
24269
24270 have_gtk="0"
24271
24272 else
24273 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
24274 GTK_LIBS=$pkg_cv_GTK_LIBS
24275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24276 printf "%s\n" "yes" >&6; }
24277
24278 fi
24279
24280 else
24281 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
24282 GTK_LIBS=$pkg_cv_GTK_LIBS
24283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24284 printf "%s\n" "yes" >&6; }
24285
24286 fi
24287
24288 if test x$have_gtk = x1
24289 then :
24290
24291
24292 printf "%s\n" "#define HAVE_GTK \$have_gtk" >>confdefs.h
24293
24294
24295 fi
24296
24297
24298
24299
24300 # Check that we have also the cairo graphic library. This will be already bundled
24301 # in GTK3 but is not to be taken for granted in GTK2.
24302
24303 pkg_failed=no
24304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
24305 printf %s "checking for cairo... " >&6; }
24306
24307 if test -n "$CAIRO_CFLAGS"; then
24308 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
24309 elif test -n "$PKG_CONFIG"; then
24310 if test -n "$PKG_CONFIG" && \
24311 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
24312 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
24313 ac_status=$?
24314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24315 test $ac_status = 0; }; then
24316 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
24317 test "x$?" != "x0" && pkg_failed=yes
24318 else
24319 pkg_failed=yes
24320 fi
24321 else
24322 pkg_failed=untried
24323 fi
24324 if test -n "$CAIRO_LIBS"; then
24325 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
24326 elif test -n "$PKG_CONFIG"; then
24327 if test -n "$PKG_CONFIG" && \
24328 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
24329 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
24330 ac_status=$?
24331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24332 test $ac_status = 0; }; then
24333 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
24334 test "x$?" != "x0" && pkg_failed=yes
24335 else
24336 pkg_failed=yes
24337 fi
24338 else
24339 pkg_failed=untried
24340 fi
24341
24342
24343
24344 if test $pkg_failed = yes; then
24345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24346 printf "%s\n" "no" >&6; }
24347
24348 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24349 _pkg_short_errors_supported=yes
24350 else
24351 _pkg_short_errors_supported=no
24352 fi
24353 if test $_pkg_short_errors_supported = yes; then
24354 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
24355 else
24356 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
24357 fi
24358 # Put the nasty error message in config.log where it belongs
24359 echo "$CAIRO_PKG_ERRORS" >&5
24360
24361 have_cairo="0"
24362 elif test $pkg_failed = untried; then
24363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24364 printf "%s\n" "no" >&6; }
24365 have_cairo="0"
24366 else
24367 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
24368 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
24369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24370 printf "%s\n" "yes" >&6; }
24371 have_cairo="1"
24372 fi
24373
24374 if test x$have_cairo = x1
24375 then :
24376
24377
24378 printf "%s\n" "#define HAVE_CAIRO 1" >>confdefs.h
24379
24380
24381 fi
24382
24383
24384
24385
24386 if test x$have_gtk == x1 && test x$have_graphical_debugger == xyes && test x$have_cairo == x1
24387 then :
24388
24389
24390 printf "%s\n" "#define HAVE_GRAPHICAL_DEBUGGER 1" >>confdefs.h
24391
24392
24393 fi
24394
24395 ##
24396 ## Section 5) XMPsolve: the MPSolve graphical user interface.
24397 ##
24398
24399 # Search qmake and Qt related things, so we can build
24400 # MPSolve UI. Don't build the UI if the user has manually
24401 # disabled it.
24402 QT_PROGRAMS=
24403 if test "$build_ui" == "yes"
24404 then :
24405
24406
24407 # The case QML is simpler since we have to require Qt5. Otherwise try to
24408 # test for both Qt4 and Qt5, and choose the best.
24409 if test x$enable_qml_ui = xyes
24410 then :
24411
24412 have_qt4=no
24413
24414 pkg_failed=no
24415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 " >&5
24416 printf %s "checking for Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 ... " >&6; }
24417
24418 if test -n "$QT5_CFLAGS"; then
24419 pkg_cv_QT5_CFLAGS="$QT5_CFLAGS"
24420 elif test -n "$PKG_CONFIG"; then
24421 if test -n "$PKG_CONFIG" && \
24422 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 \""; } >&5
24423 ($PKG_CONFIG --exists --print-errors " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 ") 2>&5
24424 ac_status=$?
24425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24426 test $ac_status = 0; }; then
24427 pkg_cv_QT5_CFLAGS=`$PKG_CONFIG --cflags " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 " 2>/dev/null`
24428 test "x$?" != "x0" && pkg_failed=yes
24429 else
24430 pkg_failed=yes
24431 fi
24432 else
24433 pkg_failed=untried
24434 fi
24435 if test -n "$QT5_LIBS"; then
24436 pkg_cv_QT5_LIBS="$QT5_LIBS"
24437 elif test -n "$PKG_CONFIG"; then
24438 if test -n "$PKG_CONFIG" && \
24439 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 \""; } >&5
24440 ($PKG_CONFIG --exists --print-errors " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 ") 2>&5
24441 ac_status=$?
24442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24443 test $ac_status = 0; }; then
24444 pkg_cv_QT5_LIBS=`$PKG_CONFIG --libs " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 " 2>/dev/null`
24445 test "x$?" != "x0" && pkg_failed=yes
24446 else
24447 pkg_failed=yes
24448 fi
24449 else
24450 pkg_failed=untried
24451 fi
24452
24453
24454
24455 if test $pkg_failed = yes; then
24456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24457 printf "%s\n" "no" >&6; }
24458
24459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24460 _pkg_short_errors_supported=yes
24461 else
24462 _pkg_short_errors_supported=no
24463 fi
24464 if test $_pkg_short_errors_supported = yes; then
24465 QT5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 " 2>&1`
24466 else
24467 QT5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " Qt5Core Qt5Gui Qt5Qml Qt5Quick >= 5.1 " 2>&1`
24468 fi
24469 # Put the nasty error message in config.log where it belongs
24470 echo "$QT5_PKG_ERRORS" >&5
24471
24472 have_qt5=no
24473 elif test $pkg_failed = untried; then
24474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24475 printf "%s\n" "no" >&6; }
24476 have_qt5=no
24477 else
24478 QT5_CFLAGS=$pkg_cv_QT5_CFLAGS
24479 QT5_LIBS=$pkg_cv_QT5_LIBS
24480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24481 printf "%s\n" "yes" >&6; }
24482 have_qt5=yes
24483 fi
24484 QT5_CFLAGS="$QT5_CFLAGS -DMPS_USE_QML"
24485
24486 if test x$have_qt5 = xno
24487 then :
24488 as_fn_error $? "Qt >= 5.1 is needed to enable the QML UI." "$LINENO" 5
24489 fi
24490
24491 else $as_nop
24492
24493
24494 pkg_failed=no
24495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui " >&5
24496 printf %s "checking for QtCore QtGui ... " >&6; }
24497
24498 if test -n "$QT4_CFLAGS"; then
24499 pkg_cv_QT4_CFLAGS="$QT4_CFLAGS"
24500 elif test -n "$PKG_CONFIG"; then
24501 if test -n "$PKG_CONFIG" && \
24502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" QtCore QtGui \""; } >&5
24503 ($PKG_CONFIG --exists --print-errors " QtCore QtGui ") 2>&5
24504 ac_status=$?
24505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24506 test $ac_status = 0; }; then
24507 pkg_cv_QT4_CFLAGS=`$PKG_CONFIG --cflags " QtCore QtGui " 2>/dev/null`
24508 test "x$?" != "x0" && pkg_failed=yes
24509 else
24510 pkg_failed=yes
24511 fi
24512 else
24513 pkg_failed=untried
24514 fi
24515 if test -n "$QT4_LIBS"; then
24516 pkg_cv_QT4_LIBS="$QT4_LIBS"
24517 elif test -n "$PKG_CONFIG"; then
24518 if test -n "$PKG_CONFIG" && \
24519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" QtCore QtGui \""; } >&5
24520 ($PKG_CONFIG --exists --print-errors " QtCore QtGui ") 2>&5
24521 ac_status=$?
24522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24523 test $ac_status = 0; }; then
24524 pkg_cv_QT4_LIBS=`$PKG_CONFIG --libs " QtCore QtGui " 2>/dev/null`
24525 test "x$?" != "x0" && pkg_failed=yes
24526 else
24527 pkg_failed=yes
24528 fi
24529 else
24530 pkg_failed=untried
24531 fi
24532
24533
24534
24535 if test $pkg_failed = yes; then
24536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24537 printf "%s\n" "no" >&6; }
24538
24539 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24540 _pkg_short_errors_supported=yes
24541 else
24542 _pkg_short_errors_supported=no
24543 fi
24544 if test $_pkg_short_errors_supported = yes; then
24545 QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " QtCore QtGui " 2>&1`
24546 else
24547 QT4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " QtCore QtGui " 2>&1`
24548 fi
24549 # Put the nasty error message in config.log where it belongs
24550 echo "$QT4_PKG_ERRORS" >&5
24551
24552 have_qt4=no
24553 elif test $pkg_failed = untried; then
24554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24555 printf "%s\n" "no" >&6; }
24556 have_qt4=no
24557 else
24558 QT4_CFLAGS=$pkg_cv_QT4_CFLAGS
24559 QT4_LIBS=$pkg_cv_QT4_LIBS
24560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24561 printf "%s\n" "yes" >&6; }
24562 have_qt4=yes
24563 fi
24564
24565 pkg_failed=no
24566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt5Core Qt5Gui Qt5Widgets " >&5
24567 printf %s "checking for Qt5Core Qt5Gui Qt5Widgets ... " >&6; }
24568
24569 if test -n "$QT5_CFLAGS"; then
24570 pkg_cv_QT5_CFLAGS="$QT5_CFLAGS"
24571 elif test -n "$PKG_CONFIG"; then
24572 if test -n "$PKG_CONFIG" && \
24573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core Qt5Gui Qt5Widgets \""; } >&5
24574 ($PKG_CONFIG --exists --print-errors " Qt5Core Qt5Gui Qt5Widgets ") 2>&5
24575 ac_status=$?
24576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24577 test $ac_status = 0; }; then
24578 pkg_cv_QT5_CFLAGS=`$PKG_CONFIG --cflags " Qt5Core Qt5Gui Qt5Widgets " 2>/dev/null`
24579 test "x$?" != "x0" && pkg_failed=yes
24580 else
24581 pkg_failed=yes
24582 fi
24583 else
24584 pkg_failed=untried
24585 fi
24586 if test -n "$QT5_LIBS"; then
24587 pkg_cv_QT5_LIBS="$QT5_LIBS"
24588 elif test -n "$PKG_CONFIG"; then
24589 if test -n "$PKG_CONFIG" && \
24590 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" Qt5Core Qt5Gui Qt5Widgets \""; } >&5
24591 ($PKG_CONFIG --exists --print-errors " Qt5Core Qt5Gui Qt5Widgets ") 2>&5
24592 ac_status=$?
24593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24594 test $ac_status = 0; }; then
24595 pkg_cv_QT5_LIBS=`$PKG_CONFIG --libs " Qt5Core Qt5Gui Qt5Widgets " 2>/dev/null`
24596 test "x$?" != "x0" && pkg_failed=yes
24597 else
24598 pkg_failed=yes
24599 fi
24600 else
24601 pkg_failed=untried
24602 fi
24603
24604
24605
24606 if test $pkg_failed = yes; then
24607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24608 printf "%s\n" "no" >&6; }
24609
24610 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24611 _pkg_short_errors_supported=yes
24612 else
24613 _pkg_short_errors_supported=no
24614 fi
24615 if test $_pkg_short_errors_supported = yes; then
24616 QT5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs " Qt5Core Qt5Gui Qt5Widgets " 2>&1`
24617 else
24618 QT5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs " Qt5Core Qt5Gui Qt5Widgets " 2>&1`
24619 fi
24620 # Put the nasty error message in config.log where it belongs
24621 echo "$QT5_PKG_ERRORS" >&5
24622
24623 have_qt5=no
24624 elif test $pkg_failed = untried; then
24625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24626 printf "%s\n" "no" >&6; }
24627 have_qt5=no
24628 else
24629 QT5_CFLAGS=$pkg_cv_QT5_CFLAGS
24630 QT5_LIBS=$pkg_cv_QT5_LIBS
24631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24632 printf "%s\n" "yes" >&6; }
24633 have_qt5=yes
24634 fi
24635
24636 fi
24637
24638 if test "$have_qt5" == "no" && test "$have_qt4" == "no"
24639 then :
24640
24641 # No hope to have the UI, just disable it.
24642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Could not find Qt4 or Qt5, disabling the graphical UI" >&5
24643 printf "%s\n" "$as_me: Could not find Qt4 or Qt5, disabling the graphical UI" >&6;}
24644 QT_PROGRAMS=""
24645
24646 else $as_nop
24647
24648 QT_PROGRAMS=xmpsolve${EXEEXT}
24649
24650 fi
24651
24652 if test "$have_qt5" == "yes"
24653 then :
24654
24655 # Check for needed programs
24656 for ac_prog in uic-qt5 uic
24657 do
24658 # Extract the first word of "$ac_prog", so it can be a program name with args.
24659 set dummy $ac_prog; ac_word=$2
24660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24661 printf %s "checking for $ac_word... " >&6; }
24662 if test ${ac_cv_prog_UIC+y}
24663 then :
24664 printf %s "(cached) " >&6
24665 else $as_nop
24666 if test -n "$UIC"; then
24667 ac_cv_prog_UIC="$UIC" # Let the user override the test.
24668 else
24669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24670 for as_dir in $PATH
24671 do
24672 IFS=$as_save_IFS
24673 case $as_dir in #(((
24674 '') as_dir=./ ;;
24675 */) ;;
24676 *) as_dir=$as_dir/ ;;
24677 esac
24678 for ac_exec_ext in '' $ac_executable_extensions; do
24679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24680 ac_cv_prog_UIC="$ac_prog"
24681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24682 break 2
24683 fi
24684 done
24685 done
24686 IFS=$as_save_IFS
24687
24688 fi
24689 fi
24690 UIC=$ac_cv_prog_UIC
24691 if test -n "$UIC"; then
24692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
24693 printf "%s\n" "$UIC" >&6; }
24694 else
24695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24696 printf "%s\n" "no" >&6; }
24697 fi
24698
24699
24700 test -n "$UIC" && break
24701 done
24702
24703 for ac_prog in moc-qt5 moc
24704 do
24705 # Extract the first word of "$ac_prog", so it can be a program name with args.
24706 set dummy $ac_prog; ac_word=$2
24707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24708 printf %s "checking for $ac_word... " >&6; }
24709 if test ${ac_cv_prog_MOC+y}
24710 then :
24711 printf %s "(cached) " >&6
24712 else $as_nop
24713 if test -n "$MOC"; then
24714 ac_cv_prog_MOC="$MOC" # Let the user override the test.
24715 else
24716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24717 for as_dir in $PATH
24718 do
24719 IFS=$as_save_IFS
24720 case $as_dir in #(((
24721 '') as_dir=./ ;;
24722 */) ;;
24723 *) as_dir=$as_dir/ ;;
24724 esac
24725 for ac_exec_ext in '' $ac_executable_extensions; do
24726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24727 ac_cv_prog_MOC="$ac_prog"
24728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24729 break 2
24730 fi
24731 done
24732 done
24733 IFS=$as_save_IFS
24734
24735 fi
24736 fi
24737 MOC=$ac_cv_prog_MOC
24738 if test -n "$MOC"; then
24739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
24740 printf "%s\n" "$MOC" >&6; }
24741 else
24742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24743 printf "%s\n" "no" >&6; }
24744 fi
24745
24746
24747 test -n "$MOC" && break
24748 done
24749
24750 for ac_prog in rcc-qt5 rcc
24751 do
24752 # Extract the first word of "$ac_prog", so it can be a program name with args.
24753 set dummy $ac_prog; ac_word=$2
24754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24755 printf %s "checking for $ac_word... " >&6; }
24756 if test ${ac_cv_prog_RCC+y}
24757 then :
24758 printf %s "(cached) " >&6
24759 else $as_nop
24760 if test -n "$RCC"; then
24761 ac_cv_prog_RCC="$RCC" # Let the user override the test.
24762 else
24763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24764 for as_dir in $PATH
24765 do
24766 IFS=$as_save_IFS
24767 case $as_dir in #(((
24768 '') as_dir=./ ;;
24769 */) ;;
24770 *) as_dir=$as_dir/ ;;
24771 esac
24772 for ac_exec_ext in '' $ac_executable_extensions; do
24773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24774 ac_cv_prog_RCC="$ac_prog"
24775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24776 break 2
24777 fi
24778 done
24779 done
24780 IFS=$as_save_IFS
24781
24782 fi
24783 fi
24784 RCC=$ac_cv_prog_RCC
24785 if test -n "$RCC"; then
24786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
24787 printf "%s\n" "$RCC" >&6; }
24788 else
24789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24790 printf "%s\n" "no" >&6; }
24791 fi
24792
24793
24794 test -n "$RCC" && break
24795 done
24796
24797
24798 QT_CFLAGS=$QT5_CFLAGS
24799 QT_LDFLAGS=$QT5_LDFLAGS
24800 QT_LIBS=$QT5_LIBS
24801 QT_VERSION=qt5
24802
24803 if test "$UIC" == "" || test "$MOC" == ""
24804 then :
24805
24806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: uic or moc were not found in your path, so Qt5 is not usable" >&5
24807 printf "%s\n" "$as_me: WARNING: uic or moc were not found in your path, so Qt5 is not usable" >&2;}
24808 have_qt5=no
24809
24810 fi
24811
24812 fi
24813
24814 # Enable Qt4 only if Qt5 was not found, or if the required tools
24815 # to build the interface are not available.
24816 if test "$have_qt4" == "yes" && test "$have_qt5" == "no"
24817 then :
24818
24819 for ac_prog in uic-qt4 uic
24820 do
24821 # Extract the first word of "$ac_prog", so it can be a program name with args.
24822 set dummy $ac_prog; ac_word=$2
24823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24824 printf %s "checking for $ac_word... " >&6; }
24825 if test ${ac_cv_prog_UIC+y}
24826 then :
24827 printf %s "(cached) " >&6
24828 else $as_nop
24829 if test -n "$UIC"; then
24830 ac_cv_prog_UIC="$UIC" # Let the user override the test.
24831 else
24832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24833 for as_dir in $PATH
24834 do
24835 IFS=$as_save_IFS
24836 case $as_dir in #(((
24837 '') as_dir=./ ;;
24838 */) ;;
24839 *) as_dir=$as_dir/ ;;
24840 esac
24841 for ac_exec_ext in '' $ac_executable_extensions; do
24842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24843 ac_cv_prog_UIC="$ac_prog"
24844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24845 break 2
24846 fi
24847 done
24848 done
24849 IFS=$as_save_IFS
24850
24851 fi
24852 fi
24853 UIC=$ac_cv_prog_UIC
24854 if test -n "$UIC"; then
24855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UIC" >&5
24856 printf "%s\n" "$UIC" >&6; }
24857 else
24858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24859 printf "%s\n" "no" >&6; }
24860 fi
24861
24862
24863 test -n "$UIC" && break
24864 done
24865
24866 for ac_prog in moc-qt4 moc
24867 do
24868 # Extract the first word of "$ac_prog", so it can be a program name with args.
24869 set dummy $ac_prog; ac_word=$2
24870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24871 printf %s "checking for $ac_word... " >&6; }
24872 if test ${ac_cv_prog_MOC+y}
24873 then :
24874 printf %s "(cached) " >&6
24875 else $as_nop
24876 if test -n "$MOC"; then
24877 ac_cv_prog_MOC="$MOC" # Let the user override the test.
24878 else
24879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24880 for as_dir in $PATH
24881 do
24882 IFS=$as_save_IFS
24883 case $as_dir in #(((
24884 '') as_dir=./ ;;
24885 */) ;;
24886 *) as_dir=$as_dir/ ;;
24887 esac
24888 for ac_exec_ext in '' $ac_executable_extensions; do
24889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24890 ac_cv_prog_MOC="$ac_prog"
24891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24892 break 2
24893 fi
24894 done
24895 done
24896 IFS=$as_save_IFS
24897
24898 fi
24899 fi
24900 MOC=$ac_cv_prog_MOC
24901 if test -n "$MOC"; then
24902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
24903 printf "%s\n" "$MOC" >&6; }
24904 else
24905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24906 printf "%s\n" "no" >&6; }
24907 fi
24908
24909
24910 test -n "$MOC" && break
24911 done
24912
24913 for ac_prog in rcc-qt4 rcc
24914 do
24915 # Extract the first word of "$ac_prog", so it can be a program name with args.
24916 set dummy $ac_prog; ac_word=$2
24917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24918 printf %s "checking for $ac_word... " >&6; }
24919 if test ${ac_cv_prog_RCC+y}
24920 then :
24921 printf %s "(cached) " >&6
24922 else $as_nop
24923 if test -n "$RCC"; then
24924 ac_cv_prog_RCC="$RCC" # Let the user override the test.
24925 else
24926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24927 for as_dir in $PATH
24928 do
24929 IFS=$as_save_IFS
24930 case $as_dir in #(((
24931 '') as_dir=./ ;;
24932 */) ;;
24933 *) as_dir=$as_dir/ ;;
24934 esac
24935 for ac_exec_ext in '' $ac_executable_extensions; do
24936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24937 ac_cv_prog_RCC="$ac_prog"
24938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24939 break 2
24940 fi
24941 done
24942 done
24943 IFS=$as_save_IFS
24944
24945 fi
24946 fi
24947 RCC=$ac_cv_prog_RCC
24948 if test -n "$RCC"; then
24949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RCC" >&5
24950 printf "%s\n" "$RCC" >&6; }
24951 else
24952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24953 printf "%s\n" "no" >&6; }
24954 fi
24955
24956
24957 test -n "$RCC" && break
24958 done
24959
24960
24961 QT_CFLAGS=$QT4_CFLAGS
24962 QT_LDFLAGS=$QT4_LDFLAGS
24963 QT_LIBS=$QT4_LIBS
24964 QT_VERSION=qt4
24965
24966 if test "$UIC" == "" || test "$MOC" == ""
24967 then :
24968
24969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: uic and/or moc were not found in your path, so Qt4 is not usable" >&5
24970 printf "%s\n" "$as_me: WARNING: uic and/or moc were not found in your path, so Qt4 is not usable" >&2;}
24971 QT_PROGRAMS=""
24972
24973 fi
24974
24975 fi # End of have_qt4 == yes && have_qt5 == no
24976
24977 if test x"$have_qt4" == x"no" && test x"$have_qt5" == x"no"
24978 then :
24979
24980 QT_PROGRAMS=""
24981
24982 fi
24983
24984 if test "$QT_PROGRAMS" == ""
24985 then :
24986
24987 have_ui=no
24988 build_ui=no
24989
24990 fi
24991
24992 fi
24993
24994 if test x"$QT_PROGRAMS" != x""; then
24995 HAVE_UI_TRUE=
24996 HAVE_UI_FALSE='#'
24997 else
24998 HAVE_UI_TRUE='#'
24999 HAVE_UI_FALSE=
25000 fi
25001
25002
25003
25004
25005
25006
25007
25008
25009 #
25010 # ===== EXAMPLES ======
25011 #
25012 # This section contains the checks that are needed in case the user wants to build
25013 # the examples contained in the examples/ directory
25014 #
25015
25016 # Check the existance of mkoctfile to compile octave modules.
25017 if test x$build_examples == xyes
25018 then :
25019
25020 for ac_prog in mkoctfile
25021 do
25022 # Extract the first word of "$ac_prog", so it can be a program name with args.
25023 set dummy $ac_prog; ac_word=$2
25024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25025 printf %s "checking for $ac_word... " >&6; }
25026 if test ${ac_cv_prog_MKOCTFILE+y}
25027 then :
25028 printf %s "(cached) " >&6
25029 else $as_nop
25030 if test -n "$MKOCTFILE"; then
25031 ac_cv_prog_MKOCTFILE="$MKOCTFILE" # Let the user override the test.
25032 else
25033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25034 for as_dir in $PATH
25035 do
25036 IFS=$as_save_IFS
25037 case $as_dir in #(((
25038 '') as_dir=./ ;;
25039 */) ;;
25040 *) as_dir=$as_dir/ ;;
25041 esac
25042 for ac_exec_ext in '' $ac_executable_extensions; do
25043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25044 ac_cv_prog_MKOCTFILE="$ac_prog"
25045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25046 break 2
25047 fi
25048 done
25049 done
25050 IFS=$as_save_IFS
25051
25052 fi
25053 fi
25054 MKOCTFILE=$ac_cv_prog_MKOCTFILE
25055 if test -n "$MKOCTFILE"; then
25056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&5
25057 printf "%s\n" "$MKOCTFILE" >&6; }
25058 else
25059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25060 printf "%s\n" "no" >&6; }
25061 fi
25062
25063
25064 test -n "$MKOCTFILE" && break
25065 done
25066
25067 enable_octave=no
25068
25069 # Detect Octave version. We are not able to build the Octave module
25070 # if Octave is older than 3.0
25071 for ac_prog in octave
25072 do
25073 # Extract the first word of "$ac_prog", so it can be a program name with args.
25074 set dummy $ac_prog; ac_word=$2
25075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25076 printf %s "checking for $ac_word... " >&6; }
25077 if test ${ac_cv_prog_OCTAVE+y}
25078 then :
25079 printf %s "(cached) " >&6
25080 else $as_nop
25081 if test -n "$OCTAVE"; then
25082 ac_cv_prog_OCTAVE="$OCTAVE" # Let the user override the test.
25083 else
25084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25085 for as_dir in $PATH
25086 do
25087 IFS=$as_save_IFS
25088 case $as_dir in #(((
25089 '') as_dir=./ ;;
25090 */) ;;
25091 *) as_dir=$as_dir/ ;;
25092 esac
25093 for ac_exec_ext in '' $ac_executable_extensions; do
25094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25095 ac_cv_prog_OCTAVE="$ac_prog"
25096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25097 break 2
25098 fi
25099 done
25100 done
25101 IFS=$as_save_IFS
25102
25103 fi
25104 fi
25105 OCTAVE=$ac_cv_prog_OCTAVE
25106 if test -n "$OCTAVE"; then
25107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&5
25108 printf "%s\n" "$OCTAVE" >&6; }
25109 else
25110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25111 printf "%s\n" "no" >&6; }
25112 fi
25113
25114
25115 test -n "$OCTAVE" && break
25116 done
25117
25118
25119 # Perform the version check only if Octave is found
25120 if test "$OCTAVE" != ""
25121 then :
25122
25123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Octave is newer than 3.0" >&5
25124 printf %s "checking if Octave is newer than 3.0... " >&6; }
25125 OCTAVE_VERSION=`octave -q -H --eval "disp(OCTAVE_VERSION)"`
25126
25127
25128
25129 # Used to indicate true or false condition
25130 ax_compare_version=false
25131
25132 # Convert the two version strings to be compared into a format that
25133 # allows a simple string comparison. The end result is that a version
25134 # string of the form 1.12.5-r617 will be converted to the form
25135 # 0001001200050617. In other words, each number is zero padded to four
25136 # digits, and non digits are removed.
25137
25138 ax_compare_version_A=`echo "$OCTAVE_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
25139 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
25140 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
25141 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
25142 -e 's/[^0-9]//g'`
25143
25144
25145 ax_compare_version_B=`echo "3.0.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
25146 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
25147 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
25148 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
25149 -e 's/[^0-9]//g'`
25150
25151
25152 ax_compare_version=`echo "x$ax_compare_version_A
25153 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
25154
25155
25156
25157 if test "$ax_compare_version" = "true" ; then
25158
25159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25160 printf "%s\n" "yes" >&6; }
25161
25162 # If we have Octave that is sufficiently recent, we can enable the Octave module
25163 if test "$MKOCTFILE" != ""
25164 then :
25165 enable_octave=yes
25166 fi
25167
25168 else
25169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25170 printf "%s\n" "no" >&6; }
25171
25172 fi
25173
25174
25175 fi
25176
25177 fi
25178
25179 if test "$enable_octave" == "yes"; then
25180 BUILD_OCT_FILE_TRUE=
25181 BUILD_OCT_FILE_FALSE='#'
25182 else
25183 BUILD_OCT_FILE_TRUE='#'
25184 BUILD_OCT_FILE_FALSE=
25185 fi
25186
25187
25188 # Check for the presence of "mex", the Matlab compiler
25189 # and if it's present, define MATLAB_MODULES_PROGRAMS
25190 # to be mps_roots.mexglx if we are on a 32 bit pc
25191 # and mps_roots.mexglxa64 if we are on a 64 bit machine.
25192 if test x$build_examples == xyes
25193 then :
25194
25195
25196 # The following very involved check is needed since mex is also the name
25197 # of the polish TeX compiler. If both are in path we need to test all the
25198 # possibilities until we found the _real_ mex compiler.
25199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a valid mex compiler" >&5
25200 printf %s "checking for a valid mex compiler... " >&6; }
25201 if test ${ac_cv_path_MEX+y}
25202 then :
25203 printf %s "(cached) " >&6
25204 else $as_nop
25205 if test -z "$MEX"; then
25206 ac_path_MEX_found=false
25207 # Loop through the user's path and test for each of PROGNAME-LIST
25208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25209 for as_dir in $PATH
25210 do
25211 IFS=$as_save_IFS
25212 case $as_dir in #(((
25213 '') as_dir=./ ;;
25214 */) ;;
25215 *) as_dir=$as_dir/ ;;
25216 esac
25217 for ac_prog in mex
25218 do
25219 for ac_exec_ext in '' $ac_executable_extensions; do
25220 ac_path_MEX="$as_dir$ac_prog$ac_exec_ext"
25221 as_fn_executable_p "$ac_path_MEX" || continue
25222
25223 mex_is_matlab_output=`$ac_path_MEX -help 2>&1 | grep "MATLAB\|mkoctfile"`
25224 mex_is_matlab_retcode=$?
25225 if [[ "$mex_is_matlab_retcode" != "0" ]]; then
25226 MEX=""
25227 else
25228 ac_cv_path_MEX=$ac_path_MEX
25229 MEX=$ac_path_MEX
25230 fi
25231
25232 $ac_path_MEX_found && break 3
25233 done
25234 done
25235 done
25236 IFS=$as_save_IFS
25237 if test -z "$ac_cv_path_MEX"; then
25238 :
25239 fi
25240 else
25241 ac_cv_path_MEX=$MEX
25242 fi
25243
25244 fi
25245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_MEX" >&5
25246 printf "%s\n" "$ac_cv_path_MEX" >&6; }
25247
25248 # Set the MEX compiler if that has been found
25249 MEX=$ac_cv_path_MEX
25250
25251
25252 # If we have find a valid Matlab compiler then add
25253 # MATLAB to the target of compilation
25254 enable_matlab=no
25255 if test "$MEX" != ""
25256 then :
25257 enable_matlab=yes
25258 MATLAB_MODULES_PROGRAMS="mps_roots_string mps_roots_double"
25259 fi
25260
25261
25262 # If we have found the MATLAB compiler, check how the
25263 # -output option has to specified.
25264 if test "$MEX" != ""
25265 then :
25266
25267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the correct way to give -output to the mex compiler" >&5
25268 printf %s "checking for the correct way to give -output to the mex compiler... " >&6; }
25269 if test ${ac_cv_MEX_OUTPUT_FLAG+y}
25270 then :
25271 printf %s "(cached) " >&6
25272 else $as_nop
25273
25274 mex_is_matlab_output=`$MEX -help 2>&1 | grep "MATLAB\|mkoctfile"`
25275 echo $mex_is_matlab_output | grep mkoctfile > /dev/null
25276 if [ $? -eq 0 ]; then
25277 ac_cv_MEX_OUTPUT_FLAG="-o"
25278 else
25279 ac_cv_MEX_OUTPUT_FLAG="-output"
25280 fi
25281
25282 fi
25283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_MEX_OUTPUT_FLAG" >&5
25284 printf "%s\n" "$ac_cv_MEX_OUTPUT_FLAG" >&6; }
25285 fi
25286
25287 MEX_OUTPUT_FLAG=$ac_cv_MEX_OUTPUT_FLAG
25288
25289
25290 # If this is the MATLAB mex compiler (and not the GNU/Octave one)
25291 # we will need to enable also some other flags.
25292 if test "$MEX_OUTPUT_FLAG" == "-output"
25293 then :
25294
25295 MEXOPTS="-cxx -D__MPS_MATLAB_MODE=1 "
25296 MEX_OUTPUT_SUFFIX=""
25297 MEX_LDFLAGS_PREFIX="LDFLAGS="
25298
25299 else $as_nop
25300
25301 MEX_OUTPUT_SUFFIX=".mex"
25302 MEX_LDFLAGS_PREFIX=""
25303
25304 fi
25305
25306
25307
25308
25309
25310 fi
25311
25312 if test "$enable_matlab" == "yes"; then
25313 BUILD_MATLAB_TOOLBOX_TRUE=
25314 BUILD_MATLAB_TOOLBOX_FALSE='#'
25315 else
25316 BUILD_MATLAB_TOOLBOX_TRUE='#'
25317 BUILD_MATLAB_TOOLBOX_FALSE=
25318 fi
25319
25320
25321
25322 # == PYTHON MODULE ==
25323 have_python=yes
25324
25325
25326
25327
25328
25329
25330 if test -n "$PYTHON"; then
25331 # If the user set $PYTHON, use it and don't search something else.
25332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.3" >&5
25333 printf %s "checking whether $PYTHON version is >= 2.3... " >&6; }
25334 prog="import sys
25335 # split strings by '.' and convert to numeric. Append some zeros
25336 # because we need at least 4 digits for the hex conversion.
25337 # map returns an iterator in Python 3.0 and a list in 2.x
25338 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
25339 minverhex = 0
25340 # xrange is not present in Python 3.0 and range returns an iterator
25341 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
25342 sys.exit(sys.hexversion < minverhex)"
25343 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
25344 ($PYTHON -c "$prog") >&5 2>&5
25345 ac_status=$?
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); }
25348 then :
25349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25350 printf "%s\n" "yes" >&6; }
25351 else $as_nop
25352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25353 printf "%s\n" "no" >&6; }
25354 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
25355 fi
25356 am_display_PYTHON=$PYTHON
25357 else
25358 # Otherwise, try each interpreter until we find one that satisfies
25359 # VERSION.
25360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.3" >&5
25361 printf %s "checking for a Python interpreter with version >= 2.3... " >&6; }
25362 if test ${am_cv_pathless_PYTHON+y}
25363 then :
25364 printf %s "(cached) " >&6
25365 else $as_nop
25366
25367 for am_cv_pathless_PYTHON in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
25368 test "$am_cv_pathless_PYTHON" = none && break
25369 prog="import sys
25370 # split strings by '.' and convert to numeric. Append some zeros
25371 # because we need at least 4 digits for the hex conversion.
25372 # map returns an iterator in Python 3.0 and a list in 2.x
25373 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
25374 minverhex = 0
25375 # xrange is not present in Python 3.0 and range returns an iterator
25376 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
25377 sys.exit(sys.hexversion < minverhex)"
25378 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
25379 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
25380 ac_status=$?
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); }
25383 then :
25384 break
25385 fi
25386 done
25387 fi
25388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
25389 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
25390 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
25391 if test "$am_cv_pathless_PYTHON" = none; then
25392 PYTHON=:
25393 else
25394 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
25395 set dummy $am_cv_pathless_PYTHON; ac_word=$2
25396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25397 printf %s "checking for $ac_word... " >&6; }
25398 if test ${ac_cv_path_PYTHON+y}
25399 then :
25400 printf %s "(cached) " >&6
25401 else $as_nop
25402 case $PYTHON in
25403 [\\/]* | ?:[\\/]*)
25404 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
25405 ;;
25406 *)
25407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25408 for as_dir in $PATH
25409 do
25410 IFS=$as_save_IFS
25411 case $as_dir in #(((
25412 '') as_dir=./ ;;
25413 */) ;;
25414 *) as_dir=$as_dir/ ;;
25415 esac
25416 for ac_exec_ext in '' $ac_executable_extensions; do
25417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25418 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
25419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25420 break 2
25421 fi
25422 done
25423 done
25424 IFS=$as_save_IFS
25425
25426 ;;
25427 esac
25428 fi
25429 PYTHON=$ac_cv_path_PYTHON
25430 if test -n "$PYTHON"; then
25431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
25432 printf "%s\n" "$PYTHON" >&6; }
25433 else
25434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25435 printf "%s\n" "no" >&6; }
25436 fi
25437
25438
25439 fi
25440 am_display_PYTHON=$am_cv_pathless_PYTHON
25441 fi
25442
25443
25444 if test "$PYTHON" = :; then
25445 :
25446 else
25447
25448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
25449 printf %s "checking for $am_display_PYTHON version... " >&6; }
25450 if test ${am_cv_python_version+y}
25451 then :
25452 printf %s "(cached) " >&6
25453 else $as_nop
25454 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
25455 fi
25456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
25457 printf "%s\n" "$am_cv_python_version" >&6; }
25458 PYTHON_VERSION=$am_cv_python_version
25459
25460
25461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
25462 printf %s "checking for $am_display_PYTHON platform... " >&6; }
25463 if test ${am_cv_python_platform+y}
25464 then :
25465 printf %s "(cached) " >&6
25466 else $as_nop
25467 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
25468 fi
25469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
25470 printf "%s\n" "$am_cv_python_platform" >&6; }
25471 PYTHON_PLATFORM=$am_cv_python_platform
25472
25473
25474 if test "x$prefix" = xNONE; then
25475 am__usable_prefix=$ac_default_prefix
25476 else
25477 am__usable_prefix=$prefix
25478 fi
25479
25480 # Allow user to request using sys.* values from Python,
25481 # instead of the GNU $prefix values.
25482
25483 # Check whether --with-python-sys-prefix was given.
25484 if test ${with_python_sys_prefix+y}
25485 then :
25486 withval=$with_python_sys_prefix; am_use_python_sys=:
25487 else $as_nop
25488 am_use_python_sys=false
25489 fi
25490
25491
25492 # Allow user to override whatever the default Python prefix is.
25493
25494 # Check whether --with-python_prefix was given.
25495 if test ${with_python_prefix+y}
25496 then :
25497 withval=$with_python_prefix; am_python_prefix_subst=$withval
25498 am_cv_python_prefix=$withval
25499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
25500 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
25501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
25502 printf "%s\n" "$am_cv_python_prefix" >&6; }
25503 else $as_nop
25504
25505 if $am_use_python_sys; then
25506 # using python sys.prefix value, not GNU
25507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
25508 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
25509 if test ${am_cv_python_prefix+y}
25510 then :
25511 printf %s "(cached) " >&6
25512 else $as_nop
25513 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
25514 fi
25515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
25516 printf "%s\n" "$am_cv_python_prefix" >&6; }
25517
25518 case $am_cv_python_prefix in
25519 $am__usable_prefix*)
25520 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
25521 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
25522 ;;
25523 *)
25524 am_python_prefix_subst=$am_cv_python_prefix
25525 ;;
25526 esac
25527 else # using GNU prefix value, not python sys.prefix
25528 am_python_prefix_subst='${prefix}'
25529 am_python_prefix=$am_python_prefix_subst
25530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
25531 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
25532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
25533 printf "%s\n" "$am_python_prefix" >&6; }
25534 fi
25535 fi
25536
25537 # Substituting python_prefix_subst value.
25538 PYTHON_PREFIX=$am_python_prefix_subst
25539
25540
25541 # emacs-page Now do it all over again for Python exec_prefix, but with yet
25542 # another conditional: fall back to regular prefix if that was specified.
25543
25544 # Check whether --with-python_exec_prefix was given.
25545 if test ${with_python_exec_prefix+y}
25546 then :
25547 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
25548 am_cv_python_exec_prefix=$withval
25549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
25550 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
25551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
25552 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
25553 else $as_nop
25554
25555 # no explicit --with-python_exec_prefix, but if
25556 # --with-python_prefix was given, use its value for python_exec_prefix too.
25557 if test -n "$with_python_prefix"
25558 then :
25559 am_python_exec_prefix_subst=$with_python_prefix
25560 am_cv_python_exec_prefix=$with_python_prefix
25561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
25562 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
25563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
25564 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
25565 else $as_nop
25566
25567 # Set am__usable_exec_prefix whether using GNU or Python values,
25568 # since we use that variable for pyexecdir.
25569 if test "x$exec_prefix" = xNONE; then
25570 am__usable_exec_prefix=$am__usable_prefix
25571 else
25572 am__usable_exec_prefix=$exec_prefix
25573 fi
25574 #
25575 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
25576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
25577 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
25578 if test ${am_cv_python_exec_prefix+y}
25579 then :
25580 printf %s "(cached) " >&6
25581 else $as_nop
25582 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
25583 fi
25584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
25585 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
25586 case $am_cv_python_exec_prefix in
25587 $am__usable_exec_prefix*)
25588 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
25589 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
25590 ;;
25591 *)
25592 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
25593 ;;
25594 esac
25595 else # using GNU $exec_prefix, not python sys.exec_prefix
25596 am_python_exec_prefix_subst='${exec_prefix}'
25597 am_python_exec_prefix=$am_python_exec_prefix_subst
25598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
25599 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
25600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
25601 printf "%s\n" "$am_python_exec_prefix" >&6; }
25602 fi
25603 fi
25604 fi
25605
25606 # Substituting python_exec_prefix_subst.
25607 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
25608
25609
25610 # Factor out some code duplication into this shell variable.
25611 am_python_setup_sysconfig="\
25612 import sys
25613 # Prefer sysconfig over distutils.sysconfig, for better compatibility
25614 # with python 3.x. See automake bug#10227.
25615 try:
25616 import sysconfig
25617 except ImportError:
25618 can_use_sysconfig = 0
25619 else:
25620 can_use_sysconfig = 1
25621 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
25622 # <https://github.com/pypa/virtualenv/issues/118>
25623 try:
25624 from platform import python_implementation
25625 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
25626 can_use_sysconfig = 0
25627 except ImportError:
25628 pass"
25629
25630
25631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
25632 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
25633 if test ${am_cv_python_pythondir+y}
25634 then :
25635 printf %s "(cached) " >&6
25636 else $as_nop
25637 if test "x$am_cv_python_prefix" = x; then
25638 am_py_prefix=$am__usable_prefix
25639 else
25640 am_py_prefix=$am_cv_python_prefix
25641 fi
25642 am_cv_python_pythondir=`$PYTHON -c "
25643 $am_python_setup_sysconfig
25644 if can_use_sysconfig:
25645 if hasattr(sysconfig, 'get_default_scheme'):
25646 scheme = sysconfig.get_default_scheme()
25647 else:
25648 scheme = sysconfig._get_default_scheme()
25649 if scheme == 'posix_local':
25650 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
25651 scheme = 'posix_prefix'
25652 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
25653 else:
25654 from distutils import sysconfig
25655 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
25656 sys.stdout.write(sitedir)"`
25657 #
25658 case $am_cv_python_pythondir in
25659 $am_py_prefix*)
25660 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
25661 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
25662 ;;
25663 *)
25664 case $am_py_prefix in
25665 /usr|/System*) ;;
25666 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
25667 ;;
25668 esac
25669 ;;
25670 esac
25671
25672 fi
25673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
25674 printf "%s\n" "$am_cv_python_pythondir" >&6; }
25675 pythondir=$am_cv_python_pythondir
25676
25677
25678 pkgpythondir=\${pythondir}/$PACKAGE
25679
25680
25681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
25682 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
25683 if test ${am_cv_python_pyexecdir+y}
25684 then :
25685 printf %s "(cached) " >&6
25686 else $as_nop
25687 if test "x$am_cv_python_exec_prefix" = x; then
25688 am_py_exec_prefix=$am__usable_exec_prefix
25689 else
25690 am_py_exec_prefix=$am_cv_python_exec_prefix
25691 fi
25692 am_cv_python_pyexecdir=`$PYTHON -c "
25693 $am_python_setup_sysconfig
25694 if can_use_sysconfig:
25695 if hasattr(sysconfig, 'get_default_scheme'):
25696 scheme = sysconfig.get_default_scheme()
25697 else:
25698 scheme = sysconfig._get_default_scheme()
25699 if scheme == 'posix_local':
25700 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
25701 scheme = 'posix_prefix'
25702 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
25703 else:
25704 from distutils import sysconfig
25705 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
25706 sys.stdout.write(sitedir)"`
25707 #
25708 case $am_cv_python_pyexecdir in
25709 $am_py_exec_prefix*)
25710 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
25711 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
25712 ;;
25713 *)
25714 case $am_py_exec_prefix in
25715 /usr|/System*) ;;
25716 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
25717 ;;
25718 esac
25719 ;;
25720 esac
25721
25722 fi
25723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
25724 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
25725 pyexecdir=$am_cv_python_pyexecdir
25726
25727
25728 pkgpyexecdir=\${pyexecdir}/$PACKAGE
25729
25730
25731
25732 fi
25733
25734
25735
25736 if test -z "$PYTHON_INCLUDE"
25737 then :
25738
25739 if test -z "$PYTHON_CONFIG"
25740 then :
25741
25742 for ac_prog in python$PYTHON_VERSION-config python-config
25743 do
25744 # Extract the first word of "$ac_prog", so it can be a program name with args.
25745 set dummy $ac_prog; ac_word=$2
25746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25747 printf %s "checking for $ac_word... " >&6; }
25748 if test ${ac_cv_path_PYTHON_CONFIG+y}
25749 then :
25750 printf %s "(cached) " >&6
25751 else $as_nop
25752 case $PYTHON_CONFIG in
25753 [\\/]* | ?:[\\/]*)
25754 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
25755 ;;
25756 *)
25757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25758 for as_dir in `dirname $PYTHON`
25759 do
25760 IFS=$as_save_IFS
25761 case $as_dir in #(((
25762 '') as_dir=./ ;;
25763 */) ;;
25764 *) as_dir=$as_dir/ ;;
25765 esac
25766 for ac_exec_ext in '' $ac_executable_extensions; do
25767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25768 ac_cv_path_PYTHON_CONFIG="$as_dir$ac_word$ac_exec_ext"
25769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25770 break 2
25771 fi
25772 done
25773 done
25774 IFS=$as_save_IFS
25775
25776 ;;
25777 esac
25778 fi
25779 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
25780 if test -n "$PYTHON_CONFIG"; then
25781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
25782 printf "%s\n" "$PYTHON_CONFIG" >&6; }
25783 else
25784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25785 printf "%s\n" "no" >&6; }
25786 fi
25787
25788
25789 test -n "$PYTHON_CONFIG" && break
25790 done
25791 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
25792
25793 if test "$PYTHON_CONFIG" = no
25794 then :
25795
25796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find python-config for $PYTHON." >&5
25797 printf "%s\n" "$as_me: WARNING: cannot find python-config for $PYTHON." >&2;}
25798 have_python=no
25799
25800 else $as_nop
25801
25802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking python include flags" >&5
25803 printf %s "checking python include flags... " >&6; }
25804 PYTHON_INCLUDE=`$PYTHON_CONFIG --includes`
25805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDE" >&5
25806 printf "%s\n" "$PYTHON_INCLUDE" >&6; }
25807
25808
25809 if test -z $PYTHON;
25810 then
25811 PYTHON="python"
25812 fi
25813 PYTHON_NAME=`basename $PYTHON`
25814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: ctypes" >&5
25815 printf %s "checking $PYTHON_NAME module: ctypes... " >&6; }
25816 $PYTHON -c "import ctypes" 2>/dev/null
25817 if test $? -eq 0;
25818 then
25819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25820 printf "%s\n" "yes" >&6; }
25821 eval HAVE_PYMOD_CTYPES=yes
25822 else
25823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25824 printf "%s\n" "no" >&6; }
25825 eval HAVE_PYMOD_CTYPES=no
25826 #
25827 if test -n ""
25828 then
25829 as_fn_error $? "failed to find required module ctypes" "$LINENO" 5
25830 exit 1
25831 fi
25832 fi
25833
25834
25835 if test "$HAVE_PYMOD_CTYPES" = "no"
25836 then :
25837
25838 have_python=no
25839
25840 fi
25841
25842 fi
25843
25844 fi
25845
25846
25847 fi
25848
25849 if test "$have_python" == "yes"; then
25850 HAVE_PYTHON_TRUE=
25851 HAVE_PYTHON_FALSE='#'
25852 else
25853 HAVE_PYTHON_TRUE='#'
25854 HAVE_PYTHON_FALSE=
25855 fi
25856
25857 if test "$have_python" == "yes" && test "$disable_examples" != "xyes"; then
25858 BUILD_PYTHON_MODULE_TRUE=
25859 BUILD_PYTHON_MODULE_FALSE='#'
25860 else
25861 BUILD_PYTHON_MODULE_TRUE='#'
25862 BUILD_PYTHON_MODULE_FALSE=
25863 fi
25864
25865
25866 # Trick to get the extension of the python module right.
25867 host_os=`echo "$host" | sed 's/^\(^-*\)-\(^-*\)-\(.*\)$/\3/'`
25868 py_libext=so
25869 case "$host_os" in
25870 cygwin* | mingw* | pw32* | cegcc*)
25871 py_libext=dll
25872 ;;
25873 esac
25874
25875 # Check for GTK libraries to enable the example that is given
25876 # in examples/gtk
25877 if test x$build_examples == xyes && test x$have_gtk == x1 && test x$have_cairo == x1
25878 then :
25879
25880 ROOTS_OF_UNITY_PROGRAMS=roots_of_unity
25881
25882
25883
25884
25885
25886
25887 fi
25888
25889 if test x$build_examples = xyes; then
25890 BUILD_EXAMPLES_TRUE=
25891 BUILD_EXAMPLES_FALSE='#'
25892 else
25893 BUILD_EXAMPLES_TRUE='#'
25894 BUILD_EXAMPLES_FALSE=
25895 fi
25896
25897
25898 #
25899 # ===== MPSOLVE DOCUMENTATION ======
25900 #
25901 # Check that we have doxygen on this sytem. If that's the case, build the documentation for
25902 # MPSolve.
25903
25904 if test x$build_doc == xyes
25905 then :
25906
25907 for ac_prog in doxygen
25908 do
25909 # Extract the first word of "$ac_prog", so it can be a program name with args.
25910 set dummy $ac_prog; ac_word=$2
25911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25912 printf %s "checking for $ac_word... " >&6; }
25913 if test ${ac_cv_prog_DOXYGEN+y}
25914 then :
25915 printf %s "(cached) " >&6
25916 else $as_nop
25917 if test -n "$DOXYGEN"; then
25918 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
25919 else
25920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25921 for as_dir in $PATH
25922 do
25923 IFS=$as_save_IFS
25924 case $as_dir in #(((
25925 '') as_dir=./ ;;
25926 */) ;;
25927 *) as_dir=$as_dir/ ;;
25928 esac
25929 for ac_exec_ext in '' $ac_executable_extensions; do
25930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25931 ac_cv_prog_DOXYGEN="$ac_prog"
25932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25933 break 2
25934 fi
25935 done
25936 done
25937 IFS=$as_save_IFS
25938
25939 fi
25940 fi
25941 DOXYGEN=$ac_cv_prog_DOXYGEN
25942 if test -n "$DOXYGEN"; then
25943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
25944 printf "%s\n" "$DOXYGEN" >&6; }
25945 else
25946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25947 printf "%s\n" "no" >&6; }
25948 fi
25949
25950
25951 test -n "$DOXYGEN" && break
25952 done
25953
25954
25955 if test -z "$DOXYGEN"; then
25956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found, documentation will not be generated" >&5
25957 printf "%s\n" "$as_me: WARNING: Doxygen not found, documentation will not be generated" >&2;}
25958 else
25959 for ac_prog in dot
25960 do
25961 # Extract the first word of "$ac_prog", so it can be a program name with args.
25962 set dummy $ac_prog; ac_word=$2
25963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25964 printf %s "checking for $ac_word... " >&6; }
25965 if test ${ac_cv_prog_DOT+y}
25966 then :
25967 printf %s "(cached) " >&6
25968 else $as_nop
25969 if test -n "$DOT"; then
25970 ac_cv_prog_DOT="$DOT" # Let the user override the test.
25971 else
25972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25973 for as_dir in $PATH
25974 do
25975 IFS=$as_save_IFS
25976 case $as_dir in #(((
25977 '') as_dir=./ ;;
25978 */) ;;
25979 *) as_dir=$as_dir/ ;;
25980 esac
25981 for ac_exec_ext in '' $ac_executable_extensions; do
25982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25983 ac_cv_prog_DOT="$ac_prog"
25984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25985 break 2
25986 fi
25987 done
25988 done
25989 IFS=$as_save_IFS
25990
25991 fi
25992 fi
25993 DOT=$ac_cv_prog_DOT
25994 if test -n "$DOT"; then
25995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
25996 printf "%s\n" "$DOT" >&6; }
25997 else
25998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25999 printf "%s\n" "no" >&6; }
26000 fi
26001
26002
26003 test -n "$DOT" && break
26004 done
26005
26006
26007 fi
26008
26009 fi
26010
26011 if test -n "$DOXYGEN"; then
26012 HAVE_DOXYGEN_TRUE=
26013 HAVE_DOXYGEN_FALSE='#'
26014 else
26015 HAVE_DOXYGEN_TRUE='#'
26016 HAVE_DOXYGEN_FALSE=
26017 fi
26018
26019
26020
26021 LIBMPS_CFLAGS="$LIBMPS_CFLAGS -D_MPS_PRIVATE"
26022 LIBMPS_LDFLAGS=" $LDFLAGS"
26023
26024 if test "$platform_win32" = yes; then
26025 LIBMPS_LDFLAGS="$LIBMPS_LDFLAGS -no-undefined -Wl,--export-all-symbols -Wl,--output-def,.libs/libmps-3.dll.def"
26026 fi
26027
26028
26029
26030
26031 ac_config_files="$ac_config_files Makefile include/Makefile include/mps/Makefile include/mps/private/Makefile examples/Makefile examples/C/Makefile examples/fortran/Makefile examples/octave/Makefile examples/matlab/Makefile examples/gtk/Makefile examples/python/Makefile examples/python/tests/Makefile examples/mandelbrot-solver/Makefile examples/mandelbrot-solver/mandelbrot-solver.1 examples/quadratic-solver/Makefile examples/quadratic-solver/quadratic-solver.1 include/mps/mt.h include/mps/version.h src/Makefile src/mpsolve/Makefile src/mpsolve/mpsolve.1 src/libmps/Makefile src/tests/Makefile src/xmpsolve/Makefile src/xmpsolve/xmpsolve.desktop src/xmpsolve/xmpsolve.1 doc/Makefile doc/Doxyfile mime/Makefile"
26032
26033
26034 cat >confcache <<\_ACEOF
26035 # This file is a shell script that caches the results of configure
26036 # tests run on this system so they can be shared between configure
26037 # scripts and configure runs, see configure's option --config-cache.
26038 # It is not useful on other systems. If it contains results you don't
26039 # want to keep, you may remove or edit it.
26040 #
26041 # config.status only pays attention to the cache file if you give it
26042 # the --recheck option to rerun configure.
26043 #
26044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26046 # following values.
26047
26048 _ACEOF
26049
26050 # The following way of writing the cache mishandles newlines in values,
26051 # but we know of no workaround that is simple, portable, and efficient.
26052 # So, we kill variables containing newlines.
26053 # Ultrix sh set writes to stderr and can't be redirected directly,
26054 # and sets the high bit in the cache file unless we assign to the vars.
26055 (
26056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26057 eval ac_val=\$$ac_var
26058 case $ac_val in #(
26059 *${as_nl}*)
26060 case $ac_var in #(
26061 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26062 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26063 esac
26064 case $ac_var in #(
26065 _ | IFS | as_nl) ;; #(
26066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26067 *) { eval $ac_var=; unset $ac_var;} ;;
26068 esac ;;
26069 esac
26070 done
26071
26072 (set) 2>&1 |
26073 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26074 *${as_nl}ac_space=\ *)
26075 # `set' does not quote correctly, so add quotes: double-quote
26076 # substitution turns \\\\ into \\, and sed turns \\ into \.
26077 sed -n \
26078 "s/'/'\\\\''/g;
26079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26080 ;; #(
26081 *)
26082 # `set' quotes correctly as required by POSIX, so do not add quotes.
26083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26084 ;;
26085 esac |
26086 sort
26087 ) |
26088 sed '
26089 /^ac_cv_env_/b end
26090 t clear
26091 :clear
26092 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
26093 t end
26094 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26095 :end' >>confcache
26096 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26097 if test -w "$cache_file"; then
26098 if test "x$cache_file" != "x/dev/null"; then
26099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26100 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
26101 if test ! -f "$cache_file" || test -h "$cache_file"; then
26102 cat confcache >"$cache_file"
26103 else
26104 case $cache_file in #(
26105 */* | ?:*)
26106 mv -f confcache "$cache_file"$$ &&
26107 mv -f "$cache_file"$$ "$cache_file" ;; #(
26108 *)
26109 mv -f confcache "$cache_file" ;;
26110 esac
26111 fi
26112 fi
26113 else
26114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26115 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
26116 fi
26117 fi
26118 rm -f confcache
26119
26120 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26121 # Let make expand exec_prefix.
26122 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26123
26124 DEFS=-DHAVE_CONFIG_H
26125
26126 ac_libobjs=
26127 ac_ltlibobjs=
26128 U=
26129 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26130 # 1. Remove the extension, and $U if already installed.
26131 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26132 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
26133 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26134 # will be set to the directory where LIBOBJS objects are built.
26135 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26136 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26137 done
26138 LIBOBJS=$ac_libobjs
26139
26140 LTLIBOBJS=$ac_ltlibobjs
26141
26142
26143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26144 printf %s "checking that generated files are newer than configure... " >&6; }
26145 if test -n "$am_sleep_pid"; then
26146 # Hide warnings about reused PIDs.
26147 wait $am_sleep_pid 2>/dev/null
26148 fi
26149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
26150 printf "%s\n" "done" >&6; }
26151 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26152 as_fn_error $? "conditional \"AMDEP\" was never defined.
26153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26154 fi
26155 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26156 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26158 fi
26159 if test -n "$EXEEXT"; then
26160 am__EXEEXT_TRUE=
26161 am__EXEEXT_FALSE='#'
26162 else
26163 am__EXEEXT_TRUE='#'
26164 am__EXEEXT_FALSE=
26165 fi
26166
26167 if test -z "${BUILD_QML_UI_TRUE}" && test -z "${BUILD_QML_UI_FALSE}"; then
26168 as_fn_error $? "conditional \"BUILD_QML_UI\" was never defined.
26169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26170 fi
26171 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26172 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26174 fi
26175 if test -z "${WINDOWS_BUILD_TRUE}" && test -z "${WINDOWS_BUILD_FALSE}"; then
26176 as_fn_error $? "conditional \"WINDOWS_BUILD\" was never defined.
26177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26178 fi
26179 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
26180 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
26181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26182 fi
26183 if test -z "${CHECK_TRUE}" && test -z "${CHECK_FALSE}"; then
26184 as_fn_error $? "conditional \"CHECK\" was never defined.
26185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26186 fi
26187 if test -z "${HAVE_UI_TRUE}" && test -z "${HAVE_UI_FALSE}"; then
26188 as_fn_error $? "conditional \"HAVE_UI\" was never defined.
26189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26190 fi
26191 if test -z "${BUILD_OCT_FILE_TRUE}" && test -z "${BUILD_OCT_FILE_FALSE}"; then
26192 as_fn_error $? "conditional \"BUILD_OCT_FILE\" was never defined.
26193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26194 fi
26195 if test -z "${BUILD_MATLAB_TOOLBOX_TRUE}" && test -z "${BUILD_MATLAB_TOOLBOX_FALSE}"; then
26196 as_fn_error $? "conditional \"BUILD_MATLAB_TOOLBOX\" was never defined.
26197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26198 fi
26199 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
26200 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
26201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26202 fi
26203 if test -z "${BUILD_PYTHON_MODULE_TRUE}" && test -z "${BUILD_PYTHON_MODULE_FALSE}"; then
26204 as_fn_error $? "conditional \"BUILD_PYTHON_MODULE\" was never defined.
26205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26206 fi
26207 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
26208 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
26209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26210 fi
26211 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
26212 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
26213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26214 fi
26215
26216 : "${CONFIG_STATUS=./config.status}"
26217 ac_write_fail=0
26218 ac_clean_files_save=$ac_clean_files
26219 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26221 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
26222 as_write_fail=0
26223 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26224 #! $SHELL
26225 # Generated by $as_me.
26226 # Run this file to recreate the current configuration.
26227 # Compiler output produced by configure, useful for debugging
26228 # configure, is in config.log if it exists.
26229
26230 debug=false
26231 ac_cs_recheck=false
26232 ac_cs_silent=false
26233
26234 SHELL=\${CONFIG_SHELL-$SHELL}
26235 export SHELL
26236 _ASEOF
26237 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26238 ## -------------------- ##
26239 ## M4sh Initialization. ##
26240 ## -------------------- ##
26241
26242 # Be more Bourne compatible
26243 DUALCASE=1; export DUALCASE # for MKS sh
26244 as_nop=:
26245 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
26246 then :
26247 emulate sh
26248 NULLCMD=:
26249 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26250 # is contrary to our usage. Disable this feature.
26251 alias -g '${1+"$@"}'='"$@"'
26252 setopt NO_GLOB_SUBST
26253 else $as_nop
26254 case `(set -o) 2>/dev/null` in #(
26255 *posix*) :
26256 set -o posix ;; #(
26257 *) :
26258 ;;
26259 esac
26260 fi
26261
26262
26263
26264 # Reset variables that may have inherited troublesome values from
26265 # the environment.
26266
26267 # IFS needs to be set, to space, tab, and newline, in precisely that order.
26268 # (If _AS_PATH_WALK were called with IFS unset, it would have the
26269 # side effect of setting IFS to empty, thus disabling word splitting.)
26270 # Quoting is to prevent editors from complaining about space-tab.
26271 as_nl='
26272 '
26273 export as_nl
26274 IFS=" "" $as_nl"
26275
26276 PS1='$ '
26277 PS2='> '
26278 PS4='+ '
26279
26280 # Ensure predictable behavior from utilities with locale-dependent output.
26281 LC_ALL=C
26282 export LC_ALL
26283 LANGUAGE=C
26284 export LANGUAGE
26285
26286 # We cannot yet rely on "unset" to work, but we need these variables
26287 # to be unset--not just set to an empty or harmless value--now, to
26288 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
26289 # also avoids known problems related to "unset" and subshell syntax
26290 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
26291 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
26292 do eval test \${$as_var+y} \
26293 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26294 done
26295
26296 # Ensure that fds 0, 1, and 2 are open.
26297 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
26298 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
26299 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
26300
26301 # The user is always right.
26302 if ${PATH_SEPARATOR+false} :; then
26303 PATH_SEPARATOR=:
26304 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26305 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26306 PATH_SEPARATOR=';'
26307 }
26308 fi
26309
26310
26311 # Find who we are. Look in the path if we contain no directory separator.
26312 as_myself=
26313 case $0 in #((
26314 *[\\/]* ) as_myself=$0 ;;
26315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26316 for as_dir in $PATH
26317 do
26318 IFS=$as_save_IFS
26319 case $as_dir in #(((
26320 '') as_dir=./ ;;
26321 */) ;;
26322 *) as_dir=$as_dir/ ;;
26323 esac
26324 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
26325 done
26326 IFS=$as_save_IFS
26327
26328 ;;
26329 esac
26330 # We did not find ourselves, most probably we were run as `sh COMMAND'
26331 # in which case we are not to be found in the path.
26332 if test "x$as_myself" = x; then
26333 as_myself=$0
26334 fi
26335 if test ! -f "$as_myself"; then
26336 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26337 exit 1
26338 fi
26339
26340
26341
26342 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26343 # ----------------------------------------
26344 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26345 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26346 # script with STATUS, using 1 if that was 0.
26347 as_fn_error ()
26348 {
26349 as_status=$1; test $as_status -eq 0 && as_status=1
26350 if test "$4"; then
26351 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26353 fi
26354 printf "%s\n" "$as_me: error: $2" >&2
26355 as_fn_exit $as_status
26356 } # as_fn_error
26357
26358
26359
26360 # as_fn_set_status STATUS
26361 # -----------------------
26362 # Set $? to STATUS, without forking.
26363 as_fn_set_status ()
26364 {
26365 return $1
26366 } # as_fn_set_status
26367
26368 # as_fn_exit STATUS
26369 # -----------------
26370 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26371 as_fn_exit ()
26372 {
26373 set +e
26374 as_fn_set_status $1
26375 exit $1
26376 } # as_fn_exit
26377
26378 # as_fn_unset VAR
26379 # ---------------
26380 # Portably unset VAR.
26381 as_fn_unset ()
26382 {
26383 { eval $1=; unset $1;}
26384 }
26385 as_unset=as_fn_unset
26386
26387 # as_fn_append VAR VALUE
26388 # ----------------------
26389 # Append the text in VALUE to the end of the definition contained in VAR. Take
26390 # advantage of any shell optimizations that allow amortized linear growth over
26391 # repeated appends, instead of the typical quadratic growth present in naive
26392 # implementations.
26393 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
26394 then :
26395 eval 'as_fn_append ()
26396 {
26397 eval $1+=\$2
26398 }'
26399 else $as_nop
26400 as_fn_append ()
26401 {
26402 eval $1=\$$1\$2
26403 }
26404 fi # as_fn_append
26405
26406 # as_fn_arith ARG...
26407 # ------------------
26408 # Perform arithmetic evaluation on the ARGs, and store the result in the
26409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26410 # must be portable across $(()) and expr.
26411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
26412 then :
26413 eval 'as_fn_arith ()
26414 {
26415 as_val=$(( $* ))
26416 }'
26417 else $as_nop
26418 as_fn_arith ()
26419 {
26420 as_val=`expr "$@" || test $? -eq 1`
26421 }
26422 fi # as_fn_arith
26423
26424
26425 if expr a : '\(a\)' >/dev/null 2>&1 &&
26426 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26427 as_expr=expr
26428 else
26429 as_expr=false
26430 fi
26431
26432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26433 as_basename=basename
26434 else
26435 as_basename=false
26436 fi
26437
26438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26439 as_dirname=dirname
26440 else
26441 as_dirname=false
26442 fi
26443
26444 as_me=`$as_basename -- "$0" ||
26445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26446 X"$0" : 'X\(//\)$' \| \
26447 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26448 printf "%s\n" X/"$0" |
26449 sed '/^.*\/\([^/][^/]*\)\/*$/{
26450 s//\1/
26451 q
26452 }
26453 /^X\/\(\/\/\)$/{
26454 s//\1/
26455 q
26456 }
26457 /^X\/\(\/\).*/{
26458 s//\1/
26459 q
26460 }
26461 s/.*/./; q'`
26462
26463 # Avoid depending upon Character Ranges.
26464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26467 as_cr_digits='0123456789'
26468 as_cr_alnum=$as_cr_Letters$as_cr_digits
26469
26470
26471 # Determine whether it's possible to make 'echo' print without a newline.
26472 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
26473 # for compatibility with existing Makefiles.
26474 ECHO_C= ECHO_N= ECHO_T=
26475 case `echo -n x` in #(((((
26476 -n*)
26477 case `echo 'xy\c'` in
26478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26479 xy) ECHO_C='\c';;
26480 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26481 ECHO_T=' ';;
26482 esac;;
26483 *)
26484 ECHO_N='-n';;
26485 esac
26486
26487 # For backward compatibility with old third-party macros, we provide
26488 # the shell variables $as_echo and $as_echo_n. New code should use
26489 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
26490 as_echo='printf %s\n'
26491 as_echo_n='printf %s'
26492
26493 rm -f conf$$ conf$$.exe conf$$.file
26494 if test -d conf$$.dir; then
26495 rm -f conf$$.dir/conf$$.file
26496 else
26497 rm -f conf$$.dir
26498 mkdir conf$$.dir 2>/dev/null
26499 fi
26500 if (echo >conf$$.file) 2>/dev/null; then
26501 if ln -s conf$$.file conf$$ 2>/dev/null; then
26502 as_ln_s='ln -s'
26503 # ... but there are two gotchas:
26504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26506 # In both cases, we have to default to `cp -pR'.
26507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26508 as_ln_s='cp -pR'
26509 elif ln conf$$.file conf$$ 2>/dev/null; then
26510 as_ln_s=ln
26511 else
26512 as_ln_s='cp -pR'
26513 fi
26514 else
26515 as_ln_s='cp -pR'
26516 fi
26517 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26518 rmdir conf$$.dir 2>/dev/null
26519
26520
26521 # as_fn_mkdir_p
26522 # -------------
26523 # Create "$as_dir" as a directory, including parents if necessary.
26524 as_fn_mkdir_p ()
26525 {
26526
26527 case $as_dir in #(
26528 -*) as_dir=./$as_dir;;
26529 esac
26530 test -d "$as_dir" || eval $as_mkdir_p || {
26531 as_dirs=
26532 while :; do
26533 case $as_dir in #(
26534 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26535 *) as_qdir=$as_dir;;
26536 esac
26537 as_dirs="'$as_qdir' $as_dirs"
26538 as_dir=`$as_dirname -- "$as_dir" ||
26539 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26540 X"$as_dir" : 'X\(//\)[^/]' \| \
26541 X"$as_dir" : 'X\(//\)$' \| \
26542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26543 printf "%s\n" X"$as_dir" |
26544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26545 s//\1/
26546 q
26547 }
26548 /^X\(\/\/\)[^/].*/{
26549 s//\1/
26550 q
26551 }
26552 /^X\(\/\/\)$/{
26553 s//\1/
26554 q
26555 }
26556 /^X\(\/\).*/{
26557 s//\1/
26558 q
26559 }
26560 s/.*/./; q'`
26561 test -d "$as_dir" && break
26562 done
26563 test -z "$as_dirs" || eval "mkdir $as_dirs"
26564 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26565
26566
26567 } # as_fn_mkdir_p
26568 if mkdir -p . 2>/dev/null; then
26569 as_mkdir_p='mkdir -p "$as_dir"'
26570 else
26571 test -d ./-p && rmdir ./-p
26572 as_mkdir_p=false
26573 fi
26574
26575
26576 # as_fn_executable_p FILE
26577 # -----------------------
26578 # Test if FILE is an executable regular file.
26579 as_fn_executable_p ()
26580 {
26581 test -f "$1" && test -x "$1"
26582 } # as_fn_executable_p
26583 as_test_x='test -x'
26584 as_executable_p=as_fn_executable_p
26585
26586 # Sed expression to map a string onto a valid CPP name.
26587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26588
26589 # Sed expression to map a string onto a valid variable name.
26590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26591
26592
26593 exec 6>&1
26594 ## ----------------------------------- ##
26595 ## Main body of $CONFIG_STATUS script. ##
26596 ## ----------------------------------- ##
26597 _ASEOF
26598 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26599
26600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26601 # Save the log message, to keep $0 and so on meaningful, and to
26602 # report actual input values of CONFIG_FILES etc. instead of their
26603 # values after options handling.
26604 ac_log="
26605 This file was extended by MPSolve $as_me 3.2.3, which was
26606 generated by GNU Autoconf 2.71. Invocation command line was
26607
26608 CONFIG_FILES = $CONFIG_FILES
26609 CONFIG_HEADERS = $CONFIG_HEADERS
26610 CONFIG_LINKS = $CONFIG_LINKS
26611 CONFIG_COMMANDS = $CONFIG_COMMANDS
26612 $ $0 $@
26613
26614 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26615 "
26616
26617 _ACEOF
26618
26619 case $ac_config_files in *"
26620 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26621 esac
26622
26623 case $ac_config_headers in *"
26624 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26625 esac
26626
26627
26628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26629 # Files that config.status was made for.
26630 config_files="$ac_config_files"
26631 config_headers="$ac_config_headers"
26632 config_commands="$ac_config_commands"
26633
26634 _ACEOF
26635
26636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26637 ac_cs_usage="\
26638 \`$as_me' instantiates files and other configuration actions
26639 from templates according to the current configuration. Unless the files
26640 and actions are specified as TAGs, all are instantiated by default.
26641
26642 Usage: $0 [OPTION]... [TAG]...
26643
26644 -h, --help print this help, then exit
26645 -V, --version print version number and configuration settings, then exit
26646 --config print configuration, then exit
26647 -q, --quiet, --silent
26648 do not print progress messages
26649 -d, --debug don't remove temporary files
26650 --recheck update $as_me by reconfiguring in the same conditions
26651 --file=FILE[:TEMPLATE]
26652 instantiate the configuration file FILE
26653 --header=FILE[:TEMPLATE]
26654 instantiate the configuration header FILE
26655
26656 Configuration files:
26657 $config_files
26658
26659 Configuration headers:
26660 $config_headers
26661
26662 Configuration commands:
26663 $config_commands
26664
26665 Report bugs to <[email protected]>."
26666
26667 _ACEOF
26668 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
26669 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
26670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26671 ac_cs_config='$ac_cs_config_escaped'
26672 ac_cs_version="\\
26673 MPSolve config.status 3.2.3
26674 configured by $0, generated by GNU Autoconf 2.71,
26675 with options \\"\$ac_cs_config\\"
26676
26677 Copyright (C) 2021 Free Software Foundation, Inc.
26678 This config.status script is free software; the Free Software Foundation
26679 gives unlimited permission to copy, distribute and modify it."
26680
26681 ac_pwd='$ac_pwd'
26682 srcdir='$srcdir'
26683 INSTALL='$INSTALL'
26684 MKDIR_P='$MKDIR_P'
26685 AWK='$AWK'
26686 test -n "\$AWK" || AWK=awk
26687 _ACEOF
26688
26689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26690 # The default lists apply if the user does not specify any file.
26691 ac_need_defaults=:
26692 while test $# != 0
26693 do
26694 case $1 in
26695 --*=?*)
26696 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26697 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26698 ac_shift=:
26699 ;;
26700 --*=)
26701 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26702 ac_optarg=
26703 ac_shift=:
26704 ;;
26705 *)
26706 ac_option=$1
26707 ac_optarg=$2
26708 ac_shift=shift
26709 ;;
26710 esac
26711
26712 case $ac_option in
26713 # Handling of the options.
26714 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26715 ac_cs_recheck=: ;;
26716 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26717 printf "%s\n" "$ac_cs_version"; exit ;;
26718 --config | --confi | --conf | --con | --co | --c )
26719 printf "%s\n" "$ac_cs_config"; exit ;;
26720 --debug | --debu | --deb | --de | --d | -d )
26721 debug=: ;;
26722 --file | --fil | --fi | --f )
26723 $ac_shift
26724 case $ac_optarg in
26725 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26726 '') as_fn_error $? "missing file argument" ;;
26727 esac
26728 as_fn_append CONFIG_FILES " '$ac_optarg'"
26729 ac_need_defaults=false;;
26730 --header | --heade | --head | --hea )
26731 $ac_shift
26732 case $ac_optarg in
26733 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26734 esac
26735 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26736 ac_need_defaults=false;;
26737 --he | --h)
26738 # Conflict between --help and --header
26739 as_fn_error $? "ambiguous option: \`$1'
26740 Try \`$0 --help' for more information.";;
26741 --help | --hel | -h )
26742 printf "%s\n" "$ac_cs_usage"; exit ;;
26743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26744 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26745 ac_cs_silent=: ;;
26746
26747 # This is an error.
26748 -*) as_fn_error $? "unrecognized option: \`$1'
26749 Try \`$0 --help' for more information." ;;
26750
26751 *) as_fn_append ac_config_targets " $1"
26752 ac_need_defaults=false ;;
26753
26754 esac
26755 shift
26756 done
26757
26758 ac_configure_extra_args=
26759
26760 if $ac_cs_silent; then
26761 exec 6>/dev/null
26762 ac_configure_extra_args="$ac_configure_extra_args --silent"
26763 fi
26764
26765 _ACEOF
26766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26767 if \$ac_cs_recheck; then
26768 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26769 shift
26770 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
26771 CONFIG_SHELL='$SHELL'
26772 export CONFIG_SHELL
26773 exec "\$@"
26774 fi
26775
26776 _ACEOF
26777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26778 exec 5>>config.log
26779 {
26780 echo
26781 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26782 ## Running $as_me. ##
26783 _ASBOX
26784 printf "%s\n" "$ac_log"
26785 } >&5
26786
26787 _ACEOF
26788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26789 #
26790 # INIT-COMMANDS
26791 #
26792
26793
26794 # The HP-UX ksh and POSIX shell print the target directory to stdout
26795 # if CDPATH is set.
26796 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26797
26798 sed_quote_subst='$sed_quote_subst'
26799 double_quote_subst='$double_quote_subst'
26800 delay_variable_subst='$delay_variable_subst'
26801 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26802 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26803 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26804 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26805 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26806 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26807 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26808 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26809 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26810 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26811 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26812 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26813 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26814 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26815 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26816 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26817 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26818 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26819 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26820 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26821 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26822 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26823 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26824 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26825 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26826 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26827 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26828 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26829 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26830 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26831 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26832 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26833 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26834 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26835 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26836 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26837 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26838 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
26839 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26840 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26841 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26842 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26843 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26844 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26845 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
26846 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26847 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26848 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26849 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26850 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26851 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26852 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26853 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26854 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26855 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26856 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26857 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26858 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26859 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26860 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26861 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26862 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
26863 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26864 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26865 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26866 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26867 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26868 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26869 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26870 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26871 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26872 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26873 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26874 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26875 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26876 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26877 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26878 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26879 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26880 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26881 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26882 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26883 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26884 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26885 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26886 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26887 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26888 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26889 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26890 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26891 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26892 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26893 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26894 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26895 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26896 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26897 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26898 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26899 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26900 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26901 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26902 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26903 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26904 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26905 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26906 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26907 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26908 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26909 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26910 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26911 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26912 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26913 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26914 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26915 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26916 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26917 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26918 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26919 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26920 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26921 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26922 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26923 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26924 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26925 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26926 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26927 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26928 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26929 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26930 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26931 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26932 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26933 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26934 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26935 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26936 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26937 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26938 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26939 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26940 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26941 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26942 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26943 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26944 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26945 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
26946 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26947 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
26948 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26949 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
26950 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26951 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
26952 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26953 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
26954 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26955 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
26956 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26957 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
26958 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26959 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
26960 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26961 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
26962 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26963 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
26964 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26965 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
26966 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26967 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
26968 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26969 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
26970 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26971 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26972 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26973 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26974 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26975 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
26976 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26977 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
26978 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26979 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
26980 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26981 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
26982 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26983 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
26984 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26985 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
26986 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26987 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
26988 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26989 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
26990 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26991 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
26992 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26993 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
26994 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26995 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26996 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26997 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
26998 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26999 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27000 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27001 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27002 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27003 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27004 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27005 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27006 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27007 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27008 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27009 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27010 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27011 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27012 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27013 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27014 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27015 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27016 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27017 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27018 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27019 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27020 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27021 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27022 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27023 postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27024 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27025 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27026 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27027 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27028 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27029 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27030 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27031 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27032 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27033 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27034 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27035 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27036 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27037 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27038 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27039 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27040 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27041
27042 LTCC='$LTCC'
27043 LTCFLAGS='$LTCFLAGS'
27044 compiler='$compiler_DEFAULT'
27045
27046 # A function that is used when there is no print builtin or printf.
27047 func_fallback_echo ()
27048 {
27049 eval 'cat <<_LTECHO_EOF
27050 \$1
27051 _LTECHO_EOF'
27052 }
27053
27054 # Quote evaled strings.
27055 for var in AS \
27056 DLLTOOL \
27057 OBJDUMP \
27058 SHELL \
27059 ECHO \
27060 PATH_SEPARATOR \
27061 SED \
27062 GREP \
27063 EGREP \
27064 FGREP \
27065 LD \
27066 NM \
27067 LN_S \
27068 lt_SP2NL \
27069 lt_NL2SP \
27070 reload_flag \
27071 FILECMD \
27072 deplibs_check_method \
27073 file_magic_cmd \
27074 file_magic_glob \
27075 want_nocaseglob \
27076 sharedlib_from_linklib_cmd \
27077 AR \
27078 archiver_list_spec \
27079 STRIP \
27080 RANLIB \
27081 CC \
27082 CFLAGS \
27083 compiler \
27084 lt_cv_sys_global_symbol_pipe \
27085 lt_cv_sys_global_symbol_to_cdecl \
27086 lt_cv_sys_global_symbol_to_import \
27087 lt_cv_sys_global_symbol_to_c_name_address \
27088 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27089 lt_cv_nm_interface \
27090 nm_file_list_spec \
27091 lt_cv_truncate_bin \
27092 lt_prog_compiler_no_builtin_flag \
27093 lt_prog_compiler_pic \
27094 lt_prog_compiler_wl \
27095 lt_prog_compiler_static \
27096 lt_cv_prog_compiler_c_o \
27097 need_locks \
27098 MANIFEST_TOOL \
27099 DSYMUTIL \
27100 NMEDIT \
27101 LIPO \
27102 OTOOL \
27103 OTOOL64 \
27104 shrext_cmds \
27105 export_dynamic_flag_spec \
27106 whole_archive_flag_spec \
27107 compiler_needs_object \
27108 with_gnu_ld \
27109 allow_undefined_flag \
27110 no_undefined_flag \
27111 hardcode_libdir_flag_spec \
27112 hardcode_libdir_separator \
27113 exclude_expsyms \
27114 include_expsyms \
27115 file_list_spec \
27116 variables_saved_for_relink \
27117 libname_spec \
27118 library_names_spec \
27119 soname_spec \
27120 install_override_mode \
27121 finish_eval \
27122 old_striplib \
27123 striplib \
27124 compiler_lib_search_dirs \
27125 predep_objects \
27126 postdep_objects \
27127 predeps \
27128 postdeps \
27129 compiler_lib_search_path \
27130 LD_FC \
27131 LD_CXX \
27132 reload_flag_FC \
27133 reload_flag_CXX \
27134 compiler_FC \
27135 compiler_CXX \
27136 lt_prog_compiler_no_builtin_flag_FC \
27137 lt_prog_compiler_no_builtin_flag_CXX \
27138 lt_prog_compiler_pic_FC \
27139 lt_prog_compiler_pic_CXX \
27140 lt_prog_compiler_wl_FC \
27141 lt_prog_compiler_wl_CXX \
27142 lt_prog_compiler_static_FC \
27143 lt_prog_compiler_static_CXX \
27144 lt_cv_prog_compiler_c_o_FC \
27145 lt_cv_prog_compiler_c_o_CXX \
27146 export_dynamic_flag_spec_FC \
27147 export_dynamic_flag_spec_CXX \
27148 whole_archive_flag_spec_FC \
27149 whole_archive_flag_spec_CXX \
27150 compiler_needs_object_FC \
27151 compiler_needs_object_CXX \
27152 with_gnu_ld_FC \
27153 with_gnu_ld_CXX \
27154 allow_undefined_flag_FC \
27155 allow_undefined_flag_CXX \
27156 no_undefined_flag_FC \
27157 no_undefined_flag_CXX \
27158 hardcode_libdir_flag_spec_FC \
27159 hardcode_libdir_flag_spec_CXX \
27160 hardcode_libdir_separator_FC \
27161 hardcode_libdir_separator_CXX \
27162 exclude_expsyms_FC \
27163 exclude_expsyms_CXX \
27164 include_expsyms_FC \
27165 include_expsyms_CXX \
27166 file_list_spec_FC \
27167 file_list_spec_CXX \
27168 compiler_lib_search_dirs_FC \
27169 compiler_lib_search_dirs_CXX \
27170 predep_objects_FC \
27171 predep_objects_CXX \
27172 postdep_objects_FC \
27173 postdep_objects_CXX \
27174 predeps_FC \
27175 predeps_CXX \
27176 postdeps_FC \
27177 postdeps_CXX \
27178 compiler_lib_search_path_FC \
27179 compiler_lib_search_path_CXX; do
27180 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27181 *[\\\\\\\`\\"\\\$]*)
27182 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27183 ;;
27184 *)
27185 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27186 ;;
27187 esac
27188 done
27189
27190 # Double-quote double-evaled strings.
27191 for var in reload_cmds \
27192 old_postinstall_cmds \
27193 old_postuninstall_cmds \
27194 old_archive_cmds \
27195 extract_expsyms_cmds \
27196 old_archive_from_new_cmds \
27197 old_archive_from_expsyms_cmds \
27198 archive_cmds \
27199 archive_expsym_cmds \
27200 module_cmds \
27201 module_expsym_cmds \
27202 export_symbols_cmds \
27203 prelink_cmds \
27204 postlink_cmds \
27205 postinstall_cmds \
27206 postuninstall_cmds \
27207 finish_cmds \
27208 sys_lib_search_path_spec \
27209 configure_time_dlsearch_path \
27210 configure_time_lt_sys_library_path \
27211 reload_cmds_FC \
27212 reload_cmds_CXX \
27213 old_archive_cmds_FC \
27214 old_archive_cmds_CXX \
27215 old_archive_from_new_cmds_FC \
27216 old_archive_from_new_cmds_CXX \
27217 old_archive_from_expsyms_cmds_FC \
27218 old_archive_from_expsyms_cmds_CXX \
27219 archive_cmds_FC \
27220 archive_cmds_CXX \
27221 archive_expsym_cmds_FC \
27222 archive_expsym_cmds_CXX \
27223 module_cmds_FC \
27224 module_cmds_CXX \
27225 module_expsym_cmds_FC \
27226 module_expsym_cmds_CXX \
27227 export_symbols_cmds_FC \
27228 export_symbols_cmds_CXX \
27229 prelink_cmds_FC \
27230 prelink_cmds_CXX \
27231 postlink_cmds_FC \
27232 postlink_cmds_CXX; do
27233 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27234 *[\\\\\\\`\\"\\\$]*)
27235 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27236 ;;
27237 *)
27238 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27239 ;;
27240 esac
27241 done
27242
27243 ac_aux_dir='$ac_aux_dir'
27244
27245 # See if we are running on zsh, and set the options that allow our
27246 # commands through without removal of \ escapes INIT.
27247 if test -n "\${ZSH_VERSION+set}"; then
27248 setopt NO_GLOB_SUBST
27249 fi
27250
27251
27252 PACKAGE='$PACKAGE'
27253 VERSION='$VERSION'
27254 RM='$RM'
27255 ofile='$ofile'
27256
27257
27258
27259
27260
27261
27262
27263 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27264
27265 _ACEOF
27266
27267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27268
27269 # Handling of arguments.
27270 for ac_config_target in $ac_config_targets
27271 do
27272 case $ac_config_target in
27273 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27274 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27275 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27276 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27277 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27278 "include/mps/Makefile") CONFIG_FILES="$CONFIG_FILES include/mps/Makefile" ;;
27279 "include/mps/private/Makefile") CONFIG_FILES="$CONFIG_FILES include/mps/private/Makefile" ;;
27280 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27281 "examples/C/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/Makefile" ;;
27282 "examples/fortran/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fortran/Makefile" ;;
27283 "examples/octave/Makefile") CONFIG_FILES="$CONFIG_FILES examples/octave/Makefile" ;;
27284 "examples/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES examples/matlab/Makefile" ;;
27285 "examples/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gtk/Makefile" ;;
27286 "examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/python/Makefile" ;;
27287 "examples/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES examples/python/tests/Makefile" ;;
27288 "examples/mandelbrot-solver/Makefile") CONFIG_FILES="$CONFIG_FILES examples/mandelbrot-solver/Makefile" ;;
27289 "examples/mandelbrot-solver/mandelbrot-solver.1") CONFIG_FILES="$CONFIG_FILES examples/mandelbrot-solver/mandelbrot-solver.1" ;;
27290 "examples/quadratic-solver/Makefile") CONFIG_FILES="$CONFIG_FILES examples/quadratic-solver/Makefile" ;;
27291 "examples/quadratic-solver/quadratic-solver.1") CONFIG_FILES="$CONFIG_FILES examples/quadratic-solver/quadratic-solver.1" ;;
27292 "include/mps/mt.h") CONFIG_FILES="$CONFIG_FILES include/mps/mt.h" ;;
27293 "include/mps/version.h") CONFIG_FILES="$CONFIG_FILES include/mps/version.h" ;;
27294 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27295 "src/mpsolve/Makefile") CONFIG_FILES="$CONFIG_FILES src/mpsolve/Makefile" ;;
27296 "src/mpsolve/mpsolve.1") CONFIG_FILES="$CONFIG_FILES src/mpsolve/mpsolve.1" ;;
27297 "src/libmps/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmps/Makefile" ;;
27298 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
27299 "src/xmpsolve/Makefile") CONFIG_FILES="$CONFIG_FILES src/xmpsolve/Makefile" ;;
27300 "src/xmpsolve/xmpsolve.desktop") CONFIG_FILES="$CONFIG_FILES src/xmpsolve/xmpsolve.desktop" ;;
27301 "src/xmpsolve/xmpsolve.1") CONFIG_FILES="$CONFIG_FILES src/xmpsolve/xmpsolve.1" ;;
27302 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27303 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27304 "mime/Makefile") CONFIG_FILES="$CONFIG_FILES mime/Makefile" ;;
27305
27306 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27307 esac
27308 done
27309
27310
27311 # If the user did not use the arguments to specify the items to instantiate,
27312 # then the envvar interface is used. Set only those that are not.
27313 # We use the long form for the default assignment because of an extremely
27314 # bizarre bug on SunOS 4.1.3.
27315 if $ac_need_defaults; then
27316 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
27317 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
27318 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
27319 fi
27320
27321 # Have a temporary directory for convenience. Make it in the build tree
27322 # simply because there is no reason against having it here, and in addition,
27323 # creating and moving files from /tmp can sometimes cause problems.
27324 # Hook for its removal unless debugging.
27325 # Note that there is a small window in which the directory will not be cleaned:
27326 # after its creation but before its name has been assigned to `$tmp'.
27327 $debug ||
27328 {
27329 tmp= ac_tmp=
27330 trap 'exit_status=$?
27331 : "${ac_tmp:=$tmp}"
27332 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27333 ' 0
27334 trap 'as_fn_exit 1' 1 2 13 15
27335 }
27336 # Create a (secure) tmp directory for tmp files.
27337
27338 {
27339 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27340 test -d "$tmp"
27341 } ||
27342 {
27343 tmp=./conf$$-$RANDOM
27344 (umask 077 && mkdir "$tmp")
27345 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27346 ac_tmp=$tmp
27347
27348 # Set up the scripts for CONFIG_FILES section.
27349 # No need to generate them if there are no CONFIG_FILES.
27350 # This happens for instance with `./config.status config.h'.
27351 if test -n "$CONFIG_FILES"; then
27352
27353
27354 ac_cr=`echo X | tr X '\015'`
27355 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27356 # But we know of no other shell where ac_cr would be empty at this
27357 # point, so we can use a bashism as a fallback.
27358 if test "x$ac_cr" = x; then
27359 eval ac_cr=\$\'\\r\'
27360 fi
27361 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27362 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27363 ac_cs_awk_cr='\\r'
27364 else
27365 ac_cs_awk_cr=$ac_cr
27366 fi
27367
27368 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27369 _ACEOF
27370
27371
27372 {
27373 echo "cat >conf$$subs.awk <<_ACEOF" &&
27374 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27375 echo "_ACEOF"
27376 } >conf$$subs.sh ||
27377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27378 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27379 ac_delim='%!_!# '
27380 for ac_last_try in false false false false false :; do
27381 . ./conf$$subs.sh ||
27382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27383
27384 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27385 if test $ac_delim_n = $ac_delim_num; then
27386 break
27387 elif $ac_last_try; then
27388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27389 else
27390 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27391 fi
27392 done
27393 rm -f conf$$subs.sh
27394
27395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27396 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27397 _ACEOF
27398 sed -n '
27399 h
27400 s/^/S["/; s/!.*/"]=/
27401 p
27402 g
27403 s/^[^!]*!//
27404 :repl
27405 t repl
27406 s/'"$ac_delim"'$//
27407 t delim
27408 :nl
27409 h
27410 s/\(.\{148\}\)..*/\1/
27411 t more1
27412 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27413 p
27414 n
27415 b repl
27416 :more1
27417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27418 p
27419 g
27420 s/.\{148\}//
27421 t nl
27422 :delim
27423 h
27424 s/\(.\{148\}\)..*/\1/
27425 t more2
27426 s/["\\]/\\&/g; s/^/"/; s/$/"/
27427 p
27428 b
27429 :more2
27430 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27431 p
27432 g
27433 s/.\{148\}//
27434 t delim
27435 ' <conf$$subs.awk | sed '
27436 /^[^""]/{
27437 N
27438 s/\n//
27439 }
27440 ' >>$CONFIG_STATUS || ac_write_fail=1
27441 rm -f conf$$subs.awk
27442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27443 _ACAWK
27444 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27445 for (key in S) S_is_set[key] = 1
27446 FS = ""
27447
27448 }
27449 {
27450 line = $ 0
27451 nfields = split(line, field, "@")
27452 substed = 0
27453 len = length(field[1])
27454 for (i = 2; i < nfields; i++) {
27455 key = field[i]
27456 keylen = length(key)
27457 if (S_is_set[key]) {
27458 value = S[key]
27459 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27460 len += length(value) + length(field[++i])
27461 substed = 1
27462 } else
27463 len += 1 + keylen
27464 }
27465
27466 print line
27467 }
27468
27469 _ACAWK
27470 _ACEOF
27471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27472 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27473 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27474 else
27475 cat
27476 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27477 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27478 _ACEOF
27479
27480 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27481 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27482 # trailing colons and then remove the whole line if VPATH becomes empty
27483 # (actually we leave an empty line to preserve line numbers).
27484 if test "x$srcdir" = x.; then
27485 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27486 h
27487 s///
27488 s/^/:/
27489 s/[ ]*$/:/
27490 s/:\$(srcdir):/:/g
27491 s/:\${srcdir}:/:/g
27492 s/:@srcdir@:/:/g
27493 s/^:*//
27494 s/:*$//
27495 x
27496 s/\(=[ ]*\).*/\1/
27497 G
27498 s/\n//
27499 s/^[^=]*=[ ]*$//
27500 }'
27501 fi
27502
27503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27504 fi # test -n "$CONFIG_FILES"
27505
27506 # Set up the scripts for CONFIG_HEADERS section.
27507 # No need to generate them if there are no CONFIG_HEADERS.
27508 # This happens for instance with `./config.status Makefile'.
27509 if test -n "$CONFIG_HEADERS"; then
27510 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27511 BEGIN {
27512 _ACEOF
27513
27514 # Transform confdefs.h into an awk script `defines.awk', embedded as
27515 # here-document in config.status, that substitutes the proper values into
27516 # config.h.in to produce config.h.
27517
27518 # Create a delimiter string that does not exist in confdefs.h, to ease
27519 # handling of long lines.
27520 ac_delim='%!_!# '
27521 for ac_last_try in false false :; do
27522 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27523 if test -z "$ac_tt"; then
27524 break
27525 elif $ac_last_try; then
27526 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27527 else
27528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27529 fi
27530 done
27531
27532 # For the awk script, D is an array of macro values keyed by name,
27533 # likewise P contains macro parameters if any. Preserve backslash
27534 # newline sequences.
27535
27536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27537 sed -n '
27538 s/.\{148\}/&'"$ac_delim"'/g
27539 t rset
27540 :rset
27541 s/^[ ]*#[ ]*define[ ][ ]*/ /
27542 t def
27543 d
27544 :def
27545 s/\\$//
27546 t bsnl
27547 s/["\\]/\\&/g
27548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27549 D["\1"]=" \3"/p
27550 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27551 d
27552 :bsnl
27553 s/["\\]/\\&/g
27554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27555 D["\1"]=" \3\\\\\\n"\\/p
27556 t cont
27557 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27558 t cont
27559 d
27560 :cont
27561 n
27562 s/.\{148\}/&'"$ac_delim"'/g
27563 t clear
27564 :clear
27565 s/\\$//
27566 t bsnlc
27567 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27568 d
27569 :bsnlc
27570 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27571 b cont
27572 ' <confdefs.h | sed '
27573 s/'"$ac_delim"'/"\\\
27574 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27575
27576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27577 for (key in D) D_is_set[key] = 1
27578 FS = ""
27579 }
27580 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27581 line = \$ 0
27582 split(line, arg, " ")
27583 if (arg[1] == "#") {
27584 defundef = arg[2]
27585 mac1 = arg[3]
27586 } else {
27587 defundef = substr(arg[1], 2)
27588 mac1 = arg[2]
27589 }
27590 split(mac1, mac2, "(") #)
27591 macro = mac2[1]
27592 prefix = substr(line, 1, index(line, defundef) - 1)
27593 if (D_is_set[macro]) {
27594 # Preserve the white space surrounding the "#".
27595 print prefix "define", macro P[macro] D[macro]
27596 next
27597 } else {
27598 # Replace #undef with comments. This is necessary, for example,
27599 # in the case of _POSIX_SOURCE, which is predefined and required
27600 # on some systems where configure will not decide to define it.
27601 if (defundef == "undef") {
27602 print "/*", prefix defundef, macro, "*/"
27603 next
27604 }
27605 }
27606 }
27607 { print }
27608 _ACAWK
27609 _ACEOF
27610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27611 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27612 fi # test -n "$CONFIG_HEADERS"
27613
27614
27615 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27616 shift
27617 for ac_tag
27618 do
27619 case $ac_tag in
27620 :[FHLC]) ac_mode=$ac_tag; continue;;
27621 esac
27622 case $ac_mode$ac_tag in
27623 :[FHL]*:*);;
27624 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27625 :[FH]-) ac_tag=-:-;;
27626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27627 esac
27628 ac_save_IFS=$IFS
27629 IFS=:
27630 set x $ac_tag
27631 IFS=$ac_save_IFS
27632 shift
27633 ac_file=$1
27634 shift
27635
27636 case $ac_mode in
27637 :L) ac_source=$1;;
27638 :[FH])
27639 ac_file_inputs=
27640 for ac_f
27641 do
27642 case $ac_f in
27643 -) ac_f="$ac_tmp/stdin";;
27644 *) # Look for the file first in the build tree, then in the source tree
27645 # (if the path is not absolute). The absolute path cannot be DOS-style,
27646 # because $ac_f cannot contain `:'.
27647 test -f "$ac_f" ||
27648 case $ac_f in
27649 [\\/$]*) false;;
27650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27651 esac ||
27652 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27653 esac
27654 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27655 as_fn_append ac_file_inputs " '$ac_f'"
27656 done
27657
27658 # Let's still pretend it is `configure' which instantiates (i.e., don't
27659 # use $as_me), people would be surprised to read:
27660 # /* config.h. Generated by config.status. */
27661 configure_input='Generated from '`
27662 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27663 `' by configure.'
27664 if test x"$ac_file" != x-; then
27665 configure_input="$ac_file. $configure_input"
27666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27667 printf "%s\n" "$as_me: creating $ac_file" >&6;}
27668 fi
27669 # Neutralize special characters interpreted by sed in replacement strings.
27670 case $configure_input in #(
27671 *\&* | *\|* | *\\* )
27672 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
27673 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27674 *) ac_sed_conf_input=$configure_input;;
27675 esac
27676
27677 case $ac_tag in
27678 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27680 esac
27681 ;;
27682 esac
27683
27684 ac_dir=`$as_dirname -- "$ac_file" ||
27685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27686 X"$ac_file" : 'X\(//\)[^/]' \| \
27687 X"$ac_file" : 'X\(//\)$' \| \
27688 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27689 printf "%s\n" X"$ac_file" |
27690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27691 s//\1/
27692 q
27693 }
27694 /^X\(\/\/\)[^/].*/{
27695 s//\1/
27696 q
27697 }
27698 /^X\(\/\/\)$/{
27699 s//\1/
27700 q
27701 }
27702 /^X\(\/\).*/{
27703 s//\1/
27704 q
27705 }
27706 s/.*/./; q'`
27707 as_dir="$ac_dir"; as_fn_mkdir_p
27708 ac_builddir=.
27709
27710 case "$ac_dir" in
27711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27712 *)
27713 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
27714 # A ".." for each directory in $ac_dir_suffix.
27715 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27716 case $ac_top_builddir_sub in
27717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27719 esac ;;
27720 esac
27721 ac_abs_top_builddir=$ac_pwd
27722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27723 # for backward compatibility:
27724 ac_top_builddir=$ac_top_build_prefix
27725
27726 case $srcdir in
27727 .) # We are building in place.
27728 ac_srcdir=.
27729 ac_top_srcdir=$ac_top_builddir_sub
27730 ac_abs_top_srcdir=$ac_pwd ;;
27731 [\\/]* | ?:[\\/]* ) # Absolute name.
27732 ac_srcdir=$srcdir$ac_dir_suffix;
27733 ac_top_srcdir=$srcdir
27734 ac_abs_top_srcdir=$srcdir ;;
27735 *) # Relative name.
27736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27737 ac_top_srcdir=$ac_top_build_prefix$srcdir
27738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27739 esac
27740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27741
27742
27743 case $ac_mode in
27744 :F)
27745 #
27746 # CONFIG_FILE
27747 #
27748
27749 case $INSTALL in
27750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27751 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27752 esac
27753 ac_MKDIR_P=$MKDIR_P
27754 case $MKDIR_P in
27755 [\\/$]* | ?:[\\/]* ) ;;
27756 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27757 esac
27758 _ACEOF
27759
27760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27761 # If the template does not know about datarootdir, expand it.
27762 # FIXME: This hack should be removed a few years after 2.60.
27763 ac_datarootdir_hack=; ac_datarootdir_seen=
27764 ac_sed_dataroot='
27765 /datarootdir/ {
27766 p
27767 q
27768 }
27769 /@datadir@/p
27770 /@docdir@/p
27771 /@infodir@/p
27772 /@localedir@/p
27773 /@mandir@/p'
27774 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27775 *datarootdir*) ac_datarootdir_seen=yes;;
27776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27778 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27779 _ACEOF
27780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27781 ac_datarootdir_hack='
27782 s&@datadir@&$datadir&g
27783 s&@docdir@&$docdir&g
27784 s&@infodir@&$infodir&g
27785 s&@localedir@&$localedir&g
27786 s&@mandir@&$mandir&g
27787 s&\\\${datarootdir}&$datarootdir&g' ;;
27788 esac
27789 _ACEOF
27790
27791 # Neutralize VPATH when `$srcdir' = `.'.
27792 # Shell code in configure.ac might set extrasub.
27793 # FIXME: do we really want to maintain this feature?
27794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27795 ac_sed_extra="$ac_vpsub
27796 $extrasub
27797 _ACEOF
27798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27799 :t
27800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27801 s|@configure_input@|$ac_sed_conf_input|;t t
27802 s&@top_builddir@&$ac_top_builddir_sub&;t t
27803 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27804 s&@srcdir@&$ac_srcdir&;t t
27805 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27806 s&@top_srcdir@&$ac_top_srcdir&;t t
27807 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27808 s&@builddir@&$ac_builddir&;t t
27809 s&@abs_builddir@&$ac_abs_builddir&;t t
27810 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27811 s&@INSTALL@&$ac_INSTALL&;t t
27812 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27813 $ac_datarootdir_hack
27814 "
27815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27816 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27817
27818 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27819 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27820 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27821 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27823 which seems to be undefined. Please make sure it is defined" >&5
27824 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27825 which seems to be undefined. Please make sure it is defined" >&2;}
27826
27827 rm -f "$ac_tmp/stdin"
27828 case $ac_file in
27829 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27830 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27831 esac \
27832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27833 ;;
27834 :H)
27835 #
27836 # CONFIG_HEADER
27837 #
27838 if test x"$ac_file" != x-; then
27839 {
27840 printf "%s\n" "/* $configure_input */" >&1 \
27841 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27842 } >"$ac_tmp/config.h" \
27843 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27844 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27846 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
27847 else
27848 rm -f "$ac_file"
27849 mv "$ac_tmp/config.h" "$ac_file" \
27850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27851 fi
27852 else
27853 printf "%s\n" "/* $configure_input */" >&1 \
27854 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27855 || as_fn_error $? "could not create -" "$LINENO" 5
27856 fi
27857 # Compute "$ac_file"'s index in $config_headers.
27858 _am_arg="$ac_file"
27859 _am_stamp_count=1
27860 for _am_header in $config_headers :; do
27861 case $_am_header in
27862 $_am_arg | $_am_arg:* )
27863 break ;;
27864 * )
27865 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27866 esac
27867 done
27868 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27869 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27870 X"$_am_arg" : 'X\(//\)[^/]' \| \
27871 X"$_am_arg" : 'X\(//\)$' \| \
27872 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27873 printf "%s\n" X"$_am_arg" |
27874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27875 s//\1/
27876 q
27877 }
27878 /^X\(\/\/\)[^/].*/{
27879 s//\1/
27880 q
27881 }
27882 /^X\(\/\/\)$/{
27883 s//\1/
27884 q
27885 }
27886 /^X\(\/\).*/{
27887 s//\1/
27888 q
27889 }
27890 s/.*/./; q'`/stamp-h$_am_stamp_count
27891 ;;
27892
27893 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27894 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
27895 ;;
27896 esac
27897
27898
27899 case $ac_file$ac_mode in
27900 "libtool":C)
27901
27902 # See if we are running on zsh, and set the options that allow our
27903 # commands through without removal of \ escapes.
27904 if test -n "${ZSH_VERSION+set}"; then
27905 setopt NO_GLOB_SUBST
27906 fi
27907
27908 cfgfile=${ofile}T
27909 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27910 $RM "$cfgfile"
27911
27912 cat <<_LT_EOF >> "$cfgfile"
27913 #! $SHELL
27914 # Generated automatically by $as_me ($PACKAGE) $VERSION
27915 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27916
27917 # Provide generalized library-building support services.
27918 # Written by Gordon Matzigkeit, 1996
27919
27920 # Copyright (C) 2014 Free Software Foundation, Inc.
27921 # This is free software; see the source for copying conditions. There is NO
27922 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27923
27924 # GNU Libtool is free software; you can redistribute it and/or modify
27925 # it under the terms of the GNU General Public License as published by
27926 # the Free Software Foundation; either version 2 of of the License, or
27927 # (at your option) any later version.
27928 #
27929 # As a special exception to the GNU General Public License, if you
27930 # distribute this file as part of a program or library that is built
27931 # using GNU Libtool, you may include this file under the same
27932 # distribution terms that you use for the rest of that program.
27933 #
27934 # GNU Libtool is distributed in the hope that it will be useful, but
27935 # WITHOUT ANY WARRANTY; without even the implied warranty of
27936 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27937 # GNU General Public License for more details.
27938 #
27939 # You should have received a copy of the GNU General Public License
27940 # along with this program. If not, see <http://www.gnu.org/licenses/>.
27941
27942
27943 # The names of the tagged configurations supported by this script.
27944 available_tags='FC CXX '
27945
27946 # Configured defaults for sys_lib_dlsearch_path munging.
27947 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
27948
27949 # ### BEGIN LIBTOOL CONFIG
27950
27951 # Which release of libtool.m4 was used?
27952 macro_version=$macro_version
27953 macro_revision=$macro_revision
27954
27955 # Assembler program.
27956 AS=$lt_AS
27957
27958 # DLL creation program.
27959 DLLTOOL=$lt_DLLTOOL
27960
27961 # Object dumper program.
27962 OBJDUMP=$lt_OBJDUMP
27963
27964 # Whether or not to build shared libraries.
27965 build_libtool_libs=$enable_shared
27966
27967 # Whether or not to build static libraries.
27968 build_old_libs=$enable_static
27969
27970 # What type of objects to build.
27971 pic_mode=$pic_mode
27972
27973 # Whether or not to optimize for fast installation.
27974 fast_install=$enable_fast_install
27975
27976 # Shared archive member basename,for filename based shared library versioning on AIX.
27977 shared_archive_member_spec=$shared_archive_member_spec
27978
27979 # Shell to use when invoking shell scripts.
27980 SHELL=$lt_SHELL
27981
27982 # An echo program that protects backslashes.
27983 ECHO=$lt_ECHO
27984
27985 # The PATH separator for the build system.
27986 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27987
27988 # The host system.
27989 host_alias=$host_alias
27990 host=$host
27991 host_os=$host_os
27992
27993 # The build system.
27994 build_alias=$build_alias
27995 build=$build
27996 build_os=$build_os
27997
27998 # A sed program that does not truncate output.
27999 SED=$lt_SED
28000
28001 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28002 Xsed="\$SED -e 1s/^X//"
28003
28004 # A grep program that handles long lines.
28005 GREP=$lt_GREP
28006
28007 # An ERE matcher.
28008 EGREP=$lt_EGREP
28009
28010 # A literal string matcher.
28011 FGREP=$lt_FGREP
28012
28013 # A BSD- or MS-compatible name lister.
28014 NM=$lt_NM
28015
28016 # Whether we need soft or hard links.
28017 LN_S=$lt_LN_S
28018
28019 # What is the maximum length of a command?
28020 max_cmd_len=$max_cmd_len
28021
28022 # Object file suffix (normally "o").
28023 objext=$ac_objext
28024
28025 # Executable file suffix (normally "").
28026 exeext=$exeext
28027
28028 # whether the shell understands "unset".
28029 lt_unset=$lt_unset
28030
28031 # turn spaces into newlines.
28032 SP2NL=$lt_lt_SP2NL
28033
28034 # turn newlines into spaces.
28035 NL2SP=$lt_lt_NL2SP
28036
28037 # convert \$build file names to \$host format.
28038 to_host_file_cmd=$lt_cv_to_host_file_cmd
28039
28040 # convert \$build files to toolchain format.
28041 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28042
28043 # A file(cmd) program that detects file types.
28044 FILECMD=$lt_FILECMD
28045
28046 # Method to check whether dependent libraries are shared objects.
28047 deplibs_check_method=$lt_deplibs_check_method
28048
28049 # Command to use when deplibs_check_method = "file_magic".
28050 file_magic_cmd=$lt_file_magic_cmd
28051
28052 # How to find potential files when deplibs_check_method = "file_magic".
28053 file_magic_glob=$lt_file_magic_glob
28054
28055 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28056 want_nocaseglob=$lt_want_nocaseglob
28057
28058 # Command to associate shared and link libraries.
28059 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28060
28061 # The archiver.
28062 AR=$lt_AR
28063
28064 # Flags to create an archive (by configure).
28065 lt_ar_flags=$lt_ar_flags
28066
28067 # Flags to create an archive.
28068 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
28069
28070 # How to feed a file listing to the archiver.
28071 archiver_list_spec=$lt_archiver_list_spec
28072
28073 # A symbol stripping program.
28074 STRIP=$lt_STRIP
28075
28076 # Commands used to install an old-style archive.
28077 RANLIB=$lt_RANLIB
28078 old_postinstall_cmds=$lt_old_postinstall_cmds
28079 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28080
28081 # Whether to use a lock for old archive extraction.
28082 lock_old_archive_extraction=$lock_old_archive_extraction
28083
28084 # A C compiler.
28085 LTCC=$lt_CC
28086
28087 # LTCC compiler flags.
28088 LTCFLAGS=$lt_CFLAGS
28089
28090 # Take the output of nm and produce a listing of raw symbols and C names.
28091 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28092
28093 # Transform the output of nm in a proper C declaration.
28094 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28095
28096 # Transform the output of nm into a list of symbols to manually relocate.
28097 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28098
28099 # Transform the output of nm in a C name address pair.
28100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28101
28102 # Transform the output of nm in a C name address pair when lib prefix is needed.
28103 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28104
28105 # The name lister interface.
28106 nm_interface=$lt_lt_cv_nm_interface
28107
28108 # Specify filename containing input files for \$NM.
28109 nm_file_list_spec=$lt_nm_file_list_spec
28110
28111 # The root where to search for dependent libraries,and where our libraries should be installed.
28112 lt_sysroot=$lt_sysroot
28113
28114 # Command to truncate a binary pipe.
28115 lt_truncate_bin=$lt_lt_cv_truncate_bin
28116
28117 # The name of the directory that contains temporary libtool files.
28118 objdir=$objdir
28119
28120 # Used to examine libraries when file_magic_cmd begins with "file".
28121 MAGIC_CMD=$MAGIC_CMD
28122
28123 # Must we lock files when doing compilation?
28124 need_locks=$lt_need_locks
28125
28126 # Manifest tool.
28127 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28128
28129 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28130 DSYMUTIL=$lt_DSYMUTIL
28131
28132 # Tool to change global to local symbols on Mac OS X.
28133 NMEDIT=$lt_NMEDIT
28134
28135 # Tool to manipulate fat objects and archives on Mac OS X.
28136 LIPO=$lt_LIPO
28137
28138 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28139 OTOOL=$lt_OTOOL
28140
28141 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28142 OTOOL64=$lt_OTOOL64
28143
28144 # Old archive suffix (normally "a").
28145 libext=$libext
28146
28147 # Shared library suffix (normally ".so").
28148 shrext_cmds=$lt_shrext_cmds
28149
28150 # The commands to extract the exported symbol list from a shared archive.
28151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28152
28153 # Variables whose values should be saved in libtool wrapper scripts and
28154 # restored at link time.
28155 variables_saved_for_relink=$lt_variables_saved_for_relink
28156
28157 # Do we need the "lib" prefix for modules?
28158 need_lib_prefix=$need_lib_prefix
28159
28160 # Do we need a version for libraries?
28161 need_version=$need_version
28162
28163 # Library versioning type.
28164 version_type=$version_type
28165
28166 # Shared library runtime path variable.
28167 runpath_var=$runpath_var
28168
28169 # Shared library path variable.
28170 shlibpath_var=$shlibpath_var
28171
28172 # Is shlibpath searched before the hard-coded library search path?
28173 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28174
28175 # Format of library name prefix.
28176 libname_spec=$lt_libname_spec
28177
28178 # List of archive names. First name is the real one, the rest are links.
28179 # The last name is the one that the linker finds with -lNAME
28180 library_names_spec=$lt_library_names_spec
28181
28182 # The coded name of the library, if different from the real name.
28183 soname_spec=$lt_soname_spec
28184
28185 # Permission mode override for installation of shared libraries.
28186 install_override_mode=$lt_install_override_mode
28187
28188 # Command to use after installation of a shared archive.
28189 postinstall_cmds=$lt_postinstall_cmds
28190
28191 # Command to use after uninstallation of a shared archive.
28192 postuninstall_cmds=$lt_postuninstall_cmds
28193
28194 # Commands used to finish a libtool library installation in a directory.
28195 finish_cmds=$lt_finish_cmds
28196
28197 # As "finish_cmds", except a single script fragment to be evaled but
28198 # not shown.
28199 finish_eval=$lt_finish_eval
28200
28201 # Whether we should hardcode library paths into libraries.
28202 hardcode_into_libs=$hardcode_into_libs
28203
28204 # Compile-time system search path for libraries.
28205 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28206
28207 # Detected run-time system search path for libraries.
28208 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28209
28210 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28211 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28212
28213 # Whether dlopen is supported.
28214 dlopen_support=$enable_dlopen
28215
28216 # Whether dlopen of programs is supported.
28217 dlopen_self=$enable_dlopen_self
28218
28219 # Whether dlopen of statically linked programs is supported.
28220 dlopen_self_static=$enable_dlopen_self_static
28221
28222 # Commands to strip libraries.
28223 old_striplib=$lt_old_striplib
28224 striplib=$lt_striplib
28225
28226
28227 # The linker used to build libraries.
28228 LD=$lt_LD
28229
28230 # How to create reloadable object files.
28231 reload_flag=$lt_reload_flag
28232 reload_cmds=$lt_reload_cmds
28233
28234 # Commands used to build an old-style archive.
28235 old_archive_cmds=$lt_old_archive_cmds
28236
28237 # A language specific compiler.
28238 CC=$lt_compiler
28239
28240 # Is the compiler the GNU compiler?
28241 with_gcc=$GCC
28242
28243 # Compiler flag to turn off builtin functions.
28244 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28245
28246 # Additional compiler flags for building library objects.
28247 pic_flag=$lt_lt_prog_compiler_pic
28248
28249 # How to pass a linker flag through the compiler.
28250 wl=$lt_lt_prog_compiler_wl
28251
28252 # Compiler flag to prevent dynamic linking.
28253 link_static_flag=$lt_lt_prog_compiler_static
28254
28255 # Does compiler simultaneously support -c and -o options?
28256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28257
28258 # Whether or not to add -lc for building shared libraries.
28259 build_libtool_need_lc=$archive_cmds_need_lc
28260
28261 # Whether or not to disallow shared libs when runtime libs are static.
28262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28263
28264 # Compiler flag to allow reflexive dlopens.
28265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28266
28267 # Compiler flag to generate shared objects directly from archives.
28268 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28269
28270 # Whether the compiler copes with passing no objects directly.
28271 compiler_needs_object=$lt_compiler_needs_object
28272
28273 # Create an old-style archive from a shared archive.
28274 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28275
28276 # Create a temporary old-style archive to link instead of a shared archive.
28277 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28278
28279 # Commands used to build a shared archive.
28280 archive_cmds=$lt_archive_cmds
28281 archive_expsym_cmds=$lt_archive_expsym_cmds
28282
28283 # Commands used to build a loadable module if different from building
28284 # a shared archive.
28285 module_cmds=$lt_module_cmds
28286 module_expsym_cmds=$lt_module_expsym_cmds
28287
28288 # Whether we are building with GNU ld or not.
28289 with_gnu_ld=$lt_with_gnu_ld
28290
28291 # Flag that allows shared libraries with undefined symbols to be built.
28292 allow_undefined_flag=$lt_allow_undefined_flag
28293
28294 # Flag that enforces no undefined symbols.
28295 no_undefined_flag=$lt_no_undefined_flag
28296
28297 # Flag to hardcode \$libdir into a binary during linking.
28298 # This must work even if \$libdir does not exist
28299 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28300
28301 # Whether we need a single "-rpath" flag with a separated argument.
28302 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28303
28304 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28305 # DIR into the resulting binary.
28306 hardcode_direct=$hardcode_direct
28307
28308 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28309 # DIR into the resulting binary and the resulting library dependency is
28310 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28311 # library is relocated.
28312 hardcode_direct_absolute=$hardcode_direct_absolute
28313
28314 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28315 # into the resulting binary.
28316 hardcode_minus_L=$hardcode_minus_L
28317
28318 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28319 # into the resulting binary.
28320 hardcode_shlibpath_var=$hardcode_shlibpath_var
28321
28322 # Set to "yes" if building a shared library automatically hardcodes DIR
28323 # into the library and all subsequent libraries and executables linked
28324 # against it.
28325 hardcode_automatic=$hardcode_automatic
28326
28327 # Set to yes if linker adds runtime paths of dependent libraries
28328 # to runtime path list.
28329 inherit_rpath=$inherit_rpath
28330
28331 # Whether libtool must link a program against all its dependency libraries.
28332 link_all_deplibs=$link_all_deplibs
28333
28334 # Set to "yes" if exported symbols are required.
28335 always_export_symbols=$always_export_symbols
28336
28337 # The commands to list exported symbols.
28338 export_symbols_cmds=$lt_export_symbols_cmds
28339
28340 # Symbols that should not be listed in the preloaded symbols.
28341 exclude_expsyms=$lt_exclude_expsyms
28342
28343 # Symbols that must always be exported.
28344 include_expsyms=$lt_include_expsyms
28345
28346 # Commands necessary for linking programs (against libraries) with templates.
28347 prelink_cmds=$lt_prelink_cmds
28348
28349 # Commands necessary for finishing linking programs.
28350 postlink_cmds=$lt_postlink_cmds
28351
28352 # Specify filename containing input files.
28353 file_list_spec=$lt_file_list_spec
28354
28355 # How to hardcode a shared library path into an executable.
28356 hardcode_action=$hardcode_action
28357
28358 # The directories searched by this compiler when creating a shared library.
28359 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28360
28361 # Dependencies to place before and after the objects being linked to
28362 # create a shared library.
28363 predep_objects=$lt_predep_objects
28364 postdep_objects=$lt_postdep_objects
28365 predeps=$lt_predeps
28366 postdeps=$lt_postdeps
28367
28368 # The library search path used internally by the compiler when linking
28369 # a shared library.
28370 compiler_lib_search_path=$lt_compiler_lib_search_path
28371
28372 # ### END LIBTOOL CONFIG
28373
28374 _LT_EOF
28375
28376 cat <<'_LT_EOF' >> "$cfgfile"
28377
28378 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28379
28380 # func_munge_path_list VARIABLE PATH
28381 # -----------------------------------
28382 # VARIABLE is name of variable containing _space_ separated list of
28383 # directories to be munged by the contents of PATH, which is string
28384 # having a format:
28385 # "DIR[:DIR]:"
28386 # string "DIR[ DIR]" will be prepended to VARIABLE
28387 # ":DIR[:DIR]"
28388 # string "DIR[ DIR]" will be appended to VARIABLE
28389 # "DIRP[:DIRP]::[DIRA:]DIRA"
28390 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28391 # "DIRA[ DIRA]" will be appended to VARIABLE
28392 # "DIR[:DIR]"
28393 # VARIABLE will be replaced by "DIR[ DIR]"
28394 func_munge_path_list ()
28395 {
28396 case x$2 in
28397 x)
28398 ;;
28399 *:)
28400 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28401 ;;
28402 x:*)
28403 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28404 ;;
28405 *::*)
28406 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28407 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28408 ;;
28409 *)
28410 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28411 ;;
28412 esac
28413 }
28414
28415
28416 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28417 func_cc_basename ()
28418 {
28419 for cc_temp in $*""; do
28420 case $cc_temp in
28421 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28422 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28423 \-*) ;;
28424 *) break;;
28425 esac
28426 done
28427 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28428 }
28429
28430
28431 # ### END FUNCTIONS SHARED WITH CONFIGURE
28432
28433 _LT_EOF
28434
28435 case $host_os in
28436 aix3*)
28437 cat <<\_LT_EOF >> "$cfgfile"
28438 # AIX sometimes has problems with the GCC collect2 program. For some
28439 # reason, if we set the COLLECT_NAMES environment variable, the problems
28440 # vanish in a puff of smoke.
28441 if test set != "${COLLECT_NAMES+set}"; then
28442 COLLECT_NAMES=
28443 export COLLECT_NAMES
28444 fi
28445 _LT_EOF
28446 ;;
28447 esac
28448
28449
28450
28451 ltmain=$ac_aux_dir/ltmain.sh
28452
28453
28454 # We use sed instead of cat because bash on DJGPP gets confused if
28455 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28456 # text mode, it properly converts lines to CR/LF. This bash problem
28457 # is reportedly fixed, but why not run on old versions too?
28458 $SED '$q' "$ltmain" >> "$cfgfile" \
28459 || (rm -f "$cfgfile"; exit 1)
28460
28461 mv -f "$cfgfile" "$ofile" ||
28462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28463 chmod +x "$ofile"
28464
28465
28466 cat <<_LT_EOF >> "$ofile"
28467
28468 # ### BEGIN LIBTOOL TAG CONFIG: FC
28469
28470 # The linker used to build libraries.
28471 LD=$lt_LD_FC
28472
28473 # How to create reloadable object files.
28474 reload_flag=$lt_reload_flag_FC
28475 reload_cmds=$lt_reload_cmds_FC
28476
28477 # Commands used to build an old-style archive.
28478 old_archive_cmds=$lt_old_archive_cmds_FC
28479
28480 # A language specific compiler.
28481 CC=$lt_compiler_FC
28482
28483 # Is the compiler the GNU compiler?
28484 with_gcc=$GCC_FC
28485
28486 # Compiler flag to turn off builtin functions.
28487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28488
28489 # Additional compiler flags for building library objects.
28490 pic_flag=$lt_lt_prog_compiler_pic_FC
28491
28492 # How to pass a linker flag through the compiler.
28493 wl=$lt_lt_prog_compiler_wl_FC
28494
28495 # Compiler flag to prevent dynamic linking.
28496 link_static_flag=$lt_lt_prog_compiler_static_FC
28497
28498 # Does compiler simultaneously support -c and -o options?
28499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28500
28501 # Whether or not to add -lc for building shared libraries.
28502 build_libtool_need_lc=$archive_cmds_need_lc_FC
28503
28504 # Whether or not to disallow shared libs when runtime libs are static.
28505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28506
28507 # Compiler flag to allow reflexive dlopens.
28508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28509
28510 # Compiler flag to generate shared objects directly from archives.
28511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28512
28513 # Whether the compiler copes with passing no objects directly.
28514 compiler_needs_object=$lt_compiler_needs_object_FC
28515
28516 # Create an old-style archive from a shared archive.
28517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
28518
28519 # Create a temporary old-style archive to link instead of a shared archive.
28520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
28521
28522 # Commands used to build a shared archive.
28523 archive_cmds=$lt_archive_cmds_FC
28524 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
28525
28526 # Commands used to build a loadable module if different from building
28527 # a shared archive.
28528 module_cmds=$lt_module_cmds_FC
28529 module_expsym_cmds=$lt_module_expsym_cmds_FC
28530
28531 # Whether we are building with GNU ld or not.
28532 with_gnu_ld=$lt_with_gnu_ld_FC
28533
28534 # Flag that allows shared libraries with undefined symbols to be built.
28535 allow_undefined_flag=$lt_allow_undefined_flag_FC
28536
28537 # Flag that enforces no undefined symbols.
28538 no_undefined_flag=$lt_no_undefined_flag_FC
28539
28540 # Flag to hardcode \$libdir into a binary during linking.
28541 # This must work even if \$libdir does not exist
28542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
28543
28544 # Whether we need a single "-rpath" flag with a separated argument.
28545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
28546
28547 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28548 # DIR into the resulting binary.
28549 hardcode_direct=$hardcode_direct_FC
28550
28551 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28552 # DIR into the resulting binary and the resulting library dependency is
28553 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28554 # library is relocated.
28555 hardcode_direct_absolute=$hardcode_direct_absolute_FC
28556
28557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28558 # into the resulting binary.
28559 hardcode_minus_L=$hardcode_minus_L_FC
28560
28561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28562 # into the resulting binary.
28563 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
28564
28565 # Set to "yes" if building a shared library automatically hardcodes DIR
28566 # into the library and all subsequent libraries and executables linked
28567 # against it.
28568 hardcode_automatic=$hardcode_automatic_FC
28569
28570 # Set to yes if linker adds runtime paths of dependent libraries
28571 # to runtime path list.
28572 inherit_rpath=$inherit_rpath_FC
28573
28574 # Whether libtool must link a program against all its dependency libraries.
28575 link_all_deplibs=$link_all_deplibs_FC
28576
28577 # Set to "yes" if exported symbols are required.
28578 always_export_symbols=$always_export_symbols_FC
28579
28580 # The commands to list exported symbols.
28581 export_symbols_cmds=$lt_export_symbols_cmds_FC
28582
28583 # Symbols that should not be listed in the preloaded symbols.
28584 exclude_expsyms=$lt_exclude_expsyms_FC
28585
28586 # Symbols that must always be exported.
28587 include_expsyms=$lt_include_expsyms_FC
28588
28589 # Commands necessary for linking programs (against libraries) with templates.
28590 prelink_cmds=$lt_prelink_cmds_FC
28591
28592 # Commands necessary for finishing linking programs.
28593 postlink_cmds=$lt_postlink_cmds_FC
28594
28595 # Specify filename containing input files.
28596 file_list_spec=$lt_file_list_spec_FC
28597
28598 # How to hardcode a shared library path into an executable.
28599 hardcode_action=$hardcode_action_FC
28600
28601 # The directories searched by this compiler when creating a shared library.
28602 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
28603
28604 # Dependencies to place before and after the objects being linked to
28605 # create a shared library.
28606 predep_objects=$lt_predep_objects_FC
28607 postdep_objects=$lt_postdep_objects_FC
28608 predeps=$lt_predeps_FC
28609 postdeps=$lt_postdeps_FC
28610
28611 # The library search path used internally by the compiler when linking
28612 # a shared library.
28613 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
28614
28615 # ### END LIBTOOL TAG CONFIG: FC
28616 _LT_EOF
28617
28618
28619 cat <<_LT_EOF >> "$ofile"
28620
28621 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28622
28623 # The linker used to build libraries.
28624 LD=$lt_LD_CXX
28625
28626 # How to create reloadable object files.
28627 reload_flag=$lt_reload_flag_CXX
28628 reload_cmds=$lt_reload_cmds_CXX
28629
28630 # Commands used to build an old-style archive.
28631 old_archive_cmds=$lt_old_archive_cmds_CXX
28632
28633 # A language specific compiler.
28634 CC=$lt_compiler_CXX
28635
28636 # Is the compiler the GNU compiler?
28637 with_gcc=$GCC_CXX
28638
28639 # Compiler flag to turn off builtin functions.
28640 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28641
28642 # Additional compiler flags for building library objects.
28643 pic_flag=$lt_lt_prog_compiler_pic_CXX
28644
28645 # How to pass a linker flag through the compiler.
28646 wl=$lt_lt_prog_compiler_wl_CXX
28647
28648 # Compiler flag to prevent dynamic linking.
28649 link_static_flag=$lt_lt_prog_compiler_static_CXX
28650
28651 # Does compiler simultaneously support -c and -o options?
28652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28653
28654 # Whether or not to add -lc for building shared libraries.
28655 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28656
28657 # Whether or not to disallow shared libs when runtime libs are static.
28658 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28659
28660 # Compiler flag to allow reflexive dlopens.
28661 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28662
28663 # Compiler flag to generate shared objects directly from archives.
28664 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28665
28666 # Whether the compiler copes with passing no objects directly.
28667 compiler_needs_object=$lt_compiler_needs_object_CXX
28668
28669 # Create an old-style archive from a shared archive.
28670 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28671
28672 # Create a temporary old-style archive to link instead of a shared archive.
28673 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28674
28675 # Commands used to build a shared archive.
28676 archive_cmds=$lt_archive_cmds_CXX
28677 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28678
28679 # Commands used to build a loadable module if different from building
28680 # a shared archive.
28681 module_cmds=$lt_module_cmds_CXX
28682 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28683
28684 # Whether we are building with GNU ld or not.
28685 with_gnu_ld=$lt_with_gnu_ld_CXX
28686
28687 # Flag that allows shared libraries with undefined symbols to be built.
28688 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28689
28690 # Flag that enforces no undefined symbols.
28691 no_undefined_flag=$lt_no_undefined_flag_CXX
28692
28693 # Flag to hardcode \$libdir into a binary during linking.
28694 # This must work even if \$libdir does not exist
28695 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28696
28697 # Whether we need a single "-rpath" flag with a separated argument.
28698 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28699
28700 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28701 # DIR into the resulting binary.
28702 hardcode_direct=$hardcode_direct_CXX
28703
28704 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28705 # DIR into the resulting binary and the resulting library dependency is
28706 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28707 # library is relocated.
28708 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28709
28710 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28711 # into the resulting binary.
28712 hardcode_minus_L=$hardcode_minus_L_CXX
28713
28714 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28715 # into the resulting binary.
28716 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28717
28718 # Set to "yes" if building a shared library automatically hardcodes DIR
28719 # into the library and all subsequent libraries and executables linked
28720 # against it.
28721 hardcode_automatic=$hardcode_automatic_CXX
28722
28723 # Set to yes if linker adds runtime paths of dependent libraries
28724 # to runtime path list.
28725 inherit_rpath=$inherit_rpath_CXX
28726
28727 # Whether libtool must link a program against all its dependency libraries.
28728 link_all_deplibs=$link_all_deplibs_CXX
28729
28730 # Set to "yes" if exported symbols are required.
28731 always_export_symbols=$always_export_symbols_CXX
28732
28733 # The commands to list exported symbols.
28734 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28735
28736 # Symbols that should not be listed in the preloaded symbols.
28737 exclude_expsyms=$lt_exclude_expsyms_CXX
28738
28739 # Symbols that must always be exported.
28740 include_expsyms=$lt_include_expsyms_CXX
28741
28742 # Commands necessary for linking programs (against libraries) with templates.
28743 prelink_cmds=$lt_prelink_cmds_CXX
28744
28745 # Commands necessary for finishing linking programs.
28746 postlink_cmds=$lt_postlink_cmds_CXX
28747
28748 # Specify filename containing input files.
28749 file_list_spec=$lt_file_list_spec_CXX
28750
28751 # How to hardcode a shared library path into an executable.
28752 hardcode_action=$hardcode_action_CXX
28753
28754 # The directories searched by this compiler when creating a shared library.
28755 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28756
28757 # Dependencies to place before and after the objects being linked to
28758 # create a shared library.
28759 predep_objects=$lt_predep_objects_CXX
28760 postdep_objects=$lt_postdep_objects_CXX
28761 predeps=$lt_predeps_CXX
28762 postdeps=$lt_postdeps_CXX
28763
28764 # The library search path used internally by the compiler when linking
28765 # a shared library.
28766 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28767
28768 # ### END LIBTOOL TAG CONFIG: CXX
28769 _LT_EOF
28770
28771 ;;
28772 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28773 # Older Autoconf quotes --file arguments for eval, but not when files
28774 # are listed without --file. Let's play safe and only enable the eval
28775 # if we detect the quoting.
28776 # TODO: see whether this extra hack can be removed once we start
28777 # requiring Autoconf 2.70 or later.
28778 case $CONFIG_FILES in #(
28779 *\'*) :
28780 eval set x "$CONFIG_FILES" ;; #(
28781 *) :
28782 set x $CONFIG_FILES ;; #(
28783 *) :
28784 ;;
28785 esac
28786 shift
28787 # Used to flag and report bootstrapping failures.
28788 am_rc=0
28789 for am_mf
28790 do
28791 # Strip MF so we end up with the name of the file.
28792 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
28793 # Check whether this is an Automake generated Makefile which includes
28794 # dependency-tracking related rules and includes.
28795 # Grep'ing the whole file directly is not great: AIX grep has a line
28796 # limit of 2048, but all sed's we know have understand at least 4000.
28797 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28798 || continue
28799 am_dirpart=`$as_dirname -- "$am_mf" ||
28800 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28801 X"$am_mf" : 'X\(//\)[^/]' \| \
28802 X"$am_mf" : 'X\(//\)$' \| \
28803 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28804 printf "%s\n" X"$am_mf" |
28805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28806 s//\1/
28807 q
28808 }
28809 /^X\(\/\/\)[^/].*/{
28810 s//\1/
28811 q
28812 }
28813 /^X\(\/\/\)$/{
28814 s//\1/
28815 q
28816 }
28817 /^X\(\/\).*/{
28818 s//\1/
28819 q
28820 }
28821 s/.*/./; q'`
28822 am_filepart=`$as_basename -- "$am_mf" ||
28823 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28824 X"$am_mf" : 'X\(//\)$' \| \
28825 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28826 printf "%s\n" X/"$am_mf" |
28827 sed '/^.*\/\([^/][^/]*\)\/*$/{
28828 s//\1/
28829 q
28830 }
28831 /^X\/\(\/\/\)$/{
28832 s//\1/
28833 q
28834 }
28835 /^X\/\(\/\).*/{
28836 s//\1/
28837 q
28838 }
28839 s/.*/./; q'`
28840 { echo "$as_me:$LINENO: cd "$am_dirpart" \
28841 && sed -e '/# am--include-marker/d' "$am_filepart" \
28842 | $MAKE -f - am--depfiles" >&5
28843 (cd "$am_dirpart" \
28844 && sed -e '/# am--include-marker/d' "$am_filepart" \
28845 | $MAKE -f - am--depfiles) >&5 2>&5
28846 ac_status=$?
28847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848 (exit $ac_status); } || am_rc=$?
28849 done
28850 if test $am_rc -ne 0; then
28851 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28852 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28853 as_fn_error $? "Something went wrong bootstrapping makefile fragments
28854 for automatic dependency tracking. If GNU make was not used, consider
28855 re-running the configure script with MAKE=\"gmake\" (or whatever is
28856 necessary). You can also try re-running configure with the
28857 '--disable-dependency-tracking' option to at least be able to build
28858 the package (albeit without support for automatic dependency tracking).
28859 See \`config.log' for more details" "$LINENO" 5; }
28860 fi
28861 { am_dirpart=; unset am_dirpart;}
28862 { am_filepart=; unset am_filepart;}
28863 { am_mf=; unset am_mf;}
28864 { am_rc=; unset am_rc;}
28865 rm -f conftest-deps.mk
28866 }
28867 ;;
28868
28869 esac
28870 done # for ac_tag
28871
28872
28873 as_fn_exit 0
28874 _ACEOF
28875 ac_clean_files=$ac_clean_files_save
28876
28877 test $ac_write_fail = 0 ||
28878 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28879
28880
28881 # configure is writing to config.log, and then calls config.status.
28882 # config.status does its own redirection, appending to config.log.
28883 # Unfortunately, on DOS this fails, as config.log is still kept open
28884 # by configure, so config.status won't be able to write to it; its
28885 # output is simply discarded. So we exec the FD to /dev/null,
28886 # effectively closing config.log, so it can be properly (re)opened and
28887 # appended to by config.status. When coming back to configure, we
28888 # need to make the FD available again.
28889 if test "$no_create" != yes; then
28890 ac_cs_success=:
28891 ac_config_status_args=
28892 test "$silent" = yes &&
28893 ac_config_status_args="$ac_config_status_args --quiet"
28894 exec 5>/dev/null
28895 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28896 exec 5>>config.log
28897 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28898 # would make configure fail if this is the last instruction.
28899 $ac_cs_success || as_fn_exit 1
28900 fi
28901 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28903 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28904 fi
28905
28906
28907 echo "
28908
28909 MPSolve configuration:
28910
28911 Source location: ${srcdir}
28912 Pthread CFLAGS: ${PTHREAD_CFLAGS}
28913 C compiler: ${CC}
28914 CFLAGS: ${LIBMPS_CFLAGS}
28915 LDFLAGS: ${LIBMPS_LDFLAGS}
28916 Additional CFLAGS: ${CFLAGS}
28917 Debug enabled: $enable_debug
28918 Check enabled: $have_check"
28919
28920 # Check Octave module
28921 if test x$enable_octave = xyes; then
28922 echo " Octave module: $enable_octave (generates examples/octave/mpsolve.tar.gz)"
28923 else
28924 echo " Octave module: no"
28925 fi
28926
28927 # Check MATLAB (TM) module
28928 if test x$enable_matlab = xyes; then
28929 echo " MATLAB (tm) module: $enable_matlab (generates examples/matlab/mpsolve-toolbox.tar.gz)"
28930 else
28931 echo " MATLAB (tm) module: no"
28932 fi
28933
28934 if test x$build_ui = xyes; then
28935 echo " Graphical UI: $build_ui"
28936 else
28937 echo " Graphical UI: no"
28938 fi
28939
28940 echo " Python module: $have_python"
28941
28942
28943 echo "
28944 Type 'make' to compile MPSolve, and then make install
28945 to install the binaries, the library and the headers
28946 system-wide.
28947
28948 "
28949