Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision: 18538 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.71 for lcmaps 1.6.7.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (c) 2009 The EU EGEE Project
15 # See LICENCE file for details
16 #
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
20
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 as_nop=:
24 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 then :
26 emulate sh
27 NULLCMD=:
28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29 # is contrary to our usage. Disable this feature.
30 alias -g '${1+"$@"}'='"$@"'
31 setopt NO_GLOB_SUBST
32 else $as_nop
33 case `(set -o) 2>/dev/null` in #(
34 *posix*) :
35 set -o posix ;; #(
36 *) :
37 ;;
38 esac
39 fi
40
41
42
43 # Reset variables that may have inherited troublesome values from
44 # the environment.
45
46 # IFS needs to be set, to space, tab, and newline, in precisely that order.
47 # (If _AS_PATH_WALK were called with IFS unset, it would have the
48 # side effect of setting IFS to empty, thus disabling word splitting.)
49 # Quoting is to prevent editors from complaining about space-tab.
50 as_nl='
51 '
52 export as_nl
53 IFS=" "" $as_nl"
54
55 PS1='$ '
56 PS2='> '
57 PS4='+ '
58
59 # Ensure predictable behavior from utilities with locale-dependent output.
60 LC_ALL=C
61 export LC_ALL
62 LANGUAGE=C
63 export LANGUAGE
64
65 # We cannot yet rely on "unset" to work, but we need these variables
66 # to be unset--not just set to an empty or harmless value--now, to
67 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
68 # also avoids known problems related to "unset" and subshell syntax
69 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
70 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
71 do eval test \${$as_var+y} \
72 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
73 done
74
75 # Ensure that fds 0, 1, and 2 are open.
76 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
77 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
78 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
79
80 # The user is always right.
81 if ${PATH_SEPARATOR+false} :; then
82 PATH_SEPARATOR=:
83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 PATH_SEPARATOR=';'
86 }
87 fi
88
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 case $as_dir in #(((
99 '') as_dir=./ ;;
100 */) ;;
101 *) as_dir=$as_dir/ ;;
102 esac
103 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
104 done
105 IFS=$as_save_IFS
106
107 ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112 as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 exit 1
117 fi
118
119
120 # Use a proper internal environment variable to ensure we don't fall
121 # into an infinite loop, continuously re-executing ourselves.
122 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
123 _as_can_reexec=no; export _as_can_reexec;
124 # We cannot yet assume a decent shell, so we have to provide a
125 # neutralization value for shells without unset; and this also
126 # works around shells that cannot unset nonexistent variables.
127 # Preserve -v and -x to the replacement shell.
128 BASH_ENV=/dev/null
129 ENV=/dev/null
130 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
131 case $- in # ((((
132 *v*x* | *x*v* ) as_opts=-vx ;;
133 *v* ) as_opts=-v ;;
134 *x* ) as_opts=-x ;;
135 * ) as_opts= ;;
136 esac
137 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed `exec'.
140 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="as_nop=:
147 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 then :
149 emulate sh
150 NULLCMD=:
151 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
152 # is contrary to our usage. Disable this feature.
153 alias -g '\${1+\"\$@\"}'='\"\$@\"'
154 setopt NO_GLOB_SUBST
155 else \$as_nop
156 case \`(set -o) 2>/dev/null\` in #(
157 *posix*) :
158 set -o posix ;; #(
159 *) :
160 ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else \$as_nop
179 exitcode=1; echo positional parameters were not saved.
180 fi
181 test x\$exitcode = x0 || exit 1
182 blah=\$(echo \$(echo blah))
183 test x\"\$blah\" = xblah || exit 1
184 test -x / || exit 1"
185 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
186 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
187 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
188 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
189
190 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
191 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
194 PATH=/empty FPATH=/empty; export PATH FPATH
195 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
196 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
197 test \$(( 1 + 1 )) = 2 || exit 1"
198 if (eval "$as_required") 2>/dev/null
199 then :
200 as_have_required=yes
201 else $as_nop
202 as_have_required=no
203 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 then :
206
207 else $as_nop
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 case $as_dir in #(((
214 '') as_dir=./ ;;
215 */) ;;
216 *) as_dir=$as_dir/ ;;
217 esac
218 as_found=:
219 case $as_dir in #(
220 /*)
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
226 then :
227 CONFIG_SHELL=$as_shell as_have_required=yes
228 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
229 then :
230 break 2
231 fi
232 fi
233 done;;
234 esac
235 as_found=false
236 done
237 IFS=$as_save_IFS
238 if $as_found
239 then :
240
241 else $as_nop
242 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
244 then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246 fi
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed `exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] about your system,
282 $0: including any error possibly output before this
283 $0: message. Then install a modern shell, or manually run
284 $0: the script under such a shell if you do have one."
285 fi
286 exit 1
287 fi
288 fi
289 fi
290 SHELL=${CONFIG_SHELL-/bin/sh}
291 export SHELL
292 # Unset more variables known to interfere with behavior of common tools.
293 CLICOLOR_FORCE= GREP_OPTIONS=
294 unset CLICOLOR_FORCE GREP_OPTIONS
295
296 ## --------------------- ##
297 ## M4sh Shell Functions. ##
298 ## --------------------- ##
299 # as_fn_unset VAR
300 # ---------------
301 # Portably unset VAR.
302 as_fn_unset ()
303 {
304 { eval $1=; unset $1;}
305 }
306 as_unset=as_fn_unset
307
308
309 # as_fn_set_status STATUS
310 # -----------------------
311 # Set $? to STATUS, without forking.
312 as_fn_set_status ()
313 {
314 return $1
315 } # as_fn_set_status
316
317 # as_fn_exit STATUS
318 # -----------------
319 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
320 as_fn_exit ()
321 {
322 set +e
323 as_fn_set_status $1
324 exit $1
325 } # as_fn_exit
326 # as_fn_nop
327 # ---------
328 # Do nothing but, unlike ":", preserve the value of $?.
329 as_fn_nop ()
330 {
331 return $?
332 }
333 as_nop=as_fn_nop
334
335 # as_fn_mkdir_p
336 # -------------
337 # Create "$as_dir" as a directory, including parents if necessary.
338 as_fn_mkdir_p ()
339 {
340
341 case $as_dir in #(
342 -*) as_dir=./$as_dir;;
343 esac
344 test -d "$as_dir" || eval $as_mkdir_p || {
345 as_dirs=
346 while :; do
347 case $as_dir in #(
348 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 *) as_qdir=$as_dir;;
350 esac
351 as_dirs="'$as_qdir' $as_dirs"
352 as_dir=`$as_dirname -- "$as_dir" ||
353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
354 X"$as_dir" : 'X\(//\)[^/]' \| \
355 X"$as_dir" : 'X\(//\)$' \| \
356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
357 printf "%s\n" X"$as_dir" |
358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
359 s//\1/
360 q
361 }
362 /^X\(\/\/\)[^/].*/{
363 s//\1/
364 q
365 }
366 /^X\(\/\/\)$/{
367 s//\1/
368 q
369 }
370 /^X\(\/\).*/{
371 s//\1/
372 q
373 }
374 s/.*/./; q'`
375 test -d "$as_dir" && break
376 done
377 test -z "$as_dirs" || eval "mkdir $as_dirs"
378 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
379
380
381 } # as_fn_mkdir_p
382
383 # as_fn_executable_p FILE
384 # -----------------------
385 # Test if FILE is an executable regular file.
386 as_fn_executable_p ()
387 {
388 test -f "$1" && test -x "$1"
389 } # as_fn_executable_p
390 # as_fn_append VAR VALUE
391 # ----------------------
392 # Append the text in VALUE to the end of the definition contained in VAR. Take
393 # advantage of any shell optimizations that allow amortized linear growth over
394 # repeated appends, instead of the typical quadratic growth present in naive
395 # implementations.
396 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
397 then :
398 eval 'as_fn_append ()
399 {
400 eval $1+=\$2
401 }'
402 else $as_nop
403 as_fn_append ()
404 {
405 eval $1=\$$1\$2
406 }
407 fi # as_fn_append
408
409 # as_fn_arith ARG...
410 # ------------------
411 # Perform arithmetic evaluation on the ARGs, and store the result in the
412 # global $as_val. Take advantage of shells that can avoid forks. The arguments
413 # must be portable across $(()) and expr.
414 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
415 then :
416 eval 'as_fn_arith ()
417 {
418 as_val=$(( $* ))
419 }'
420 else $as_nop
421 as_fn_arith ()
422 {
423 as_val=`expr "$@" || test $? -eq 1`
424 }
425 fi # as_fn_arith
426
427 # as_fn_nop
428 # ---------
429 # Do nothing but, unlike ":", preserve the value of $?.
430 as_fn_nop ()
431 {
432 return $?
433 }
434 as_nop=as_fn_nop
435
436 # as_fn_error STATUS ERROR [LINENO LOG_FD]
437 # ----------------------------------------
438 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
439 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
440 # script with STATUS, using 1 if that was 0.
441 as_fn_error ()
442 {
443 as_status=$1; test $as_status -eq 0 && as_status=1
444 if test "$4"; then
445 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
447 fi
448 printf "%s\n" "$as_me: error: $2" >&2
449 as_fn_exit $as_status
450 } # as_fn_error
451
452 if expr a : '\(a\)' >/dev/null 2>&1 &&
453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
454 as_expr=expr
455 else
456 as_expr=false
457 fi
458
459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
460 as_basename=basename
461 else
462 as_basename=false
463 fi
464
465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_dirname=dirname
467 else
468 as_dirname=false
469 fi
470
471 as_me=`$as_basename -- "$0" ||
472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
473 X"$0" : 'X\(//\)$' \| \
474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
475 printf "%s\n" X/"$0" |
476 sed '/^.*\/\([^/][^/]*\)\/*$/{
477 s//\1/
478 q
479 }
480 /^X\/\(\/\/\)$/{
481 s//\1/
482 q
483 }
484 /^X\/\(\/\).*/{
485 s//\1/
486 q
487 }
488 s/.*/./; q'`
489
490 # Avoid depending upon Character Ranges.
491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
494 as_cr_digits='0123456789'
495 as_cr_alnum=$as_cr_Letters$as_cr_digits
496
497
498 as_lineno_1=$LINENO as_lineno_1a=$LINENO
499 as_lineno_2=$LINENO as_lineno_2a=$LINENO
500 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
501 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
502 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
503 sed -n '
504 p
505 /[$]LINENO/=
506 ' <$as_myself |
507 sed '
508 s/[$]LINENO.*/&-/
509 t lineno
510 b
511 :lineno
512 N
513 :loop
514 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
515 t loop
516 s/-\n.*//
517 ' >$as_me.lineno &&
518 chmod +x "$as_me.lineno" ||
519 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
520
521 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
522 # already done that, so ensure we don't try to do so again and fall
523 # in an infinite loop. This has already happened in practice.
524 _as_can_reexec=no; export _as_can_reexec
525 # Don't try to exec as it changes $[0], causing all sort of problems
526 # (the dirname of $[0] is not the place where we might find the
527 # original and so on. Autoconf is especially sensitive to this).
528 . "./$as_me.lineno"
529 # Exit status is that of the last command.
530 exit
531 }
532
533
534 # Determine whether it's possible to make 'echo' print without a newline.
535 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
536 # for compatibility with existing Makefiles.
537 ECHO_C= ECHO_N= ECHO_T=
538 case `echo -n x` in #(((((
539 -n*)
540 case `echo 'xy\c'` in
541 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
542 xy) ECHO_C='\c';;
543 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
544 ECHO_T=' ';;
545 esac;;
546 *)
547 ECHO_N='-n';;
548 esac
549
550 # For backward compatibility with old third-party macros, we provide
551 # the shell variables $as_echo and $as_echo_n. New code should use
552 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
553 as_echo='printf %s\n'
554 as_echo_n='printf %s'
555
556
557 rm -f conf$$ conf$$.exe conf$$.file
558 if test -d conf$$.dir; then
559 rm -f conf$$.dir/conf$$.file
560 else
561 rm -f conf$$.dir
562 mkdir conf$$.dir 2>/dev/null
563 fi
564 if (echo >conf$$.file) 2>/dev/null; then
565 if ln -s conf$$.file conf$$ 2>/dev/null; then
566 as_ln_s='ln -s'
567 # ... but there are two gotchas:
568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
570 # In both cases, we have to default to `cp -pR'.
571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
572 as_ln_s='cp -pR'
573 elif ln conf$$.file conf$$ 2>/dev/null; then
574 as_ln_s=ln
575 else
576 as_ln_s='cp -pR'
577 fi
578 else
579 as_ln_s='cp -pR'
580 fi
581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
582 rmdir conf$$.dir 2>/dev/null
583
584 if mkdir -p . 2>/dev/null; then
585 as_mkdir_p='mkdir -p "$as_dir"'
586 else
587 test -d ./-p && rmdir ./-p
588 as_mkdir_p=false
589 fi
590
591 as_test_x='test -x'
592 as_executable_p=as_fn_executable_p
593
594 # Sed expression to map a string onto a valid CPP name.
595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
596
597 # Sed expression to map a string onto a valid variable name.
598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
599
600 SHELL=${CONFIG_SHELL-/bin/sh}
601
602
603 test -n "$DJDIR" || exec 7<&0 </dev/null
604 exec 6>&1
605
606 # Name of the host.
607 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
608 # so uname gets run too.
609 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
610
611 #
612 # Initializations.
613 #
614 ac_default_prefix=/usr/local
615 ac_clean_files=
616 ac_config_libobj_dir=.
617 LIBOBJS=
618 cross_compiling=no
619 subdirs=
620 MFLAGS=
621 MAKEFLAGS=
622
623 # Identity of this package.
624 PACKAGE_NAME='lcmaps'
625 PACKAGE_TARNAME='lcmaps'
626 PACKAGE_VERSION='1.6.7'
627 PACKAGE_STRING='lcmaps 1.6.7'
628 PACKAGE_BUGREPORT=''
629 PACKAGE_URL=''
630
631 ac_unique_file="src/lcmaps_config.h.in"
632 # Factoring default headers for most tests.
633 ac_includes_default="\
634 #include <stddef.h>
635 #ifdef HAVE_STDIO_H
636 # include <stdio.h>
637 #endif
638 #ifdef HAVE_STDLIB_H
639 # include <stdlib.h>
640 #endif
641 #ifdef HAVE_STRING_H
642 # include <string.h>
643 #endif
644 #ifdef HAVE_INTTYPES_H
645 # include <inttypes.h>
646 #endif
647 #ifdef HAVE_STDINT_H
648 # include <stdint.h>
649 #endif
650 #ifdef HAVE_STRINGS_H
651 # include <strings.h>
652 #endif
653 #ifdef HAVE_SYS_TYPES_H
654 # include <sys/types.h>
655 #endif
656 #ifdef HAVE_SYS_STAT_H
657 # include <sys/stat.h>
658 #endif
659 #ifdef HAVE_UNISTD_H
660 # include <unistd.h>
661 #endif"
662
663 ac_header_c_list=
664 ac_subst_vars='am__EXEEXT_FALSE
665 am__EXEEXT_TRUE
666 LTLIBOBJS
667 LIBOBJS
668 LCMAPS_PATCH_VERSION
669 LCMAPS_MINOR_VERSION
670 LCMAPS_MAJOR_VERSION
671 LCMAPS_MOD_HOME
672 LCMAPS_LIB_HOME
673 LCMAPS_ETC_HOME
674 ADD_THESE_DEFINES
675 LCMAPS_FLAVOUR_NAME
676 LCMAPS_FLAVOUR
677 LCMAPS_GSI_MODE_FALSE
678 LCMAPS_GSI_MODE_TRUE
679 VOMS_STATIC_NOTHR_LIBS
680 VOMS_STATIC_THR_LIBS
681 VOMS_CPP_NOTHR_LIBS
682 VOMS_CPP_THR_LIBS
683 VOMS_NOTHR_LIBS
684 VOMS_THR_LIBS
685 VOMS_STATIC_LIBS
686 VOMS_CPP_LIBS
687 VOMS_LIBS
688 VOMS_CFLAGS
689 GLOBUS_GSI_CREDENTIAL_NOTHR_LIBS
690 GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS
691 GLOBUS_GSI_CREDENTIAL_THR_LIBS
692 GLOBUS_GSI_CREDENTIAL_THR_CFLAGS
693 GLOBUS_GSI_CREDENTIAL_LIBS
694 GLOBUS_GSI_CREDENTIAL_CFLAGS
695 GLOBUS_GSS_ASSIST_NOTHR_LIBS
696 GLOBUS_GSS_ASSIST_NOTHR_CFLAGS
697 GLOBUS_GSS_ASSIST_THR_LIBS
698 GLOBUS_GSS_ASSIST_THR_CFLAGS
699 GLOBUS_GSS_ASSIST_LIBS
700 GLOBUS_GSS_ASSIST_CFLAGS
701 GLOBUS_GSSAPI_GSI_NOTHR_LIBS
702 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS
703 GLOBUS_GSSAPI_GSI_THR_LIBS
704 GLOBUS_GSSAPI_GSI_THR_CFLAGS
705 GLOBUS_GSSAPI_GSI_LIBS
706 GLOBUS_GSSAPI_GSI_CFLAGS
707 GLOBUS_COMMON_NOTHR_LIBS
708 GLOBUS_COMMON_NOTHR_CFLAGS
709 GLOBUS_COMMON_THR_LIBS
710 GLOBUS_COMMON_THR_CFLAGS
711 GLOBUS_COMMON_LIBS
712 GLOBUS_COMMON_CFLAGS
713 PKG_CONFIG_LIBDIR
714 PKG_CONFIG_PATH
715 PKG_CONFIG
716 GLOBUS_NOTHR_FLAVOR
717 GLOBUS_THR_FLAVOR
718 GLOBUS_FLAVOR
719 CRYPTO_LIBS
720 SHREXT
721 ENABLE_HEADERS_FALSE
722 ENABLE_HEADERS_TRUE
723 DL_LIBS
724 LEX_HAS_D_FALSE
725 LEX_HAS_D_TRUE
726 LEXLIB
727 LEX_OUTPUT_ROOT
728 LEX
729 YFLAGS
730 YACC
731 CXXCPP
732 LT_SYS_LIBRARY_PATH
733 OTOOL64
734 OTOOL
735 LIPO
736 NMEDIT
737 DSYMUTIL
738 MANIFEST_TOOL
739 RANLIB
740 ac_ct_AR
741 AR
742 DLLTOOL
743 OBJDUMP
744 FILECMD
745 NM
746 ac_ct_DUMPBIN
747 DUMPBIN
748 LD
749 FGREP
750 EGREP
751 GREP
752 SED
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 LIBTOOL
762 LN_S
763 am__fastdepCXX_FALSE
764 am__fastdepCXX_TRUE
765 CXXDEPMODE
766 ac_ct_CXX
767 CXXFLAGS
768 CXX
769 am__fastdepCC_FALSE
770 am__fastdepCC_TRUE
771 CCDEPMODE
772 am__nodep
773 AMDEPBACKSLASH
774 AMDEP_FALSE
775 AMDEP_TRUE
776 am__include
777 DEPDIR
778 OBJEXT
779 EXEEXT
780 ac_ct_CC
781 CPPFLAGS
782 LDFLAGS
783 CFLAGS
784 CC
785 DISTBIN
786 WORKDIR
787 AM_BACKSLASH
788 AM_DEFAULT_VERBOSITY
789 AM_DEFAULT_V
790 AM_V
791 CSCOPE
792 ETAGS
793 CTAGS
794 am__untar
795 am__tar
796 AMTAR
797 am__leading_dot
798 SET_MAKE
799 AWK
800 mkdir_p
801 MKDIR_P
802 INSTALL_STRIP_PROGRAM
803 STRIP
804 install_sh
805 MAKEINFO
806 AUTOHEADER
807 AUTOMAKE
808 AUTOCONF
809 ACLOCAL
810 VERSION
811 PACKAGE
812 CYGPATH_W
813 am__isrc
814 INSTALL_DATA
815 INSTALL_SCRIPT
816 INSTALL_PROGRAM
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 runstatedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL
856 am__quote'
857 ac_subst_files=''
858 ac_user_opts='
859 enable_option_checking
860 enable_silent_rules
861 enable_dependency_tracking
862 enable_shared
863 enable_static
864 with_pic
865 enable_fast_install
866 with_aix_soname
867 with_gnu_ld
868 with_sysroot
869 enable_libtool_lock
870 enable_headers
871 enable_gsi_mode
872 with_globus_prefix
873 with_globus_libdir
874 with_globus_flavor
875 with_globus_thr_flavor
876 with_globus_nothr_flavor
877 with_globus_flavorincdir
878 with_voms_prefix
879 with_voms_includes
880 with_voms_libdir
881 enable_osg
882 with_lcmaps_moduledir
883 '
884 ac_precious_vars='build_alias
885 host_alias
886 target_alias
887 CC
888 CFLAGS
889 LDFLAGS
890 LIBS
891 CPPFLAGS
892 CXX
893 CXXFLAGS
894 CCC
895 LT_SYS_LIBRARY_PATH
896 CXXCPP
897 YACC
898 YFLAGS
899 PKG_CONFIG
900 PKG_CONFIG_PATH
901 PKG_CONFIG_LIBDIR
902 GLOBUS_COMMON_CFLAGS
903 GLOBUS_COMMON_LIBS
904 GLOBUS_GSSAPI_GSI_CFLAGS
905 GLOBUS_GSSAPI_GSI_LIBS
906 GLOBUS_GSS_ASSIST_CFLAGS
907 GLOBUS_GSS_ASSIST_LIBS
908 GLOBUS_GSI_CREDENTIAL_CFLAGS
909 GLOBUS_GSI_CREDENTIAL_LIBS
910 VOMS_CFLAGS
911 VOMS_LIBS'
912
913
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 ac_unrecognized_opts=
918 ac_unrecognized_sep=
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
921 cache_file=/dev/null
922 exec_prefix=NONE
923 no_create=
924 no_recursion=
925 prefix=NONE
926 program_prefix=NONE
927 program_suffix=NONE
928 program_transform_name=s,x,x,
929 silent=
930 site=
931 srcdir=
932 verbose=
933 x_includes=NONE
934 x_libraries=NONE
935
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 runstatedir='${localstatedir}/run'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967 # If the previous option needs an argument, assign it.
968 if test -n "$ac_prev"; then
969 eval $ac_prev=\$ac_option
970 ac_prev=
971 continue
972 fi
973
974 case $ac_option in
975 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 *=) ac_optarg= ;;
977 *) ac_optarg=yes ;;
978 esac
979
980 case $ac_dashdash$ac_option in
981 --)
982 ac_dashdash=yes ;;
983
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 ac_prev=bindir ;;
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987 bindir=$ac_optarg ;;
988
989 -build | --build | --buil | --bui | --bu)
990 ac_prev=build_alias ;;
991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992 build_alias=$ac_optarg ;;
993
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev=cache_file ;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999 cache_file=$ac_optarg ;;
1000
1001 --config-cache | -C)
1002 cache_file=config.cache ;;
1003
1004 -datadir | --datadir | --datadi | --datad)
1005 ac_prev=datadir ;;
1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007 datadir=$ac_optarg ;;
1008
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev=datarootdir ;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir=$ac_optarg ;;
1015
1016 -disable-* | --disable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1024 *"
1025 "enable_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=no ;;
1031
1032 -docdir | --docdir | --docdi | --doc | --do)
1033 ac_prev=docdir ;;
1034 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1035 docdir=$ac_optarg ;;
1036
1037 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038 ac_prev=dvidir ;;
1039 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1040 dvidir=$ac_optarg ;;
1041
1042 -enable-* | --enable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1050 *"
1051 "enable_$ac_useropt"
1052 "*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval enable_$ac_useropt=\$ac_optarg ;;
1057
1058 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1059 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1060 | --exec | --exe | --ex)
1061 ac_prev=exec_prefix ;;
1062 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1063 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1064 | --exec=* | --exe=* | --ex=*)
1065 exec_prefix=$ac_optarg ;;
1066
1067 -gas | --gas | --ga | --g)
1068 # Obsolete; use --with-gas.
1069 with_gas=yes ;;
1070
1071 -help | --help | --hel | --he | -h)
1072 ac_init_help=long ;;
1073 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1074 ac_init_help=recursive ;;
1075 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1076 ac_init_help=short ;;
1077
1078 -host | --host | --hos | --ho)
1079 ac_prev=host_alias ;;
1080 -host=* | --host=* | --hos=* | --ho=*)
1081 host_alias=$ac_optarg ;;
1082
1083 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1084 ac_prev=htmldir ;;
1085 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1086 | --ht=*)
1087 htmldir=$ac_optarg ;;
1088
1089 -includedir | --includedir | --includedi | --included | --include \
1090 | --includ | --inclu | --incl | --inc)
1091 ac_prev=includedir ;;
1092 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1093 | --includ=* | --inclu=* | --incl=* | --inc=*)
1094 includedir=$ac_optarg ;;
1095
1096 -infodir | --infodir | --infodi | --infod | --info | --inf)
1097 ac_prev=infodir ;;
1098 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1099 infodir=$ac_optarg ;;
1100
1101 -libdir | --libdir | --libdi | --libd)
1102 ac_prev=libdir ;;
1103 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1104 libdir=$ac_optarg ;;
1105
1106 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1107 | --libexe | --libex | --libe)
1108 ac_prev=libexecdir ;;
1109 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1110 | --libexe=* | --libex=* | --libe=*)
1111 libexecdir=$ac_optarg ;;
1112
1113 -localedir | --localedir | --localedi | --localed | --locale)
1114 ac_prev=localedir ;;
1115 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1116 localedir=$ac_optarg ;;
1117
1118 -localstatedir | --localstatedir | --localstatedi | --localstated \
1119 | --localstate | --localstat | --localsta | --localst | --locals)
1120 ac_prev=localstatedir ;;
1121 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1122 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1123 localstatedir=$ac_optarg ;;
1124
1125 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1126 ac_prev=mandir ;;
1127 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1128 mandir=$ac_optarg ;;
1129
1130 -nfp | --nfp | --nf)
1131 # Obsolete; use --without-fp.
1132 with_fp=no ;;
1133
1134 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1135 | --no-cr | --no-c | -n)
1136 no_create=yes ;;
1137
1138 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1139 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140 no_recursion=yes ;;
1141
1142 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1143 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1144 | --oldin | --oldi | --old | --ol | --o)
1145 ac_prev=oldincludedir ;;
1146 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1147 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1148 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1149 oldincludedir=$ac_optarg ;;
1150
1151 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1152 ac_prev=prefix ;;
1153 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1154 prefix=$ac_optarg ;;
1155
1156 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1157 | --program-pre | --program-pr | --program-p)
1158 ac_prev=program_prefix ;;
1159 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1160 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1161 program_prefix=$ac_optarg ;;
1162
1163 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1164 | --program-suf | --program-su | --program-s)
1165 ac_prev=program_suffix ;;
1166 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1167 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1168 program_suffix=$ac_optarg ;;
1169
1170 -program-transform-name | --program-transform-name \
1171 | --program-transform-nam | --program-transform-na \
1172 | --program-transform-n | --program-transform- \
1173 | --program-transform | --program-transfor \
1174 | --program-transfo | --program-transf \
1175 | --program-trans | --program-tran \
1176 | --progr-tra | --program-tr | --program-t)
1177 ac_prev=program_transform_name ;;
1178 -program-transform-name=* | --program-transform-name=* \
1179 | --program-transform-nam=* | --program-transform-na=* \
1180 | --program-transform-n=* | --program-transform-=* \
1181 | --program-transform=* | --program-transfor=* \
1182 | --program-transfo=* | --program-transf=* \
1183 | --program-trans=* | --program-tran=* \
1184 | --progr-tra=* | --program-tr=* | --program-t=*)
1185 program_transform_name=$ac_optarg ;;
1186
1187 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1188 ac_prev=pdfdir ;;
1189 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1190 pdfdir=$ac_optarg ;;
1191
1192 -psdir | --psdir | --psdi | --psd | --ps)
1193 ac_prev=psdir ;;
1194 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195 psdir=$ac_optarg ;;
1196
1197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1198 | -silent | --silent | --silen | --sile | --sil)
1199 silent=yes ;;
1200
1201 -runstatedir | --runstatedir | --runstatedi | --runstated \
1202 | --runstate | --runstat | --runsta | --runst | --runs \
1203 | --run | --ru | --r)
1204 ac_prev=runstatedir ;;
1205 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1206 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1207 | --run=* | --ru=* | --r=*)
1208 runstatedir=$ac_optarg ;;
1209
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 ac_prev=sbindir ;;
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 | --sbi=* | --sb=*)
1214 sbindir=$ac_optarg ;;
1215
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1219 | --sha | --sh)
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 | --sha=* | --sh=*)
1225 sharedstatedir=$ac_optarg ;;
1226
1227 -site | --site | --sit)
1228 ac_prev=site ;;
1229 -site=* | --site=* | --sit=*)
1230 site=$ac_optarg ;;
1231
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 ac_prev=srcdir ;;
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1236
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1243
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1248
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 verbose=yes ;;
1251
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1254
1255 -with-* | --with-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: \`$ac_useropt'"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264 "with_$ac_useropt"
1265 "*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=\$ac_optarg ;;
1270
1271 -without-* | --without-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error $? "invalid package name: \`$ac_useropt'"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=no ;;
1286
1287 --x)
1288 # Obsolete; use --with-x.
1289 with_x=yes ;;
1290
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1297
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1304
1305 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information"
1307 ;;
1308
1309 *=*)
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 case $ac_envvar in #(
1313 '' | [0-9]* | *[!_$as_cr_alnum]* )
1314 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315 esac
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1318
1319 *)
1320 # FIXME: should be removed in autoconf 3.0.
1321 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 ;;
1326
1327 esac
1328 done
1329
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 as_fn_error $? "missing argument to $ac_option"
1333 fi
1334
1335 if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1337 no) ;;
1338 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340 esac
1341 fi
1342
1343 # Check all directory arguments for consistency.
1344 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir runstatedir
1348 do
1349 eval ac_val=\$$ac_var
1350 # Remove trailing slashes.
1351 case $ac_val in
1352 */ )
1353 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354 eval $ac_var=\$ac_val;;
1355 esac
1356 # Be sure to have absolute directory names.
1357 case $ac_val in
1358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360 esac
1361 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362 done
1363
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1367 build=$build_alias
1368 host=$host_alias
1369 target=$target_alias
1370
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1377 fi
1378 fi
1379
1380 ac_tool_prefix=
1381 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383 test "$silent" = yes && exec 6>/dev/null
1384
1385
1386 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di=`ls -di .` &&
1388 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1389 as_fn_error $? "working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 as_fn_error $? "pwd does not report name of working directory"
1392
1393
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$as_myself" : 'X\(//\)[^/]' \| \
1401 X"$as_myself" : 'X\(//\)$' \| \
1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 printf "%s\n" X"$as_myself" |
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)[^/].*/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\/\)$/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\).*/{
1417 s//\1/
1418 q
1419 }
1420 s/.*/./; q'`
1421 srcdir=$ac_confdir
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 srcdir=..
1424 fi
1425 else
1426 ac_srcdir_defaulted=no
1427 fi
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1431 fi
1432 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 pwd)`
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 srcdir=.
1439 fi
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1443 case $srcdir in
1444 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 esac
1446 for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451 done
1452
1453 #
1454 # Report the --help message.
1455 #
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1459 cat <<_ACEOF
1460 \`configure' configures lcmaps 1.6.7 to adapt to many kinds of systems.
1461
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1466
1467 Defaults for the options are specified in brackets.
1468
1469 Configuration:
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 [PREFIX]
1485
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1490
1491 For better control, use the options below.
1492
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/lcmaps]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
1514 _ACEOF
1515
1516 cat <<\_ACEOF
1517
1518 Program names:
1519 --program-prefix=PREFIX prepend PREFIX to installed program names
1520 --program-suffix=SUFFIX append SUFFIX to installed program names
1521 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1522
1523 System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 _ACEOF
1527 fi
1528
1529 if test -n "$ac_init_help"; then
1530 case $ac_init_help in
1531 short | recursive ) echo "Configuration of lcmaps 1.6.7:";;
1532 esac
1533 cat <<\_ACEOF
1534
1535 Optional Features:
1536 --disable-option-checking ignore unrecognized --enable/--with options
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --enable-silent-rules less verbose build output (undo: "make V=1")
1540 --disable-silent-rules verbose build output (undo: "make V=0")
1541 --enable-dependency-tracking
1542 do not reject slow dependency extractors
1543 --disable-dependency-tracking
1544 speeds up one-time build
1545 --enable-shared[=PKGS] build shared libraries [default=yes]
1546 --enable-static[=PKGS] build static libraries [default=yes]
1547 --enable-fast-install[=PKGS]
1548 optimize for fast installation [default=yes]
1549 --disable-libtool-lock avoid locking (might break parallel builds)
1550 --enable-headers build headers only
1551 --enable-gsi-mode create lcmaps flavour that provides a GSI interface
1552 (default)
1553 --enable-osg Enables the Open Science Grid specific build option
1554
1555 Optional Packages:
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1559 both]
1560 --with-aix-soname=aix|svr4|both
1561 shared library versioning (aka "SONAME") variant to
1562 provide on AIX, [default=aix].
1563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1564 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1565 compiler's sysroot if not specified).
1566 --with-globus-prefix=PFX
1567 prefix where GLOBUS is installed.
1568 --with-globus-libdir=DIR
1569 directory where GLOBUS libraries are installed
1570 (default either GLOBUS-PREFIX/lib or
1571 GLOBUS-PREFIX/lib64).
1572 --with-globus-flavor globus flavor
1573 --with-globus-thr-flavor
1574 globus threaded flavor
1575 --with-globus-nothr-flavor
1576 globus non-threaded flavor
1577 --with-globus-flavorincdir
1578 flavored includedir, i.e. location of
1579 globus_config.h
1580 --with-voms-prefix=PFX prefix where VOMS is installed (default is /usr)
1581 --with-voms-includes=DIR
1582 directory where VOMS headers are installed (default
1583 is VOMS-PREFIX/include)
1584 --with-voms-libdir=DIR directory where VOMS libraries are installed
1585 (default is VOMS-PREFIX/lib or VOMS_PREFIX/lib64)
1586 --with-lcmaps-moduledir=DIR
1587 Specify the default install location of the LCMAPS
1588 plug-ins, when relative: prefix with LIBDIR
1589 [default=LIBDIR/lcmaps]
1590
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 CXX C++ compiler command
1600 CXXFLAGS C++ compiler flags
1601 LT_SYS_LIBRARY_PATH
1602 User-defined run-time library search path.
1603 CXXCPP C++ preprocessor
1604 YACC The `Yet Another Compiler Compiler' implementation to use.
1605 Defaults to the first program found out of: `bison -y', `byacc',
1606 `yacc'.
1607 YFLAGS The list of arguments that will be passed by default to $YACC.
1608 This script will default YFLAGS to the empty string to avoid a
1609 default value of `-d' given by some make applications.
1610 PKG_CONFIG path to pkg-config utility
1611 PKG_CONFIG_PATH
1612 directories to add to pkg-config's search path
1613 PKG_CONFIG_LIBDIR
1614 path overriding pkg-config's built-in search path
1615 GLOBUS_COMMON_CFLAGS
1616 C compiler flags for GLOBUS_COMMON, overriding pkg-config
1617 GLOBUS_COMMON_LIBS
1618 linker flags for GLOBUS_COMMON, overriding pkg-config
1619 GLOBUS_GSSAPI_GSI_CFLAGS
1620 C compiler flags for GLOBUS_GSSAPI_GSI, overriding pkg-config
1621 GLOBUS_GSSAPI_GSI_LIBS
1622 linker flags for GLOBUS_GSSAPI_GSI, overriding pkg-config
1623 GLOBUS_GSS_ASSIST_CFLAGS
1624 C compiler flags for GLOBUS_GSS_ASSIST, overriding pkg-config
1625 GLOBUS_GSS_ASSIST_LIBS
1626 linker flags for GLOBUS_GSS_ASSIST, overriding pkg-config
1627 GLOBUS_GSI_CREDENTIAL_CFLAGS
1628 C compiler flags for GLOBUS_GSI_CREDENTIAL, overriding
1629 pkg-config
1630 GLOBUS_GSI_CREDENTIAL_LIBS
1631 linker flags for GLOBUS_GSI_CREDENTIAL, overriding pkg-config
1632 VOMS_CFLAGS C compiler flags for VOMS, overriding pkg-config
1633 VOMS_LIBS linker flags for VOMS, overriding pkg-config
1634
1635 Use these variables to override the choices made by `configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1637
1638 Report bugs to the package provider.
1639 _ACEOF
1640 ac_status=$?
1641 fi
1642
1643 if test "$ac_init_help" = "recursive"; then
1644 # If there are subdirs, report their specific --help.
1645 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1646 test -d "$ac_dir" ||
1647 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648 continue
1649 ac_builddir=.
1650
1651 case "$ac_dir" in
1652 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *)
1654 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1655 # A ".." for each directory in $ac_dir_suffix.
1656 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1657 case $ac_top_builddir_sub in
1658 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1659 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660 esac ;;
1661 esac
1662 ac_abs_top_builddir=$ac_pwd
1663 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1664 # for backward compatibility:
1665 ac_top_builddir=$ac_top_build_prefix
1666
1667 case $srcdir in
1668 .) # We are building in place.
1669 ac_srcdir=.
1670 ac_top_srcdir=$ac_top_builddir_sub
1671 ac_abs_top_srcdir=$ac_pwd ;;
1672 [\\/]* | ?:[\\/]* ) # Absolute name.
1673 ac_srcdir=$srcdir$ac_dir_suffix;
1674 ac_top_srcdir=$srcdir
1675 ac_abs_top_srcdir=$srcdir ;;
1676 *) # Relative name.
1677 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1678 ac_top_srcdir=$ac_top_build_prefix$srcdir
1679 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680 esac
1681 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1682
1683 cd "$ac_dir" || { ac_status=$?; continue; }
1684 # Check for configure.gnu first; this name is used for a wrapper for
1685 # Metaconfig's "Configure" on case-insensitive file systems.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 lcmaps configure 1.6.7
1703 generated by GNU Autoconf 2.71
1704
1705 Copyright (C) 2021 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1708
1709 Copyright (c) 2009 The EU EGEE Project
1710 See LICENCE file for details
1711
1712 _ACEOF
1713 exit
1714 fi
1715
1716 ## ------------------------ ##
1717 ## Autoconf initialization. ##
1718 ## ------------------------ ##
1719
1720 # ac_fn_c_try_compile LINENO
1721 # --------------------------
1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_compile ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest.beam
1727 if { { ac_try="$ac_compile"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 printf "%s\n" "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext
1746 then :
1747 ac_retval=0
1748 else $as_nop
1749 printf "%s\n" "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=1
1753 fi
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1756
1757 } # ac_fn_c_try_compile
1758
1759 # ac_fn_cxx_try_compile LINENO
1760 # ----------------------------
1761 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_cxx_try_compile ()
1763 {
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest.beam
1766 if { { ac_try="$ac_compile"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 printf "%s\n" "$ac_try_echo"; } >&5
1773 (eval "$ac_compile") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_cxx_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest.$ac_objext
1785 then :
1786 ac_retval=0
1787 else $as_nop
1788 printf "%s\n" "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=1
1792 fi
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1795
1796 } # ac_fn_cxx_try_compile
1797
1798 # ac_fn_c_try_link LINENO
1799 # -----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_link ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 printf "%s\n" "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest$ac_exeext && {
1824 test "$cross_compiling" = yes ||
1825 test -x conftest$ac_exeext
1826 }
1827 then :
1828 ac_retval=0
1829 else $as_nop
1830 printf "%s\n" "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_link
1844
1845 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1846 # -------------------------------------------------------
1847 # Tests whether HEADER exists and can be compiled using the include files in
1848 # INCLUDES, setting the cache variable VAR accordingly.
1849 ac_fn_c_check_header_compile ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 printf %s "checking for $2... " >&6; }
1854 if eval test \${$3+y}
1855 then :
1856 printf %s "(cached) " >&6
1857 else $as_nop
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $4
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"
1864 then :
1865 eval "$3=yes"
1866 else $as_nop
1867 eval "$3=no"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1870 fi
1871 eval ac_res=\$$3
1872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 printf "%s\n" "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876 } # ac_fn_c_check_header_compile
1877
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 printf %s "checking for $2... " >&6; }
1886 if eval test \${$3+y}
1887 then :
1888 printf %s "(cached) " >&6
1889 else $as_nop
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1894 #define $2 innocuous_$2
1895
1896 /* System header to define __stub macros and hopefully few prototypes,
1897 which can conflict with char $2 (); below. */
1898
1899 #include <limits.h>
1900 #undef $2
1901
1902 /* Override any GCC internal prototype to avoid an error.
1903 Use char because int might match the return type of a GCC
1904 builtin and then its argument prototype would still apply. */
1905 #ifdef __cplusplus
1906 extern "C"
1907 #endif
1908 char $2 ();
1909 /* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912 #if defined __stub_$2 || defined __stub___$2
1913 choke me
1914 #endif
1915
1916 int
1917 main (void)
1918 {
1919 return $2 ();
1920 ;
1921 return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_link "$LINENO"
1925 then :
1926 eval "$3=yes"
1927 else $as_nop
1928 eval "$3=no"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1931 conftest$ac_exeext conftest.$ac_ext
1932 fi
1933 eval ac_res=\$$3
1934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 printf "%s\n" "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937
1938 } # ac_fn_c_check_func
1939
1940 # ac_fn_cxx_try_cpp LINENO
1941 # ------------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_cxx_try_cpp ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 printf "%s\n" "$ac_try_echo"; } >&5
1953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954 ac_status=$?
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1959 fi
1960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } > conftest.i && {
1962 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1963 test ! -s conftest.err
1964 }
1965 then :
1966 ac_retval=0
1967 else $as_nop
1968 printf "%s\n" "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1970
1971 ac_retval=1
1972 fi
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status $ac_retval
1975
1976 } # ac_fn_cxx_try_cpp
1977
1978 # ac_fn_cxx_try_link LINENO
1979 # -------------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_cxx_try_link ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1985 if { { ac_try="$ac_link"
1986 case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 printf "%s\n" "$ac_try_echo"; } >&5
1992 (eval "$ac_link") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1998 fi
1999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && {
2001 test -z "$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 } && test -s conftest$ac_exeext && {
2004 test "$cross_compiling" = yes ||
2005 test -x conftest$ac_exeext
2006 }
2007 then :
2008 ac_retval=0
2009 else $as_nop
2010 printf "%s\n" "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2012
2013 ac_retval=1
2014 fi
2015 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2016 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2017 # interfere with the next link command; also delete a directory that is
2018 # left behind by Apple's compiler. We do this before executing the actions.
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 as_fn_set_status $ac_retval
2022
2023 } # ac_fn_cxx_try_link
2024
2025 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2026 # -------------------------------------------
2027 # Tests whether TYPE exists after having included INCLUDES, setting cache
2028 # variable VAR accordingly.
2029 ac_fn_c_check_type ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 printf %s "checking for $2... " >&6; }
2034 if eval test \${$3+y}
2035 then :
2036 printf %s "(cached) " >&6
2037 else $as_nop
2038 eval "$3=no"
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $4
2042 int
2043 main (void)
2044 {
2045 if (sizeof ($2))
2046 return 0;
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"
2052 then :
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 int
2057 main (void)
2058 {
2059 if (sizeof (($2)))
2060 return 0;
2061 ;
2062 return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"
2066 then :
2067
2068 else $as_nop
2069 eval "$3=yes"
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2074 fi
2075 eval ac_res=\$$3
2076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 printf "%s\n" "$ac_res" >&6; }
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080 } # ac_fn_c_check_type
2081 ac_configure_args_raw=
2082 for ac_arg
2083 do
2084 case $ac_arg in
2085 *\'*)
2086 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2087 esac
2088 as_fn_append ac_configure_args_raw " '$ac_arg'"
2089 done
2090
2091 case $ac_configure_args_raw in
2092 *$as_nl*)
2093 ac_safe_unquote= ;;
2094 *)
2095 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2096 ac_unsafe_a="$ac_unsafe_z#~"
2097 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2098 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2099 esac
2100
2101 cat >config.log <<_ACEOF
2102 This file contains any messages produced by compilers while
2103 running configure, to aid debugging if configure makes a mistake.
2104
2105 It was created by lcmaps $as_me 1.6.7, which was
2106 generated by GNU Autoconf 2.71. Invocation command line was
2107
2108 $ $0$ac_configure_args_raw
2109
2110 _ACEOF
2111 exec 5>>config.log
2112 {
2113 cat <<_ASUNAME
2114 ## --------- ##
2115 ## Platform. ##
2116 ## --------- ##
2117
2118 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2119 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2120 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2121 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2122 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2123
2124 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2125 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2126
2127 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2128 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2129 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2130 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2131 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2132 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2133 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2134
2135 _ASUNAME
2136
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140 IFS=$as_save_IFS
2141 case $as_dir in #(((
2142 '') as_dir=./ ;;
2143 */) ;;
2144 *) as_dir=$as_dir/ ;;
2145 esac
2146 printf "%s\n" "PATH: $as_dir"
2147 done
2148 IFS=$as_save_IFS
2149
2150 } >&5
2151
2152 cat >&5 <<_ACEOF
2153
2154
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2158
2159 _ACEOF
2160
2161
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2172 do
2173 for ac_arg
2174 do
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
2180 *\'*)
2181 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 esac
2183 case $ac_pass in
2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185 2)
2186 as_fn_append ac_configure_args1 " '$ac_arg'"
2187 if test $ac_must_keep_next = true; then
2188 ac_must_keep_next=false # Got value, back to normal.
2189 else
2190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2198 ;;
2199 -* ) ac_must_keep_next=true ;;
2200 esac
2201 fi
2202 as_fn_append ac_configure_args " '$ac_arg'"
2203 ;;
2204 esac
2205 done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2209
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log. We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216 # Sanitize IFS.
2217 IFS=" "" $as_nl"
2218 # Save into config.log some information that might help in debugging.
2219 {
2220 echo
2221
2222 printf "%s\n" "## ---------------- ##
2223 ## Cache variables. ##
2224 ## ---------------- ##"
2225 echo
2226 # The following way of writing the cache mishandles newlines in values,
2227 (
2228 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in #(
2231 *${as_nl}*)
2232 case $ac_var in #(
2233 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2234 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 esac
2236 case $ac_var in #(
2237 _ | IFS | as_nl) ;; #(
2238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2239 *) { eval $ac_var=; unset $ac_var;} ;;
2240 esac ;;
2241 esac
2242 done
2243 (set) 2>&1 |
2244 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2245 *${as_nl}ac_space=\ *)
2246 sed -n \
2247 "s/'\''/'\''\\\\'\'''\''/g;
2248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 ;; #(
2250 *)
2251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 ;;
2253 esac |
2254 sort
2255 )
2256 echo
2257
2258 printf "%s\n" "## ----------------- ##
2259 ## Output variables. ##
2260 ## ----------------- ##"
2261 echo
2262 for ac_var in $ac_subst_vars
2263 do
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 printf "%s\n" "$ac_var='\''$ac_val'\''"
2269 done | sort
2270 echo
2271
2272 if test -n "$ac_subst_files"; then
2273 printf "%s\n" "## ------------------- ##
2274 ## File substitutions. ##
2275 ## ------------------- ##"
2276 echo
2277 for ac_var in $ac_subst_files
2278 do
2279 eval ac_val=\$$ac_var
2280 case $ac_val in
2281 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 esac
2283 printf "%s\n" "$ac_var='\''$ac_val'\''"
2284 done | sort
2285 echo
2286 fi
2287
2288 if test -s confdefs.h; then
2289 printf "%s\n" "## ----------- ##
2290 ## confdefs.h. ##
2291 ## ----------- ##"
2292 echo
2293 cat confdefs.h
2294 echo
2295 fi
2296 test "$ac_signal" != 0 &&
2297 printf "%s\n" "$as_me: caught signal $ac_signal"
2298 printf "%s\n" "$as_me: exit $exit_status"
2299 } >&5
2300 rm -f core *.core core.conftest.* &&
2301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302 exit $exit_status
2303 ' 0
2304 for ac_signal in 1 2 13 15; do
2305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 done
2307 ac_signal=0
2308
2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2310 rm -f -r conftest* confdefs.h
2311
2312 printf "%s\n" "/* confdefs.h */" > confdefs.h
2313
2314 # Predefined preprocessor variables.
2315
2316 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2317
2318 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2319
2320 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2321
2322 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2323
2324 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2325
2326 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2327
2328
2329 # Let the site file select an alternate cache file if it wants to.
2330 # Prefer an explicitly selected file to automatically selected ones.
2331 if test -n "$CONFIG_SITE"; then
2332 ac_site_files="$CONFIG_SITE"
2333 elif test "x$prefix" != xNONE; then
2334 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2335 else
2336 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2337 fi
2338
2339 for ac_site_file in $ac_site_files
2340 do
2341 case $ac_site_file in #(
2342 */*) :
2343 ;; #(
2344 *) :
2345 ac_site_file=./$ac_site_file ;;
2346 esac
2347 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2350 sed 's/^/| /' "$ac_site_file" >&5
2351 . "$ac_site_file" \
2352 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2354 as_fn_error $? "failed to load site script $ac_site_file
2355 See \`config.log' for more details" "$LINENO" 5; }
2356 fi
2357 done
2358
2359 if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special files
2361 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2362 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2369 fi
2370 else
2371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2374 fi
2375
2376 # Test code for whether the C compiler supports C89 (global declarations)
2377 ac_c_conftest_c89_globals='
2378 /* Does the compiler advertise C89 conformance?
2379 Do not test the value of __STDC__, because some compilers set it to 0
2380 while being otherwise adequately conformant. */
2381 #if !defined __STDC__
2382 # error "Compiler does not advertise C89 conformance"
2383 #endif
2384
2385 #include <stddef.h>
2386 #include <stdarg.h>
2387 struct stat;
2388 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2389 struct buf { int x; };
2390 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2391 static char *e (p, i)
2392 char **p;
2393 int i;
2394 {
2395 return p[i];
2396 }
2397 static char *f (char * (*g) (char **, int), char **p, ...)
2398 {
2399 char *s;
2400 va_list v;
2401 va_start (v,p);
2402 s = g (p, va_arg (v,int));
2403 va_end (v);
2404 return s;
2405 }
2406
2407 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2408 function prototypes and stuff, but not \xHH hex character constants.
2409 These do not provoke an error unfortunately, instead are silently treated
2410 as an "x". The following induces an error, until -std is added to get
2411 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2412 array size at least. It is necessary to write \x00 == 0 to get something
2413 that is true only with -std. */
2414 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2415
2416 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2417 inside strings and character constants. */
2418 #define FOO(x) '\''x'\''
2419 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2420
2421 int test (int i, double x);
2422 struct s1 {int (*f) (int a);};
2423 struct s2 {int (*f) (double a);};
2424 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2425 int, int);'
2426
2427 # Test code for whether the C compiler supports C89 (body of main).
2428 ac_c_conftest_c89_main='
2429 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2430 '
2431
2432 # Test code for whether the C compiler supports C99 (global declarations)
2433 ac_c_conftest_c99_globals='
2434 // Does the compiler advertise C99 conformance?
2435 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2436 # error "Compiler does not advertise C99 conformance"
2437 #endif
2438
2439 #include <stdbool.h>
2440 extern int puts (const char *);
2441 extern int printf (const char *, ...);
2442 extern int dprintf (int, const char *, ...);
2443 extern void *malloc (size_t);
2444
2445 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2446 // dprintf is used instead of fprintf to avoid needing to declare
2447 // FILE and stderr.
2448 #define debug(...) dprintf (2, __VA_ARGS__)
2449 #define showlist(...) puts (#__VA_ARGS__)
2450 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2451 static void
2452 test_varargs_macros (void)
2453 {
2454 int x = 1234;
2455 int y = 5678;
2456 debug ("Flag");
2457 debug ("X = %d\n", x);
2458 showlist (The first, second, and third items.);
2459 report (x>y, "x is %d but y is %d", x, y);
2460 }
2461
2462 // Check long long types.
2463 #define BIG64 18446744073709551615ull
2464 #define BIG32 4294967295ul
2465 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2466 #if !BIG_OK
2467 #error "your preprocessor is broken"
2468 #endif
2469 #if BIG_OK
2470 #else
2471 #error "your preprocessor is broken"
2472 #endif
2473 static long long int bignum = -9223372036854775807LL;
2474 static unsigned long long int ubignum = BIG64;
2475
2476 struct incomplete_array
2477 {
2478 int datasize;
2479 double data[];
2480 };
2481
2482 struct named_init {
2483 int number;
2484 const wchar_t *name;
2485 double average;
2486 };
2487
2488 typedef const char *ccp;
2489
2490 static inline int
2491 test_restrict (ccp restrict text)
2492 {
2493 // See if C++-style comments work.
2494 // Iterate through items via the restricted pointer.
2495 // Also check for declarations in for loops.
2496 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2497 continue;
2498 return 0;
2499 }
2500
2501 // Check varargs and va_copy.
2502 static bool
2503 test_varargs (const char *format, ...)
2504 {
2505 va_list args;
2506 va_start (args, format);
2507 va_list args_copy;
2508 va_copy (args_copy, args);
2509
2510 const char *str = "";
2511 int number = 0;
2512 float fnumber = 0;
2513
2514 while (*format)
2515 {
2516 switch (*format++)
2517 {
2518 case '\''s'\'': // string
2519 str = va_arg (args_copy, const char *);
2520 break;
2521 case '\''d'\'': // int
2522 number = va_arg (args_copy, int);
2523 break;
2524 case '\''f'\'': // float
2525 fnumber = va_arg (args_copy, double);
2526 break;
2527 default:
2528 break;
2529 }
2530 }
2531 va_end (args_copy);
2532 va_end (args);
2533
2534 return *str && number && fnumber;
2535 }
2536 '
2537
2538 # Test code for whether the C compiler supports C99 (body of main).
2539 ac_c_conftest_c99_main='
2540 // Check bool.
2541 _Bool success = false;
2542 success |= (argc != 0);
2543
2544 // Check restrict.
2545 if (test_restrict ("String literal") == 0)
2546 success = true;
2547 char *restrict newvar = "Another string";
2548
2549 // Check varargs.
2550 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2551 test_varargs_macros ();
2552
2553 // Check flexible array members.
2554 struct incomplete_array *ia =
2555 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2556 ia->datasize = 10;
2557 for (int i = 0; i < ia->datasize; ++i)
2558 ia->data[i] = i * 1.234;
2559
2560 // Check named initializers.
2561 struct named_init ni = {
2562 .number = 34,
2563 .name = L"Test wide string",
2564 .average = 543.34343,
2565 };
2566
2567 ni.number = 58;
2568
2569 int dynamic_array[ni.number];
2570 dynamic_array[0] = argv[0][0];
2571 dynamic_array[ni.number - 1] = 543;
2572
2573 // work around unused variable warnings
2574 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2575 || dynamic_array[ni.number - 1] != 543);
2576 '
2577
2578 # Test code for whether the C compiler supports C11 (global declarations)
2579 ac_c_conftest_c11_globals='
2580 // Does the compiler advertise C11 conformance?
2581 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2582 # error "Compiler does not advertise C11 conformance"
2583 #endif
2584
2585 // Check _Alignas.
2586 char _Alignas (double) aligned_as_double;
2587 char _Alignas (0) no_special_alignment;
2588 extern char aligned_as_int;
2589 char _Alignas (0) _Alignas (int) aligned_as_int;
2590
2591 // Check _Alignof.
2592 enum
2593 {
2594 int_alignment = _Alignof (int),
2595 int_array_alignment = _Alignof (int[100]),
2596 char_alignment = _Alignof (char)
2597 };
2598 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2599
2600 // Check _Noreturn.
2601 int _Noreturn does_not_return (void) { for (;;) continue; }
2602
2603 // Check _Static_assert.
2604 struct test_static_assert
2605 {
2606 int x;
2607 _Static_assert (sizeof (int) <= sizeof (long int),
2608 "_Static_assert does not work in struct");
2609 long int y;
2610 };
2611
2612 // Check UTF-8 literals.
2613 #define u8 syntax error!
2614 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2615
2616 // Check duplicate typedefs.
2617 typedef long *long_ptr;
2618 typedef long int *long_ptr;
2619 typedef long_ptr long_ptr;
2620
2621 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2622 struct anonymous
2623 {
2624 union {
2625 struct { int i; int j; };
2626 struct { int k; long int l; } w;
2627 };
2628 int m;
2629 } v1;
2630 '
2631
2632 # Test code for whether the C compiler supports C11 (body of main).
2633 ac_c_conftest_c11_main='
2634 _Static_assert ((offsetof (struct anonymous, i)
2635 == offsetof (struct anonymous, w.k)),
2636 "Anonymous union alignment botch");
2637 v1.i = 2;
2638 v1.w.k = 5;
2639 ok |= v1.i != 5;
2640 '
2641
2642 # Test code for whether the C compiler supports C11 (complete).
2643 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2644 ${ac_c_conftest_c99_globals}
2645 ${ac_c_conftest_c11_globals}
2646
2647 int
2648 main (int argc, char **argv)
2649 {
2650 int ok = 0;
2651 ${ac_c_conftest_c89_main}
2652 ${ac_c_conftest_c99_main}
2653 ${ac_c_conftest_c11_main}
2654 return ok;
2655 }
2656 "
2657
2658 # Test code for whether the C compiler supports C99 (complete).
2659 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2660 ${ac_c_conftest_c99_globals}
2661
2662 int
2663 main (int argc, char **argv)
2664 {
2665 int ok = 0;
2666 ${ac_c_conftest_c89_main}
2667 ${ac_c_conftest_c99_main}
2668 return ok;
2669 }
2670 "
2671
2672 # Test code for whether the C compiler supports C89 (complete).
2673 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2674
2675 int
2676 main (int argc, char **argv)
2677 {
2678 int ok = 0;
2679 ${ac_c_conftest_c89_main}
2680 return ok;
2681 }
2682 "
2683
2684 # Test code for whether the C++ compiler supports C++98 (global declarations)
2685 ac_cxx_conftest_cxx98_globals='
2686 // Does the compiler advertise C++98 conformance?
2687 #if !defined __cplusplus || __cplusplus < 199711L
2688 # error "Compiler does not advertise C++98 conformance"
2689 #endif
2690
2691 // These inclusions are to reject old compilers that
2692 // lack the unsuffixed header files.
2693 #include <cstdlib>
2694 #include <exception>
2695
2696 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2697 extern void assert (int);
2698 namespace std {
2699 extern int strcmp (const char *, const char *);
2700 }
2701
2702 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2703 using std::exception;
2704 using std::strcmp;
2705
2706 namespace {
2707
2708 void test_exception_syntax()
2709 {
2710 try {
2711 throw "test";
2712 } catch (const char *s) {
2713 // Extra parentheses suppress a warning when building autoconf itself,
2714 // due to lint rules shared with more typical C programs.
2715 assert (!(strcmp) (s, "test"));
2716 }
2717 }
2718
2719 template <typename T> struct test_template
2720 {
2721 T const val;
2722 explicit test_template(T t) : val(t) {}
2723 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2724 };
2725
2726 } // anonymous namespace
2727 '
2728
2729 # Test code for whether the C++ compiler supports C++98 (body of main)
2730 ac_cxx_conftest_cxx98_main='
2731 assert (argc);
2732 assert (! argv[0]);
2733 {
2734 test_exception_syntax ();
2735 test_template<double> tt (2.0);
2736 assert (tt.add (4) == 6.0);
2737 assert (true && !false);
2738 }
2739 '
2740
2741 # Test code for whether the C++ compiler supports C++11 (global declarations)
2742 ac_cxx_conftest_cxx11_globals='
2743 // Does the compiler advertise C++ 2011 conformance?
2744 #if !defined __cplusplus || __cplusplus < 201103L
2745 # error "Compiler does not advertise C++11 conformance"
2746 #endif
2747
2748 namespace cxx11test
2749 {
2750 constexpr int get_val() { return 20; }
2751
2752 struct testinit
2753 {
2754 int i;
2755 double d;
2756 };
2757
2758 class delegate
2759 {
2760 public:
2761 delegate(int n) : n(n) {}
2762 delegate(): delegate(2354) {}
2763
2764 virtual int getval() { return this->n; };
2765 protected:
2766 int n;
2767 };
2768
2769 class overridden : public delegate
2770 {
2771 public:
2772 overridden(int n): delegate(n) {}
2773 virtual int getval() override final { return this->n * 2; }
2774 };
2775
2776 class nocopy
2777 {
2778 public:
2779 nocopy(int i): i(i) {}
2780 nocopy() = default;
2781 nocopy(const nocopy&) = delete;
2782 nocopy & operator=(const nocopy&) = delete;
2783 private:
2784 int i;
2785 };
2786
2787 // for testing lambda expressions
2788 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2789 {
2790 return f(v);
2791 }
2792
2793 // for testing variadic templates and trailing return types
2794 template <typename V> auto sum(V first) -> V
2795 {
2796 return first;
2797 }
2798 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2799 {
2800 return first + sum(rest...);
2801 }
2802 }
2803 '
2804
2805 # Test code for whether the C++ compiler supports C++11 (body of main)
2806 ac_cxx_conftest_cxx11_main='
2807 {
2808 // Test auto and decltype
2809 auto a1 = 6538;
2810 auto a2 = 48573953.4;
2811 auto a3 = "String literal";
2812
2813 int total = 0;
2814 for (auto i = a3; *i; ++i) { total += *i; }
2815
2816 decltype(a2) a4 = 34895.034;
2817 }
2818 {
2819 // Test constexpr
2820 short sa[cxx11test::get_val()] = { 0 };
2821 }
2822 {
2823 // Test initializer lists
2824 cxx11test::testinit il = { 4323, 435234.23544 };
2825 }
2826 {
2827 // Test range-based for
2828 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2829 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2830 for (auto &x : array) { x += 23; }
2831 }
2832 {
2833 // Test lambda expressions
2834 using cxx11test::eval;
2835 assert (eval ([](int x) { return x*2; }, 21) == 42);
2836 double d = 2.0;
2837 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2838 assert (d == 5.0);
2839 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2840 assert (d == 5.0);
2841 }
2842 {
2843 // Test use of variadic templates
2844 using cxx11test::sum;
2845 auto a = sum(1);
2846 auto b = sum(1, 2);
2847 auto c = sum(1.0, 2.0, 3.0);
2848 }
2849 {
2850 // Test constructor delegation
2851 cxx11test::delegate d1;
2852 cxx11test::delegate d2();
2853 cxx11test::delegate d3(45);
2854 }
2855 {
2856 // Test override and final
2857 cxx11test::overridden o1(55464);
2858 }
2859 {
2860 // Test nullptr
2861 char *c = nullptr;
2862 }
2863 {
2864 // Test template brackets
2865 test_template<::test_template<int>> v(test_template<int>(12));
2866 }
2867 {
2868 // Unicode literals
2869 char const *utf8 = u8"UTF-8 string \u2500";
2870 char16_t const *utf16 = u"UTF-8 string \u2500";
2871 char32_t const *utf32 = U"UTF-32 string \u2500";
2872 }
2873 '
2874
2875 # Test code for whether the C compiler supports C++11 (complete).
2876 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2877 ${ac_cxx_conftest_cxx11_globals}
2878
2879 int
2880 main (int argc, char **argv)
2881 {
2882 int ok = 0;
2883 ${ac_cxx_conftest_cxx98_main}
2884 ${ac_cxx_conftest_cxx11_main}
2885 return ok;
2886 }
2887 "
2888
2889 # Test code for whether the C compiler supports C++98 (complete).
2890 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2891 int
2892 main (int argc, char **argv)
2893 {
2894 int ok = 0;
2895 ${ac_cxx_conftest_cxx98_main}
2896 return ok;
2897 }
2898 "
2899
2900 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2901 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2902 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2903 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2904 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2905 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2906 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2907 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2908 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2909
2910 # Auxiliary files required by this configure script.
2911 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2912
2913 # Locations in which to look for auxiliary files.
2914 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2915
2916 # Search for a directory containing all of the required auxiliary files,
2917 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2918 # If we don't find one directory that contains all the files we need,
2919 # we report the set of missing files from the *first* directory in
2920 # $ac_aux_dir_candidates and give up.
2921 ac_missing_aux_files=""
2922 ac_first_candidate=:
2923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 as_found=false
2926 for as_dir in $ac_aux_dir_candidates
2927 do
2928 IFS=$as_save_IFS
2929 case $as_dir in #(((
2930 '') as_dir=./ ;;
2931 */) ;;
2932 *) as_dir=$as_dir/ ;;
2933 esac
2934 as_found=:
2935
2936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2937 ac_aux_dir_found=yes
2938 ac_install_sh=
2939 for ac_aux in $ac_aux_files
2940 do
2941 # As a special case, if "install-sh" is required, that requirement
2942 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2943 # and $ac_install_sh is set appropriately for whichever one is found.
2944 if test x"$ac_aux" = x"install-sh"
2945 then
2946 if test -f "${as_dir}install-sh"; then
2947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2948 ac_install_sh="${as_dir}install-sh -c"
2949 elif test -f "${as_dir}install.sh"; then
2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2951 ac_install_sh="${as_dir}install.sh -c"
2952 elif test -f "${as_dir}shtool"; then
2953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2954 ac_install_sh="${as_dir}shtool install -c"
2955 else
2956 ac_aux_dir_found=no
2957 if $ac_first_candidate; then
2958 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2959 else
2960 break
2961 fi
2962 fi
2963 else
2964 if test -f "${as_dir}${ac_aux}"; then
2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2966 else
2967 ac_aux_dir_found=no
2968 if $ac_first_candidate; then
2969 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2970 else
2971 break
2972 fi
2973 fi
2974 fi
2975 done
2976 if test "$ac_aux_dir_found" = yes; then
2977 ac_aux_dir="$as_dir"
2978 break
2979 fi
2980 ac_first_candidate=false
2981
2982 as_found=false
2983 done
2984 IFS=$as_save_IFS
2985 if $as_found
2986 then :
2987
2988 else $as_nop
2989 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2990 fi
2991
2992
2993 # These three variables are undocumented and unsupported,
2994 # and are intended to be withdrawn in a future Autoconf release.
2995 # They can cause serious problems if a builder's source tree is in a directory
2996 # whose full name contains unusual characters.
2997 if test -f "${ac_aux_dir}config.guess"; then
2998 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2999 fi
3000 if test -f "${ac_aux_dir}config.sub"; then
3001 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3002 fi
3003 if test -f "$ac_aux_dir/configure"; then
3004 ac_configure="$SHELL ${ac_aux_dir}configure"
3005 fi
3006
3007 # Check that the precious variables saved in the cache have kept the same
3008 # value.
3009 ac_cache_corrupted=false
3010 for ac_var in $ac_precious_vars; do
3011 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3012 eval ac_new_set=\$ac_env_${ac_var}_set
3013 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3014 eval ac_new_val=\$ac_env_${ac_var}_value
3015 case $ac_old_set,$ac_new_set in
3016 set,)
3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3018 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3019 ac_cache_corrupted=: ;;
3020 ,set)
3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3022 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3023 ac_cache_corrupted=: ;;
3024 ,);;
3025 *)
3026 if test "x$ac_old_val" != "x$ac_new_val"; then
3027 # differences in whitespace do not lead to failure.
3028 ac_old_val_w=`echo x $ac_old_val`
3029 ac_new_val_w=`echo x $ac_new_val`
3030 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3032 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3033 ac_cache_corrupted=:
3034 else
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3036 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3037 eval $ac_var=\$ac_old_val
3038 fi
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3040 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3042 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3043 fi;;
3044 esac
3045 # Pass precious variables to config.status.
3046 if test "$ac_new_set" = set; then
3047 case $ac_new_val in
3048 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3049 *) ac_arg=$ac_var=$ac_new_val ;;
3050 esac
3051 case " $ac_configure_args " in
3052 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3053 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3054 esac
3055 fi
3056 done
3057 if $ac_cache_corrupted; then
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3061 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3062 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3063 and start over" "$LINENO" 5
3064 fi
3065 ## -------------------- ##
3066 ## Main body of script. ##
3067 ## -------------------- ##
3068
3069 ac_ext=c
3070 ac_cpp='$CPP $CPPFLAGS'
3071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074
3075
3076
3077 am__api_version='1.16'
3078
3079
3080
3081 # Find a good install program. We prefer a C program (faster),
3082 # so one script is as good as another. But avoid the broken or
3083 # incompatible versions:
3084 # SysV /etc/install, /usr/sbin/install
3085 # SunOS /usr/etc/install
3086 # IRIX /sbin/install
3087 # AIX /bin/install
3088 # AmigaOS /C/install, which installs bootblocks on floppy discs
3089 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3090 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3091 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3092 # OS/2's system install, which has a completely different semantic
3093 # ./install, which can be erroneously created by make from ./install.sh.
3094 # Reject install programs that cannot install multiple files.
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3096 printf %s "checking for a BSD-compatible install... " >&6; }
3097 if test -z "$INSTALL"; then
3098 if test ${ac_cv_path_install+y}
3099 then :
3100 printf %s "(cached) " >&6
3101 else $as_nop
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 case $as_dir in #(((
3107 '') as_dir=./ ;;
3108 */) ;;
3109 *) as_dir=$as_dir/ ;;
3110 esac
3111 # Account for fact that we put trailing slashes in our PATH walk.
3112 case $as_dir in #((
3113 ./ | /[cC]/* | \
3114 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3115 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3116 /usr/ucb/* ) ;;
3117 *)
3118 # OSF1 and SCO ODT 3.0 have their own names for install.
3119 # Don't use installbsd from OSF since it installs stuff as root
3120 # by default.
3121 for ac_prog in ginstall scoinst install; do
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3124 if test $ac_prog = install &&
3125 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3126 # AIX install. It has an incompatible calling convention.
3127 :
3128 elif test $ac_prog = install &&
3129 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3130 # program-specific install script used by HP pwplus--don't use.
3131 :
3132 else
3133 rm -rf conftest.one conftest.two conftest.dir
3134 echo one > conftest.one
3135 echo two > conftest.two
3136 mkdir conftest.dir
3137 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3138 test -s conftest.one && test -s conftest.two &&
3139 test -s conftest.dir/conftest.one &&
3140 test -s conftest.dir/conftest.two
3141 then
3142 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3143 break 3
3144 fi
3145 fi
3146 fi
3147 done
3148 done
3149 ;;
3150 esac
3151
3152 done
3153 IFS=$as_save_IFS
3154
3155 rm -rf conftest.one conftest.two conftest.dir
3156
3157 fi
3158 if test ${ac_cv_path_install+y}; then
3159 INSTALL=$ac_cv_path_install
3160 else
3161 # As a last resort, use the slow shell script. Don't cache a
3162 # value for INSTALL within a source directory, because that will
3163 # break other packages using the cache if that directory is
3164 # removed, or if the value is a relative name.
3165 INSTALL=$ac_install_sh
3166 fi
3167 fi
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3169 printf "%s\n" "$INSTALL" >&6; }
3170
3171 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3172 # It thinks the first close brace ends the variable substitution.
3173 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3174
3175 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3176
3177 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3178
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3180 printf %s "checking whether build environment is sane... " >&6; }
3181 # Reject unsafe characters in $srcdir or the absolute working directory
3182 # name. Accept space and tab only in the latter.
3183 am_lf='
3184 '
3185 case `pwd` in
3186 *[\\\"\#\$\&\'\`$am_lf]*)
3187 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3188 esac
3189 case $srcdir in
3190 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3191 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3192 esac
3193
3194 # Do 'set' in a subshell so we don't clobber the current shell's
3195 # arguments. Must try -L first in case configure is actually a
3196 # symlink; some systems play weird games with the mod time of symlinks
3197 # (eg FreeBSD returns the mod time of the symlink's containing
3198 # directory).
3199 if (
3200 am_has_slept=no
3201 for am_try in 1 2; do
3202 echo "timestamp, slept: $am_has_slept" > conftest.file
3203 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3204 if test "$*" = "X"; then
3205 # -L didn't work.
3206 set X `ls -t "$srcdir/configure" conftest.file`
3207 fi
3208 if test "$*" != "X $srcdir/configure conftest.file" \
3209 && test "$*" != "X conftest.file $srcdir/configure"; then
3210
3211 # If neither matched, then we have a broken ls. This can happen
3212 # if, for instance, CONFIG_SHELL is bash and it inherits a
3213 # broken ls alias from the environment. This has actually
3214 # happened. Such a system could not be considered "sane".
3215 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3216 alias in your environment" "$LINENO" 5
3217 fi
3218 if test "$2" = conftest.file || test $am_try -eq 2; then
3219 break
3220 fi
3221 # Just in case.
3222 sleep 1
3223 am_has_slept=yes
3224 done
3225 test "$2" = conftest.file
3226 )
3227 then
3228 # Ok.
3229 :
3230 else
3231 as_fn_error $? "newly created file is older than distributed files!
3232 Check your system clock" "$LINENO" 5
3233 fi
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3235 printf "%s\n" "yes" >&6; }
3236 # If we didn't sleep, we still need to ensure time stamps of config.status and
3237 # generated files are strictly newer.
3238 am_sleep_pid=
3239 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3240 ( sleep 1 ) &
3241 am_sleep_pid=$!
3242 fi
3243
3244 rm -f conftest.file
3245
3246 test "$program_prefix" != NONE &&
3247 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3248 # Use a double $ so make ignores it.
3249 test "$program_suffix" != NONE &&
3250 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3251 # Double any \ or $.
3252 # By default was `s,x,x', remove it if useless.
3253 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3254 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3255
3256
3257 # Expand $ac_aux_dir to an absolute path.
3258 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3259
3260
3261 if test x"${MISSING+set}" != xset; then
3262 MISSING="\${SHELL} '$am_aux_dir/missing'"
3263 fi
3264 # Use eval to expand $SHELL
3265 if eval "$MISSING --is-lightweight"; then
3266 am_missing_run="$MISSING "
3267 else
3268 am_missing_run=
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3270 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3271 fi
3272
3273 if test x"${install_sh+set}" != xset; then
3274 case $am_aux_dir in
3275 *\ * | *\ *)
3276 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3277 *)
3278 install_sh="\${SHELL} $am_aux_dir/install-sh"
3279 esac
3280 fi
3281
3282 # Installed binaries are usually stripped using 'strip' when the user
3283 # run "make install-strip". However 'strip' might not be the right
3284 # tool to use in cross-compilation environments, therefore Automake
3285 # will honor the 'STRIP' environment variable to overrule this program.
3286 if test "$cross_compiling" != no; then
3287 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3289 set dummy ${ac_tool_prefix}strip; ac_word=$2
3290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 printf %s "checking for $ac_word... " >&6; }
3292 if test ${ac_cv_prog_STRIP+y}
3293 then :
3294 printf %s "(cached) " >&6
3295 else $as_nop
3296 if test -n "$STRIP"; then
3297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302 IFS=$as_save_IFS
3303 case $as_dir in #(((
3304 '') as_dir=./ ;;
3305 */) ;;
3306 *) as_dir=$as_dir/ ;;
3307 esac
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3312 break 2
3313 fi
3314 done
3315 done
3316 IFS=$as_save_IFS
3317
3318 fi
3319 fi
3320 STRIP=$ac_cv_prog_STRIP
3321 if test -n "$STRIP"; then
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3323 printf "%s\n" "$STRIP" >&6; }
3324 else
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 printf "%s\n" "no" >&6; }
3327 fi
3328
3329
3330 fi
3331 if test -z "$ac_cv_prog_STRIP"; then
3332 ac_ct_STRIP=$STRIP
3333 # Extract the first word of "strip", so it can be a program name with args.
3334 set dummy strip; ac_word=$2
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 printf %s "checking for $ac_word... " >&6; }
3337 if test ${ac_cv_prog_ac_ct_STRIP+y}
3338 then :
3339 printf %s "(cached) " >&6
3340 else $as_nop
3341 if test -n "$ac_ct_STRIP"; then
3342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347 IFS=$as_save_IFS
3348 case $as_dir in #(((
3349 '') as_dir=./ ;;
3350 */) ;;
3351 *) as_dir=$as_dir/ ;;
3352 esac
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_ac_ct_STRIP="strip"
3356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359 done
3360 done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3366 if test -n "$ac_ct_STRIP"; then
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3368 printf "%s\n" "$ac_ct_STRIP" >&6; }
3369 else
3370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 printf "%s\n" "no" >&6; }
3372 fi
3373
3374 if test "x$ac_ct_STRIP" = x; then
3375 STRIP=":"
3376 else
3377 case $cross_compiling:$ac_tool_warned in
3378 yes:)
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3380 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3381 ac_tool_warned=yes ;;
3382 esac
3383 STRIP=$ac_ct_STRIP
3384 fi
3385 else
3386 STRIP="$ac_cv_prog_STRIP"
3387 fi
3388
3389 fi
3390 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3391
3392
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3394 printf %s "checking for a race-free mkdir -p... " >&6; }
3395 if test -z "$MKDIR_P"; then
3396 if test ${ac_cv_path_mkdir+y}
3397 then :
3398 printf %s "(cached) " >&6
3399 else $as_nop
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3402 do
3403 IFS=$as_save_IFS
3404 case $as_dir in #(((
3405 '') as_dir=./ ;;
3406 */) ;;
3407 *) as_dir=$as_dir/ ;;
3408 esac
3409 for ac_prog in mkdir gmkdir; do
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3412 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3413 'mkdir ('*'coreutils) '* | \
3414 'BusyBox '* | \
3415 'mkdir (fileutils) '4.1*)
3416 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3417 break 3;;
3418 esac
3419 done
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 fi
3425
3426 test -d ./--version && rmdir ./--version
3427 if test ${ac_cv_path_mkdir+y}; then
3428 MKDIR_P="$ac_cv_path_mkdir -p"
3429 else
3430 # As a last resort, use the slow shell script. Don't cache a
3431 # value for MKDIR_P within a source directory, because that will
3432 # break other packages using the cache if that directory is
3433 # removed, or if the value is a relative name.
3434 MKDIR_P="$ac_install_sh -d"
3435 fi
3436 fi
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3438 printf "%s\n" "$MKDIR_P" >&6; }
3439
3440 for ac_prog in gawk mawk nawk awk
3441 do
3442 # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 printf %s "checking for $ac_word... " >&6; }
3446 if test ${ac_cv_prog_AWK+y}
3447 then :
3448 printf %s "(cached) " >&6
3449 else $as_nop
3450 if test -n "$AWK"; then
3451 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456 IFS=$as_save_IFS
3457 case $as_dir in #(((
3458 '') as_dir=./ ;;
3459 */) ;;
3460 *) as_dir=$as_dir/ ;;
3461 esac
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_AWK="$ac_prog"
3465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3466 break 2
3467 fi
3468 done
3469 done
3470 IFS=$as_save_IFS
3471
3472 fi
3473 fi
3474 AWK=$ac_cv_prog_AWK
3475 if test -n "$AWK"; then
3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3477 printf "%s\n" "$AWK" >&6; }
3478 else
3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 printf "%s\n" "no" >&6; }
3481 fi
3482
3483
3484 test -n "$AWK" && break
3485 done
3486
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3488 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3489 set x ${MAKE-make}
3490 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3491 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3492 then :
3493 printf %s "(cached) " >&6
3494 else $as_nop
3495 cat >conftest.make <<\_ACEOF
3496 SHELL = /bin/sh
3497 all:
3498 @echo '@@@%%%=$(MAKE)=@@@%%%'
3499 _ACEOF
3500 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3501 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3502 *@@@%%%=?*=@@@%%%*)
3503 eval ac_cv_prog_make_${ac_make}_set=yes;;
3504 *)
3505 eval ac_cv_prog_make_${ac_make}_set=no;;
3506 esac
3507 rm -f conftest.make
3508 fi
3509 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3511 printf "%s\n" "yes" >&6; }
3512 SET_MAKE=
3513 else
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 printf "%s\n" "no" >&6; }
3516 SET_MAKE="MAKE=${MAKE-make}"
3517 fi
3518
3519 rm -rf .tst 2>/dev/null
3520 mkdir .tst 2>/dev/null
3521 if test -d .tst; then
3522 am__leading_dot=.
3523 else
3524 am__leading_dot=_
3525 fi
3526 rmdir .tst 2>/dev/null
3527
3528 # Check whether --enable-silent-rules was given.
3529 if test ${enable_silent_rules+y}
3530 then :
3531 enableval=$enable_silent_rules;
3532 fi
3533
3534 case $enable_silent_rules in # (((
3535 yes) AM_DEFAULT_VERBOSITY=0;;
3536 no) AM_DEFAULT_VERBOSITY=1;;
3537 *) AM_DEFAULT_VERBOSITY=1;;
3538 esac
3539 am_make=${MAKE-make}
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3541 printf %s "checking whether $am_make supports nested variables... " >&6; }
3542 if test ${am_cv_make_support_nested_variables+y}
3543 then :
3544 printf %s "(cached) " >&6
3545 else $as_nop
3546 if printf "%s\n" 'TRUE=$(BAR$(V))
3547 BAR0=false
3548 BAR1=true
3549 V=1
3550 am__doit:
3551 @$(TRUE)
3552 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3553 am_cv_make_support_nested_variables=yes
3554 else
3555 am_cv_make_support_nested_variables=no
3556 fi
3557 fi
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3559 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3560 if test $am_cv_make_support_nested_variables = yes; then
3561 AM_V='$(V)'
3562 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3563 else
3564 AM_V=$AM_DEFAULT_VERBOSITY
3565 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3566 fi
3567 AM_BACKSLASH='\'
3568
3569 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3570 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3571 # is not polluted with repeated "-I."
3572 am__isrc=' -I$(srcdir)'
3573 # test to see if srcdir already configured
3574 if test -f $srcdir/config.status; then
3575 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3576 fi
3577 fi
3578
3579 # test whether we have cygpath
3580 if test -z "$CYGPATH_W"; then
3581 if (cygpath --version) >/dev/null 2>/dev/null; then
3582 CYGPATH_W='cygpath -w'
3583 else
3584 CYGPATH_W=echo
3585 fi
3586 fi
3587
3588
3589 # Define the identity of the package.
3590 PACKAGE='lcmaps'
3591 VERSION='1.6.7'
3592
3593
3594 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3595
3596
3597 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3598
3599 # Some tools Automake needs.
3600
3601 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3602
3603
3604 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3605
3606
3607 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3608
3609
3610 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3611
3612
3613 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3614
3615 # For better backward compatibility. To be removed once Automake 1.9.x
3616 # dies out for good. For more background, see:
3617 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3618 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3619 mkdir_p='$(MKDIR_P)'
3620
3621 # We need awk for the "check" target (and possibly the TAP driver). The
3622 # system "awk" is bad on some platforms.
3623 # Always define AMTAR for backward compatibility. Yes, it's still used
3624 # in the wild :-( We should find a proper way to deprecate it ...
3625 AMTAR='$${TAR-tar}'
3626
3627
3628 # We'll loop over all known methods to create a tar archive until one works.
3629 _am_tools='gnutar pax cpio none'
3630
3631 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3632
3633
3634
3635
3636
3637 # Variables for tags utilities; see am/tags.am
3638 if test -z "$CTAGS"; then
3639 CTAGS=ctags
3640 fi
3641
3642 if test -z "$ETAGS"; then
3643 ETAGS=etags
3644 fi
3645
3646 if test -z "$CSCOPE"; then
3647 CSCOPE=cscope
3648 fi
3649
3650
3651
3652 # POSIX will say in a future version that running "rm -f" with no argument
3653 # is OK; and we want to be able to make that assumption in our Makefile
3654 # recipes. So use an aggressive probe to check that the usage we want is
3655 # actually supported "in the wild" to an acceptable degree.
3656 # See automake bug#10828.
3657 # To make any issue more visible, cause the running configure to be aborted
3658 # by default if the 'rm' program in use doesn't match our expectations; the
3659 # user can still override this though.
3660 if rm -f && rm -fr && rm -rf; then : OK; else
3661 cat >&2 <<'END'
3662 Oops!
3663
3664 Your 'rm' program seems unable to run without file operands specified
3665 on the command line, even when the '-f' option is present. This is contrary
3666 to the behaviour of most rm programs out there, and not conforming with
3667 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3668
3669 Please tell [email protected] about your system, including the value
3670 of your $PATH and any error possibly output before this message. This
3671 can help us improve future automake versions.
3672
3673 END
3674 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3675 echo 'Configuration will proceed anyway, since you have set the' >&2
3676 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3677 echo >&2
3678 else
3679 cat >&2 <<'END'
3680 Aborting the configuration process, to ensure you take notice of the issue.
3681
3682 You can download and install GNU coreutils to get an 'rm' implementation
3683 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3684
3685 If you want to complete the configuration process using your problematic
3686 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3687 to "yes", and re-run configure.
3688
3689 END
3690 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3691 fi
3692 fi
3693
3694
3695
3696 # Notices.
3697
3698
3699
3700 #Environment.
3701 WORKDIR=`pwd`
3702
3703
3704 DISTBIN=$WORKDIR/../../dist
3705
3706
3707 # Checks for programs.
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722 if test -n "$ac_tool_prefix"; then
3723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 printf %s "checking for $ac_word... " >&6; }
3727 if test ${ac_cv_prog_CC+y}
3728 then :
3729 printf %s "(cached) " >&6
3730 else $as_nop
3731 if test -n "$CC"; then
3732 ac_cv_prog_CC="$CC" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737 IFS=$as_save_IFS
3738 case $as_dir in #(((
3739 '') as_dir=./ ;;
3740 */) ;;
3741 *) as_dir=$as_dir/ ;;
3742 esac
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749 done
3750 done
3751 IFS=$as_save_IFS
3752
3753 fi
3754 fi
3755 CC=$ac_cv_prog_CC
3756 if test -n "$CC"; then
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758 printf "%s\n" "$CC" >&6; }
3759 else
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 printf "%s\n" "no" >&6; }
3762 fi
3763
3764
3765 fi
3766 if test -z "$ac_cv_prog_CC"; then
3767 ac_ct_CC=$CC
3768 # Extract the first word of "gcc", so it can be a program name with args.
3769 set dummy gcc; ac_word=$2
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 printf %s "checking for $ac_word... " >&6; }
3772 if test ${ac_cv_prog_ac_ct_CC+y}
3773 then :
3774 printf %s "(cached) " >&6
3775 else $as_nop
3776 if test -n "$ac_ct_CC"; then
3777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782 IFS=$as_save_IFS
3783 case $as_dir in #(((
3784 '') as_dir=./ ;;
3785 */) ;;
3786 *) as_dir=$as_dir/ ;;
3787 esac
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_ac_ct_CC="gcc"
3791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3792 break 2
3793 fi
3794 done
3795 done
3796 IFS=$as_save_IFS
3797
3798 fi
3799 fi
3800 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3801 if test -n "$ac_ct_CC"; then
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3803 printf "%s\n" "$ac_ct_CC" >&6; }
3804 else
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 printf "%s\n" "no" >&6; }
3807 fi
3808
3809 if test "x$ac_ct_CC" = x; then
3810 CC=""
3811 else
3812 case $cross_compiling:$ac_tool_warned in
3813 yes:)
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3815 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3816 ac_tool_warned=yes ;;
3817 esac
3818 CC=$ac_ct_CC
3819 fi
3820 else
3821 CC="$ac_cv_prog_CC"
3822 fi
3823
3824 if test -z "$CC"; then
3825 if test -n "$ac_tool_prefix"; then
3826 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3827 set dummy ${ac_tool_prefix}cc; ac_word=$2
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 printf %s "checking for $ac_word... " >&6; }
3830 if test ${ac_cv_prog_CC+y}
3831 then :
3832 printf %s "(cached) " >&6
3833 else $as_nop
3834 if test -n "$CC"; then
3835 ac_cv_prog_CC="$CC" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840 IFS=$as_save_IFS
3841 case $as_dir in #(((
3842 '') as_dir=./ ;;
3843 */) ;;
3844 *) as_dir=$as_dir/ ;;
3845 esac
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_CC="${ac_tool_prefix}cc"
3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3850 break 2
3851 fi
3852 done
3853 done
3854 IFS=$as_save_IFS
3855
3856 fi
3857 fi
3858 CC=$ac_cv_prog_CC
3859 if test -n "$CC"; then
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 printf "%s\n" "$CC" >&6; }
3862 else
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 printf "%s\n" "no" >&6; }
3865 fi
3866
3867
3868 fi
3869 fi
3870 if test -z "$CC"; then
3871 # Extract the first word of "cc", so it can be a program name with args.
3872 set dummy cc; ac_word=$2
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874 printf %s "checking for $ac_word... " >&6; }
3875 if test ${ac_cv_prog_CC+y}
3876 then :
3877 printf %s "(cached) " >&6
3878 else $as_nop
3879 if test -n "$CC"; then
3880 ac_cv_prog_CC="$CC" # Let the user override the test.
3881 else
3882 ac_prog_rejected=no
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 case $as_dir in #(((
3888 '') as_dir=./ ;;
3889 */) ;;
3890 *) as_dir=$as_dir/ ;;
3891 esac
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3894 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895 ac_prog_rejected=yes
3896 continue
3897 fi
3898 ac_cv_prog_CC="cc"
3899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902 done
3903 done
3904 IFS=$as_save_IFS
3905
3906 if test $ac_prog_rejected = yes; then
3907 # We found a bogon in the path, so make sure we never use it.
3908 set dummy $ac_cv_prog_CC
3909 shift
3910 if test $# != 0; then
3911 # We chose a different compiler from the bogus one.
3912 # However, it has the same basename, so the bogon will be chosen
3913 # first if we set CC to just the basename; use the full file name.
3914 shift
3915 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3916 fi
3917 fi
3918 fi
3919 fi
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 printf "%s\n" "$CC" >&6; }
3924 else
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 printf "%s\n" "no" >&6; }
3927 fi
3928
3929
3930 fi
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog in cl.exe
3934 do
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 printf %s "checking for $ac_word... " >&6; }
3939 if test ${ac_cv_prog_CC+y}
3940 then :
3941 printf %s "(cached) " >&6
3942 else $as_nop
3943 if test -n "$CC"; then
3944 ac_cv_prog_CC="$CC" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949 IFS=$as_save_IFS
3950 case $as_dir in #(((
3951 '') as_dir=./ ;;
3952 */) ;;
3953 *) as_dir=$as_dir/ ;;
3954 esac
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3959 break 2
3960 fi
3961 done
3962 done
3963 IFS=$as_save_IFS
3964
3965 fi
3966 fi
3967 CC=$ac_cv_prog_CC
3968 if test -n "$CC"; then
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3970 printf "%s\n" "$CC" >&6; }
3971 else
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 printf "%s\n" "no" >&6; }
3974 fi
3975
3976
3977 test -n "$CC" && break
3978 done
3979 fi
3980 if test -z "$CC"; then
3981 ac_ct_CC=$CC
3982 for ac_prog in cl.exe
3983 do
3984 # Extract the first word of "$ac_prog", so it can be a program name with args.
3985 set dummy $ac_prog; ac_word=$2
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 printf %s "checking for $ac_word... " >&6; }
3988 if test ${ac_cv_prog_ac_ct_CC+y}
3989 then :
3990 printf %s "(cached) " >&6
3991 else $as_nop
3992 if test -n "$ac_ct_CC"; then
3993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998 IFS=$as_save_IFS
3999 case $as_dir in #(((
4000 '') as_dir=./ ;;
4001 */) ;;
4002 *) as_dir=$as_dir/ ;;
4003 esac
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_ac_ct_CC="$ac_prog"
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4008 break 2
4009 fi
4010 done
4011 done
4012 IFS=$as_save_IFS
4013
4014 fi
4015 fi
4016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017 if test -n "$ac_ct_CC"; then
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4019 printf "%s\n" "$ac_ct_CC" >&6; }
4020 else
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 printf "%s\n" "no" >&6; }
4023 fi
4024
4025
4026 test -n "$ac_ct_CC" && break
4027 done
4028
4029 if test "x$ac_ct_CC" = x; then
4030 CC=""
4031 else
4032 case $cross_compiling:$ac_tool_warned in
4033 yes:)
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4035 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4036 ac_tool_warned=yes ;;
4037 esac
4038 CC=$ac_ct_CC
4039 fi
4040 fi
4041
4042 fi
4043 if test -z "$CC"; then
4044 if test -n "$ac_tool_prefix"; then
4045 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4046 set dummy ${ac_tool_prefix}clang; ac_word=$2
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 printf %s "checking for $ac_word... " >&6; }
4049 if test ${ac_cv_prog_CC+y}
4050 then :
4051 printf %s "(cached) " >&6
4052 else $as_nop
4053 if test -n "$CC"; then
4054 ac_cv_prog_CC="$CC" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059 IFS=$as_save_IFS
4060 case $as_dir in #(((
4061 '') as_dir=./ ;;
4062 */) ;;
4063 *) as_dir=$as_dir/ ;;
4064 esac
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_CC="${ac_tool_prefix}clang"
4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4069 break 2
4070 fi
4071 done
4072 done
4073 IFS=$as_save_IFS
4074
4075 fi
4076 fi
4077 CC=$ac_cv_prog_CC
4078 if test -n "$CC"; then
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4080 printf "%s\n" "$CC" >&6; }
4081 else
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4083 printf "%s\n" "no" >&6; }
4084 fi
4085
4086
4087 fi
4088 if test -z "$ac_cv_prog_CC"; then
4089 ac_ct_CC=$CC
4090 # Extract the first word of "clang", so it can be a program name with args.
4091 set dummy clang; ac_word=$2
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 printf %s "checking for $ac_word... " >&6; }
4094 if test ${ac_cv_prog_ac_ct_CC+y}
4095 then :
4096 printf %s "(cached) " >&6
4097 else $as_nop
4098 if test -n "$ac_ct_CC"; then
4099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104 IFS=$as_save_IFS
4105 case $as_dir in #(((
4106 '') as_dir=./ ;;
4107 */) ;;
4108 *) as_dir=$as_dir/ ;;
4109 esac
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4112 ac_cv_prog_ac_ct_CC="clang"
4113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4123 if test -n "$ac_ct_CC"; then
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4125 printf "%s\n" "$ac_ct_CC" >&6; }
4126 else
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 printf "%s\n" "no" >&6; }
4129 fi
4130
4131 if test "x$ac_ct_CC" = x; then
4132 CC=""
4133 else
4134 case $cross_compiling:$ac_tool_warned in
4135 yes:)
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4137 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4138 ac_tool_warned=yes ;;
4139 esac
4140 CC=$ac_ct_CC
4141 fi
4142 else
4143 CC="$ac_cv_prog_CC"
4144 fi
4145
4146 fi
4147
4148
4149 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4151 as_fn_error $? "no acceptable C compiler found in \$PATH
4152 See \`config.log' for more details" "$LINENO" 5; }
4153
4154 # Provide some information about the compiler.
4155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4156 set X $ac_compile
4157 ac_compiler=$2
4158 for ac_option in --version -v -V -qversion -version; do
4159 { { ac_try="$ac_compiler $ac_option >&5"
4160 case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163 esac
4164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4165 printf "%s\n" "$ac_try_echo"; } >&5
4166 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4167 ac_status=$?
4168 if test -s conftest.err; then
4169 sed '10a\
4170 ... rest of stderr output deleted ...
4171 10q' conftest.err >conftest.er1
4172 cat conftest.er1 >&5
4173 fi
4174 rm -f conftest.er1 conftest.err
4175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4176 test $ac_status = 0; }
4177 done
4178
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181
4182 int
4183 main (void)
4184 {
4185
4186 ;
4187 return 0;
4188 }
4189 _ACEOF
4190 ac_clean_files_save=$ac_clean_files
4191 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4192 # Try to create an executable without -o first, disregard a.out.
4193 # It will help us diagnose broken compilers, and finding out an intuition
4194 # of exeext.
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4196 printf %s "checking whether the C compiler works... " >&6; }
4197 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4198
4199 # The possible output files:
4200 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4201
4202 ac_rmfiles=
4203 for ac_file in $ac_files
4204 do
4205 case $ac_file in
4206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4207 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4208 esac
4209 done
4210 rm -f $ac_rmfiles
4211
4212 if { { ac_try="$ac_link_default"
4213 case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4218 printf "%s\n" "$ac_try_echo"; } >&5
4219 (eval "$ac_link_default") 2>&5
4220 ac_status=$?
4221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4222 test $ac_status = 0; }
4223 then :
4224 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4225 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4226 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4227 # so that the user can short-circuit this test for compilers unknown to
4228 # Autoconf.
4229 for ac_file in $ac_files ''
4230 do
4231 test -f "$ac_file" || continue
4232 case $ac_file in
4233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4234 ;;
4235 [ab].out )
4236 # We found the default executable, but exeext='' is most
4237 # certainly right.
4238 break;;
4239 *.* )
4240 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4241 then :; else
4242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4243 fi
4244 # We set ac_cv_exeext here because the later test for it is not
4245 # safe: cross compilers may not add the suffix if given an `-o'
4246 # argument, so we may need to know it at that point already.
4247 # Even if this section looks crufty: it has the advantage of
4248 # actually working.
4249 break;;
4250 * )
4251 break;;
4252 esac
4253 done
4254 test "$ac_cv_exeext" = no && ac_cv_exeext=
4255
4256 else $as_nop
4257 ac_file=''
4258 fi
4259 if test -z "$ac_file"
4260 then :
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 printf "%s\n" "no" >&6; }
4263 printf "%s\n" "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4268 as_fn_error 77 "C compiler cannot create executables
4269 See \`config.log' for more details" "$LINENO" 5; }
4270 else $as_nop
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4272 printf "%s\n" "yes" >&6; }
4273 fi
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4275 printf %s "checking for C compiler default output file name... " >&6; }
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4277 printf "%s\n" "$ac_file" >&6; }
4278 ac_exeext=$ac_cv_exeext
4279
4280 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4281 ac_clean_files=$ac_clean_files_save
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4283 printf %s "checking for suffix of executables... " >&6; }
4284 if { { ac_try="$ac_link"
4285 case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 printf "%s\n" "$ac_try_echo"; } >&5
4291 (eval "$ac_link") 2>&5
4292 ac_status=$?
4293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4294 test $ac_status = 0; }
4295 then :
4296 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4297 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4298 # work properly (i.e., refer to `conftest.exe'), while it won't with
4299 # `rm'.
4300 for ac_file in conftest.exe conftest conftest.*; do
4301 test -f "$ac_file" || continue
4302 case $ac_file in
4303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4304 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4305 break;;
4306 * ) break;;
4307 esac
4308 done
4309 else $as_nop
4310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4311 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4312 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4313 See \`config.log' for more details" "$LINENO" 5; }
4314 fi
4315 rm -f conftest conftest$ac_cv_exeext
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4317 printf "%s\n" "$ac_cv_exeext" >&6; }
4318
4319 rm -f conftest.$ac_ext
4320 EXEEXT=$ac_cv_exeext
4321 ac_exeext=$EXEEXT
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324 #include <stdio.h>
4325 int
4326 main (void)
4327 {
4328 FILE *f = fopen ("conftest.out", "w");
4329 return ferror (f) || fclose (f) != 0;
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 ac_clean_files="$ac_clean_files conftest.out"
4336 # Check that the compiler produces executables we can run. If not, either
4337 # the compiler is broken, or we cross compile.
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4339 printf %s "checking whether we are cross compiling... " >&6; }
4340 if test "$cross_compiling" != yes; then
4341 { { ac_try="$ac_link"
4342 case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345 esac
4346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 printf "%s\n" "$ac_try_echo"; } >&5
4348 (eval "$ac_link") 2>&5
4349 ac_status=$?
4350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }
4352 if { ac_try='./conftest$ac_cv_exeext'
4353 { { case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356 esac
4357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4358 printf "%s\n" "$ac_try_echo"; } >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4362 test $ac_status = 0; }; }; then
4363 cross_compiling=no
4364 else
4365 if test "$cross_compiling" = maybe; then
4366 cross_compiling=yes
4367 else
4368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4370 as_fn_error 77 "cannot run C compiled programs.
4371 If you meant to cross compile, use \`--host'.
4372 See \`config.log' for more details" "$LINENO" 5; }
4373 fi
4374 fi
4375 fi
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4377 printf "%s\n" "$cross_compiling" >&6; }
4378
4379 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4380 ac_clean_files=$ac_clean_files_save
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4382 printf %s "checking for suffix of object files... " >&6; }
4383 if test ${ac_cv_objext+y}
4384 then :
4385 printf %s "(cached) " >&6
4386 else $as_nop
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389
4390 int
4391 main (void)
4392 {
4393
4394 ;
4395 return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.o conftest.obj
4399 if { { ac_try="$ac_compile"
4400 case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403 esac
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 printf "%s\n" "$ac_try_echo"; } >&5
4406 (eval "$ac_compile") 2>&5
4407 ac_status=$?
4408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4409 test $ac_status = 0; }
4410 then :
4411 for ac_file in conftest.o conftest.obj conftest.*; do
4412 test -f "$ac_file" || continue;
4413 case $ac_file in
4414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4415 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4416 break;;
4417 esac
4418 done
4419 else $as_nop
4420 printf "%s\n" "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4424 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4425 as_fn_error $? "cannot compute suffix of object files: cannot compile
4426 See \`config.log' for more details" "$LINENO" 5; }
4427 fi
4428 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4429 fi
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4431 printf "%s\n" "$ac_cv_objext" >&6; }
4432 OBJEXT=$ac_cv_objext
4433 ac_objext=$OBJEXT
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4435 printf %s "checking whether the compiler supports GNU C... " >&6; }
4436 if test ${ac_cv_c_compiler_gnu+y}
4437 then :
4438 printf %s "(cached) " >&6
4439 else $as_nop
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442
4443 int
4444 main (void)
4445 {
4446 #ifndef __GNUC__
4447 choke me
4448 #endif
4449
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 if ac_fn_c_try_compile "$LINENO"
4455 then :
4456 ac_compiler_gnu=yes
4457 else $as_nop
4458 ac_compiler_gnu=no
4459 fi
4460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4461 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4462
4463 fi
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4465 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467
4468 if test $ac_compiler_gnu = yes; then
4469 GCC=yes
4470 else
4471 GCC=
4472 fi
4473 ac_test_CFLAGS=${CFLAGS+y}
4474 ac_save_CFLAGS=$CFLAGS
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4476 printf %s "checking whether $CC accepts -g... " >&6; }
4477 if test ${ac_cv_prog_cc_g+y}
4478 then :
4479 printf %s "(cached) " >&6
4480 else $as_nop
4481 ac_save_c_werror_flag=$ac_c_werror_flag
4482 ac_c_werror_flag=yes
4483 ac_cv_prog_cc_g=no
4484 CFLAGS="-g"
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487
4488 int
4489 main (void)
4490 {
4491
4492 ;
4493 return 0;
4494 }
4495 _ACEOF
4496 if ac_fn_c_try_compile "$LINENO"
4497 then :
4498 ac_cv_prog_cc_g=yes
4499 else $as_nop
4500 CFLAGS=""
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503
4504 int
4505 main (void)
4506 {
4507
4508 ;
4509 return 0;
4510 }
4511 _ACEOF
4512 if ac_fn_c_try_compile "$LINENO"
4513 then :
4514
4515 else $as_nop
4516 ac_c_werror_flag=$ac_save_c_werror_flag
4517 CFLAGS="-g"
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520
4521 int
4522 main (void)
4523 {
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 if ac_fn_c_try_compile "$LINENO"
4530 then :
4531 ac_cv_prog_cc_g=yes
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4538 ac_c_werror_flag=$ac_save_c_werror_flag
4539 fi
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4541 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4542 if test $ac_test_CFLAGS; then
4543 CFLAGS=$ac_save_CFLAGS
4544 elif test $ac_cv_prog_cc_g = yes; then
4545 if test "$GCC" = yes; then
4546 CFLAGS="-g -O2"
4547 else
4548 CFLAGS="-g"
4549 fi
4550 else
4551 if test "$GCC" = yes; then
4552 CFLAGS="-O2"
4553 else
4554 CFLAGS=
4555 fi
4556 fi
4557 ac_prog_cc_stdc=no
4558 if test x$ac_prog_cc_stdc = xno
4559 then :
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4561 printf %s "checking for $CC option to enable C11 features... " >&6; }
4562 if test ${ac_cv_prog_cc_c11+y}
4563 then :
4564 printf %s "(cached) " >&6
4565 else $as_nop
4566 ac_cv_prog_cc_c11=no
4567 ac_save_CC=$CC
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4570 $ac_c_conftest_c11_program
4571 _ACEOF
4572 for ac_arg in '' -std=gnu11
4573 do
4574 CC="$ac_save_CC $ac_arg"
4575 if ac_fn_c_try_compile "$LINENO"
4576 then :
4577 ac_cv_prog_cc_c11=$ac_arg
4578 fi
4579 rm -f core conftest.err conftest.$ac_objext conftest.beam
4580 test "x$ac_cv_prog_cc_c11" != "xno" && break
4581 done
4582 rm -f conftest.$ac_ext
4583 CC=$ac_save_CC
4584 fi
4585
4586 if test "x$ac_cv_prog_cc_c11" = xno
4587 then :
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4589 printf "%s\n" "unsupported" >&6; }
4590 else $as_nop
4591 if test "x$ac_cv_prog_cc_c11" = x
4592 then :
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4594 printf "%s\n" "none needed" >&6; }
4595 else $as_nop
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4597 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4598 CC="$CC $ac_cv_prog_cc_c11"
4599 fi
4600 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4601 ac_prog_cc_stdc=c11
4602 fi
4603 fi
4604 if test x$ac_prog_cc_stdc = xno
4605 then :
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4607 printf %s "checking for $CC option to enable C99 features... " >&6; }
4608 if test ${ac_cv_prog_cc_c99+y}
4609 then :
4610 printf %s "(cached) " >&6
4611 else $as_nop
4612 ac_cv_prog_cc_c99=no
4613 ac_save_CC=$CC
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 $ac_c_conftest_c99_program
4617 _ACEOF
4618 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4619 do
4620 CC="$ac_save_CC $ac_arg"
4621 if ac_fn_c_try_compile "$LINENO"
4622 then :
4623 ac_cv_prog_cc_c99=$ac_arg
4624 fi
4625 rm -f core conftest.err conftest.$ac_objext conftest.beam
4626 test "x$ac_cv_prog_cc_c99" != "xno" && break
4627 done
4628 rm -f conftest.$ac_ext
4629 CC=$ac_save_CC
4630 fi
4631
4632 if test "x$ac_cv_prog_cc_c99" = xno
4633 then :
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4635 printf "%s\n" "unsupported" >&6; }
4636 else $as_nop
4637 if test "x$ac_cv_prog_cc_c99" = x
4638 then :
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4640 printf "%s\n" "none needed" >&6; }
4641 else $as_nop
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4643 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4644 CC="$CC $ac_cv_prog_cc_c99"
4645 fi
4646 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4647 ac_prog_cc_stdc=c99
4648 fi
4649 fi
4650 if test x$ac_prog_cc_stdc = xno
4651 then :
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4653 printf %s "checking for $CC option to enable C89 features... " >&6; }
4654 if test ${ac_cv_prog_cc_c89+y}
4655 then :
4656 printf %s "(cached) " >&6
4657 else $as_nop
4658 ac_cv_prog_cc_c89=no
4659 ac_save_CC=$CC
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662 $ac_c_conftest_c89_program
4663 _ACEOF
4664 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4665 do
4666 CC="$ac_save_CC $ac_arg"
4667 if ac_fn_c_try_compile "$LINENO"
4668 then :
4669 ac_cv_prog_cc_c89=$ac_arg
4670 fi
4671 rm -f core conftest.err conftest.$ac_objext conftest.beam
4672 test "x$ac_cv_prog_cc_c89" != "xno" && break
4673 done
4674 rm -f conftest.$ac_ext
4675 CC=$ac_save_CC
4676 fi
4677
4678 if test "x$ac_cv_prog_cc_c89" = xno
4679 then :
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4681 printf "%s\n" "unsupported" >&6; }
4682 else $as_nop
4683 if test "x$ac_cv_prog_cc_c89" = x
4684 then :
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4686 printf "%s\n" "none needed" >&6; }
4687 else $as_nop
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4689 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4690 CC="$CC $ac_cv_prog_cc_c89"
4691 fi
4692 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4693 ac_prog_cc_stdc=c89
4694 fi
4695 fi
4696
4697 ac_ext=c
4698 ac_cpp='$CPP $CPPFLAGS'
4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702
4703
4704 ac_ext=c
4705 ac_cpp='$CPP $CPPFLAGS'
4706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4710 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4711 if test ${am_cv_prog_cc_c_o+y}
4712 then :
4713 printf %s "(cached) " >&6
4714 else $as_nop
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717
4718 int
4719 main (void)
4720 {
4721
4722 ;
4723 return 0;
4724 }
4725 _ACEOF
4726 # Make sure it works both with $CC and with simple cc.
4727 # Following AC_PROG_CC_C_O, we do the test twice because some
4728 # compilers refuse to overwrite an existing .o file with -o,
4729 # though they will create one.
4730 am_cv_prog_cc_c_o=yes
4731 for am_i in 1 2; do
4732 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4733 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } \
4737 && test -f conftest2.$ac_objext; then
4738 : OK
4739 else
4740 am_cv_prog_cc_c_o=no
4741 break
4742 fi
4743 done
4744 rm -f core conftest*
4745 unset am_i
4746 fi
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4748 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4749 if test "$am_cv_prog_cc_c_o" != yes; then
4750 # Losing compiler, so override with the script.
4751 # FIXME: It is wrong to rewrite CC.
4752 # But if we don't then we get into trouble of one sort or another.
4753 # A longer-term fix would be to have automake use am__CC in this case,
4754 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4755 CC="$am_aux_dir/compile $CC"
4756 fi
4757 ac_ext=c
4758 ac_cpp='$CPP $CPPFLAGS'
4759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4762
4763 DEPDIR="${am__leading_dot}deps"
4764
4765 ac_config_commands="$ac_config_commands depfiles"
4766
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4768 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4769 cat > confinc.mk << 'END'
4770 am__doit:
4771 @echo this is the am__doit target >confinc.out
4772 .PHONY: am__doit
4773 END
4774 am__include="#"
4775 am__quote=
4776 # BSD make does it like this.
4777 echo '.include "confinc.mk" # ignored' > confmf.BSD
4778 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4779 echo 'include confinc.mk # ignored' > confmf.GNU
4780 _am_result=no
4781 for s in GNU BSD; do
4782 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4783 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4784 ac_status=$?
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); }
4787 case $?:`cat confinc.out 2>/dev/null` in #(
4788 '0:this is the am__doit target') :
4789 case $s in #(
4790 BSD) :
4791 am__include='.include' am__quote='"' ;; #(
4792 *) :
4793 am__include='include' am__quote='' ;;
4794 esac ;; #(
4795 *) :
4796 ;;
4797 esac
4798 if test "$am__include" != "#"; then
4799 _am_result="yes ($s style)"
4800 break
4801 fi
4802 done
4803 rm -f confinc.* confmf.*
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4805 printf "%s\n" "${_am_result}" >&6; }
4806
4807 # Check whether --enable-dependency-tracking was given.
4808 if test ${enable_dependency_tracking+y}
4809 then :
4810 enableval=$enable_dependency_tracking;
4811 fi
4812
4813 if test "x$enable_dependency_tracking" != xno; then
4814 am_depcomp="$ac_aux_dir/depcomp"
4815 AMDEPBACKSLASH='\'
4816 am__nodep='_no'
4817 fi
4818 if test "x$enable_dependency_tracking" != xno; then
4819 AMDEP_TRUE=
4820 AMDEP_FALSE='#'
4821 else
4822 AMDEP_TRUE='#'
4823 AMDEP_FALSE=
4824 fi
4825
4826
4827
4828 depcc="$CC" am_compiler_list=
4829
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4831 printf %s "checking dependency style of $depcc... " >&6; }
4832 if test ${am_cv_CC_dependencies_compiler_type+y}
4833 then :
4834 printf %s "(cached) " >&6
4835 else $as_nop
4836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4837 # We make a subdir and do the tests there. Otherwise we can end up
4838 # making bogus files that we don't know about and never remove. For
4839 # instance it was reported that on HP-UX the gcc test will end up
4840 # making a dummy file named 'D' -- because '-MD' means "put the output
4841 # in D".
4842 rm -rf conftest.dir
4843 mkdir conftest.dir
4844 # Copy depcomp to subdir because otherwise we won't find it if we're
4845 # using a relative directory.
4846 cp "$am_depcomp" conftest.dir
4847 cd conftest.dir
4848 # We will build objects and dependencies in a subdirectory because
4849 # it helps to detect inapplicable dependency modes. For instance
4850 # both Tru64's cc and ICC support -MD to output dependencies as a
4851 # side effect of compilation, but ICC will put the dependencies in
4852 # the current directory while Tru64 will put them in the object
4853 # directory.
4854 mkdir sub
4855
4856 am_cv_CC_dependencies_compiler_type=none
4857 if test "$am_compiler_list" = ""; then
4858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4859 fi
4860 am__universal=false
4861 case " $depcc " in #(
4862 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4863 esac
4864
4865 for depmode in $am_compiler_list; do
4866 # Setup a source with many dependencies, because some compilers
4867 # like to wrap large dependency lists on column 80 (with \), and
4868 # we should not choose a depcomp mode which is confused by this.
4869 #
4870 # We need to recreate these files for each test, as the compiler may
4871 # overwrite some of them when testing with obscure command lines.
4872 # This happens at least with the AIX C compiler.
4873 : > sub/conftest.c
4874 for i in 1 2 3 4 5 6; do
4875 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4876 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4877 # Solaris 10 /bin/sh.
4878 echo '/* dummy */' > sub/conftst$i.h
4879 done
4880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4881
4882 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4883 # mode. It turns out that the SunPro C++ compiler does not properly
4884 # handle '-M -o', and we need to detect this. Also, some Intel
4885 # versions had trouble with output in subdirs.
4886 am__obj=sub/conftest.${OBJEXT-o}
4887 am__minus_obj="-o $am__obj"
4888 case $depmode in
4889 gcc)
4890 # This depmode causes a compiler race in universal mode.
4891 test "$am__universal" = false || continue
4892 ;;
4893 nosideeffect)
4894 # After this tag, mechanisms are not by side-effect, so they'll
4895 # only be used when explicitly requested.
4896 if test "x$enable_dependency_tracking" = xyes; then
4897 continue
4898 else
4899 break
4900 fi
4901 ;;
4902 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4903 # This compiler won't grok '-c -o', but also, the minuso test has
4904 # not run yet. These depmodes are late enough in the game, and
4905 # so weak that their functioning should not be impacted.
4906 am__obj=conftest.${OBJEXT-o}
4907 am__minus_obj=
4908 ;;
4909 none) break ;;
4910 esac
4911 if depmode=$depmode \
4912 source=sub/conftest.c object=$am__obj \
4913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4914 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4915 >/dev/null 2>conftest.err &&
4916 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4918 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4920 # icc doesn't choke on unknown options, it will just issue warnings
4921 # or remarks (even with -Werror). So we grep stderr for any message
4922 # that says an option was ignored or not supported.
4923 # When given -MP, icc 7.0 and 7.1 complain thusly:
4924 # icc: Command line warning: ignoring option '-M'; no argument required
4925 # The diagnosis changed in icc 8.0:
4926 # icc: Command line remark: option '-MP' not supported
4927 if (grep 'ignoring option' conftest.err ||
4928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4929 am_cv_CC_dependencies_compiler_type=$depmode
4930 break
4931 fi
4932 fi
4933 done
4934
4935 cd ..
4936 rm -rf conftest.dir
4937 else
4938 am_cv_CC_dependencies_compiler_type=none
4939 fi
4940
4941 fi
4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4943 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4944 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4945
4946 if
4947 test "x$enable_dependency_tracking" != xno \
4948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4949 am__fastdepCC_TRUE=
4950 am__fastdepCC_FALSE='#'
4951 else
4952 am__fastdepCC_TRUE='#'
4953 am__fastdepCC_FALSE=
4954 fi
4955
4956
4957
4958
4959
4960
4961
4962
4963 ac_ext=cpp
4964 ac_cpp='$CXXCPP $CPPFLAGS'
4965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4968 if test -z "$CXX"; then
4969 if test -n "$CCC"; then
4970 CXX=$CCC
4971 else
4972 if test -n "$ac_tool_prefix"; then
4973 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4974 do
4975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 printf %s "checking for $ac_word... " >&6; }
4979 if test ${ac_cv_prog_CXX+y}
4980 then :
4981 printf %s "(cached) " >&6
4982 else $as_nop
4983 if test -n "$CXX"; then
4984 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989 IFS=$as_save_IFS
4990 case $as_dir in #(((
4991 '') as_dir=./ ;;
4992 */) ;;
4993 *) as_dir=$as_dir/ ;;
4994 esac
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4997 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4999 break 2
5000 fi
5001 done
5002 done
5003 IFS=$as_save_IFS
5004
5005 fi
5006 fi
5007 CXX=$ac_cv_prog_CXX
5008 if test -n "$CXX"; then
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5010 printf "%s\n" "$CXX" >&6; }
5011 else
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 printf "%s\n" "no" >&6; }
5014 fi
5015
5016
5017 test -n "$CXX" && break
5018 done
5019 fi
5020 if test -z "$CXX"; then
5021 ac_ct_CXX=$CXX
5022 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5023 do
5024 # Extract the first word of "$ac_prog", so it can be a program name with args.
5025 set dummy $ac_prog; ac_word=$2
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 printf %s "checking for $ac_word... " >&6; }
5028 if test ${ac_cv_prog_ac_ct_CXX+y}
5029 then :
5030 printf %s "(cached) " >&6
5031 else $as_nop
5032 if test -n "$ac_ct_CXX"; then
5033 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038 IFS=$as_save_IFS
5039 case $as_dir in #(((
5040 '') as_dir=./ ;;
5041 */) ;;
5042 *) as_dir=$as_dir/ ;;
5043 esac
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5046 ac_cv_prog_ac_ct_CXX="$ac_prog"
5047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050 done
5051 done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5057 if test -n "$ac_ct_CXX"; then
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5059 printf "%s\n" "$ac_ct_CXX" >&6; }
5060 else
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 printf "%s\n" "no" >&6; }
5063 fi
5064
5065
5066 test -n "$ac_ct_CXX" && break
5067 done
5068
5069 if test "x$ac_ct_CXX" = x; then
5070 CXX="g++"
5071 else
5072 case $cross_compiling:$ac_tool_warned in
5073 yes:)
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076 ac_tool_warned=yes ;;
5077 esac
5078 CXX=$ac_ct_CXX
5079 fi
5080 fi
5081
5082 fi
5083 fi
5084 # Provide some information about the compiler.
5085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5086 set X $ac_compile
5087 ac_compiler=$2
5088 for ac_option in --version -v -V -qversion; do
5089 { { ac_try="$ac_compiler $ac_option >&5"
5090 case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5093 esac
5094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5095 printf "%s\n" "$ac_try_echo"; } >&5
5096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5097 ac_status=$?
5098 if test -s conftest.err; then
5099 sed '10a\
5100 ... rest of stderr output deleted ...
5101 10q' conftest.err >conftest.er1
5102 cat conftest.er1 >&5
5103 fi
5104 rm -f conftest.er1 conftest.err
5105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5106 test $ac_status = 0; }
5107 done
5108
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5110 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5111 if test ${ac_cv_cxx_compiler_gnu+y}
5112 then :
5113 printf %s "(cached) " >&6
5114 else $as_nop
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117
5118 int
5119 main (void)
5120 {
5121 #ifndef __GNUC__
5122 choke me
5123 #endif
5124
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_cxx_try_compile "$LINENO"
5130 then :
5131 ac_compiler_gnu=yes
5132 else $as_nop
5133 ac_compiler_gnu=no
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5136 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5137
5138 fi
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5140 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5142
5143 if test $ac_compiler_gnu = yes; then
5144 GXX=yes
5145 else
5146 GXX=
5147 fi
5148 ac_test_CXXFLAGS=${CXXFLAGS+y}
5149 ac_save_CXXFLAGS=$CXXFLAGS
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5151 printf %s "checking whether $CXX accepts -g... " >&6; }
5152 if test ${ac_cv_prog_cxx_g+y}
5153 then :
5154 printf %s "(cached) " >&6
5155 else $as_nop
5156 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5157 ac_cxx_werror_flag=yes
5158 ac_cv_prog_cxx_g=no
5159 CXXFLAGS="-g"
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162
5163 int
5164 main (void)
5165 {
5166
5167 ;
5168 return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_cxx_try_compile "$LINENO"
5172 then :
5173 ac_cv_prog_cxx_g=yes
5174 else $as_nop
5175 CXXFLAGS=""
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178
5179 int
5180 main (void)
5181 {
5182
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 if ac_fn_cxx_try_compile "$LINENO"
5188 then :
5189
5190 else $as_nop
5191 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5192 CXXFLAGS="-g"
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195
5196 int
5197 main (void)
5198 {
5199
5200 ;
5201 return 0;
5202 }
5203 _ACEOF
5204 if ac_fn_cxx_try_compile "$LINENO"
5205 then :
5206 ac_cv_prog_cxx_g=yes
5207 fi
5208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 fi
5210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5213 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5214 fi
5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5216 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5217 if test $ac_test_CXXFLAGS; then
5218 CXXFLAGS=$ac_save_CXXFLAGS
5219 elif test $ac_cv_prog_cxx_g = yes; then
5220 if test "$GXX" = yes; then
5221 CXXFLAGS="-g -O2"
5222 else
5223 CXXFLAGS="-g"
5224 fi
5225 else
5226 if test "$GXX" = yes; then
5227 CXXFLAGS="-O2"
5228 else
5229 CXXFLAGS=
5230 fi
5231 fi
5232 ac_prog_cxx_stdcxx=no
5233 if test x$ac_prog_cxx_stdcxx = xno
5234 then :
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5236 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5237 if test ${ac_cv_prog_cxx_cxx11+y}
5238 then :
5239 printf %s "(cached) " >&6
5240 else $as_nop
5241 ac_cv_prog_cxx_cxx11=no
5242 ac_save_CXX=$CXX
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245 $ac_cxx_conftest_cxx11_program
5246 _ACEOF
5247 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5248 do
5249 CXX="$ac_save_CXX $ac_arg"
5250 if ac_fn_cxx_try_compile "$LINENO"
5251 then :
5252 ac_cv_prog_cxx_cxx11=$ac_arg
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext conftest.beam
5255 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5256 done
5257 rm -f conftest.$ac_ext
5258 CXX=$ac_save_CXX
5259 fi
5260
5261 if test "x$ac_cv_prog_cxx_cxx11" = xno
5262 then :
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5264 printf "%s\n" "unsupported" >&6; }
5265 else $as_nop
5266 if test "x$ac_cv_prog_cxx_cxx11" = x
5267 then :
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5269 printf "%s\n" "none needed" >&6; }
5270 else $as_nop
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5272 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5273 CXX="$CXX $ac_cv_prog_cxx_cxx11"
5274 fi
5275 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5276 ac_prog_cxx_stdcxx=cxx11
5277 fi
5278 fi
5279 if test x$ac_prog_cxx_stdcxx = xno
5280 then :
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5282 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5283 if test ${ac_cv_prog_cxx_cxx98+y}
5284 then :
5285 printf %s "(cached) " >&6
5286 else $as_nop
5287 ac_cv_prog_cxx_cxx98=no
5288 ac_save_CXX=$CXX
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 $ac_cxx_conftest_cxx98_program
5292 _ACEOF
5293 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5294 do
5295 CXX="$ac_save_CXX $ac_arg"
5296 if ac_fn_cxx_try_compile "$LINENO"
5297 then :
5298 ac_cv_prog_cxx_cxx98=$ac_arg
5299 fi
5300 rm -f core conftest.err conftest.$ac_objext conftest.beam
5301 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5302 done
5303 rm -f conftest.$ac_ext
5304 CXX=$ac_save_CXX
5305 fi
5306
5307 if test "x$ac_cv_prog_cxx_cxx98" = xno
5308 then :
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5310 printf "%s\n" "unsupported" >&6; }
5311 else $as_nop
5312 if test "x$ac_cv_prog_cxx_cxx98" = x
5313 then :
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5315 printf "%s\n" "none needed" >&6; }
5316 else $as_nop
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5318 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5319 CXX="$CXX $ac_cv_prog_cxx_cxx98"
5320 fi
5321 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5322 ac_prog_cxx_stdcxx=cxx98
5323 fi
5324 fi
5325
5326 ac_ext=c
5327 ac_cpp='$CPP $CPPFLAGS'
5328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5331
5332 depcc="$CXX" am_compiler_list=
5333
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5335 printf %s "checking dependency style of $depcc... " >&6; }
5336 if test ${am_cv_CXX_dependencies_compiler_type+y}
5337 then :
5338 printf %s "(cached) " >&6
5339 else $as_nop
5340 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5341 # We make a subdir and do the tests there. Otherwise we can end up
5342 # making bogus files that we don't know about and never remove. For
5343 # instance it was reported that on HP-UX the gcc test will end up
5344 # making a dummy file named 'D' -- because '-MD' means "put the output
5345 # in D".
5346 rm -rf conftest.dir
5347 mkdir conftest.dir
5348 # Copy depcomp to subdir because otherwise we won't find it if we're
5349 # using a relative directory.
5350 cp "$am_depcomp" conftest.dir
5351 cd conftest.dir
5352 # We will build objects and dependencies in a subdirectory because
5353 # it helps to detect inapplicable dependency modes. For instance
5354 # both Tru64's cc and ICC support -MD to output dependencies as a
5355 # side effect of compilation, but ICC will put the dependencies in
5356 # the current directory while Tru64 will put them in the object
5357 # directory.
5358 mkdir sub
5359
5360 am_cv_CXX_dependencies_compiler_type=none
5361 if test "$am_compiler_list" = ""; then
5362 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5363 fi
5364 am__universal=false
5365 case " $depcc " in #(
5366 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5367 esac
5368
5369 for depmode in $am_compiler_list; do
5370 # Setup a source with many dependencies, because some compilers
5371 # like to wrap large dependency lists on column 80 (with \), and
5372 # we should not choose a depcomp mode which is confused by this.
5373 #
5374 # We need to recreate these files for each test, as the compiler may
5375 # overwrite some of them when testing with obscure command lines.
5376 # This happens at least with the AIX C compiler.
5377 : > sub/conftest.c
5378 for i in 1 2 3 4 5 6; do
5379 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5380 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5381 # Solaris 10 /bin/sh.
5382 echo '/* dummy */' > sub/conftst$i.h
5383 done
5384 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5385
5386 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5387 # mode. It turns out that the SunPro C++ compiler does not properly
5388 # handle '-M -o', and we need to detect this. Also, some Intel
5389 # versions had trouble with output in subdirs.
5390 am__obj=sub/conftest.${OBJEXT-o}
5391 am__minus_obj="-o $am__obj"
5392 case $depmode in
5393 gcc)
5394 # This depmode causes a compiler race in universal mode.
5395 test "$am__universal" = false || continue
5396 ;;
5397 nosideeffect)
5398 # After this tag, mechanisms are not by side-effect, so they'll
5399 # only be used when explicitly requested.
5400 if test "x$enable_dependency_tracking" = xyes; then
5401 continue
5402 else
5403 break
5404 fi
5405 ;;
5406 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5407 # This compiler won't grok '-c -o', but also, the minuso test has
5408 # not run yet. These depmodes are late enough in the game, and
5409 # so weak that their functioning should not be impacted.
5410 am__obj=conftest.${OBJEXT-o}
5411 am__minus_obj=
5412 ;;
5413 none) break ;;
5414 esac
5415 if depmode=$depmode \
5416 source=sub/conftest.c object=$am__obj \
5417 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5418 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5419 >/dev/null 2>conftest.err &&
5420 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5421 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5422 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5423 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5424 # icc doesn't choke on unknown options, it will just issue warnings
5425 # or remarks (even with -Werror). So we grep stderr for any message
5426 # that says an option was ignored or not supported.
5427 # When given -MP, icc 7.0 and 7.1 complain thusly:
5428 # icc: Command line warning: ignoring option '-M'; no argument required
5429 # The diagnosis changed in icc 8.0:
5430 # icc: Command line remark: option '-MP' not supported
5431 if (grep 'ignoring option' conftest.err ||
5432 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5433 am_cv_CXX_dependencies_compiler_type=$depmode
5434 break
5435 fi
5436 fi
5437 done
5438
5439 cd ..
5440 rm -rf conftest.dir
5441 else
5442 am_cv_CXX_dependencies_compiler_type=none
5443 fi
5444
5445 fi
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5447 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5448 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5449
5450 if
5451 test "x$enable_dependency_tracking" != xno \
5452 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5453 am__fastdepCXX_TRUE=
5454 am__fastdepCXX_FALSE='#'
5455 else
5456 am__fastdepCXX_TRUE='#'
5457 am__fastdepCXX_FALSE=
5458 fi
5459
5460
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5462 printf %s "checking whether ln -s works... " >&6; }
5463 LN_S=$as_ln_s
5464 if test "$LN_S" = "ln -s"; then
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466 printf "%s\n" "yes" >&6; }
5467 else
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5469 printf "%s\n" "no, using $LN_S" >&6; }
5470 fi
5471
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5473 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5474 set x ${MAKE-make}
5475 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5476 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5477 then :
5478 printf %s "(cached) " >&6
5479 else $as_nop
5480 cat >conftest.make <<\_ACEOF
5481 SHELL = /bin/sh
5482 all:
5483 @echo '@@@%%%=$(MAKE)=@@@%%%'
5484 _ACEOF
5485 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5486 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5487 *@@@%%%=?*=@@@%%%*)
5488 eval ac_cv_prog_make_${ac_make}_set=yes;;
5489 *)
5490 eval ac_cv_prog_make_${ac_make}_set=no;;
5491 esac
5492 rm -f conftest.make
5493 fi
5494 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5496 printf "%s\n" "yes" >&6; }
5497 SET_MAKE=
5498 else
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 printf "%s\n" "no" >&6; }
5501 SET_MAKE="MAKE=${MAKE-make}"
5502 fi
5503
5504 case `pwd` in
5505 *\ * | *\ *)
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5507 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5508 esac
5509
5510
5511
5512 macro_version='2.4.7'
5513 macro_revision='2.4.7'
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528 ltmain=$ac_aux_dir/ltmain.sh
5529
5530
5531
5532 # Make sure we can run config.sub.
5533 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5534 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5535
5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5537 printf %s "checking build system type... " >&6; }
5538 if test ${ac_cv_build+y}
5539 then :
5540 printf %s "(cached) " >&6
5541 else $as_nop
5542 ac_build_alias=$build_alias
5543 test "x$ac_build_alias" = x &&
5544 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5545 test "x$ac_build_alias" = x &&
5546 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5547 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5548 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5549
5550 fi
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5552 printf "%s\n" "$ac_cv_build" >&6; }
5553 case $ac_cv_build in
5554 *-*-*) ;;
5555 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5556 esac
5557 build=$ac_cv_build
5558 ac_save_IFS=$IFS; IFS='-'
5559 set x $ac_cv_build
5560 shift
5561 build_cpu=$1
5562 build_vendor=$2
5563 shift; shift
5564 # Remember, the first character of IFS is used to create $*,
5565 # except with old shells:
5566 build_os=$*
5567 IFS=$ac_save_IFS
5568 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5569
5570
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5572 printf %s "checking host system type... " >&6; }
5573 if test ${ac_cv_host+y}
5574 then :
5575 printf %s "(cached) " >&6
5576 else $as_nop
5577 if test "x$host_alias" = x; then
5578 ac_cv_host=$ac_cv_build
5579 else
5580 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5581 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5582 fi
5583
5584 fi
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5586 printf "%s\n" "$ac_cv_host" >&6; }
5587 case $ac_cv_host in
5588 *-*-*) ;;
5589 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5590 esac
5591 host=$ac_cv_host
5592 ac_save_IFS=$IFS; IFS='-'
5593 set x $ac_cv_host
5594 shift
5595 host_cpu=$1
5596 host_vendor=$2
5597 shift; shift
5598 # Remember, the first character of IFS is used to create $*,
5599 # except with old shells:
5600 host_os=$*
5601 IFS=$ac_save_IFS
5602 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5603
5604
5605 # Backslashify metacharacters that are still active within
5606 # double-quoted strings.
5607 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5608
5609 # Same as above, but do not quote variable references.
5610 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5611
5612 # Sed substitution to delay expansion of an escaped shell variable in a
5613 # double_quote_subst'ed string.
5614 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5615
5616 # Sed substitution to delay expansion of an escaped single quote.
5617 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5618
5619 # Sed substitution to avoid accidental globbing in evaled expressions
5620 no_glob_subst='s/\*/\\\*/g'
5621
5622 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5623 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5624 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5625
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5627 printf %s "checking how to print strings... " >&6; }
5628 # Test print first, because it will be a builtin if present.
5629 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5630 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5631 ECHO='print -r --'
5632 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5633 ECHO='printf %s\n'
5634 else
5635 # Use this function as a fallback that always works.
5636 func_fallback_echo ()
5637 {
5638 eval 'cat <<_LTECHO_EOF
5639 $1
5640 _LTECHO_EOF'
5641 }
5642 ECHO='func_fallback_echo'
5643 fi
5644
5645 # func_echo_all arg...
5646 # Invoke $ECHO with all args, space-separated.
5647 func_echo_all ()
5648 {
5649 $ECHO ""
5650 }
5651
5652 case $ECHO in
5653 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5654 printf "%s\n" "printf" >&6; } ;;
5655 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5656 printf "%s\n" "print -r" >&6; } ;;
5657 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5658 printf "%s\n" "cat" >&6; } ;;
5659 esac
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5675 printf %s "checking for a sed that does not truncate output... " >&6; }
5676 if test ${ac_cv_path_SED+y}
5677 then :
5678 printf %s "(cached) " >&6
5679 else $as_nop
5680 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5681 for ac_i in 1 2 3 4 5 6 7; do
5682 ac_script="$ac_script$as_nl$ac_script"
5683 done
5684 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5685 { ac_script=; unset ac_script;}
5686 if test -z "$SED"; then
5687 ac_path_SED_found=false
5688 # Loop through the user's path and test for each of PROGNAME-LIST
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 case $as_dir in #(((
5694 '') as_dir=./ ;;
5695 */) ;;
5696 *) as_dir=$as_dir/ ;;
5697 esac
5698 for ac_prog in sed gsed
5699 do
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5702 as_fn_executable_p "$ac_path_SED" || continue
5703 # Check for GNU ac_path_SED and select it if it is found.
5704 # Check for GNU $ac_path_SED
5705 case `"$ac_path_SED" --version 2>&1` in
5706 *GNU*)
5707 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5708 *)
5709 ac_count=0
5710 printf %s 0123456789 >"conftest.in"
5711 while :
5712 do
5713 cat "conftest.in" "conftest.in" >"conftest.tmp"
5714 mv "conftest.tmp" "conftest.in"
5715 cp "conftest.in" "conftest.nl"
5716 printf "%s\n" '' >> "conftest.nl"
5717 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5719 as_fn_arith $ac_count + 1 && ac_count=$as_val
5720 if test $ac_count -gt ${ac_path_SED_max-0}; then
5721 # Best one so far, save it but keep looking for a better one
5722 ac_cv_path_SED="$ac_path_SED"
5723 ac_path_SED_max=$ac_count
5724 fi
5725 # 10*(2^10) chars as input seems more than enough
5726 test $ac_count -gt 10 && break
5727 done
5728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5729 esac
5730
5731 $ac_path_SED_found && break 3
5732 done
5733 done
5734 done
5735 IFS=$as_save_IFS
5736 if test -z "$ac_cv_path_SED"; then
5737 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5738 fi
5739 else
5740 ac_cv_path_SED=$SED
5741 fi
5742
5743 fi
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5745 printf "%s\n" "$ac_cv_path_SED" >&6; }
5746 SED="$ac_cv_path_SED"
5747 rm -f conftest.sed
5748
5749 test -z "$SED" && SED=sed
5750 Xsed="$SED -e 1s/^X//"
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5763 printf %s "checking for grep that handles long lines and -e... " >&6; }
5764 if test ${ac_cv_path_GREP+y}
5765 then :
5766 printf %s "(cached) " >&6
5767 else $as_nop
5768 if test -z "$GREP"; then
5769 ac_path_GREP_found=false
5770 # Loop through the user's path and test for each of PROGNAME-LIST
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5773 do
5774 IFS=$as_save_IFS
5775 case $as_dir in #(((
5776 '') as_dir=./ ;;
5777 */) ;;
5778 *) as_dir=$as_dir/ ;;
5779 esac
5780 for ac_prog in grep ggrep
5781 do
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5784 as_fn_executable_p "$ac_path_GREP" || continue
5785 # Check for GNU ac_path_GREP and select it if it is found.
5786 # Check for GNU $ac_path_GREP
5787 case `"$ac_path_GREP" --version 2>&1` in
5788 *GNU*)
5789 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5790 *)
5791 ac_count=0
5792 printf %s 0123456789 >"conftest.in"
5793 while :
5794 do
5795 cat "conftest.in" "conftest.in" >"conftest.tmp"
5796 mv "conftest.tmp" "conftest.in"
5797 cp "conftest.in" "conftest.nl"
5798 printf "%s\n" 'GREP' >> "conftest.nl"
5799 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5801 as_fn_arith $ac_count + 1 && ac_count=$as_val
5802 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5803 # Best one so far, save it but keep looking for a better one
5804 ac_cv_path_GREP="$ac_path_GREP"
5805 ac_path_GREP_max=$ac_count
5806 fi
5807 # 10*(2^10) chars as input seems more than enough
5808 test $ac_count -gt 10 && break
5809 done
5810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5811 esac
5812
5813 $ac_path_GREP_found && break 3
5814 done
5815 done
5816 done
5817 IFS=$as_save_IFS
5818 if test -z "$ac_cv_path_GREP"; then
5819 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5820 fi
5821 else
5822 ac_cv_path_GREP=$GREP
5823 fi
5824
5825 fi
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5827 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5828 GREP="$ac_cv_path_GREP"
5829
5830
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5832 printf %s "checking for egrep... " >&6; }
5833 if test ${ac_cv_path_EGREP+y}
5834 then :
5835 printf %s "(cached) " >&6
5836 else $as_nop
5837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5838 then ac_cv_path_EGREP="$GREP -E"
5839 else
5840 if test -z "$EGREP"; then
5841 ac_path_EGREP_found=false
5842 # Loop through the user's path and test for each of PROGNAME-LIST
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5845 do
5846 IFS=$as_save_IFS
5847 case $as_dir in #(((
5848 '') as_dir=./ ;;
5849 */) ;;
5850 *) as_dir=$as_dir/ ;;
5851 esac
5852 for ac_prog in egrep
5853 do
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5856 as_fn_executable_p "$ac_path_EGREP" || continue
5857 # Check for GNU ac_path_EGREP and select it if it is found.
5858 # Check for GNU $ac_path_EGREP
5859 case `"$ac_path_EGREP" --version 2>&1` in
5860 *GNU*)
5861 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5862 *)
5863 ac_count=0
5864 printf %s 0123456789 >"conftest.in"
5865 while :
5866 do
5867 cat "conftest.in" "conftest.in" >"conftest.tmp"
5868 mv "conftest.tmp" "conftest.in"
5869 cp "conftest.in" "conftest.nl"
5870 printf "%s\n" 'EGREP' >> "conftest.nl"
5871 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5873 as_fn_arith $ac_count + 1 && ac_count=$as_val
5874 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5875 # Best one so far, save it but keep looking for a better one
5876 ac_cv_path_EGREP="$ac_path_EGREP"
5877 ac_path_EGREP_max=$ac_count
5878 fi
5879 # 10*(2^10) chars as input seems more than enough
5880 test $ac_count -gt 10 && break
5881 done
5882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5883 esac
5884
5885 $ac_path_EGREP_found && break 3
5886 done
5887 done
5888 done
5889 IFS=$as_save_IFS
5890 if test -z "$ac_cv_path_EGREP"; then
5891 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5892 fi
5893 else
5894 ac_cv_path_EGREP=$EGREP
5895 fi
5896
5897 fi
5898 fi
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5900 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5901 EGREP="$ac_cv_path_EGREP"
5902
5903
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5905 printf %s "checking for fgrep... " >&6; }
5906 if test ${ac_cv_path_FGREP+y}
5907 then :
5908 printf %s "(cached) " >&6
5909 else $as_nop
5910 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5911 then ac_cv_path_FGREP="$GREP -F"
5912 else
5913 if test -z "$FGREP"; then
5914 ac_path_FGREP_found=false
5915 # Loop through the user's path and test for each of PROGNAME-LIST
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5918 do
5919 IFS=$as_save_IFS
5920 case $as_dir in #(((
5921 '') as_dir=./ ;;
5922 */) ;;
5923 *) as_dir=$as_dir/ ;;
5924 esac
5925 for ac_prog in fgrep
5926 do
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5929 as_fn_executable_p "$ac_path_FGREP" || continue
5930 # Check for GNU ac_path_FGREP and select it if it is found.
5931 # Check for GNU $ac_path_FGREP
5932 case `"$ac_path_FGREP" --version 2>&1` in
5933 *GNU*)
5934 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5935 *)
5936 ac_count=0
5937 printf %s 0123456789 >"conftest.in"
5938 while :
5939 do
5940 cat "conftest.in" "conftest.in" >"conftest.tmp"
5941 mv "conftest.tmp" "conftest.in"
5942 cp "conftest.in" "conftest.nl"
5943 printf "%s\n" 'FGREP' >> "conftest.nl"
5944 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5946 as_fn_arith $ac_count + 1 && ac_count=$as_val
5947 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5948 # Best one so far, save it but keep looking for a better one
5949 ac_cv_path_FGREP="$ac_path_FGREP"
5950 ac_path_FGREP_max=$ac_count
5951 fi
5952 # 10*(2^10) chars as input seems more than enough
5953 test $ac_count -gt 10 && break
5954 done
5955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5956 esac
5957
5958 $ac_path_FGREP_found && break 3
5959 done
5960 done
5961 done
5962 IFS=$as_save_IFS
5963 if test -z "$ac_cv_path_FGREP"; then
5964 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5965 fi
5966 else
5967 ac_cv_path_FGREP=$FGREP
5968 fi
5969
5970 fi
5971 fi
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5973 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5974 FGREP="$ac_cv_path_FGREP"
5975
5976
5977 test -z "$GREP" && GREP=grep
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997 # Check whether --with-gnu-ld was given.
5998 if test ${with_gnu_ld+y}
5999 then :
6000 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6001 else $as_nop
6002 with_gnu_ld=no
6003 fi
6004
6005 ac_prog=ld
6006 if test yes = "$GCC"; then
6007 # Check if gcc -print-prog-name=ld gives a path.
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6009 printf %s "checking for ld used by $CC... " >&6; }
6010 case $host in
6011 *-*-mingw*)
6012 # gcc leaves a trailing carriage return, which upsets mingw
6013 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6014 *)
6015 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6016 esac
6017 case $ac_prog in
6018 # Accept absolute paths.
6019 [\\/]* | ?:[\\/]*)
6020 re_direlt='/[^/][^/]*/\.\./'
6021 # Canonicalize the pathname of ld
6022 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6023 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6024 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6025 done
6026 test -z "$LD" && LD=$ac_prog
6027 ;;
6028 "")
6029 # If it fails, then pretend we aren't using GCC.
6030 ac_prog=ld
6031 ;;
6032 *)
6033 # If it is relative, then search for the first ld in PATH.
6034 with_gnu_ld=unknown
6035 ;;
6036 esac
6037 elif test yes = "$with_gnu_ld"; then
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6039 printf %s "checking for GNU ld... " >&6; }
6040 else
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6042 printf %s "checking for non-GNU ld... " >&6; }
6043 fi
6044 if test ${lt_cv_path_LD+y}
6045 then :
6046 printf %s "(cached) " >&6
6047 else $as_nop
6048 if test -z "$LD"; then
6049 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6050 for ac_dir in $PATH; do
6051 IFS=$lt_save_ifs
6052 test -z "$ac_dir" && ac_dir=.
6053 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6054 lt_cv_path_LD=$ac_dir/$ac_prog
6055 # Check to see if the program is GNU ld. I'd rather use --version,
6056 # but apparently some variants of GNU ld only accept -v.
6057 # Break only if it was the GNU/non-GNU ld that we prefer.
6058 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6059 *GNU* | *'with BFD'*)
6060 test no != "$with_gnu_ld" && break
6061 ;;
6062 *)
6063 test yes != "$with_gnu_ld" && break
6064 ;;
6065 esac
6066 fi
6067 done
6068 IFS=$lt_save_ifs
6069 else
6070 lt_cv_path_LD=$LD # Let the user override the test with a path.
6071 fi
6072 fi
6073
6074 LD=$lt_cv_path_LD
6075 if test -n "$LD"; then
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6077 printf "%s\n" "$LD" >&6; }
6078 else
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 printf "%s\n" "no" >&6; }
6081 fi
6082 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6084 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6085 if test ${lt_cv_prog_gnu_ld+y}
6086 then :
6087 printf %s "(cached) " >&6
6088 else $as_nop
6089 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6090 case `$LD -v 2>&1 </dev/null` in
6091 *GNU* | *'with BFD'*)
6092 lt_cv_prog_gnu_ld=yes
6093 ;;
6094 *)
6095 lt_cv_prog_gnu_ld=no
6096 ;;
6097 esac
6098 fi
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6100 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6101 with_gnu_ld=$lt_cv_prog_gnu_ld
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6112 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6113 if test ${lt_cv_path_NM+y}
6114 then :
6115 printf %s "(cached) " >&6
6116 else $as_nop
6117 if test -n "$NM"; then
6118 # Let the user override the test.
6119 lt_cv_path_NM=$NM
6120 else
6121 lt_nm_to_check=${ac_tool_prefix}nm
6122 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6123 lt_nm_to_check="$lt_nm_to_check nm"
6124 fi
6125 for lt_tmp_nm in $lt_nm_to_check; do
6126 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6127 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6128 IFS=$lt_save_ifs
6129 test -z "$ac_dir" && ac_dir=.
6130 tmp_nm=$ac_dir/$lt_tmp_nm
6131 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6132 # Check to see if the nm accepts a BSD-compat flag.
6133 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6134 # nm: unknown option "B" ignored
6135 # Tru64's nm complains that /dev/null is an invalid object file
6136 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6137 case $build_os in
6138 mingw*) lt_bad_file=conftest.nm/nofile ;;
6139 *) lt_bad_file=/dev/null ;;
6140 esac
6141 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6142 *$lt_bad_file* | *'Invalid file or object type'*)
6143 lt_cv_path_NM="$tmp_nm -B"
6144 break 2
6145 ;;
6146 *)
6147 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6148 */dev/null*)
6149 lt_cv_path_NM="$tmp_nm -p"
6150 break 2
6151 ;;
6152 *)
6153 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6154 continue # so that we can try to find one that supports BSD flags
6155 ;;
6156 esac
6157 ;;
6158 esac
6159 fi
6160 done
6161 IFS=$lt_save_ifs
6162 done
6163 : ${lt_cv_path_NM=no}
6164 fi
6165 fi
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6167 printf "%s\n" "$lt_cv_path_NM" >&6; }
6168 if test no != "$lt_cv_path_NM"; then
6169 NM=$lt_cv_path_NM
6170 else
6171 # Didn't find any BSD compatible name lister, look for dumpbin.
6172 if test -n "$DUMPBIN"; then :
6173 # Let the user override the test.
6174 else
6175 if test -n "$ac_tool_prefix"; then
6176 for ac_prog in dumpbin "link -dump"
6177 do
6178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 printf %s "checking for $ac_word... " >&6; }
6182 if test ${ac_cv_prog_DUMPBIN+y}
6183 then :
6184 printf %s "(cached) " >&6
6185 else $as_nop
6186 if test -n "$DUMPBIN"; then
6187 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192 IFS=$as_save_IFS
6193 case $as_dir in #(((
6194 '') as_dir=./ ;;
6195 */) ;;
6196 *) as_dir=$as_dir/ ;;
6197 esac
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6200 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204 done
6205 done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 DUMPBIN=$ac_cv_prog_DUMPBIN
6211 if test -n "$DUMPBIN"; then
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6213 printf "%s\n" "$DUMPBIN" >&6; }
6214 else
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 printf "%s\n" "no" >&6; }
6217 fi
6218
6219
6220 test -n "$DUMPBIN" && break
6221 done
6222 fi
6223 if test -z "$DUMPBIN"; then
6224 ac_ct_DUMPBIN=$DUMPBIN
6225 for ac_prog in dumpbin "link -dump"
6226 do
6227 # Extract the first word of "$ac_prog", so it can be a program name with args.
6228 set dummy $ac_prog; ac_word=$2
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 printf %s "checking for $ac_word... " >&6; }
6231 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6232 then :
6233 printf %s "(cached) " >&6
6234 else $as_nop
6235 if test -n "$ac_ct_DUMPBIN"; then
6236 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6240 do
6241 IFS=$as_save_IFS
6242 case $as_dir in #(((
6243 '') as_dir=./ ;;
6244 */) ;;
6245 *) as_dir=$as_dir/ ;;
6246 esac
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6260 if test -n "$ac_ct_DUMPBIN"; then
6261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6262 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6263 else
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 printf "%s\n" "no" >&6; }
6266 fi
6267
6268
6269 test -n "$ac_ct_DUMPBIN" && break
6270 done
6271
6272 if test "x$ac_ct_DUMPBIN" = x; then
6273 DUMPBIN=":"
6274 else
6275 case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281 DUMPBIN=$ac_ct_DUMPBIN
6282 fi
6283 fi
6284
6285 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6286 *COFF*)
6287 DUMPBIN="$DUMPBIN -symbols -headers"
6288 ;;
6289 *)
6290 DUMPBIN=:
6291 ;;
6292 esac
6293 fi
6294
6295 if test : != "$DUMPBIN"; then
6296 NM=$DUMPBIN
6297 fi
6298 fi
6299 test -z "$NM" && NM=nm
6300
6301
6302
6303
6304
6305
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6307 printf %s "checking the name lister ($NM) interface... " >&6; }
6308 if test ${lt_cv_nm_interface+y}
6309 then :
6310 printf %s "(cached) " >&6
6311 else $as_nop
6312 lt_cv_nm_interface="BSD nm"
6313 echo "int some_variable = 0;" > conftest.$ac_ext
6314 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6315 (eval "$ac_compile" 2>conftest.err)
6316 cat conftest.err >&5
6317 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6318 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6319 cat conftest.err >&5
6320 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6321 cat conftest.out >&5
6322 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6323 lt_cv_nm_interface="MS dumpbin"
6324 fi
6325 rm -f conftest*
6326 fi
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6328 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6329
6330 # find the maximum length of command line arguments
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6332 printf %s "checking the maximum length of command line arguments... " >&6; }
6333 if test ${lt_cv_sys_max_cmd_len+y}
6334 then :
6335 printf %s "(cached) " >&6
6336 else $as_nop
6337 i=0
6338 teststring=ABCD
6339
6340 case $build_os in
6341 msdosdjgpp*)
6342 # On DJGPP, this test can blow up pretty badly due to problems in libc
6343 # (any single argument exceeding 2000 bytes causes a buffer overrun
6344 # during glob expansion). Even if it were fixed, the result of this
6345 # check would be larger than it should be.
6346 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6347 ;;
6348
6349 gnu*)
6350 # Under GNU Hurd, this test is not required because there is
6351 # no limit to the length of command line arguments.
6352 # Libtool will interpret -1 as no limit whatsoever
6353 lt_cv_sys_max_cmd_len=-1;
6354 ;;
6355
6356 cygwin* | mingw* | cegcc*)
6357 # On Win9x/ME, this test blows up -- it succeeds, but takes
6358 # about 5 minutes as the teststring grows exponentially.
6359 # Worse, since 9x/ME are not pre-emptively multitasking,
6360 # you end up with a "frozen" computer, even though with patience
6361 # the test eventually succeeds (with a max line length of 256k).
6362 # Instead, let's just punt: use the minimum linelength reported by
6363 # all of the supported platforms: 8192 (on NT/2K/XP).
6364 lt_cv_sys_max_cmd_len=8192;
6365 ;;
6366
6367 mint*)
6368 # On MiNT this can take a long time and run out of memory.
6369 lt_cv_sys_max_cmd_len=8192;
6370 ;;
6371
6372 amigaos*)
6373 # On AmigaOS with pdksh, this test takes hours, literally.
6374 # So we just punt and use a minimum line length of 8192.
6375 lt_cv_sys_max_cmd_len=8192;
6376 ;;
6377
6378 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6379 # This has been around since 386BSD, at least. Likely further.
6380 if test -x /sbin/sysctl; then
6381 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6382 elif test -x /usr/sbin/sysctl; then
6383 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6384 else
6385 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6386 fi
6387 # And add a safety zone
6388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6390 ;;
6391
6392 interix*)
6393 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6394 lt_cv_sys_max_cmd_len=196608
6395 ;;
6396
6397 os2*)
6398 # The test takes a long time on OS/2.
6399 lt_cv_sys_max_cmd_len=8192
6400 ;;
6401
6402 osf*)
6403 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6404 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6405 # nice to cause kernel panics so lets avoid the loop below.
6406 # First set a reasonable default.
6407 lt_cv_sys_max_cmd_len=16384
6408 #
6409 if test -x /sbin/sysconfig; then
6410 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6411 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6412 esac
6413 fi
6414 ;;
6415 sco3.2v5*)
6416 lt_cv_sys_max_cmd_len=102400
6417 ;;
6418 sysv5* | sco5v6* | sysv4.2uw2*)
6419 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6420 if test -n "$kargmax"; then
6421 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6422 else
6423 lt_cv_sys_max_cmd_len=32768
6424 fi
6425 ;;
6426 *)
6427 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6428 if test -n "$lt_cv_sys_max_cmd_len" && \
6429 test undefined != "$lt_cv_sys_max_cmd_len"; then
6430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6432 else
6433 # Make teststring a little bigger before we do anything with it.
6434 # a 1K string should be a reasonable start.
6435 for i in 1 2 3 4 5 6 7 8; do
6436 teststring=$teststring$teststring
6437 done
6438 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6439 # If test is not a shell built-in, we'll probably end up computing a
6440 # maximum length that is only half of the actual maximum length, but
6441 # we can't tell.
6442 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6443 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6444 test 17 != "$i" # 1/2 MB should be enough
6445 do
6446 i=`expr $i + 1`
6447 teststring=$teststring$teststring
6448 done
6449 # Only check the string length outside the loop.
6450 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6451 teststring=
6452 # Add a significant safety factor because C++ compilers can tack on
6453 # massive amounts of additional arguments before passing them to the
6454 # linker. It appears as though 1/2 is a usable value.
6455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6456 fi
6457 ;;
6458 esac
6459
6460 fi
6461
6462 if test -n "$lt_cv_sys_max_cmd_len"; then
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6464 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6465 else
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6467 printf "%s\n" "none" >&6; }
6468 fi
6469 max_cmd_len=$lt_cv_sys_max_cmd_len
6470
6471
6472
6473
6474
6475
6476 : ${CP="cp -f"}
6477 : ${MV="mv -f"}
6478 : ${RM="rm -f"}
6479
6480 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6481 lt_unset=unset
6482 else
6483 lt_unset=false
6484 fi
6485
6486
6487
6488
6489
6490 # test EBCDIC or ASCII
6491 case `echo X|tr X '\101'` in
6492 A) # ASCII based system
6493 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6494 lt_SP2NL='tr \040 \012'
6495 lt_NL2SP='tr \015\012 \040\040'
6496 ;;
6497 *) # EBCDIC based system
6498 lt_SP2NL='tr \100 \n'
6499 lt_NL2SP='tr \r\n \100\100'
6500 ;;
6501 esac
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6512 printf %s "checking how to convert $build file names to $host format... " >&6; }
6513 if test ${lt_cv_to_host_file_cmd+y}
6514 then :
6515 printf %s "(cached) " >&6
6516 else $as_nop
6517 case $host in
6518 *-*-mingw* )
6519 case $build in
6520 *-*-mingw* ) # actually msys
6521 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6522 ;;
6523 *-*-cygwin* )
6524 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6525 ;;
6526 * ) # otherwise, assume *nix
6527 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6528 ;;
6529 esac
6530 ;;
6531 *-*-cygwin* )
6532 case $build in
6533 *-*-mingw* ) # actually msys
6534 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6535 ;;
6536 *-*-cygwin* )
6537 lt_cv_to_host_file_cmd=func_convert_file_noop
6538 ;;
6539 * ) # otherwise, assume *nix
6540 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6541 ;;
6542 esac
6543 ;;
6544 * ) # unhandled hosts (and "normal" native builds)
6545 lt_cv_to_host_file_cmd=func_convert_file_noop
6546 ;;
6547 esac
6548
6549 fi
6550
6551 to_host_file_cmd=$lt_cv_to_host_file_cmd
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6553 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6554
6555
6556
6557
6558
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6560 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6561 if test ${lt_cv_to_tool_file_cmd+y}
6562 then :
6563 printf %s "(cached) " >&6
6564 else $as_nop
6565 #assume ordinary cross tools, or native build.
6566 lt_cv_to_tool_file_cmd=func_convert_file_noop
6567 case $host in
6568 *-*-mingw* )
6569 case $build in
6570 *-*-mingw* ) # actually msys
6571 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6572 ;;
6573 esac
6574 ;;
6575 esac
6576
6577 fi
6578
6579 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6581 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6582
6583
6584
6585
6586
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6588 printf %s "checking for $LD option to reload object files... " >&6; }
6589 if test ${lt_cv_ld_reload_flag+y}
6590 then :
6591 printf %s "(cached) " >&6
6592 else $as_nop
6593 lt_cv_ld_reload_flag='-r'
6594 fi
6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6596 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6597 reload_flag=$lt_cv_ld_reload_flag
6598 case $reload_flag in
6599 "" | " "*) ;;
6600 *) reload_flag=" $reload_flag" ;;
6601 esac
6602 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6603 case $host_os in
6604 cygwin* | mingw* | pw32* | cegcc*)
6605 if test yes != "$GCC"; then
6606 reload_cmds=false
6607 fi
6608 ;;
6609 darwin*)
6610 if test yes = "$GCC"; then
6611 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6612 else
6613 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6614 fi
6615 ;;
6616 esac
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}file; ac_word=$2
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 printf %s "checking for $ac_word... " >&6; }
6631 if test ${ac_cv_prog_FILECMD+y}
6632 then :
6633 printf %s "(cached) " >&6
6634 else $as_nop
6635 if test -n "$FILECMD"; then
6636 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641 IFS=$as_save_IFS
6642 case $as_dir in #(((
6643 '') as_dir=./ ;;
6644 */) ;;
6645 *) as_dir=$as_dir/ ;;
6646 esac
6647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6649 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6651 break 2
6652 fi
6653 done
6654 done
6655 IFS=$as_save_IFS
6656
6657 fi
6658 fi
6659 FILECMD=$ac_cv_prog_FILECMD
6660 if test -n "$FILECMD"; then
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6662 printf "%s\n" "$FILECMD" >&6; }
6663 else
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665 printf "%s\n" "no" >&6; }
6666 fi
6667
6668
6669 fi
6670 if test -z "$ac_cv_prog_FILECMD"; then
6671 ac_ct_FILECMD=$FILECMD
6672 # Extract the first word of "file", so it can be a program name with args.
6673 set dummy file; ac_word=$2
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 printf %s "checking for $ac_word... " >&6; }
6676 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6677 then :
6678 printf %s "(cached) " >&6
6679 else $as_nop
6680 if test -n "$ac_ct_FILECMD"; then
6681 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 case $as_dir in #(((
6688 '') as_dir=./ ;;
6689 */) ;;
6690 *) as_dir=$as_dir/ ;;
6691 esac
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_ac_ct_FILECMD="file"
6695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6705 if test -n "$ac_ct_FILECMD"; then
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6707 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6708 else
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 printf "%s\n" "no" >&6; }
6711 fi
6712
6713 if test "x$ac_ct_FILECMD" = x; then
6714 FILECMD=":"
6715 else
6716 case $cross_compiling:$ac_tool_warned in
6717 yes:)
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722 FILECMD=$ac_ct_FILECMD
6723 fi
6724 else
6725 FILECMD="$ac_cv_prog_FILECMD"
6726 fi
6727
6728
6729
6730
6731
6732
6733
6734 if test -n "$ac_tool_prefix"; then
6735 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 printf %s "checking for $ac_word... " >&6; }
6739 if test ${ac_cv_prog_OBJDUMP+y}
6740 then :
6741 printf %s "(cached) " >&6
6742 else $as_nop
6743 if test -n "$OBJDUMP"; then
6744 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749 IFS=$as_save_IFS
6750 case $as_dir in #(((
6751 '') as_dir=./ ;;
6752 */) ;;
6753 *) as_dir=$as_dir/ ;;
6754 esac
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765 fi
6766 fi
6767 OBJDUMP=$ac_cv_prog_OBJDUMP
6768 if test -n "$OBJDUMP"; then
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6770 printf "%s\n" "$OBJDUMP" >&6; }
6771 else
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 printf "%s\n" "no" >&6; }
6774 fi
6775
6776
6777 fi
6778 if test -z "$ac_cv_prog_OBJDUMP"; then
6779 ac_ct_OBJDUMP=$OBJDUMP
6780 # Extract the first word of "objdump", so it can be a program name with args.
6781 set dummy objdump; ac_word=$2
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 printf %s "checking for $ac_word... " >&6; }
6784 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6785 then :
6786 printf %s "(cached) " >&6
6787 else $as_nop
6788 if test -n "$ac_ct_OBJDUMP"; then
6789 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 case $as_dir in #(((
6796 '') as_dir=./ ;;
6797 */) ;;
6798 *) as_dir=$as_dir/ ;;
6799 esac
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6802 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6813 if test -n "$ac_ct_OBJDUMP"; then
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6815 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6816 else
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 printf "%s\n" "no" >&6; }
6819 fi
6820
6821 if test "x$ac_ct_OBJDUMP" = x; then
6822 OBJDUMP="false"
6823 else
6824 case $cross_compiling:$ac_tool_warned in
6825 yes:)
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828 ac_tool_warned=yes ;;
6829 esac
6830 OBJDUMP=$ac_ct_OBJDUMP
6831 fi
6832 else
6833 OBJDUMP="$ac_cv_prog_OBJDUMP"
6834 fi
6835
6836 test -z "$OBJDUMP" && OBJDUMP=objdump
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6847 printf %s "checking how to recognize dependent libraries... " >&6; }
6848 if test ${lt_cv_deplibs_check_method+y}
6849 then :
6850 printf %s "(cached) " >&6
6851 else $as_nop
6852 lt_cv_file_magic_cmd='$MAGIC_CMD'
6853 lt_cv_file_magic_test_file=
6854 lt_cv_deplibs_check_method='unknown'
6855 # Need to set the preceding variable on all platforms that support
6856 # interlibrary dependencies.
6857 # 'none' -- dependencies not supported.
6858 # 'unknown' -- same as none, but documents that we really don't know.
6859 # 'pass_all' -- all dependencies passed with no checks.
6860 # 'test_compile' -- check by making test program.
6861 # 'file_magic [[regex]]' -- check by looking for files in library path
6862 # that responds to the $file_magic_cmd with a given extended regex.
6863 # If you have 'file' or equivalent on your system and you're not sure
6864 # whether 'pass_all' will *always* work, you probably want this one.
6865
6866 case $host_os in
6867 aix[4-9]*)
6868 lt_cv_deplibs_check_method=pass_all
6869 ;;
6870
6871 beos*)
6872 lt_cv_deplibs_check_method=pass_all
6873 ;;
6874
6875 bsdi[45]*)
6876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6877 lt_cv_file_magic_cmd='$FILECMD -L'
6878 lt_cv_file_magic_test_file=/shlib/libc.so
6879 ;;
6880
6881 cygwin*)
6882 # func_win32_libid is a shell function defined in ltmain.sh
6883 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6884 lt_cv_file_magic_cmd='func_win32_libid'
6885 ;;
6886
6887 mingw* | pw32*)
6888 # Base MSYS/MinGW do not provide the 'file' command needed by
6889 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6890 # unless we find 'file', for example because we are cross-compiling.
6891 if ( file / ) >/dev/null 2>&1; then
6892 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6893 lt_cv_file_magic_cmd='func_win32_libid'
6894 else
6895 # Keep this pattern in sync with the one in func_win32_libid.
6896 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6897 lt_cv_file_magic_cmd='$OBJDUMP -f'
6898 fi
6899 ;;
6900
6901 cegcc*)
6902 # use the weaker test based on 'objdump'. See mingw*.
6903 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6904 lt_cv_file_magic_cmd='$OBJDUMP -f'
6905 ;;
6906
6907 darwin* | rhapsody*)
6908 lt_cv_deplibs_check_method=pass_all
6909 ;;
6910
6911 freebsd* | dragonfly* | midnightbsd*)
6912 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6913 case $host_cpu in
6914 i*86 )
6915 # Not sure whether the presence of OpenBSD here was a mistake.
6916 # Let's accept both of them until this is cleared up.
6917 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6918 lt_cv_file_magic_cmd=$FILECMD
6919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6920 ;;
6921 esac
6922 else
6923 lt_cv_deplibs_check_method=pass_all
6924 fi
6925 ;;
6926
6927 haiku*)
6928 lt_cv_deplibs_check_method=pass_all
6929 ;;
6930
6931 hpux10.20* | hpux11*)
6932 lt_cv_file_magic_cmd=$FILECMD
6933 case $host_cpu in
6934 ia64*)
6935 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6936 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6937 ;;
6938 hppa*64*)
6939 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]'
6940 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6941 ;;
6942 *)
6943 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6944 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6945 ;;
6946 esac
6947 ;;
6948
6949 interix[3-9]*)
6950 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6952 ;;
6953
6954 irix5* | irix6* | nonstopux*)
6955 case $LD in
6956 *-32|*"-32 ") libmagic=32-bit;;
6957 *-n32|*"-n32 ") libmagic=N32;;
6958 *-64|*"-64 ") libmagic=64-bit;;
6959 *) libmagic=never-match;;
6960 esac
6961 lt_cv_deplibs_check_method=pass_all
6962 ;;
6963
6964 # This must be glibc/ELF.
6965 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6966 lt_cv_deplibs_check_method=pass_all
6967 ;;
6968
6969 netbsd*)
6970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6972 else
6973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6974 fi
6975 ;;
6976
6977 newos6*)
6978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6979 lt_cv_file_magic_cmd=$FILECMD
6980 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6981 ;;
6982
6983 *nto* | *qnx*)
6984 lt_cv_deplibs_check_method=pass_all
6985 ;;
6986
6987 openbsd* | bitrig*)
6988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6990 else
6991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6992 fi
6993 ;;
6994
6995 osf3* | osf4* | osf5*)
6996 lt_cv_deplibs_check_method=pass_all
6997 ;;
6998
6999 rdos*)
7000 lt_cv_deplibs_check_method=pass_all
7001 ;;
7002
7003 solaris*)
7004 lt_cv_deplibs_check_method=pass_all
7005 ;;
7006
7007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7008 lt_cv_deplibs_check_method=pass_all
7009 ;;
7010
7011 sysv4 | sysv4.3*)
7012 case $host_vendor in
7013 motorola)
7014 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]'
7015 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7016 ;;
7017 ncr)
7018 lt_cv_deplibs_check_method=pass_all
7019 ;;
7020 sequent)
7021 lt_cv_file_magic_cmd='/bin/file'
7022 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7023 ;;
7024 sni)
7025 lt_cv_file_magic_cmd='/bin/file'
7026 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7027 lt_cv_file_magic_test_file=/lib/libc.so
7028 ;;
7029 siemens)
7030 lt_cv_deplibs_check_method=pass_all
7031 ;;
7032 pc)
7033 lt_cv_deplibs_check_method=pass_all
7034 ;;
7035 esac
7036 ;;
7037
7038 tpf*)
7039 lt_cv_deplibs_check_method=pass_all
7040 ;;
7041 os2*)
7042 lt_cv_deplibs_check_method=pass_all
7043 ;;
7044 esac
7045
7046 fi
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7048 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7049
7050 file_magic_glob=
7051 want_nocaseglob=no
7052 if test "$build" = "$host"; then
7053 case $host_os in
7054 mingw* | pw32*)
7055 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7056 want_nocaseglob=yes
7057 else
7058 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7059 fi
7060 ;;
7061 esac
7062 fi
7063
7064 file_magic_cmd=$lt_cv_file_magic_cmd
7065 deplibs_check_method=$lt_cv_deplibs_check_method
7066 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089 if test -n "$ac_tool_prefix"; then
7090 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7091 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7093 printf %s "checking for $ac_word... " >&6; }
7094 if test ${ac_cv_prog_DLLTOOL+y}
7095 then :
7096 printf %s "(cached) " >&6
7097 else $as_nop
7098 if test -n "$DLLTOOL"; then
7099 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104 IFS=$as_save_IFS
7105 case $as_dir in #(((
7106 '') as_dir=./ ;;
7107 */) ;;
7108 *) as_dir=$as_dir/ ;;
7109 esac
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116 done
7117 done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 DLLTOOL=$ac_cv_prog_DLLTOOL
7123 if test -n "$DLLTOOL"; then
7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7125 printf "%s\n" "$DLLTOOL" >&6; }
7126 else
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 printf "%s\n" "no" >&6; }
7129 fi
7130
7131
7132 fi
7133 if test -z "$ac_cv_prog_DLLTOOL"; then
7134 ac_ct_DLLTOOL=$DLLTOOL
7135 # Extract the first word of "dlltool", so it can be a program name with args.
7136 set dummy dlltool; ac_word=$2
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 printf %s "checking for $ac_word... " >&6; }
7139 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7140 then :
7141 printf %s "(cached) " >&6
7142 else $as_nop
7143 if test -n "$ac_ct_DLLTOOL"; then
7144 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149 IFS=$as_save_IFS
7150 case $as_dir in #(((
7151 '') as_dir=./ ;;
7152 */) ;;
7153 *) as_dir=$as_dir/ ;;
7154 esac
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161 done
7162 done
7163 IFS=$as_save_IFS
7164
7165 fi
7166 fi
7167 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7168 if test -n "$ac_ct_DLLTOOL"; then
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7170 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7171 else
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 printf "%s\n" "no" >&6; }
7174 fi
7175
7176 if test "x$ac_ct_DLLTOOL" = x; then
7177 DLLTOOL="false"
7178 else
7179 case $cross_compiling:$ac_tool_warned in
7180 yes:)
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7182 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7183 ac_tool_warned=yes ;;
7184 esac
7185 DLLTOOL=$ac_ct_DLLTOOL
7186 fi
7187 else
7188 DLLTOOL="$ac_cv_prog_DLLTOOL"
7189 fi
7190
7191 test -z "$DLLTOOL" && DLLTOOL=dlltool
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7203 printf %s "checking how to associate runtime and link libraries... " >&6; }
7204 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7205 then :
7206 printf %s "(cached) " >&6
7207 else $as_nop
7208 lt_cv_sharedlib_from_linklib_cmd='unknown'
7209
7210 case $host_os in
7211 cygwin* | mingw* | pw32* | cegcc*)
7212 # two different shell functions defined in ltmain.sh;
7213 # decide which one to use based on capabilities of $DLLTOOL
7214 case `$DLLTOOL --help 2>&1` in
7215 *--identify-strict*)
7216 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7217 ;;
7218 *)
7219 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7220 ;;
7221 esac
7222 ;;
7223 *)
7224 # fallback: assume linklib IS sharedlib
7225 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7226 ;;
7227 esac
7228
7229 fi
7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7231 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7232 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7233 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7234
7235
7236
7237
7238
7239
7240
7241
7242 if test -n "$ac_tool_prefix"; then
7243 for ac_prog in ar
7244 do
7245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 printf %s "checking for $ac_word... " >&6; }
7249 if test ${ac_cv_prog_AR+y}
7250 then :
7251 printf %s "(cached) " >&6
7252 else $as_nop
7253 if test -n "$AR"; then
7254 ac_cv_prog_AR="$AR" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259 IFS=$as_save_IFS
7260 case $as_dir in #(((
7261 '') as_dir=./ ;;
7262 */) ;;
7263 *) as_dir=$as_dir/ ;;
7264 esac
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271 done
7272 done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 AR=$ac_cv_prog_AR
7278 if test -n "$AR"; then
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7280 printf "%s\n" "$AR" >&6; }
7281 else
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 printf "%s\n" "no" >&6; }
7284 fi
7285
7286
7287 test -n "$AR" && break
7288 done
7289 fi
7290 if test -z "$AR"; then
7291 ac_ct_AR=$AR
7292 for ac_prog in ar
7293 do
7294 # Extract the first word of "$ac_prog", so it can be a program name with args.
7295 set dummy $ac_prog; ac_word=$2
7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 printf %s "checking for $ac_word... " >&6; }
7298 if test ${ac_cv_prog_ac_ct_AR+y}
7299 then :
7300 printf %s "(cached) " >&6
7301 else $as_nop
7302 if test -n "$ac_ct_AR"; then
7303 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308 IFS=$as_save_IFS
7309 case $as_dir in #(((
7310 '') as_dir=./ ;;
7311 */) ;;
7312 *) as_dir=$as_dir/ ;;
7313 esac
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7316 ac_cv_prog_ac_ct_AR="$ac_prog"
7317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7318 break 2
7319 fi
7320 done
7321 done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7327 if test -n "$ac_ct_AR"; then
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7329 printf "%s\n" "$ac_ct_AR" >&6; }
7330 else
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 printf "%s\n" "no" >&6; }
7333 fi
7334
7335
7336 test -n "$ac_ct_AR" && break
7337 done
7338
7339 if test "x$ac_ct_AR" = x; then
7340 AR="false"
7341 else
7342 case $cross_compiling:$ac_tool_warned in
7343 yes:)
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346 ac_tool_warned=yes ;;
7347 esac
7348 AR=$ac_ct_AR
7349 fi
7350 fi
7351
7352 : ${AR=ar}
7353
7354
7355
7356
7357
7358
7359 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7360 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7361 # higher priority because thats what people were doing historically (setting
7362 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7363 # variable obsoleted/removed.
7364
7365 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7366 lt_ar_flags=$AR_FLAGS
7367
7368
7369
7370
7371
7372
7373 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7374 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7375
7376
7377
7378
7379
7380
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7382 printf %s "checking for archiver @FILE support... " >&6; }
7383 if test ${lt_cv_ar_at_file+y}
7384 then :
7385 printf %s "(cached) " >&6
7386 else $as_nop
7387 lt_cv_ar_at_file=no
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390
7391 int
7392 main (void)
7393 {
7394
7395 ;
7396 return 0;
7397 }
7398 _ACEOF
7399 if ac_fn_c_try_compile "$LINENO"
7400 then :
7401 echo conftest.$ac_objext > conftest.lst
7402 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7404 (eval $lt_ar_try) 2>&5
7405 ac_status=$?
7406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }
7408 if test 0 -eq "$ac_status"; then
7409 # Ensure the archiver fails upon bogus file names.
7410 rm -f conftest.$ac_objext libconftest.a
7411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7412 (eval $lt_ar_try) 2>&5
7413 ac_status=$?
7414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7415 test $ac_status = 0; }
7416 if test 0 -ne "$ac_status"; then
7417 lt_cv_ar_at_file=@
7418 fi
7419 fi
7420 rm -f conftest.* libconftest.a
7421
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7424
7425 fi
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7427 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7428
7429 if test no = "$lt_cv_ar_at_file"; then
7430 archiver_list_spec=
7431 else
7432 archiver_list_spec=$lt_cv_ar_at_file
7433 fi
7434
7435
7436
7437
7438
7439
7440
7441 if test -n "$ac_tool_prefix"; then
7442 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7443 set dummy ${ac_tool_prefix}strip; ac_word=$2
7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 printf %s "checking for $ac_word... " >&6; }
7446 if test ${ac_cv_prog_STRIP+y}
7447 then :
7448 printf %s "(cached) " >&6
7449 else $as_nop
7450 if test -n "$STRIP"; then
7451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456 IFS=$as_save_IFS
7457 case $as_dir in #(((
7458 '') as_dir=./ ;;
7459 */) ;;
7460 *) as_dir=$as_dir/ ;;
7461 esac
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 STRIP=$ac_cv_prog_STRIP
7475 if test -n "$STRIP"; then
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7477 printf "%s\n" "$STRIP" >&6; }
7478 else
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 printf "%s\n" "no" >&6; }
7481 fi
7482
7483
7484 fi
7485 if test -z "$ac_cv_prog_STRIP"; then
7486 ac_ct_STRIP=$STRIP
7487 # Extract the first word of "strip", so it can be a program name with args.
7488 set dummy strip; ac_word=$2
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 printf %s "checking for $ac_word... " >&6; }
7491 if test ${ac_cv_prog_ac_ct_STRIP+y}
7492 then :
7493 printf %s "(cached) " >&6
7494 else $as_nop
7495 if test -n "$ac_ct_STRIP"; then
7496 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7497 else
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 for as_dir in $PATH
7500 do
7501 IFS=$as_save_IFS
7502 case $as_dir in #(((
7503 '') as_dir=./ ;;
7504 */) ;;
7505 *) as_dir=$as_dir/ ;;
7506 esac
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7509 ac_cv_prog_ac_ct_STRIP="strip"
7510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7511 break 2
7512 fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517 fi
7518 fi
7519 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7520 if test -n "$ac_ct_STRIP"; then
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7522 printf "%s\n" "$ac_ct_STRIP" >&6; }
7523 else
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 printf "%s\n" "no" >&6; }
7526 fi
7527
7528 if test "x$ac_ct_STRIP" = x; then
7529 STRIP=":"
7530 else
7531 case $cross_compiling:$ac_tool_warned in
7532 yes:)
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7534 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7535 ac_tool_warned=yes ;;
7536 esac
7537 STRIP=$ac_ct_STRIP
7538 fi
7539 else
7540 STRIP="$ac_cv_prog_STRIP"
7541 fi
7542
7543 test -z "$STRIP" && STRIP=:
7544
7545
7546
7547
7548
7549
7550 if test -n "$ac_tool_prefix"; then
7551 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7552 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 printf %s "checking for $ac_word... " >&6; }
7555 if test ${ac_cv_prog_RANLIB+y}
7556 then :
7557 printf %s "(cached) " >&6
7558 else $as_nop
7559 if test -n "$RANLIB"; then
7560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565 IFS=$as_save_IFS
7566 case $as_dir in #(((
7567 '') as_dir=./ ;;
7568 */) ;;
7569 *) as_dir=$as_dir/ ;;
7570 esac
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577 done
7578 done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 RANLIB=$ac_cv_prog_RANLIB
7584 if test -n "$RANLIB"; then
7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7586 printf "%s\n" "$RANLIB" >&6; }
7587 else
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 printf "%s\n" "no" >&6; }
7590 fi
7591
7592
7593 fi
7594 if test -z "$ac_cv_prog_RANLIB"; then
7595 ac_ct_RANLIB=$RANLIB
7596 # Extract the first word of "ranlib", so it can be a program name with args.
7597 set dummy ranlib; ac_word=$2
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 printf %s "checking for $ac_word... " >&6; }
7600 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7601 then :
7602 printf %s "(cached) " >&6
7603 else $as_nop
7604 if test -n "$ac_ct_RANLIB"; then
7605 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610 IFS=$as_save_IFS
7611 case $as_dir in #(((
7612 '') as_dir=./ ;;
7613 */) ;;
7614 *) as_dir=$as_dir/ ;;
7615 esac
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_ac_ct_RANLIB="ranlib"
7619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7620 break 2
7621 fi
7622 done
7623 done
7624 IFS=$as_save_IFS
7625
7626 fi
7627 fi
7628 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7629 if test -n "$ac_ct_RANLIB"; then
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7631 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7632 else
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 printf "%s\n" "no" >&6; }
7635 fi
7636
7637 if test "x$ac_ct_RANLIB" = x; then
7638 RANLIB=":"
7639 else
7640 case $cross_compiling:$ac_tool_warned in
7641 yes:)
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7643 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7644 ac_tool_warned=yes ;;
7645 esac
7646 RANLIB=$ac_ct_RANLIB
7647 fi
7648 else
7649 RANLIB="$ac_cv_prog_RANLIB"
7650 fi
7651
7652 test -z "$RANLIB" && RANLIB=:
7653
7654
7655
7656
7657
7658
7659 # Determine commands to create old-style static archives.
7660 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7661 old_postinstall_cmds='chmod 644 $oldlib'
7662 old_postuninstall_cmds=
7663
7664 if test -n "$RANLIB"; then
7665 case $host_os in
7666 bitrig* | openbsd*)
7667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7668 ;;
7669 *)
7670 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7671 ;;
7672 esac
7673 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7674 fi
7675
7676 case $host_os in
7677 darwin*)
7678 lock_old_archive_extraction=yes ;;
7679 *)
7680 lock_old_archive_extraction=no ;;
7681 esac
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 # If no C compiler was specified, use CC.
7722 LTCC=${LTCC-"$CC"}
7723
7724 # If no C compiler flags were specified, use CFLAGS.
7725 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7726
7727 # Allow CC to be a program name with arguments.
7728 compiler=$CC
7729
7730
7731 # Check for command to grab the raw symbol name followed by C symbol from nm.
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7733 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7734 if test ${lt_cv_sys_global_symbol_pipe+y}
7735 then :
7736 printf %s "(cached) " >&6
7737 else $as_nop
7738
7739 # These are sane defaults that work on at least a few old systems.
7740 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7741
7742 # Character class describing NM global symbol codes.
7743 symcode='[BCDEGRST]'
7744
7745 # Regexp to match symbols that can be accessed directly from C.
7746 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7747
7748 # Define system-specific variables.
7749 case $host_os in
7750 aix*)
7751 symcode='[BCDT]'
7752 ;;
7753 cygwin* | mingw* | pw32* | cegcc*)
7754 symcode='[ABCDGISTW]'
7755 ;;
7756 hpux*)
7757 if test ia64 = "$host_cpu"; then
7758 symcode='[ABCDEGRST]'
7759 fi
7760 ;;
7761 irix* | nonstopux*)
7762 symcode='[BCDEGRST]'
7763 ;;
7764 osf*)
7765 symcode='[BCDEGQRST]'
7766 ;;
7767 solaris*)
7768 symcode='[BDRT]'
7769 ;;
7770 sco3.2v5*)
7771 symcode='[DT]'
7772 ;;
7773 sysv4.2uw2*)
7774 symcode='[DT]'
7775 ;;
7776 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7777 symcode='[ABDT]'
7778 ;;
7779 sysv4)
7780 symcode='[DFNSTU]'
7781 ;;
7782 esac
7783
7784 # If we're using GNU nm, then use its standard symbol codes.
7785 case `$NM -V 2>&1` in
7786 *GNU* | *'with BFD'*)
7787 symcode='[ABCDGIRSTW]' ;;
7788 esac
7789
7790 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7791 # Gets list of data symbols to import.
7792 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7793 # Adjust the below global symbol transforms to fixup imported variables.
7794 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7795 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7796 lt_c_name_lib_hook="\
7797 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7798 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7799 else
7800 # Disable hooks by default.
7801 lt_cv_sys_global_symbol_to_import=
7802 lt_cdecl_hook=
7803 lt_c_name_hook=
7804 lt_c_name_lib_hook=
7805 fi
7806
7807 # Transform an extracted symbol line into a proper C declaration.
7808 # Some systems (esp. on ia64) link data and code symbols differently,
7809 # so use this general approach.
7810 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7811 $lt_cdecl_hook\
7812 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7813 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7814
7815 # Transform an extracted symbol line into symbol name and symbol address
7816 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7817 $lt_c_name_hook\
7818 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7819 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7820
7821 # Transform an extracted symbol line into symbol name with lib prefix and
7822 # symbol address.
7823 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7824 $lt_c_name_lib_hook\
7825 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7826 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7827 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7828
7829 # Handle CRLF in mingw tool chain
7830 opt_cr=
7831 case $build_os in
7832 mingw*)
7833 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7834 ;;
7835 esac
7836
7837 # Try without a prefix underscore, then with it.
7838 for ac_symprfx in "" "_"; do
7839
7840 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7841 symxfrm="\\1 $ac_symprfx\\2 \\2"
7842
7843 # Write the raw and C identifiers.
7844 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7845 # Fake it for dumpbin and say T for any non-static function,
7846 # D for any global variable and I for any imported variable.
7847 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7848 # which start with @ or ?.
7849 lt_cv_sys_global_symbol_pipe="$AWK '"\
7850 " {last_section=section; section=\$ 3};"\
7851 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7852 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7853 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7854 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7855 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7856 " \$ 0!~/External *\|/{next};"\
7857 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7858 " {if(hide[section]) next};"\
7859 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7860 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7861 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7862 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7863 " ' prfx=^$ac_symprfx"
7864 else
7865 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7866 fi
7867 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7868
7869 # Check to see that the pipe works correctly.
7870 pipe_works=no
7871
7872 rm -f conftest*
7873 cat > conftest.$ac_ext <<_LT_EOF
7874 #ifdef __cplusplus
7875 extern "C" {
7876 #endif
7877 char nm_test_var;
7878 void nm_test_func(void);
7879 void nm_test_func(void){}
7880 #ifdef __cplusplus
7881 }
7882 #endif
7883 int main(){nm_test_var='a';nm_test_func();return(0);}
7884 _LT_EOF
7885
7886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7887 (eval $ac_compile) 2>&5
7888 ac_status=$?
7889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; }; then
7891 # Now try to grab the symbols.
7892 nlist=conftest.nm
7893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7894 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7895 ac_status=$?
7896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7897 test $ac_status = 0; } && test -s "$nlist"; then
7898 # Try sorting and uniquifying the output.
7899 if sort "$nlist" | uniq > "$nlist"T; then
7900 mv -f "$nlist"T "$nlist"
7901 else
7902 rm -f "$nlist"T
7903 fi
7904
7905 # Make sure that we snagged all the symbols we need.
7906 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7907 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7908 cat <<_LT_EOF > conftest.$ac_ext
7909 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7910 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7911 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7912 relocations are performed -- see ld's documentation on pseudo-relocs. */
7913 # define LT_DLSYM_CONST
7914 #elif defined __osf__
7915 /* This system does not cope well with relocations in const data. */
7916 # define LT_DLSYM_CONST
7917 #else
7918 # define LT_DLSYM_CONST const
7919 #endif
7920
7921 #ifdef __cplusplus
7922 extern "C" {
7923 #endif
7924
7925 _LT_EOF
7926 # Now generate the symbol file.
7927 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7928
7929 cat <<_LT_EOF >> conftest.$ac_ext
7930
7931 /* The mapping between symbol names and symbols. */
7932 LT_DLSYM_CONST struct {
7933 const char *name;
7934 void *address;
7935 }
7936 lt__PROGRAM__LTX_preloaded_symbols[] =
7937 {
7938 { "@PROGRAM@", (void *) 0 },
7939 _LT_EOF
7940 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7941 cat <<\_LT_EOF >> conftest.$ac_ext
7942 {0, (void *) 0}
7943 };
7944
7945 /* This works around a problem in FreeBSD linker */
7946 #ifdef FREEBSD_WORKAROUND
7947 static const void *lt_preloaded_setup() {
7948 return lt__PROGRAM__LTX_preloaded_symbols;
7949 }
7950 #endif
7951
7952 #ifdef __cplusplus
7953 }
7954 #endif
7955 _LT_EOF
7956 # Now try linking the two files.
7957 mv conftest.$ac_objext conftstm.$ac_objext
7958 lt_globsym_save_LIBS=$LIBS
7959 lt_globsym_save_CFLAGS=$CFLAGS
7960 LIBS=conftstm.$ac_objext
7961 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7963 (eval $ac_link) 2>&5
7964 ac_status=$?
7965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7966 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7967 pipe_works=yes
7968 fi
7969 LIBS=$lt_globsym_save_LIBS
7970 CFLAGS=$lt_globsym_save_CFLAGS
7971 else
7972 echo "cannot find nm_test_func in $nlist" >&5
7973 fi
7974 else
7975 echo "cannot find nm_test_var in $nlist" >&5
7976 fi
7977 else
7978 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7979 fi
7980 else
7981 echo "$progname: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7983 fi
7984 rm -rf conftest* conftst*
7985
7986 # Do not use the global_symbol_pipe unless it works.
7987 if test yes = "$pipe_works"; then
7988 break
7989 else
7990 lt_cv_sys_global_symbol_pipe=
7991 fi
7992 done
7993
7994 fi
7995
7996 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7997 lt_cv_sys_global_symbol_to_cdecl=
7998 fi
7999 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8001 printf "%s\n" "failed" >&6; }
8002 else
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8004 printf "%s\n" "ok" >&6; }
8005 fi
8006
8007 # Response file support.
8008 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8009 nm_file_list_spec='@'
8010 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8011 nm_file_list_spec='@'
8012 fi
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8051 printf %s "checking for sysroot... " >&6; }
8052
8053 # Check whether --with-sysroot was given.
8054 if test ${with_sysroot+y}
8055 then :
8056 withval=$with_sysroot;
8057 else $as_nop
8058 with_sysroot=no
8059 fi
8060
8061
8062 lt_sysroot=
8063 case $with_sysroot in #(
8064 yes)
8065 if test yes = "$GCC"; then
8066 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8067 fi
8068 ;; #(
8069 /*)
8070 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8071 ;; #(
8072 no|'')
8073 ;; #(
8074 *)
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8076 printf "%s\n" "$with_sysroot" >&6; }
8077 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8078 ;;
8079 esac
8080
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8082 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8083
8084
8085
8086
8087
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8089 printf %s "checking for a working dd... " >&6; }
8090 if test ${ac_cv_path_lt_DD+y}
8091 then :
8092 printf %s "(cached) " >&6
8093 else $as_nop
8094 printf 0123456789abcdef0123456789abcdef >conftest.i
8095 cat conftest.i conftest.i >conftest2.i
8096 : ${lt_DD:=$DD}
8097 if test -z "$lt_DD"; then
8098 ac_path_lt_DD_found=false
8099 # Loop through the user's path and test for each of PROGNAME-LIST
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103 IFS=$as_save_IFS
8104 case $as_dir in #(((
8105 '') as_dir=./ ;;
8106 */) ;;
8107 *) as_dir=$as_dir/ ;;
8108 esac
8109 for ac_prog in dd
8110 do
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8113 as_fn_executable_p "$ac_path_lt_DD" || continue
8114 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8115 cmp -s conftest.i conftest.out \
8116 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8117 fi
8118 $ac_path_lt_DD_found && break 3
8119 done
8120 done
8121 done
8122 IFS=$as_save_IFS
8123 if test -z "$ac_cv_path_lt_DD"; then
8124 :
8125 fi
8126 else
8127 ac_cv_path_lt_DD=$lt_DD
8128 fi
8129
8130 rm -f conftest.i conftest2.i conftest.out
8131 fi
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8133 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8134
8135
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8137 printf %s "checking how to truncate binary pipes... " >&6; }
8138 if test ${lt_cv_truncate_bin+y}
8139 then :
8140 printf %s "(cached) " >&6
8141 else $as_nop
8142 printf 0123456789abcdef0123456789abcdef >conftest.i
8143 cat conftest.i conftest.i >conftest2.i
8144 lt_cv_truncate_bin=
8145 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8146 cmp -s conftest.i conftest.out \
8147 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8148 fi
8149 rm -f conftest.i conftest2.i conftest.out
8150 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8151 fi
8152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8153 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8154
8155
8156
8157
8158
8159
8160
8161 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8162 func_cc_basename ()
8163 {
8164 for cc_temp in $*""; do
8165 case $cc_temp in
8166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8168 \-*) ;;
8169 *) break;;
8170 esac
8171 done
8172 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8173 }
8174
8175 # Check whether --enable-libtool-lock was given.
8176 if test ${enable_libtool_lock+y}
8177 then :
8178 enableval=$enable_libtool_lock;
8179 fi
8180
8181 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8182
8183 # Some flags need to be propagated to the compiler or linker for good
8184 # libtool support.
8185 case $host in
8186 ia64-*-hpux*)
8187 # Find out what ABI is being produced by ac_compile, and set mode
8188 # options accordingly.
8189 echo 'int i;' > conftest.$ac_ext
8190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8191 (eval $ac_compile) 2>&5
8192 ac_status=$?
8193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8194 test $ac_status = 0; }; then
8195 case `$FILECMD conftest.$ac_objext` in
8196 *ELF-32*)
8197 HPUX_IA64_MODE=32
8198 ;;
8199 *ELF-64*)
8200 HPUX_IA64_MODE=64
8201 ;;
8202 esac
8203 fi
8204 rm -rf conftest*
8205 ;;
8206 *-*-irix6*)
8207 # Find out what ABI is being produced by ac_compile, and set linker
8208 # options accordingly.
8209 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8211 (eval $ac_compile) 2>&5
8212 ac_status=$?
8213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8214 test $ac_status = 0; }; then
8215 if test yes = "$lt_cv_prog_gnu_ld"; then
8216 case `$FILECMD conftest.$ac_objext` in
8217 *32-bit*)
8218 LD="${LD-ld} -melf32bsmip"
8219 ;;
8220 *N32*)
8221 LD="${LD-ld} -melf32bmipn32"
8222 ;;
8223 *64-bit*)
8224 LD="${LD-ld} -melf64bmip"
8225 ;;
8226 esac
8227 else
8228 case `$FILECMD conftest.$ac_objext` in
8229 *32-bit*)
8230 LD="${LD-ld} -32"
8231 ;;
8232 *N32*)
8233 LD="${LD-ld} -n32"
8234 ;;
8235 *64-bit*)
8236 LD="${LD-ld} -64"
8237 ;;
8238 esac
8239 fi
8240 fi
8241 rm -rf conftest*
8242 ;;
8243
8244 mips64*-*linux*)
8245 # Find out what ABI is being produced by ac_compile, and set linker
8246 # options accordingly.
8247 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8249 (eval $ac_compile) 2>&5
8250 ac_status=$?
8251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8252 test $ac_status = 0; }; then
8253 emul=elf
8254 case `$FILECMD conftest.$ac_objext` in
8255 *32-bit*)
8256 emul="${emul}32"
8257 ;;
8258 *64-bit*)
8259 emul="${emul}64"
8260 ;;
8261 esac
8262 case `$FILECMD conftest.$ac_objext` in
8263 *MSB*)
8264 emul="${emul}btsmip"
8265 ;;
8266 *LSB*)
8267 emul="${emul}ltsmip"
8268 ;;
8269 esac
8270 case `$FILECMD conftest.$ac_objext` in
8271 *N32*)
8272 emul="${emul}n32"
8273 ;;
8274 esac
8275 LD="${LD-ld} -m $emul"
8276 fi
8277 rm -rf conftest*
8278 ;;
8279
8280 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8281 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8282 # Find out what ABI is being produced by ac_compile, and set linker
8283 # options accordingly. Note that the listed cases only cover the
8284 # situations where additional linker options are needed (such as when
8285 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8286 # vice versa); the common cases where no linker options are needed do
8287 # not appear in the list.
8288 echo 'int i;' > conftest.$ac_ext
8289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8290 (eval $ac_compile) 2>&5
8291 ac_status=$?
8292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8293 test $ac_status = 0; }; then
8294 case `$FILECMD conftest.o` in
8295 *32-bit*)
8296 case $host in
8297 x86_64-*kfreebsd*-gnu)
8298 LD="${LD-ld} -m elf_i386_fbsd"
8299 ;;
8300 x86_64-*linux*)
8301 case `$FILECMD conftest.o` in
8302 *x86-64*)
8303 LD="${LD-ld} -m elf32_x86_64"
8304 ;;
8305 *)
8306 LD="${LD-ld} -m elf_i386"
8307 ;;
8308 esac
8309 ;;
8310 powerpc64le-*linux*)
8311 LD="${LD-ld} -m elf32lppclinux"
8312 ;;
8313 powerpc64-*linux*)
8314 LD="${LD-ld} -m elf32ppclinux"
8315 ;;
8316 s390x-*linux*)
8317 LD="${LD-ld} -m elf_s390"
8318 ;;
8319 sparc64-*linux*)
8320 LD="${LD-ld} -m elf32_sparc"
8321 ;;
8322 esac
8323 ;;
8324 *64-bit*)
8325 case $host in
8326 x86_64-*kfreebsd*-gnu)
8327 LD="${LD-ld} -m elf_x86_64_fbsd"
8328 ;;
8329 x86_64-*linux*)
8330 LD="${LD-ld} -m elf_x86_64"
8331 ;;
8332 powerpcle-*linux*)
8333 LD="${LD-ld} -m elf64lppc"
8334 ;;
8335 powerpc-*linux*)
8336 LD="${LD-ld} -m elf64ppc"
8337 ;;
8338 s390*-*linux*|s390*-*tpf*)
8339 LD="${LD-ld} -m elf64_s390"
8340 ;;
8341 sparc*-*linux*)
8342 LD="${LD-ld} -m elf64_sparc"
8343 ;;
8344 esac
8345 ;;
8346 esac
8347 fi
8348 rm -rf conftest*
8349 ;;
8350
8351 *-*-sco3.2v5*)
8352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8353 SAVE_CFLAGS=$CFLAGS
8354 CFLAGS="$CFLAGS -belf"
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8356 printf %s "checking whether the C compiler needs -belf... " >&6; }
8357 if test ${lt_cv_cc_needs_belf+y}
8358 then :
8359 printf %s "(cached) " >&6
8360 else $as_nop
8361 ac_ext=c
8362 ac_cpp='$CPP $CPPFLAGS'
8363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8366
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369
8370 int
8371 main (void)
8372 {
8373
8374 ;
8375 return 0;
8376 }
8377 _ACEOF
8378 if ac_fn_c_try_link "$LINENO"
8379 then :
8380 lt_cv_cc_needs_belf=yes
8381 else $as_nop
8382 lt_cv_cc_needs_belf=no
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8385 conftest$ac_exeext conftest.$ac_ext
8386 ac_ext=c
8387 ac_cpp='$CPP $CPPFLAGS'
8388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8391
8392 fi
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8394 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8395 if test yes != "$lt_cv_cc_needs_belf"; then
8396 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8397 CFLAGS=$SAVE_CFLAGS
8398 fi
8399 ;;
8400 *-*solaris*)
8401 # Find out what ABI is being produced by ac_compile, and set linker
8402 # options accordingly.
8403 echo 'int i;' > conftest.$ac_ext
8404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8405 (eval $ac_compile) 2>&5
8406 ac_status=$?
8407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8408 test $ac_status = 0; }; then
8409 case `$FILECMD conftest.o` in
8410 *64-bit*)
8411 case $lt_cv_prog_gnu_ld in
8412 yes*)
8413 case $host in
8414 i?86-*-solaris*|x86_64-*-solaris*)
8415 LD="${LD-ld} -m elf_x86_64"
8416 ;;
8417 sparc*-*-solaris*)
8418 LD="${LD-ld} -m elf64_sparc"
8419 ;;
8420 esac
8421 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8422 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8423 LD=${LD-ld}_sol2
8424 fi
8425 ;;
8426 *)
8427 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8428 LD="${LD-ld} -64"
8429 fi
8430 ;;
8431 esac
8432 ;;
8433 esac
8434 fi
8435 rm -rf conftest*
8436 ;;
8437 esac
8438
8439 need_locks=$enable_libtool_lock
8440
8441 if test -n "$ac_tool_prefix"; then
8442 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8443 set dummy ${ac_tool_prefix}mt; ac_word=$2
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 printf %s "checking for $ac_word... " >&6; }
8446 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8447 then :
8448 printf %s "(cached) " >&6
8449 else $as_nop
8450 if test -n "$MANIFEST_TOOL"; then
8451 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8455 do
8456 IFS=$as_save_IFS
8457 case $as_dir in #(((
8458 '') as_dir=./ ;;
8459 */) ;;
8460 *) as_dir=$as_dir/ ;;
8461 esac
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8464 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8466 break 2
8467 fi
8468 done
8469 done
8470 IFS=$as_save_IFS
8471
8472 fi
8473 fi
8474 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8475 if test -n "$MANIFEST_TOOL"; then
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8477 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8478 else
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 printf "%s\n" "no" >&6; }
8481 fi
8482
8483
8484 fi
8485 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8486 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8487 # Extract the first word of "mt", so it can be a program name with args.
8488 set dummy mt; ac_word=$2
8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 printf %s "checking for $ac_word... " >&6; }
8491 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8492 then :
8493 printf %s "(cached) " >&6
8494 else $as_nop
8495 if test -n "$ac_ct_MANIFEST_TOOL"; then
8496 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8497 else
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8500 do
8501 IFS=$as_save_IFS
8502 case $as_dir in #(((
8503 '') as_dir=./ ;;
8504 */) ;;
8505 *) as_dir=$as_dir/ ;;
8506 esac
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8509 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8511 break 2
8512 fi
8513 done
8514 done
8515 IFS=$as_save_IFS
8516
8517 fi
8518 fi
8519 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8520 if test -n "$ac_ct_MANIFEST_TOOL"; then
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8522 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8523 else
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 printf "%s\n" "no" >&6; }
8526 fi
8527
8528 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8529 MANIFEST_TOOL=":"
8530 else
8531 case $cross_compiling:$ac_tool_warned in
8532 yes:)
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8534 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8535 ac_tool_warned=yes ;;
8536 esac
8537 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8538 fi
8539 else
8540 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8541 fi
8542
8543 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8545 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8546 if test ${lt_cv_path_mainfest_tool+y}
8547 then :
8548 printf %s "(cached) " >&6
8549 else $as_nop
8550 lt_cv_path_mainfest_tool=no
8551 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8552 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8553 cat conftest.err >&5
8554 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8555 lt_cv_path_mainfest_tool=yes
8556 fi
8557 rm -f conftest*
8558 fi
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8560 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8561 if test yes != "$lt_cv_path_mainfest_tool"; then
8562 MANIFEST_TOOL=:
8563 fi
8564
8565
8566
8567
8568
8569
8570 case $host_os in
8571 rhapsody* | darwin*)
8572 if test -n "$ac_tool_prefix"; then
8573 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8574 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 printf %s "checking for $ac_word... " >&6; }
8577 if test ${ac_cv_prog_DSYMUTIL+y}
8578 then :
8579 printf %s "(cached) " >&6
8580 else $as_nop
8581 if test -n "$DSYMUTIL"; then
8582 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587 IFS=$as_save_IFS
8588 case $as_dir in #(((
8589 '') as_dir=./ ;;
8590 */) ;;
8591 *) as_dir=$as_dir/ ;;
8592 esac
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8595 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8597 break 2
8598 fi
8599 done
8600 done
8601 IFS=$as_save_IFS
8602
8603 fi
8604 fi
8605 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8606 if test -n "$DSYMUTIL"; then
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8608 printf "%s\n" "$DSYMUTIL" >&6; }
8609 else
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 printf "%s\n" "no" >&6; }
8612 fi
8613
8614
8615 fi
8616 if test -z "$ac_cv_prog_DSYMUTIL"; then
8617 ac_ct_DSYMUTIL=$DSYMUTIL
8618 # Extract the first word of "dsymutil", so it can be a program name with args.
8619 set dummy dsymutil; ac_word=$2
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 printf %s "checking for $ac_word... " >&6; }
8622 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8623 then :
8624 printf %s "(cached) " >&6
8625 else $as_nop
8626 if test -n "$ac_ct_DSYMUTIL"; then
8627 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8628 else
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8631 do
8632 IFS=$as_save_IFS
8633 case $as_dir in #(((
8634 '') as_dir=./ ;;
8635 */) ;;
8636 *) as_dir=$as_dir/ ;;
8637 esac
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
8644 done
8645 done
8646 IFS=$as_save_IFS
8647
8648 fi
8649 fi
8650 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8651 if test -n "$ac_ct_DSYMUTIL"; then
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8653 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8654 else
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 printf "%s\n" "no" >&6; }
8657 fi
8658
8659 if test "x$ac_ct_DSYMUTIL" = x; then
8660 DSYMUTIL=":"
8661 else
8662 case $cross_compiling:$ac_tool_warned in
8663 yes:)
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8666 ac_tool_warned=yes ;;
8667 esac
8668 DSYMUTIL=$ac_ct_DSYMUTIL
8669 fi
8670 else
8671 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8672 fi
8673
8674 if test -n "$ac_tool_prefix"; then
8675 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8676 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 printf %s "checking for $ac_word... " >&6; }
8679 if test ${ac_cv_prog_NMEDIT+y}
8680 then :
8681 printf %s "(cached) " >&6
8682 else $as_nop
8683 if test -n "$NMEDIT"; then
8684 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689 IFS=$as_save_IFS
8690 case $as_dir in #(((
8691 '') as_dir=./ ;;
8692 */) ;;
8693 *) as_dir=$as_dir/ ;;
8694 esac
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8697 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8699 break 2
8700 fi
8701 done
8702 done
8703 IFS=$as_save_IFS
8704
8705 fi
8706 fi
8707 NMEDIT=$ac_cv_prog_NMEDIT
8708 if test -n "$NMEDIT"; then
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8710 printf "%s\n" "$NMEDIT" >&6; }
8711 else
8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 printf "%s\n" "no" >&6; }
8714 fi
8715
8716
8717 fi
8718 if test -z "$ac_cv_prog_NMEDIT"; then
8719 ac_ct_NMEDIT=$NMEDIT
8720 # Extract the first word of "nmedit", so it can be a program name with args.
8721 set dummy nmedit; ac_word=$2
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723 printf %s "checking for $ac_word... " >&6; }
8724 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8725 then :
8726 printf %s "(cached) " >&6
8727 else $as_nop
8728 if test -n "$ac_ct_NMEDIT"; then
8729 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8733 do
8734 IFS=$as_save_IFS
8735 case $as_dir in #(((
8736 '') as_dir=./ ;;
8737 */) ;;
8738 *) as_dir=$as_dir/ ;;
8739 esac
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8742 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8744 break 2
8745 fi
8746 done
8747 done
8748 IFS=$as_save_IFS
8749
8750 fi
8751 fi
8752 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8753 if test -n "$ac_ct_NMEDIT"; then
8754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8755 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8756 else
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 printf "%s\n" "no" >&6; }
8759 fi
8760
8761 if test "x$ac_ct_NMEDIT" = x; then
8762 NMEDIT=":"
8763 else
8764 case $cross_compiling:$ac_tool_warned in
8765 yes:)
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8767 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8768 ac_tool_warned=yes ;;
8769 esac
8770 NMEDIT=$ac_ct_NMEDIT
8771 fi
8772 else
8773 NMEDIT="$ac_cv_prog_NMEDIT"
8774 fi
8775
8776 if test -n "$ac_tool_prefix"; then
8777 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8778 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8780 printf %s "checking for $ac_word... " >&6; }
8781 if test ${ac_cv_prog_LIPO+y}
8782 then :
8783 printf %s "(cached) " >&6
8784 else $as_nop
8785 if test -n "$LIPO"; then
8786 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8790 do
8791 IFS=$as_save_IFS
8792 case $as_dir in #(((
8793 '') as_dir=./ ;;
8794 */) ;;
8795 *) as_dir=$as_dir/ ;;
8796 esac
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8799 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8801 break 2
8802 fi
8803 done
8804 done
8805 IFS=$as_save_IFS
8806
8807 fi
8808 fi
8809 LIPO=$ac_cv_prog_LIPO
8810 if test -n "$LIPO"; then
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8812 printf "%s\n" "$LIPO" >&6; }
8813 else
8814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 printf "%s\n" "no" >&6; }
8816 fi
8817
8818
8819 fi
8820 if test -z "$ac_cv_prog_LIPO"; then
8821 ac_ct_LIPO=$LIPO
8822 # Extract the first word of "lipo", so it can be a program name with args.
8823 set dummy lipo; ac_word=$2
8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 printf %s "checking for $ac_word... " >&6; }
8826 if test ${ac_cv_prog_ac_ct_LIPO+y}
8827 then :
8828 printf %s "(cached) " >&6
8829 else $as_nop
8830 if test -n "$ac_ct_LIPO"; then
8831 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8832 else
8833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834 for as_dir in $PATH
8835 do
8836 IFS=$as_save_IFS
8837 case $as_dir in #(((
8838 '') as_dir=./ ;;
8839 */) ;;
8840 *) as_dir=$as_dir/ ;;
8841 esac
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8844 ac_cv_prog_ac_ct_LIPO="lipo"
8845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8846 break 2
8847 fi
8848 done
8849 done
8850 IFS=$as_save_IFS
8851
8852 fi
8853 fi
8854 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8855 if test -n "$ac_ct_LIPO"; then
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8857 printf "%s\n" "$ac_ct_LIPO" >&6; }
8858 else
8859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 printf "%s\n" "no" >&6; }
8861 fi
8862
8863 if test "x$ac_ct_LIPO" = x; then
8864 LIPO=":"
8865 else
8866 case $cross_compiling:$ac_tool_warned in
8867 yes:)
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8869 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8870 ac_tool_warned=yes ;;
8871 esac
8872 LIPO=$ac_ct_LIPO
8873 fi
8874 else
8875 LIPO="$ac_cv_prog_LIPO"
8876 fi
8877
8878 if test -n "$ac_tool_prefix"; then
8879 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8880 set dummy ${ac_tool_prefix}otool; ac_word=$2
8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 printf %s "checking for $ac_word... " >&6; }
8883 if test ${ac_cv_prog_OTOOL+y}
8884 then :
8885 printf %s "(cached) " >&6
8886 else $as_nop
8887 if test -n "$OTOOL"; then
8888 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8889 else
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 for as_dir in $PATH
8892 do
8893 IFS=$as_save_IFS
8894 case $as_dir in #(((
8895 '') as_dir=./ ;;
8896 */) ;;
8897 *) as_dir=$as_dir/ ;;
8898 esac
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8901 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8903 break 2
8904 fi
8905 done
8906 done
8907 IFS=$as_save_IFS
8908
8909 fi
8910 fi
8911 OTOOL=$ac_cv_prog_OTOOL
8912 if test -n "$OTOOL"; then
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8914 printf "%s\n" "$OTOOL" >&6; }
8915 else
8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 printf "%s\n" "no" >&6; }
8918 fi
8919
8920
8921 fi
8922 if test -z "$ac_cv_prog_OTOOL"; then
8923 ac_ct_OTOOL=$OTOOL
8924 # Extract the first word of "otool", so it can be a program name with args.
8925 set dummy otool; ac_word=$2
8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927 printf %s "checking for $ac_word... " >&6; }
8928 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8929 then :
8930 printf %s "(cached) " >&6
8931 else $as_nop
8932 if test -n "$ac_ct_OTOOL"; then
8933 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8934 else
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8937 do
8938 IFS=$as_save_IFS
8939 case $as_dir in #(((
8940 '') as_dir=./ ;;
8941 */) ;;
8942 *) as_dir=$as_dir/ ;;
8943 esac
8944 for ac_exec_ext in '' $ac_executable_extensions; do
8945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8946 ac_cv_prog_ac_ct_OTOOL="otool"
8947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8948 break 2
8949 fi
8950 done
8951 done
8952 IFS=$as_save_IFS
8953
8954 fi
8955 fi
8956 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8957 if test -n "$ac_ct_OTOOL"; then
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8959 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8960 else
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 printf "%s\n" "no" >&6; }
8963 fi
8964
8965 if test "x$ac_ct_OTOOL" = x; then
8966 OTOOL=":"
8967 else
8968 case $cross_compiling:$ac_tool_warned in
8969 yes:)
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8971 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8972 ac_tool_warned=yes ;;
8973 esac
8974 OTOOL=$ac_ct_OTOOL
8975 fi
8976 else
8977 OTOOL="$ac_cv_prog_OTOOL"
8978 fi
8979
8980 if test -n "$ac_tool_prefix"; then
8981 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8982 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 printf %s "checking for $ac_word... " >&6; }
8985 if test ${ac_cv_prog_OTOOL64+y}
8986 then :
8987 printf %s "(cached) " >&6
8988 else $as_nop
8989 if test -n "$OTOOL64"; then
8990 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8991 else
8992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8993 for as_dir in $PATH
8994 do
8995 IFS=$as_save_IFS
8996 case $as_dir in #(((
8997 '') as_dir=./ ;;
8998 */) ;;
8999 *) as_dir=$as_dir/ ;;
9000 esac
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9003 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9005 break 2
9006 fi
9007 done
9008 done
9009 IFS=$as_save_IFS
9010
9011 fi
9012 fi
9013 OTOOL64=$ac_cv_prog_OTOOL64
9014 if test -n "$OTOOL64"; then
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9016 printf "%s\n" "$OTOOL64" >&6; }
9017 else
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 printf "%s\n" "no" >&6; }
9020 fi
9021
9022
9023 fi
9024 if test -z "$ac_cv_prog_OTOOL64"; then
9025 ac_ct_OTOOL64=$OTOOL64
9026 # Extract the first word of "otool64", so it can be a program name with args.
9027 set dummy otool64; ac_word=$2
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 printf %s "checking for $ac_word... " >&6; }
9030 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9031 then :
9032 printf %s "(cached) " >&6
9033 else $as_nop
9034 if test -n "$ac_ct_OTOOL64"; then
9035 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9036 else
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 for as_dir in $PATH
9039 do
9040 IFS=$as_save_IFS
9041 case $as_dir in #(((
9042 '') as_dir=./ ;;
9043 */) ;;
9044 *) as_dir=$as_dir/ ;;
9045 esac
9046 for ac_exec_ext in '' $ac_executable_extensions; do
9047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9048 ac_cv_prog_ac_ct_OTOOL64="otool64"
9049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9050 break 2
9051 fi
9052 done
9053 done
9054 IFS=$as_save_IFS
9055
9056 fi
9057 fi
9058 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9059 if test -n "$ac_ct_OTOOL64"; then
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9061 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9062 else
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9064 printf "%s\n" "no" >&6; }
9065 fi
9066
9067 if test "x$ac_ct_OTOOL64" = x; then
9068 OTOOL64=":"
9069 else
9070 case $cross_compiling:$ac_tool_warned in
9071 yes:)
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9073 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9074 ac_tool_warned=yes ;;
9075 esac
9076 OTOOL64=$ac_ct_OTOOL64
9077 fi
9078 else
9079 OTOOL64="$ac_cv_prog_OTOOL64"
9080 fi
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9109 printf %s "checking for -single_module linker flag... " >&6; }
9110 if test ${lt_cv_apple_cc_single_mod+y}
9111 then :
9112 printf %s "(cached) " >&6
9113 else $as_nop
9114 lt_cv_apple_cc_single_mod=no
9115 if test -z "$LT_MULTI_MODULE"; then
9116 # By default we will add the -single_module flag. You can override
9117 # by either setting the environment variable LT_MULTI_MODULE
9118 # non-empty at configure time, or by adding -multi_module to the
9119 # link flags.
9120 rm -rf libconftest.dylib*
9121 echo "int foo(void){return 1;}" > conftest.c
9122 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9123 -dynamiclib -Wl,-single_module conftest.c" >&5
9124 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9125 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9126 _lt_result=$?
9127 # If there is a non-empty error log, and "single_module"
9128 # appears in it, assume the flag caused a linker warning
9129 if test -s conftest.err && $GREP single_module conftest.err; then
9130 cat conftest.err >&5
9131 # Otherwise, if the output was created with a 0 exit code from
9132 # the compiler, it worked.
9133 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9134 lt_cv_apple_cc_single_mod=yes
9135 else
9136 cat conftest.err >&5
9137 fi
9138 rm -rf libconftest.dylib*
9139 rm -f conftest.*
9140 fi
9141 fi
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9143 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9144
9145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9146 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9147 if test ${lt_cv_ld_exported_symbols_list+y}
9148 then :
9149 printf %s "(cached) " >&6
9150 else $as_nop
9151 lt_cv_ld_exported_symbols_list=no
9152 save_LDFLAGS=$LDFLAGS
9153 echo "_main" > conftest.sym
9154 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156 /* end confdefs.h. */
9157
9158 int
9159 main (void)
9160 {
9161
9162 ;
9163 return 0;
9164 }
9165 _ACEOF
9166 if ac_fn_c_try_link "$LINENO"
9167 then :
9168 lt_cv_ld_exported_symbols_list=yes
9169 else $as_nop
9170 lt_cv_ld_exported_symbols_list=no
9171 fi
9172 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9173 conftest$ac_exeext conftest.$ac_ext
9174 LDFLAGS=$save_LDFLAGS
9175
9176 fi
9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9178 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9179
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9181 printf %s "checking for -force_load linker flag... " >&6; }
9182 if test ${lt_cv_ld_force_load+y}
9183 then :
9184 printf %s "(cached) " >&6
9185 else $as_nop
9186 lt_cv_ld_force_load=no
9187 cat > conftest.c << _LT_EOF
9188 int forced_loaded() { return 2;}
9189 _LT_EOF
9190 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9191 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9192 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9193 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9194 echo "$RANLIB libconftest.a" >&5
9195 $RANLIB libconftest.a 2>&5
9196 cat > conftest.c << _LT_EOF
9197 int main() { return 0;}
9198 _LT_EOF
9199 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9200 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9201 _lt_result=$?
9202 if test -s conftest.err && $GREP force_load conftest.err; then
9203 cat conftest.err >&5
9204 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9205 lt_cv_ld_force_load=yes
9206 else
9207 cat conftest.err >&5
9208 fi
9209 rm -f conftest.err libconftest.a conftest conftest.c
9210 rm -rf conftest.dSYM
9211
9212 fi
9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9214 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9215 case $host_os in
9216 rhapsody* | darwin1.[012])
9217 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9218 darwin1.*)
9219 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9220 darwin*)
9221 case $MACOSX_DEPLOYMENT_TARGET,$host in
9222 10.[012],*|,*powerpc*-darwin[5-8]*)
9223 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9224 *)
9225 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9226 esac
9227 ;;
9228 esac
9229 if test yes = "$lt_cv_apple_cc_single_mod"; then
9230 _lt_dar_single_mod='$single_module'
9231 fi
9232 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9233 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9234 else
9235 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9236 fi
9237 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9238 _lt_dsymutil='~$DSYMUTIL $lib || :'
9239 else
9240 _lt_dsymutil=
9241 fi
9242 ;;
9243 esac
9244
9245 # func_munge_path_list VARIABLE PATH
9246 # -----------------------------------
9247 # VARIABLE is name of variable containing _space_ separated list of
9248 # directories to be munged by the contents of PATH, which is string
9249 # having a format:
9250 # "DIR[:DIR]:"
9251 # string "DIR[ DIR]" will be prepended to VARIABLE
9252 # ":DIR[:DIR]"
9253 # string "DIR[ DIR]" will be appended to VARIABLE
9254 # "DIRP[:DIRP]::[DIRA:]DIRA"
9255 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9256 # "DIRA[ DIRA]" will be appended to VARIABLE
9257 # "DIR[:DIR]"
9258 # VARIABLE will be replaced by "DIR[ DIR]"
9259 func_munge_path_list ()
9260 {
9261 case x$2 in
9262 x)
9263 ;;
9264 *:)
9265 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9266 ;;
9267 x:*)
9268 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9269 ;;
9270 *::*)
9271 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9272 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9273 ;;
9274 *)
9275 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9276 ;;
9277 esac
9278 }
9279
9280 ac_header= ac_cache=
9281 for ac_item in $ac_header_c_list
9282 do
9283 if test $ac_cache; then
9284 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9285 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9286 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9287 fi
9288 ac_header= ac_cache=
9289 elif test $ac_header; then
9290 ac_cache=$ac_item
9291 else
9292 ac_header=$ac_item
9293 fi
9294 done
9295
9296
9297
9298
9299
9300
9301
9302
9303 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9304 then :
9305
9306 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9307
9308 fi
9309 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9310 "
9311 if test "x$ac_cv_header_dlfcn_h" = xyes
9312 then :
9313 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9314
9315 fi
9316
9317
9318
9319
9320 func_stripname_cnf ()
9321 {
9322 case $2 in
9323 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9324 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9325 esac
9326 } # func_stripname_cnf
9327
9328
9329
9330
9331
9332 # Set options
9333
9334
9335
9336 enable_dlopen=no
9337
9338
9339 enable_win32_dll=no
9340
9341
9342 # Check whether --enable-shared was given.
9343 if test ${enable_shared+y}
9344 then :
9345 enableval=$enable_shared; p=${PACKAGE-default}
9346 case $enableval in
9347 yes) enable_shared=yes ;;
9348 no) enable_shared=no ;;
9349 *)
9350 enable_shared=no
9351 # Look at the argument we got. We use all the common list separators.
9352 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9353 for pkg in $enableval; do
9354 IFS=$lt_save_ifs
9355 if test "X$pkg" = "X$p"; then
9356 enable_shared=yes
9357 fi
9358 done
9359 IFS=$lt_save_ifs
9360 ;;
9361 esac
9362 else $as_nop
9363 enable_shared=yes
9364 fi
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374 # Check whether --enable-static was given.
9375 if test ${enable_static+y}
9376 then :
9377 enableval=$enable_static; p=${PACKAGE-default}
9378 case $enableval in
9379 yes) enable_static=yes ;;
9380 no) enable_static=no ;;
9381 *)
9382 enable_static=no
9383 # Look at the argument we got. We use all the common list separators.
9384 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9385 for pkg in $enableval; do
9386 IFS=$lt_save_ifs
9387 if test "X$pkg" = "X$p"; then
9388 enable_static=yes
9389 fi
9390 done
9391 IFS=$lt_save_ifs
9392 ;;
9393 esac
9394 else $as_nop
9395 enable_static=yes
9396 fi
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407 # Check whether --with-pic was given.
9408 if test ${with_pic+y}
9409 then :
9410 withval=$with_pic; lt_p=${PACKAGE-default}
9411 case $withval in
9412 yes|no) pic_mode=$withval ;;
9413 *)
9414 pic_mode=default
9415 # Look at the argument we got. We use all the common list separators.
9416 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9417 for lt_pkg in $withval; do
9418 IFS=$lt_save_ifs
9419 if test "X$lt_pkg" = "X$lt_p"; then
9420 pic_mode=yes
9421 fi
9422 done
9423 IFS=$lt_save_ifs
9424 ;;
9425 esac
9426 else $as_nop
9427 pic_mode=default
9428 fi
9429
9430
9431
9432
9433
9434
9435
9436
9437 # Check whether --enable-fast-install was given.
9438 if test ${enable_fast_install+y}
9439 then :
9440 enableval=$enable_fast_install; p=${PACKAGE-default}
9441 case $enableval in
9442 yes) enable_fast_install=yes ;;
9443 no) enable_fast_install=no ;;
9444 *)
9445 enable_fast_install=no
9446 # Look at the argument we got. We use all the common list separators.
9447 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9448 for pkg in $enableval; do
9449 IFS=$lt_save_ifs
9450 if test "X$pkg" = "X$p"; then
9451 enable_fast_install=yes
9452 fi
9453 done
9454 IFS=$lt_save_ifs
9455 ;;
9456 esac
9457 else $as_nop
9458 enable_fast_install=yes
9459 fi
9460
9461
9462
9463
9464
9465
9466
9467
9468 shared_archive_member_spec=
9469 case $host,$enable_shared in
9470 power*-*-aix[5-9]*,yes)
9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9472 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9473
9474 # Check whether --with-aix-soname was given.
9475 if test ${with_aix_soname+y}
9476 then :
9477 withval=$with_aix_soname; case $withval in
9478 aix|svr4|both)
9479 ;;
9480 *)
9481 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9482 ;;
9483 esac
9484 lt_cv_with_aix_soname=$with_aix_soname
9485 else $as_nop
9486 if test ${lt_cv_with_aix_soname+y}
9487 then :
9488 printf %s "(cached) " >&6
9489 else $as_nop
9490 lt_cv_with_aix_soname=aix
9491 fi
9492
9493 with_aix_soname=$lt_cv_with_aix_soname
9494 fi
9495
9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9497 printf "%s\n" "$with_aix_soname" >&6; }
9498 if test aix != "$with_aix_soname"; then
9499 # For the AIX way of multilib, we name the shared archive member
9500 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9501 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9502 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9503 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9504 if test 64 = "${OBJECT_MODE-32}"; then
9505 shared_archive_member_spec=shr_64
9506 else
9507 shared_archive_member_spec=shr
9508 fi
9509 fi
9510 ;;
9511 *)
9512 with_aix_soname=aix
9513 ;;
9514 esac
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525 # This can be used to rebuild libtool when needed
9526 LIBTOOL_DEPS=$ltmain
9527
9528 # Always use our own libtool.
9529 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560 test -z "$LN_S" && LN_S="ln -s"
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575 if test -n "${ZSH_VERSION+set}"; then
9576 setopt NO_GLOB_SUBST
9577 fi
9578
9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9580 printf %s "checking for objdir... " >&6; }
9581 if test ${lt_cv_objdir+y}
9582 then :
9583 printf %s "(cached) " >&6
9584 else $as_nop
9585 rm -f .libs 2>/dev/null
9586 mkdir .libs 2>/dev/null
9587 if test -d .libs; then
9588 lt_cv_objdir=.libs
9589 else
9590 # MS-DOS does not allow filenames that begin with a dot.
9591 lt_cv_objdir=_libs
9592 fi
9593 rmdir .libs 2>/dev/null
9594 fi
9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9596 printf "%s\n" "$lt_cv_objdir" >&6; }
9597 objdir=$lt_cv_objdir
9598
9599
9600
9601
9602
9603 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9604
9605
9606
9607
9608 case $host_os in
9609 aix3*)
9610 # AIX sometimes has problems with the GCC collect2 program. For some
9611 # reason, if we set the COLLECT_NAMES environment variable, the problems
9612 # vanish in a puff of smoke.
9613 if test set != "${COLLECT_NAMES+set}"; then
9614 COLLECT_NAMES=
9615 export COLLECT_NAMES
9616 fi
9617 ;;
9618 esac
9619
9620 # Global variables:
9621 ofile=libtool
9622 can_build_shared=yes
9623
9624 # All known linkers require a '.a' archive for static linking (except MSVC and
9625 # ICC, which need '.lib').
9626 libext=a
9627
9628 with_gnu_ld=$lt_cv_prog_gnu_ld
9629
9630 old_CC=$CC
9631 old_CFLAGS=$CFLAGS
9632
9633 # Set sane defaults for various variables
9634 test -z "$CC" && CC=cc
9635 test -z "$LTCC" && LTCC=$CC
9636 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9637 test -z "$LD" && LD=ld
9638 test -z "$ac_objext" && ac_objext=o
9639
9640 func_cc_basename $compiler
9641 cc_basename=$func_cc_basename_result
9642
9643
9644 # Only perform the check for file, if the check method requires it
9645 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9646 case $deplibs_check_method in
9647 file_magic*)
9648 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9650 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9651 if test ${lt_cv_path_MAGIC_CMD+y}
9652 then :
9653 printf %s "(cached) " >&6
9654 else $as_nop
9655 case $MAGIC_CMD in
9656 [\\/*] | ?:[\\/]*)
9657 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9658 ;;
9659 *)
9660 lt_save_MAGIC_CMD=$MAGIC_CMD
9661 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9662 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9663 for ac_dir in $ac_dummy; do
9664 IFS=$lt_save_ifs
9665 test -z "$ac_dir" && ac_dir=.
9666 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9667 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9668 if test -n "$file_magic_test_file"; then
9669 case $deplibs_check_method in
9670 "file_magic "*)
9671 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9672 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9674 $EGREP "$file_magic_regex" > /dev/null; then
9675 :
9676 else
9677 cat <<_LT_EOF 1>&2
9678
9679 *** Warning: the command libtool uses to detect shared libraries,
9680 *** $file_magic_cmd, produces output that libtool cannot recognize.
9681 *** The result is that libtool may fail to recognize shared libraries
9682 *** as such. This will affect the creation of libtool libraries that
9683 *** depend on shared libraries, but programs linked with such libtool
9684 *** libraries will work regardless of this problem. Nevertheless, you
9685 *** may want to report the problem to your system manager and/or to
9686 *** [email protected]
9687
9688 _LT_EOF
9689 fi ;;
9690 esac
9691 fi
9692 break
9693 fi
9694 done
9695 IFS=$lt_save_ifs
9696 MAGIC_CMD=$lt_save_MAGIC_CMD
9697 ;;
9698 esac
9699 fi
9700
9701 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9702 if test -n "$MAGIC_CMD"; then
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9704 printf "%s\n" "$MAGIC_CMD" >&6; }
9705 else
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 printf "%s\n" "no" >&6; }
9708 fi
9709
9710
9711
9712
9713
9714 if test -z "$lt_cv_path_MAGIC_CMD"; then
9715 if test -n "$ac_tool_prefix"; then
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9717 printf %s "checking for file... " >&6; }
9718 if test ${lt_cv_path_MAGIC_CMD+y}
9719 then :
9720 printf %s "(cached) " >&6
9721 else $as_nop
9722 case $MAGIC_CMD in
9723 [\\/*] | ?:[\\/]*)
9724 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9725 ;;
9726 *)
9727 lt_save_MAGIC_CMD=$MAGIC_CMD
9728 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9729 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9730 for ac_dir in $ac_dummy; do
9731 IFS=$lt_save_ifs
9732 test -z "$ac_dir" && ac_dir=.
9733 if test -f "$ac_dir/file"; then
9734 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9735 if test -n "$file_magic_test_file"; then
9736 case $deplibs_check_method in
9737 "file_magic "*)
9738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9739 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9741 $EGREP "$file_magic_regex" > /dev/null; then
9742 :
9743 else
9744 cat <<_LT_EOF 1>&2
9745
9746 *** Warning: the command libtool uses to detect shared libraries,
9747 *** $file_magic_cmd, produces output that libtool cannot recognize.
9748 *** The result is that libtool may fail to recognize shared libraries
9749 *** as such. This will affect the creation of libtool libraries that
9750 *** depend on shared libraries, but programs linked with such libtool
9751 *** libraries will work regardless of this problem. Nevertheless, you
9752 *** may want to report the problem to your system manager and/or to
9753 *** [email protected]
9754
9755 _LT_EOF
9756 fi ;;
9757 esac
9758 fi
9759 break
9760 fi
9761 done
9762 IFS=$lt_save_ifs
9763 MAGIC_CMD=$lt_save_MAGIC_CMD
9764 ;;
9765 esac
9766 fi
9767
9768 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9769 if test -n "$MAGIC_CMD"; then
9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9771 printf "%s\n" "$MAGIC_CMD" >&6; }
9772 else
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 printf "%s\n" "no" >&6; }
9775 fi
9776
9777
9778 else
9779 MAGIC_CMD=:
9780 fi
9781 fi
9782
9783 fi
9784 ;;
9785 esac
9786
9787 # Use C for the default configuration in the libtool script
9788
9789 lt_save_CC=$CC
9790 ac_ext=c
9791 ac_cpp='$CPP $CPPFLAGS'
9792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9795
9796
9797 # Source file extension for C test sources.
9798 ac_ext=c
9799
9800 # Object file extension for compiled C test sources.
9801 objext=o
9802 objext=$objext
9803
9804 # Code to be used in simple compile tests
9805 lt_simple_compile_test_code="int some_variable = 0;"
9806
9807 # Code to be used in simple link tests
9808 lt_simple_link_test_code='int main(){return(0);}'
9809
9810
9811
9812
9813
9814
9815
9816 # If no C compiler was specified, use CC.
9817 LTCC=${LTCC-"$CC"}
9818
9819 # If no C compiler flags were specified, use CFLAGS.
9820 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9821
9822 # Allow CC to be a program name with arguments.
9823 compiler=$CC
9824
9825 # Save the default compiler, since it gets overwritten when the other
9826 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9827 compiler_DEFAULT=$CC
9828
9829 # save warnings/boilerplate of simple test code
9830 ac_outfile=conftest.$ac_objext
9831 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9833 _lt_compiler_boilerplate=`cat conftest.err`
9834 $RM conftest*
9835
9836 ac_outfile=conftest.$ac_objext
9837 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9839 _lt_linker_boilerplate=`cat conftest.err`
9840 $RM -r conftest*
9841
9842
9843 ## CAVEAT EMPTOR:
9844 ## There is no encapsulation within the following macros, do not change
9845 ## the running order or otherwise move them around unless you know exactly
9846 ## what you are doing...
9847 if test -n "$compiler"; then
9848
9849 lt_prog_compiler_no_builtin_flag=
9850
9851 if test yes = "$GCC"; then
9852 case $cc_basename in
9853 nvcc*)
9854 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9855 *)
9856 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9857 esac
9858
9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9860 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9861 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9862 then :
9863 printf %s "(cached) " >&6
9864 else $as_nop
9865 lt_cv_prog_compiler_rtti_exceptions=no
9866 ac_outfile=conftest.$ac_objext
9867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9868 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9869 # Insert the option either (1) after the last *FLAGS variable, or
9870 # (2) before a word containing "conftest.", or (3) at the end.
9871 # Note that $ac_compile itself does not contain backslashes and begins
9872 # with a dollar sign (not a hyphen), so the echo should work correctly.
9873 # The option is referenced via a variable to avoid confusing sed.
9874 lt_compile=`echo "$ac_compile" | $SED \
9875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9877 -e 's:$: $lt_compiler_flag:'`
9878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9879 (eval "$lt_compile" 2>conftest.err)
9880 ac_status=$?
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 if (exit $ac_status) && test -s "$ac_outfile"; then
9884 # The compiler can only warn and ignore the option if not recognized
9885 # So say no if there are warnings other than the usual output.
9886 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9888 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9889 lt_cv_prog_compiler_rtti_exceptions=yes
9890 fi
9891 fi
9892 $RM conftest*
9893
9894 fi
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9896 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9897
9898 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9899 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9900 else
9901 :
9902 fi
9903
9904 fi
9905
9906
9907
9908
9909
9910
9911 lt_prog_compiler_wl=
9912 lt_prog_compiler_pic=
9913 lt_prog_compiler_static=
9914
9915
9916 if test yes = "$GCC"; then
9917 lt_prog_compiler_wl='-Wl,'
9918 lt_prog_compiler_static='-static'
9919
9920 case $host_os in
9921 aix*)
9922 # All AIX code is PIC.
9923 if test ia64 = "$host_cpu"; then
9924 # AIX 5 now supports IA64 processor
9925 lt_prog_compiler_static='-Bstatic'
9926 fi
9927 lt_prog_compiler_pic='-fPIC'
9928 ;;
9929
9930 amigaos*)
9931 case $host_cpu in
9932 powerpc)
9933 # see comment about AmigaOS4 .so support
9934 lt_prog_compiler_pic='-fPIC'
9935 ;;
9936 m68k)
9937 # FIXME: we need at least 68020 code to build shared libraries, but
9938 # adding the '-m68020' flag to GCC prevents building anything better,
9939 # like '-m68040'.
9940 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9941 ;;
9942 esac
9943 ;;
9944
9945 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9946 # PIC is the default for these OSes.
9947 ;;
9948
9949 mingw* | cygwin* | pw32* | os2* | cegcc*)
9950 # This hack is so that the source file can tell whether it is being
9951 # built for inclusion in a dll (and should export symbols for example).
9952 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9953 # (--disable-auto-import) libraries
9954 lt_prog_compiler_pic='-DDLL_EXPORT'
9955 case $host_os in
9956 os2*)
9957 lt_prog_compiler_static='$wl-static'
9958 ;;
9959 esac
9960 ;;
9961
9962 darwin* | rhapsody*)
9963 # PIC is the default on this platform
9964 # Common symbols not allowed in MH_DYLIB files
9965 lt_prog_compiler_pic='-fno-common'
9966 ;;
9967
9968 haiku*)
9969 # PIC is the default for Haiku.
9970 # The "-static" flag exists, but is broken.
9971 lt_prog_compiler_static=
9972 ;;
9973
9974 hpux*)
9975 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9976 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9977 # sets the default TLS model and affects inlining.
9978 case $host_cpu in
9979 hppa*64*)
9980 # +Z the default
9981 ;;
9982 *)
9983 lt_prog_compiler_pic='-fPIC'
9984 ;;
9985 esac
9986 ;;
9987
9988 interix[3-9]*)
9989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9990 # Instead, we relocate shared libraries at runtime.
9991 ;;
9992
9993 msdosdjgpp*)
9994 # Just because we use GCC doesn't mean we suddenly get shared libraries
9995 # on systems that don't support them.
9996 lt_prog_compiler_can_build_shared=no
9997 enable_shared=no
9998 ;;
9999
10000 *nto* | *qnx*)
10001 # QNX uses GNU C++, but need to define -shared option too, otherwise
10002 # it will coredump.
10003 lt_prog_compiler_pic='-fPIC -shared'
10004 ;;
10005
10006 sysv4*MP*)
10007 if test -d /usr/nec; then
10008 lt_prog_compiler_pic=-Kconform_pic
10009 fi
10010 ;;
10011
10012 *)
10013 lt_prog_compiler_pic='-fPIC'
10014 ;;
10015 esac
10016
10017 case $cc_basename in
10018 nvcc*) # Cuda Compiler Driver 2.2
10019 lt_prog_compiler_wl='-Xlinker '
10020 if test -n "$lt_prog_compiler_pic"; then
10021 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10022 fi
10023 ;;
10024 esac
10025 else
10026 # PORTME Check for flag to pass linker flags through the system compiler.
10027 case $host_os in
10028 aix*)
10029 lt_prog_compiler_wl='-Wl,'
10030 if test ia64 = "$host_cpu"; then
10031 # AIX 5 now supports IA64 processor
10032 lt_prog_compiler_static='-Bstatic'
10033 else
10034 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10035 fi
10036 ;;
10037
10038 darwin* | rhapsody*)
10039 # PIC is the default on this platform
10040 # Common symbols not allowed in MH_DYLIB files
10041 lt_prog_compiler_pic='-fno-common'
10042 case $cc_basename in
10043 nagfor*)
10044 # NAG Fortran compiler
10045 lt_prog_compiler_wl='-Wl,-Wl,,'
10046 lt_prog_compiler_pic='-PIC'
10047 lt_prog_compiler_static='-Bstatic'
10048 ;;
10049 esac
10050 ;;
10051
10052 mingw* | cygwin* | pw32* | os2* | cegcc*)
10053 # This hack is so that the source file can tell whether it is being
10054 # built for inclusion in a dll (and should export symbols for example).
10055 lt_prog_compiler_pic='-DDLL_EXPORT'
10056 case $host_os in
10057 os2*)
10058 lt_prog_compiler_static='$wl-static'
10059 ;;
10060 esac
10061 ;;
10062
10063 hpux9* | hpux10* | hpux11*)
10064 lt_prog_compiler_wl='-Wl,'
10065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10066 # not for PA HP-UX.
10067 case $host_cpu in
10068 hppa*64*|ia64*)
10069 # +Z the default
10070 ;;
10071 *)
10072 lt_prog_compiler_pic='+Z'
10073 ;;
10074 esac
10075 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10076 lt_prog_compiler_static='$wl-a ${wl}archive'
10077 ;;
10078
10079 irix5* | irix6* | nonstopux*)
10080 lt_prog_compiler_wl='-Wl,'
10081 # PIC (with -KPIC) is the default.
10082 lt_prog_compiler_static='-non_shared'
10083 ;;
10084
10085 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10086 case $cc_basename in
10087 # old Intel for x86_64, which still supported -KPIC.
10088 ecc*)
10089 lt_prog_compiler_wl='-Wl,'
10090 lt_prog_compiler_pic='-KPIC'
10091 lt_prog_compiler_static='-static'
10092 ;;
10093 # icc used to be incompatible with GCC.
10094 # ICC 10 doesn't accept -KPIC any more.
10095 icc* | ifort*)
10096 lt_prog_compiler_wl='-Wl,'
10097 lt_prog_compiler_pic='-fPIC'
10098 lt_prog_compiler_static='-static'
10099 ;;
10100 # Lahey Fortran 8.1.
10101 lf95*)
10102 lt_prog_compiler_wl='-Wl,'
10103 lt_prog_compiler_pic='--shared'
10104 lt_prog_compiler_static='--static'
10105 ;;
10106 nagfor*)
10107 # NAG Fortran compiler
10108 lt_prog_compiler_wl='-Wl,-Wl,,'
10109 lt_prog_compiler_pic='-PIC'
10110 lt_prog_compiler_static='-Bstatic'
10111 ;;
10112 tcc*)
10113 # Fabrice Bellard et al's Tiny C Compiler
10114 lt_prog_compiler_wl='-Wl,'
10115 lt_prog_compiler_pic='-fPIC'
10116 lt_prog_compiler_static='-static'
10117 ;;
10118 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10119 # Portland Group compilers (*not* the Pentium gcc compiler,
10120 # which looks to be a dead project)
10121 lt_prog_compiler_wl='-Wl,'
10122 lt_prog_compiler_pic='-fpic'
10123 lt_prog_compiler_static='-Bstatic'
10124 ;;
10125 ccc*)
10126 lt_prog_compiler_wl='-Wl,'
10127 # All Alpha code is PIC.
10128 lt_prog_compiler_static='-non_shared'
10129 ;;
10130 xl* | bgxl* | bgf* | mpixl*)
10131 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10132 lt_prog_compiler_wl='-Wl,'
10133 lt_prog_compiler_pic='-qpic'
10134 lt_prog_compiler_static='-qstaticlink'
10135 ;;
10136 *)
10137 case `$CC -V 2>&1 | $SED 5q` in
10138 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10139 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10140 lt_prog_compiler_pic='-KPIC'
10141 lt_prog_compiler_static='-Bstatic'
10142 lt_prog_compiler_wl=''
10143 ;;
10144 *Sun\ F* | *Sun*Fortran*)
10145 lt_prog_compiler_pic='-KPIC'
10146 lt_prog_compiler_static='-Bstatic'
10147 lt_prog_compiler_wl='-Qoption ld '
10148 ;;
10149 *Sun\ C*)
10150 # Sun C 5.9
10151 lt_prog_compiler_pic='-KPIC'
10152 lt_prog_compiler_static='-Bstatic'
10153 lt_prog_compiler_wl='-Wl,'
10154 ;;
10155 *Intel*\ [CF]*Compiler*)
10156 lt_prog_compiler_wl='-Wl,'
10157 lt_prog_compiler_pic='-fPIC'
10158 lt_prog_compiler_static='-static'
10159 ;;
10160 *Portland\ Group*)
10161 lt_prog_compiler_wl='-Wl,'
10162 lt_prog_compiler_pic='-fpic'
10163 lt_prog_compiler_static='-Bstatic'
10164 ;;
10165 esac
10166 ;;
10167 esac
10168 ;;
10169
10170 newsos6)
10171 lt_prog_compiler_pic='-KPIC'
10172 lt_prog_compiler_static='-Bstatic'
10173 ;;
10174
10175 *nto* | *qnx*)
10176 # QNX uses GNU C++, but need to define -shared option too, otherwise
10177 # it will coredump.
10178 lt_prog_compiler_pic='-fPIC -shared'
10179 ;;
10180
10181 osf3* | osf4* | osf5*)
10182 lt_prog_compiler_wl='-Wl,'
10183 # All OSF/1 code is PIC.
10184 lt_prog_compiler_static='-non_shared'
10185 ;;
10186
10187 rdos*)
10188 lt_prog_compiler_static='-non_shared'
10189 ;;
10190
10191 solaris*)
10192 lt_prog_compiler_pic='-KPIC'
10193 lt_prog_compiler_static='-Bstatic'
10194 case $cc_basename in
10195 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10196 lt_prog_compiler_wl='-Qoption ld ';;
10197 *)
10198 lt_prog_compiler_wl='-Wl,';;
10199 esac
10200 ;;
10201
10202 sunos4*)
10203 lt_prog_compiler_wl='-Qoption ld '
10204 lt_prog_compiler_pic='-PIC'
10205 lt_prog_compiler_static='-Bstatic'
10206 ;;
10207
10208 sysv4 | sysv4.2uw2* | sysv4.3*)
10209 lt_prog_compiler_wl='-Wl,'
10210 lt_prog_compiler_pic='-KPIC'
10211 lt_prog_compiler_static='-Bstatic'
10212 ;;
10213
10214 sysv4*MP*)
10215 if test -d /usr/nec; then
10216 lt_prog_compiler_pic='-Kconform_pic'
10217 lt_prog_compiler_static='-Bstatic'
10218 fi
10219 ;;
10220
10221 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10222 lt_prog_compiler_wl='-Wl,'
10223 lt_prog_compiler_pic='-KPIC'
10224 lt_prog_compiler_static='-Bstatic'
10225 ;;
10226
10227 unicos*)
10228 lt_prog_compiler_wl='-Wl,'
10229 lt_prog_compiler_can_build_shared=no
10230 ;;
10231
10232 uts4*)
10233 lt_prog_compiler_pic='-pic'
10234 lt_prog_compiler_static='-Bstatic'
10235 ;;
10236
10237 *)
10238 lt_prog_compiler_can_build_shared=no
10239 ;;
10240 esac
10241 fi
10242
10243 case $host_os in
10244 # For platforms that do not support PIC, -DPIC is meaningless:
10245 *djgpp*)
10246 lt_prog_compiler_pic=
10247 ;;
10248 *)
10249 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10250 ;;
10251 esac
10252
10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10254 printf %s "checking for $compiler option to produce PIC... " >&6; }
10255 if test ${lt_cv_prog_compiler_pic+y}
10256 then :
10257 printf %s "(cached) " >&6
10258 else $as_nop
10259 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10260 fi
10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10262 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10263 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10264
10265 #
10266 # Check to make sure the PIC flag actually works.
10267 #
10268 if test -n "$lt_prog_compiler_pic"; then
10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10270 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10271 if test ${lt_cv_prog_compiler_pic_works+y}
10272 then :
10273 printf %s "(cached) " >&6
10274 else $as_nop
10275 lt_cv_prog_compiler_pic_works=no
10276 ac_outfile=conftest.$ac_objext
10277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10278 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10279 # Insert the option either (1) after the last *FLAGS variable, or
10280 # (2) before a word containing "conftest.", or (3) at the end.
10281 # Note that $ac_compile itself does not contain backslashes and begins
10282 # with a dollar sign (not a hyphen), so the echo should work correctly.
10283 # The option is referenced via a variable to avoid confusing sed.
10284 lt_compile=`echo "$ac_compile" | $SED \
10285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10287 -e 's:$: $lt_compiler_flag:'`
10288 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10289 (eval "$lt_compile" 2>conftest.err)
10290 ac_status=$?
10291 cat conftest.err >&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 if (exit $ac_status) && test -s "$ac_outfile"; then
10294 # The compiler can only warn and ignore the option if not recognized
10295 # So say no if there are warnings other than the usual output.
10296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10298 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10299 lt_cv_prog_compiler_pic_works=yes
10300 fi
10301 fi
10302 $RM conftest*
10303
10304 fi
10305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10306 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10307
10308 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10309 case $lt_prog_compiler_pic in
10310 "" | " "*) ;;
10311 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10312 esac
10313 else
10314 lt_prog_compiler_pic=
10315 lt_prog_compiler_can_build_shared=no
10316 fi
10317
10318 fi
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330 #
10331 # Check to make sure the static flag actually works.
10332 #
10333 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10335 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10336 if test ${lt_cv_prog_compiler_static_works+y}
10337 then :
10338 printf %s "(cached) " >&6
10339 else $as_nop
10340 lt_cv_prog_compiler_static_works=no
10341 save_LDFLAGS=$LDFLAGS
10342 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10345 # The linker can only warn and ignore the option if not recognized
10346 # So say no if there are warnings
10347 if test -s conftest.err; then
10348 # Append any errors to the config.log.
10349 cat conftest.err 1>&5
10350 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10352 if diff conftest.exp conftest.er2 >/dev/null; then
10353 lt_cv_prog_compiler_static_works=yes
10354 fi
10355 else
10356 lt_cv_prog_compiler_static_works=yes
10357 fi
10358 fi
10359 $RM -r conftest*
10360 LDFLAGS=$save_LDFLAGS
10361
10362 fi
10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10364 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10365
10366 if test yes = "$lt_cv_prog_compiler_static_works"; then
10367 :
10368 else
10369 lt_prog_compiler_static=
10370 fi
10371
10372
10373
10374
10375
10376
10377
10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10379 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10380 if test ${lt_cv_prog_compiler_c_o+y}
10381 then :
10382 printf %s "(cached) " >&6
10383 else $as_nop
10384 lt_cv_prog_compiler_c_o=no
10385 $RM -r conftest 2>/dev/null
10386 mkdir conftest
10387 cd conftest
10388 mkdir out
10389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10390
10391 lt_compiler_flag="-o out/conftest2.$ac_objext"
10392 # Insert the option either (1) after the last *FLAGS variable, or
10393 # (2) before a word containing "conftest.", or (3) at the end.
10394 # Note that $ac_compile itself does not contain backslashes and begins
10395 # with a dollar sign (not a hyphen), so the echo should work correctly.
10396 lt_compile=`echo "$ac_compile" | $SED \
10397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10399 -e 's:$: $lt_compiler_flag:'`
10400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10401 (eval "$lt_compile" 2>out/conftest.err)
10402 ac_status=$?
10403 cat out/conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10406 then
10407 # The compiler can only warn and ignore the option if not recognized
10408 # So say no if there are warnings
10409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10412 lt_cv_prog_compiler_c_o=yes
10413 fi
10414 fi
10415 chmod u+w . 2>&5
10416 $RM conftest*
10417 # SGI C++ compiler will create directory out/ii_files/ for
10418 # template instantiation
10419 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10420 $RM out/* && rmdir out
10421 cd ..
10422 $RM -r conftest
10423 $RM conftest*
10424
10425 fi
10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10427 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10428
10429
10430
10431
10432
10433
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10435 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10436 if test ${lt_cv_prog_compiler_c_o+y}
10437 then :
10438 printf %s "(cached) " >&6
10439 else $as_nop
10440 lt_cv_prog_compiler_c_o=no
10441 $RM -r conftest 2>/dev/null
10442 mkdir conftest
10443 cd conftest
10444 mkdir out
10445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10446
10447 lt_compiler_flag="-o out/conftest2.$ac_objext"
10448 # Insert the option either (1) after the last *FLAGS variable, or
10449 # (2) before a word containing "conftest.", or (3) at the end.
10450 # Note that $ac_compile itself does not contain backslashes and begins
10451 # with a dollar sign (not a hyphen), so the echo should work correctly.
10452 lt_compile=`echo "$ac_compile" | $SED \
10453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10455 -e 's:$: $lt_compiler_flag:'`
10456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10457 (eval "$lt_compile" 2>out/conftest.err)
10458 ac_status=$?
10459 cat out/conftest.err >&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10462 then
10463 # The compiler can only warn and ignore the option if not recognized
10464 # So say no if there are warnings
10465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10468 lt_cv_prog_compiler_c_o=yes
10469 fi
10470 fi
10471 chmod u+w . 2>&5
10472 $RM conftest*
10473 # SGI C++ compiler will create directory out/ii_files/ for
10474 # template instantiation
10475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10476 $RM out/* && rmdir out
10477 cd ..
10478 $RM -r conftest
10479 $RM conftest*
10480
10481 fi
10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10483 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10484
10485
10486
10487
10488 hard_links=nottested
10489 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10490 # do not overwrite the value of need_locks provided by the user
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10492 printf %s "checking if we can lock with hard links... " >&6; }
10493 hard_links=yes
10494 $RM conftest*
10495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10496 touch conftest.a
10497 ln conftest.a conftest.b 2>&5 || hard_links=no
10498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10500 printf "%s\n" "$hard_links" >&6; }
10501 if test no = "$hard_links"; then
10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10503 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10504 need_locks=warn
10505 fi
10506 else
10507 need_locks=no
10508 fi
10509
10510
10511
10512
10513
10514
10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10516 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10517
10518 runpath_var=
10519 allow_undefined_flag=
10520 always_export_symbols=no
10521 archive_cmds=
10522 archive_expsym_cmds=
10523 compiler_needs_object=no
10524 enable_shared_with_static_runtimes=no
10525 export_dynamic_flag_spec=
10526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10527 hardcode_automatic=no
10528 hardcode_direct=no
10529 hardcode_direct_absolute=no
10530 hardcode_libdir_flag_spec=
10531 hardcode_libdir_separator=
10532 hardcode_minus_L=no
10533 hardcode_shlibpath_var=unsupported
10534 inherit_rpath=no
10535 link_all_deplibs=unknown
10536 module_cmds=
10537 module_expsym_cmds=
10538 old_archive_from_new_cmds=
10539 old_archive_from_expsyms_cmds=
10540 thread_safe_flag_spec=
10541 whole_archive_flag_spec=
10542 # include_expsyms should be a list of space-separated symbols to be *always*
10543 # included in the symbol list
10544 include_expsyms=
10545 # exclude_expsyms can be an extended regexp of symbols to exclude
10546 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10547 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10548 # as well as any symbol that contains 'd'.
10549 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10551 # platforms (ab)use it in PIC code, but their linkers get confused if
10552 # the symbol is explicitly referenced. Since portable code cannot
10553 # rely on this symbol name, it's probably fine to never include it in
10554 # preloaded symbol tables.
10555 # Exclude shared library initialization/finalization symbols.
10556 extract_expsyms_cmds=
10557
10558 case $host_os in
10559 cygwin* | mingw* | pw32* | cegcc*)
10560 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10561 # When not using gcc, we currently assume that we are using
10562 # Microsoft Visual C++ or Intel C++ Compiler.
10563 if test yes != "$GCC"; then
10564 with_gnu_ld=no
10565 fi
10566 ;;
10567 interix*)
10568 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10569 with_gnu_ld=yes
10570 ;;
10571 openbsd* | bitrig*)
10572 with_gnu_ld=no
10573 ;;
10574 esac
10575
10576 ld_shlibs=yes
10577
10578 # On some targets, GNU ld is compatible enough with the native linker
10579 # that we're better off using the native interface for both.
10580 lt_use_gnu_ld_interface=no
10581 if test yes = "$with_gnu_ld"; then
10582 case $host_os in
10583 aix*)
10584 # The AIX port of GNU ld has always aspired to compatibility
10585 # with the native linker. However, as the warning in the GNU ld
10586 # block says, versions before 2.19.5* couldn't really create working
10587 # shared libraries, regardless of the interface used.
10588 case `$LD -v 2>&1` in
10589 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10590 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10591 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10592 *)
10593 lt_use_gnu_ld_interface=yes
10594 ;;
10595 esac
10596 ;;
10597 *)
10598 lt_use_gnu_ld_interface=yes
10599 ;;
10600 esac
10601 fi
10602
10603 if test yes = "$lt_use_gnu_ld_interface"; then
10604 # If archive_cmds runs LD, not CC, wlarc should be empty
10605 wlarc='$wl'
10606
10607 # Set some defaults for GNU ld with shared library support. These
10608 # are reset later if shared libraries are not supported. Putting them
10609 # here allows them to be overridden if necessary.
10610 runpath_var=LD_RUN_PATH
10611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10612 export_dynamic_flag_spec='$wl--export-dynamic'
10613 # ancient GNU ld didn't support --whole-archive et. al.
10614 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10615 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10616 else
10617 whole_archive_flag_spec=
10618 fi
10619 supports_anon_versioning=no
10620 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10621 *GNU\ gold*) supports_anon_versioning=yes ;;
10622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10625 *\ 2.11.*) ;; # other 2.11 versions
10626 *) supports_anon_versioning=yes ;;
10627 esac
10628
10629 # See if GNU ld supports shared libraries.
10630 case $host_os in
10631 aix[3-9]*)
10632 # On AIX/PPC, the GNU linker is very broken
10633 if test ia64 != "$host_cpu"; then
10634 ld_shlibs=no
10635 cat <<_LT_EOF 1>&2
10636
10637 *** Warning: the GNU linker, at least up to release 2.19, is reported
10638 *** to be unable to reliably create shared libraries on AIX.
10639 *** Therefore, libtool is disabling shared libraries support. If you
10640 *** really care for shared libraries, you may want to install binutils
10641 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10642 *** You will then need to restart the configuration process.
10643
10644 _LT_EOF
10645 fi
10646 ;;
10647
10648 amigaos*)
10649 case $host_cpu in
10650 powerpc)
10651 # see comment about AmigaOS4 .so support
10652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10653 archive_expsym_cmds=''
10654 ;;
10655 m68k)
10656 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)'
10657 hardcode_libdir_flag_spec='-L$libdir'
10658 hardcode_minus_L=yes
10659 ;;
10660 esac
10661 ;;
10662
10663 beos*)
10664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10665 allow_undefined_flag=unsupported
10666 # Joseph Beckenbach <[email protected]> says some releases of gcc
10667 # support --undefined. This deserves some investigation. FIXME
10668 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10669 else
10670 ld_shlibs=no
10671 fi
10672 ;;
10673
10674 cygwin* | mingw* | pw32* | cegcc*)
10675 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10676 # as there is no search path for DLLs.
10677 hardcode_libdir_flag_spec='-L$libdir'
10678 export_dynamic_flag_spec='$wl--export-all-symbols'
10679 allow_undefined_flag=unsupported
10680 always_export_symbols=no
10681 enable_shared_with_static_runtimes=yes
10682 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'
10683 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10684
10685 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10687 # If the export-symbols file already is a .def file, use it as
10688 # is; otherwise, prepend EXPORTS...
10689 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10690 cp $export_symbols $output_objdir/$soname.def;
10691 else
10692 echo EXPORTS > $output_objdir/$soname.def;
10693 cat $export_symbols >> $output_objdir/$soname.def;
10694 fi~
10695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10696 else
10697 ld_shlibs=no
10698 fi
10699 ;;
10700
10701 haiku*)
10702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10703 link_all_deplibs=yes
10704 ;;
10705
10706 os2*)
10707 hardcode_libdir_flag_spec='-L$libdir'
10708 hardcode_minus_L=yes
10709 allow_undefined_flag=unsupported
10710 shrext_cmds=.dll
10711 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10712 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10713 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10714 $ECHO EXPORTS >> $output_objdir/$libname.def~
10715 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10716 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10717 emximp -o $lib $output_objdir/$libname.def'
10718 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10719 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10720 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10721 $ECHO EXPORTS >> $output_objdir/$libname.def~
10722 prefix_cmds="$SED"~
10723 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10724 prefix_cmds="$prefix_cmds -e 1d";
10725 fi~
10726 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10727 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10728 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10729 emximp -o $lib $output_objdir/$libname.def'
10730 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10731 enable_shared_with_static_runtimes=yes
10732 file_list_spec='@'
10733 ;;
10734
10735 interix[3-9]*)
10736 hardcode_direct=no
10737 hardcode_shlibpath_var=no
10738 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10739 export_dynamic_flag_spec='$wl-E'
10740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10741 # Instead, shared libraries are loaded at an image base (0x10000000 by
10742 # default) and relocated if they conflict, which is a slow very memory
10743 # consuming and fragmenting process. To avoid this, we pick a random,
10744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10745 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10747 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'
10748 ;;
10749
10750 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10751 tmp_diet=no
10752 if test linux-dietlibc = "$host_os"; then
10753 case $cc_basename in
10754 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10755 esac
10756 fi
10757 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10758 && test no = "$tmp_diet"
10759 then
10760 tmp_addflag=' $pic_flag'
10761 tmp_sharedflag='-shared'
10762 case $cc_basename,$host_cpu in
10763 pgcc*) # Portland Group C compiler
10764 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'
10765 tmp_addflag=' $pic_flag'
10766 ;;
10767 pgf77* | pgf90* | pgf95* | pgfortran*)
10768 # Portland Group f77 and f90 compilers
10769 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'
10770 tmp_addflag=' $pic_flag -Mnomain' ;;
10771 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10772 tmp_addflag=' -i_dynamic' ;;
10773 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10774 tmp_addflag=' -i_dynamic -nofor_main' ;;
10775 ifc* | ifort*) # Intel Fortran compiler
10776 tmp_addflag=' -nofor_main' ;;
10777 lf95*) # Lahey Fortran 8.1
10778 whole_archive_flag_spec=
10779 tmp_sharedflag='--shared' ;;
10780 nagfor*) # NAGFOR 5.3
10781 tmp_sharedflag='-Wl,-shared' ;;
10782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10783 tmp_sharedflag='-qmkshrobj'
10784 tmp_addflag= ;;
10785 nvcc*) # Cuda Compiler Driver 2.2
10786 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'
10787 compiler_needs_object=yes
10788 ;;
10789 esac
10790 case `$CC -V 2>&1 | $SED 5q` in
10791 *Sun\ C*) # Sun C 5.9
10792 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'
10793 compiler_needs_object=yes
10794 tmp_sharedflag='-G' ;;
10795 *Sun\ F*) # Sun Fortran 8.3
10796 tmp_sharedflag='-G' ;;
10797 esac
10798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10799
10800 if test yes = "$supports_anon_versioning"; then
10801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10802 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10803 echo "local: *; };" >> $output_objdir/$libname.ver~
10804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10805 fi
10806
10807 case $cc_basename in
10808 tcc*)
10809 export_dynamic_flag_spec='-rdynamic'
10810 ;;
10811 xlf* | bgf* | bgxlf* | mpixlf*)
10812 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10813 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10814 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10815 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10816 if test yes = "$supports_anon_versioning"; then
10817 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10818 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10819 echo "local: *; };" >> $output_objdir/$libname.ver~
10820 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10821 fi
10822 ;;
10823 esac
10824 else
10825 ld_shlibs=no
10826 fi
10827 ;;
10828
10829 netbsd*)
10830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10832 wlarc=
10833 else
10834 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10835 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10836 fi
10837 ;;
10838
10839 solaris*)
10840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10841 ld_shlibs=no
10842 cat <<_LT_EOF 1>&2
10843
10844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10845 *** create shared libraries on Solaris systems. Therefore, libtool
10846 *** is disabling shared libraries support. We urge you to upgrade GNU
10847 *** binutils to release 2.9.1 or newer. Another option is to modify
10848 *** your PATH or compiler configuration so that the native linker is
10849 *** used, and then restart.
10850
10851 _LT_EOF
10852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10853 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10854 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10855 else
10856 ld_shlibs=no
10857 fi
10858 ;;
10859
10860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10861 case `$LD -v 2>&1` in
10862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10863 ld_shlibs=no
10864 cat <<_LT_EOF 1>&2
10865
10866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10867 *** reliably create shared libraries on SCO systems. Therefore, libtool
10868 *** is disabling shared libraries support. We urge you to upgrade GNU
10869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10870 *** your PATH or compiler configuration so that the native linker is
10871 *** used, and then restart.
10872
10873 _LT_EOF
10874 ;;
10875 *)
10876 # For security reasons, it is highly recommended that you always
10877 # use absolute paths for naming shared libraries, and exclude the
10878 # DT_RUNPATH tag from executables and libraries. But doing so
10879 # requires that you compile everything twice, which is a pain.
10880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10881 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10883 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10884 else
10885 ld_shlibs=no
10886 fi
10887 ;;
10888 esac
10889 ;;
10890
10891 sunos4*)
10892 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10893 wlarc=
10894 hardcode_direct=yes
10895 hardcode_shlibpath_var=no
10896 ;;
10897
10898 *)
10899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10901 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10902 else
10903 ld_shlibs=no
10904 fi
10905 ;;
10906 esac
10907
10908 if test no = "$ld_shlibs"; then
10909 runpath_var=
10910 hardcode_libdir_flag_spec=
10911 export_dynamic_flag_spec=
10912 whole_archive_flag_spec=
10913 fi
10914 else
10915 # PORTME fill in a description of your system's linker (not GNU ld)
10916 case $host_os in
10917 aix3*)
10918 allow_undefined_flag=unsupported
10919 always_export_symbols=yes
10920 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'
10921 # Note: this linker hardcodes the directories in LIBPATH if there
10922 # are no directories specified by -L.
10923 hardcode_minus_L=yes
10924 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10925 # Neither direct hardcoding nor static linking is supported with a
10926 # broken collect2.
10927 hardcode_direct=unsupported
10928 fi
10929 ;;
10930
10931 aix[4-9]*)
10932 if test ia64 = "$host_cpu"; then
10933 # On IA64, the linker does run time linking by default, so we don't
10934 # have to do anything special.
10935 aix_use_runtimelinking=no
10936 exp_sym_flag='-Bexport'
10937 no_entry_flag=
10938 else
10939 # If we're using GNU nm, then we don't want the "-C" option.
10940 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10941 # Without the "-l" option, or with the "-B" option, AIX nm treats
10942 # weak defined symbols like other global defined symbols, whereas
10943 # GNU nm marks them as "W".
10944 # While the 'weak' keyword is ignored in the Export File, we need
10945 # it in the Import File for the 'aix-soname' feature, so we have
10946 # to replace the "-B" option with "-P" for AIX nm.
10947 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10948 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'
10949 else
10950 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'
10951 fi
10952 aix_use_runtimelinking=no
10953
10954 # Test if we are trying to use run time linking or normal
10955 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10956 # have runtime linking enabled, and use it for executables.
10957 # For shared libraries, we enable/disable runtime linking
10958 # depending on the kind of the shared library created -
10959 # when "with_aix_soname,aix_use_runtimelinking" is:
10960 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10961 # "aix,yes" lib.so shared, rtl:yes, for executables
10962 # lib.a static archive
10963 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10964 # lib.a(lib.so.V) shared, rtl:no, for executables
10965 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10966 # lib.a(lib.so.V) shared, rtl:no
10967 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10968 # lib.a static archive
10969 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10970 for ld_flag in $LDFLAGS; do
10971 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10972 aix_use_runtimelinking=yes
10973 break
10974 fi
10975 done
10976 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10977 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10978 # so we don't have lib.a shared libs to link our executables.
10979 # We have to force runtime linking in this case.
10980 aix_use_runtimelinking=yes
10981 LDFLAGS="$LDFLAGS -Wl,-brtl"
10982 fi
10983 ;;
10984 esac
10985
10986 exp_sym_flag='-bexport'
10987 no_entry_flag='-bnoentry'
10988 fi
10989
10990 # When large executables or shared objects are built, AIX ld can
10991 # have problems creating the table of contents. If linking a library
10992 # or program results in "error TOC overflow" add -mminimal-toc to
10993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10995
10996 archive_cmds=''
10997 hardcode_direct=yes
10998 hardcode_direct_absolute=yes
10999 hardcode_libdir_separator=':'
11000 link_all_deplibs=yes
11001 file_list_spec='$wl-f,'
11002 case $with_aix_soname,$aix_use_runtimelinking in
11003 aix,*) ;; # traditional, no import file
11004 svr4,* | *,yes) # use import file
11005 # The Import File defines what to hardcode.
11006 hardcode_direct=no
11007 hardcode_direct_absolute=no
11008 ;;
11009 esac
11010
11011 if test yes = "$GCC"; then
11012 case $host_os in aix4.[012]|aix4.[012].*)
11013 # We only want to do this on AIX 4.2 and lower, the check
11014 # below for broken collect2 doesn't work under 4.3+
11015 collect2name=`$CC -print-prog-name=collect2`
11016 if test -f "$collect2name" &&
11017 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11018 then
11019 # We have reworked collect2
11020 :
11021 else
11022 # We have old collect2
11023 hardcode_direct=unsupported
11024 # It fails to find uninstalled libraries when the uninstalled
11025 # path is not listed in the libpath. Setting hardcode_minus_L
11026 # to unsupported forces relinking
11027 hardcode_minus_L=yes
11028 hardcode_libdir_flag_spec='-L$libdir'
11029 hardcode_libdir_separator=
11030 fi
11031 ;;
11032 esac
11033 shared_flag='-shared'
11034 if test yes = "$aix_use_runtimelinking"; then
11035 shared_flag="$shared_flag "'$wl-G'
11036 fi
11037 # Need to ensure runtime linking is disabled for the traditional
11038 # shared library, or the linker may eventually find shared libraries
11039 # /with/ Import File - we do not want to mix them.
11040 shared_flag_aix='-shared'
11041 shared_flag_svr4='-shared $wl-G'
11042 else
11043 # not using gcc
11044 if test ia64 = "$host_cpu"; then
11045 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11046 # chokes on -Wl,-G. The following line is correct:
11047 shared_flag='-G'
11048 else
11049 if test yes = "$aix_use_runtimelinking"; then
11050 shared_flag='$wl-G'
11051 else
11052 shared_flag='$wl-bM:SRE'
11053 fi
11054 shared_flag_aix='$wl-bM:SRE'
11055 shared_flag_svr4='$wl-G'
11056 fi
11057 fi
11058
11059 export_dynamic_flag_spec='$wl-bexpall'
11060 # It seems that -bexpall does not export symbols beginning with
11061 # underscore (_), so it is better to generate a list of symbols to export.
11062 always_export_symbols=yes
11063 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11064 # Warning - without using the other runtime loading flags (-brtl),
11065 # -berok will link without error, but may produce a broken library.
11066 allow_undefined_flag='-berok'
11067 # Determine the default libpath from the value encoded in an
11068 # empty executable.
11069 if test set = "${lt_cv_aix_libpath+set}"; then
11070 aix_libpath=$lt_cv_aix_libpath
11071 else
11072 if test ${lt_cv_aix_libpath_+y}
11073 then :
11074 printf %s "(cached) " >&6
11075 else $as_nop
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11078
11079 int
11080 main (void)
11081 {
11082
11083 ;
11084 return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"
11088 then :
11089
11090 lt_aix_libpath_sed='
11091 /Import File Strings/,/^$/ {
11092 /^0/ {
11093 s/^0 *\([^ ]*\) *$/\1/
11094 p
11095 }
11096 }'
11097 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11098 # Check for a 64-bit object if we didn't find anything.
11099 if test -z "$lt_cv_aix_libpath_"; then
11100 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11101 fi
11102 fi
11103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11104 conftest$ac_exeext conftest.$ac_ext
11105 if test -z "$lt_cv_aix_libpath_"; then
11106 lt_cv_aix_libpath_=/usr/lib:/lib
11107 fi
11108
11109 fi
11110
11111 aix_libpath=$lt_cv_aix_libpath_
11112 fi
11113
11114 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11115 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
11116 else
11117 if test ia64 = "$host_cpu"; then
11118 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11119 allow_undefined_flag="-z nodefs"
11120 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"
11121 else
11122 # Determine the default libpath from the value encoded in an
11123 # empty executable.
11124 if test set = "${lt_cv_aix_libpath+set}"; then
11125 aix_libpath=$lt_cv_aix_libpath
11126 else
11127 if test ${lt_cv_aix_libpath_+y}
11128 then :
11129 printf %s "(cached) " >&6
11130 else $as_nop
11131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11132 /* end confdefs.h. */
11133
11134 int
11135 main (void)
11136 {
11137
11138 ;
11139 return 0;
11140 }
11141 _ACEOF
11142 if ac_fn_c_try_link "$LINENO"
11143 then :
11144
11145 lt_aix_libpath_sed='
11146 /Import File Strings/,/^$/ {
11147 /^0/ {
11148 s/^0 *\([^ ]*\) *$/\1/
11149 p
11150 }
11151 }'
11152 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11153 # Check for a 64-bit object if we didn't find anything.
11154 if test -z "$lt_cv_aix_libpath_"; then
11155 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11156 fi
11157 fi
11158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11159 conftest$ac_exeext conftest.$ac_ext
11160 if test -z "$lt_cv_aix_libpath_"; then
11161 lt_cv_aix_libpath_=/usr/lib:/lib
11162 fi
11163
11164 fi
11165
11166 aix_libpath=$lt_cv_aix_libpath_
11167 fi
11168
11169 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11170 # Warning - without using the other run time loading flags,
11171 # -berok will link without error, but may produce a broken library.
11172 no_undefined_flag=' $wl-bernotok'
11173 allow_undefined_flag=' $wl-berok'
11174 if test yes = "$with_gnu_ld"; then
11175 # We only use this code for GNU lds that support --whole-archive.
11176 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11177 else
11178 # Exported symbols can be pulled into shared objects from archives
11179 whole_archive_flag_spec='$convenience'
11180 fi
11181 archive_cmds_need_lc=yes
11182 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11183 # -brtl affects multiple linker settings, -berok does not and is overridden later
11184 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11185 if test svr4 != "$with_aix_soname"; then
11186 # This is similar to how AIX traditionally builds its shared libraries.
11187 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'
11188 fi
11189 if test aix != "$with_aix_soname"; then
11190 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'
11191 else
11192 # used by -dlpreopen to get the symbols
11193 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11194 fi
11195 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11196 fi
11197 fi
11198 ;;
11199
11200 amigaos*)
11201 case $host_cpu in
11202 powerpc)
11203 # see comment about AmigaOS4 .so support
11204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11205 archive_expsym_cmds=''
11206 ;;
11207 m68k)
11208 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)'
11209 hardcode_libdir_flag_spec='-L$libdir'
11210 hardcode_minus_L=yes
11211 ;;
11212 esac
11213 ;;
11214
11215 bsdi[45]*)
11216 export_dynamic_flag_spec=-rdynamic
11217 ;;
11218
11219 cygwin* | mingw* | pw32* | cegcc*)
11220 # When not using gcc, we currently assume that we are using
11221 # Microsoft Visual C++ or Intel C++ Compiler.
11222 # hardcode_libdir_flag_spec is actually meaningless, as there is
11223 # no search path for DLLs.
11224 case $cc_basename in
11225 cl* | icl*)
11226 # Native MSVC or ICC
11227 hardcode_libdir_flag_spec=' '
11228 allow_undefined_flag=unsupported
11229 always_export_symbols=yes
11230 file_list_spec='@'
11231 # Tell ltmain to make .lib files, not .a files.
11232 libext=lib
11233 # Tell ltmain to make .dll files, not .so files.
11234 shrext_cmds=.dll
11235 # FIXME: Setting linknames here is a bad hack.
11236 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11237 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11238 cp "$export_symbols" "$output_objdir/$soname.def";
11239 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11240 else
11241 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11242 fi~
11243 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11244 linknames='
11245 # The linker will not automatically build a static lib if we build a DLL.
11246 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11247 enable_shared_with_static_runtimes=yes
11248 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11249 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11250 # Don't use ranlib
11251 old_postinstall_cmds='chmod 644 $oldlib'
11252 postlink_cmds='lt_outputfile="@OUTPUT@"~
11253 lt_tool_outputfile="@TOOL_OUTPUT@"~
11254 case $lt_outputfile in
11255 *.exe|*.EXE) ;;
11256 *)
11257 lt_outputfile=$lt_outputfile.exe
11258 lt_tool_outputfile=$lt_tool_outputfile.exe
11259 ;;
11260 esac~
11261 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11262 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11263 $RM "$lt_outputfile.manifest";
11264 fi'
11265 ;;
11266 *)
11267 # Assume MSVC and ICC wrapper
11268 hardcode_libdir_flag_spec=' '
11269 allow_undefined_flag=unsupported
11270 # Tell ltmain to make .lib files, not .a files.
11271 libext=lib
11272 # Tell ltmain to make .dll files, not .so files.
11273 shrext_cmds=.dll
11274 # FIXME: Setting linknames here is a bad hack.
11275 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11276 # The linker will automatically build a .lib file if we build a DLL.
11277 old_archive_from_new_cmds='true'
11278 # FIXME: Should let the user specify the lib program.
11279 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11280 enable_shared_with_static_runtimes=yes
11281 ;;
11282 esac
11283 ;;
11284
11285 darwin* | rhapsody*)
11286
11287
11288 archive_cmds_need_lc=no
11289 hardcode_direct=no
11290 hardcode_automatic=yes
11291 hardcode_shlibpath_var=unsupported
11292 if test yes = "$lt_cv_ld_force_load"; then
11293 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\"`'
11294
11295 else
11296 whole_archive_flag_spec=''
11297 fi
11298 link_all_deplibs=yes
11299 allow_undefined_flag=$_lt_dar_allow_undefined
11300 case $cc_basename in
11301 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11302 *) _lt_dar_can_shared=$GCC ;;
11303 esac
11304 if test yes = "$_lt_dar_can_shared"; then
11305 output_verbose_link_cmd=func_echo_all
11306 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11307 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11308 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"
11309 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"
11310
11311 else
11312 ld_shlibs=no
11313 fi
11314
11315 ;;
11316
11317 dgux*)
11318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11319 hardcode_libdir_flag_spec='-L$libdir'
11320 hardcode_shlibpath_var=no
11321 ;;
11322
11323 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11324 # support. Future versions do this automatically, but an explicit c++rt0.o
11325 # does not break anything, and helps significantly (at the cost of a little
11326 # extra space).
11327 freebsd2.2*)
11328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11329 hardcode_libdir_flag_spec='-R$libdir'
11330 hardcode_direct=yes
11331 hardcode_shlibpath_var=no
11332 ;;
11333
11334 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11335 freebsd2.*)
11336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11337 hardcode_direct=yes
11338 hardcode_minus_L=yes
11339 hardcode_shlibpath_var=no
11340 ;;
11341
11342 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11343 freebsd* | dragonfly* | midnightbsd*)
11344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11345 hardcode_libdir_flag_spec='-R$libdir'
11346 hardcode_direct=yes
11347 hardcode_shlibpath_var=no
11348 ;;
11349
11350 hpux9*)
11351 if test yes = "$GCC"; then
11352 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'
11353 else
11354 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'
11355 fi
11356 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11357 hardcode_libdir_separator=:
11358 hardcode_direct=yes
11359
11360 # hardcode_minus_L: Not really in the search PATH,
11361 # but as the default location of the library.
11362 hardcode_minus_L=yes
11363 export_dynamic_flag_spec='$wl-E'
11364 ;;
11365
11366 hpux10*)
11367 if test yes,no = "$GCC,$with_gnu_ld"; then
11368 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11369 else
11370 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11371 fi
11372 if test no = "$with_gnu_ld"; then
11373 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11374 hardcode_libdir_separator=:
11375 hardcode_direct=yes
11376 hardcode_direct_absolute=yes
11377 export_dynamic_flag_spec='$wl-E'
11378 # hardcode_minus_L: Not really in the search PATH,
11379 # but as the default location of the library.
11380 hardcode_minus_L=yes
11381 fi
11382 ;;
11383
11384 hpux11*)
11385 if test yes,no = "$GCC,$with_gnu_ld"; then
11386 case $host_cpu in
11387 hppa*64*)
11388 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11389 ;;
11390 ia64*)
11391 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11392 ;;
11393 *)
11394 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11395 ;;
11396 esac
11397 else
11398 case $host_cpu in
11399 hppa*64*)
11400 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11401 ;;
11402 ia64*)
11403 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11404 ;;
11405 *)
11406
11407 # Older versions of the 11.00 compiler do not understand -b yet
11408 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11410 printf %s "checking if $CC understands -b... " >&6; }
11411 if test ${lt_cv_prog_compiler__b+y}
11412 then :
11413 printf %s "(cached) " >&6
11414 else $as_nop
11415 lt_cv_prog_compiler__b=no
11416 save_LDFLAGS=$LDFLAGS
11417 LDFLAGS="$LDFLAGS -b"
11418 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11419 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11420 # The linker can only warn and ignore the option if not recognized
11421 # So say no if there are warnings
11422 if test -s conftest.err; then
11423 # Append any errors to the config.log.
11424 cat conftest.err 1>&5
11425 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11427 if diff conftest.exp conftest.er2 >/dev/null; then
11428 lt_cv_prog_compiler__b=yes
11429 fi
11430 else
11431 lt_cv_prog_compiler__b=yes
11432 fi
11433 fi
11434 $RM -r conftest*
11435 LDFLAGS=$save_LDFLAGS
11436
11437 fi
11438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11439 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11440
11441 if test yes = "$lt_cv_prog_compiler__b"; then
11442 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11443 else
11444 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11445 fi
11446
11447 ;;
11448 esac
11449 fi
11450 if test no = "$with_gnu_ld"; then
11451 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11452 hardcode_libdir_separator=:
11453
11454 case $host_cpu in
11455 hppa*64*|ia64*)
11456 hardcode_direct=no
11457 hardcode_shlibpath_var=no
11458 ;;
11459 *)
11460 hardcode_direct=yes
11461 hardcode_direct_absolute=yes
11462 export_dynamic_flag_spec='$wl-E'
11463
11464 # hardcode_minus_L: Not really in the search PATH,
11465 # but as the default location of the library.
11466 hardcode_minus_L=yes
11467 ;;
11468 esac
11469 fi
11470 ;;
11471
11472 irix5* | irix6* | nonstopux*)
11473 if test yes = "$GCC"; then
11474 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'
11475 # Try to use the -exported_symbol ld option, if it does not
11476 # work, assume that -exports_file does not work either and
11477 # implicitly export all symbols.
11478 # This should be the same for all languages, so no per-tag cache variable.
11479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11480 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11481 if test ${lt_cv_irix_exported_symbol+y}
11482 then :
11483 printf %s "(cached) " >&6
11484 else $as_nop
11485 save_LDFLAGS=$LDFLAGS
11486 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489 int foo (void) { return 0; }
11490 _ACEOF
11491 if ac_fn_c_try_link "$LINENO"
11492 then :
11493 lt_cv_irix_exported_symbol=yes
11494 else $as_nop
11495 lt_cv_irix_exported_symbol=no
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11498 conftest$ac_exeext conftest.$ac_ext
11499 LDFLAGS=$save_LDFLAGS
11500 fi
11501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11502 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11503 if test yes = "$lt_cv_irix_exported_symbol"; then
11504 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'
11505 fi
11506 else
11507 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'
11508 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'
11509 fi
11510 archive_cmds_need_lc='no'
11511 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11512 hardcode_libdir_separator=:
11513 inherit_rpath=yes
11514 link_all_deplibs=yes
11515 ;;
11516
11517 linux*)
11518 case $cc_basename in
11519 tcc*)
11520 # Fabrice Bellard et al's Tiny C Compiler
11521 ld_shlibs=yes
11522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11523 ;;
11524 esac
11525 ;;
11526
11527 netbsd*)
11528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11530 else
11531 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11532 fi
11533 hardcode_libdir_flag_spec='-R$libdir'
11534 hardcode_direct=yes
11535 hardcode_shlibpath_var=no
11536 ;;
11537
11538 newsos6)
11539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11540 hardcode_direct=yes
11541 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11542 hardcode_libdir_separator=:
11543 hardcode_shlibpath_var=no
11544 ;;
11545
11546 *nto* | *qnx*)
11547 ;;
11548
11549 openbsd* | bitrig*)
11550 if test -f /usr/libexec/ld.so; then
11551 hardcode_direct=yes
11552 hardcode_shlibpath_var=no
11553 hardcode_direct_absolute=yes
11554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11556 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11557 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11558 export_dynamic_flag_spec='$wl-E'
11559 else
11560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11561 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11562 fi
11563 else
11564 ld_shlibs=no
11565 fi
11566 ;;
11567
11568 os2*)
11569 hardcode_libdir_flag_spec='-L$libdir'
11570 hardcode_minus_L=yes
11571 allow_undefined_flag=unsupported
11572 shrext_cmds=.dll
11573 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11574 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11575 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11576 $ECHO EXPORTS >> $output_objdir/$libname.def~
11577 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11578 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11579 emximp -o $lib $output_objdir/$libname.def'
11580 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11581 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11582 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11583 $ECHO EXPORTS >> $output_objdir/$libname.def~
11584 prefix_cmds="$SED"~
11585 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11586 prefix_cmds="$prefix_cmds -e 1d";
11587 fi~
11588 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11589 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11590 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11591 emximp -o $lib $output_objdir/$libname.def'
11592 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11593 enable_shared_with_static_runtimes=yes
11594 file_list_spec='@'
11595 ;;
11596
11597 osf3*)
11598 if test yes = "$GCC"; then
11599 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11600 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'
11601 else
11602 allow_undefined_flag=' -expect_unresolved \*'
11603 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'
11604 fi
11605 archive_cmds_need_lc='no'
11606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11607 hardcode_libdir_separator=:
11608 ;;
11609
11610 osf4* | osf5*) # as osf3* with the addition of -msym flag
11611 if test yes = "$GCC"; then
11612 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11613 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'
11614 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11615 else
11616 allow_undefined_flag=' -expect_unresolved \*'
11617 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'
11618 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~
11619 $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'
11620
11621 # Both c and cxx compiler support -rpath directly
11622 hardcode_libdir_flag_spec='-rpath $libdir'
11623 fi
11624 archive_cmds_need_lc='no'
11625 hardcode_libdir_separator=:
11626 ;;
11627
11628 solaris*)
11629 no_undefined_flag=' -z defs'
11630 if test yes = "$GCC"; then
11631 wlarc='$wl'
11632 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11634 $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'
11635 else
11636 case `$CC -V 2>&1` in
11637 *"Compilers 5.0"*)
11638 wlarc=''
11639 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11640 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11641 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11642 ;;
11643 *)
11644 wlarc='$wl'
11645 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11647 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11648 ;;
11649 esac
11650 fi
11651 hardcode_libdir_flag_spec='-R$libdir'
11652 hardcode_shlibpath_var=no
11653 case $host_os in
11654 solaris2.[0-5] | solaris2.[0-5].*) ;;
11655 *)
11656 # The compiler driver will combine and reorder linker options,
11657 # but understands '-z linker_flag'. GCC discards it without '$wl',
11658 # but is careful enough not to reorder.
11659 # Supported since Solaris 2.6 (maybe 2.5.1?)
11660 if test yes = "$GCC"; then
11661 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11662 else
11663 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11664 fi
11665 ;;
11666 esac
11667 link_all_deplibs=yes
11668 ;;
11669
11670 sunos4*)
11671 if test sequent = "$host_vendor"; then
11672 # Use $CC to link under sequent, because it throws in some extra .o
11673 # files that make .init and .fini sections work.
11674 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11675 else
11676 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11677 fi
11678 hardcode_libdir_flag_spec='-L$libdir'
11679 hardcode_direct=yes
11680 hardcode_minus_L=yes
11681 hardcode_shlibpath_var=no
11682 ;;
11683
11684 sysv4)
11685 case $host_vendor in
11686 sni)
11687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11688 hardcode_direct=yes # is this really true???
11689 ;;
11690 siemens)
11691 ## LD is ld it makes a PLAMLIB
11692 ## CC just makes a GrossModule.
11693 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11694 reload_cmds='$CC -r -o $output$reload_objs'
11695 hardcode_direct=no
11696 ;;
11697 motorola)
11698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11699 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11700 ;;
11701 esac
11702 runpath_var='LD_RUN_PATH'
11703 hardcode_shlibpath_var=no
11704 ;;
11705
11706 sysv4.3*)
11707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11708 hardcode_shlibpath_var=no
11709 export_dynamic_flag_spec='-Bexport'
11710 ;;
11711
11712 sysv4*MP*)
11713 if test -d /usr/nec; then
11714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11715 hardcode_shlibpath_var=no
11716 runpath_var=LD_RUN_PATH
11717 hardcode_runpath_var=yes
11718 ld_shlibs=yes
11719 fi
11720 ;;
11721
11722 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11723 no_undefined_flag='$wl-z,text'
11724 archive_cmds_need_lc=no
11725 hardcode_shlibpath_var=no
11726 runpath_var='LD_RUN_PATH'
11727
11728 if test yes = "$GCC"; then
11729 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11730 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11731 else
11732 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11733 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11734 fi
11735 ;;
11736
11737 sysv5* | sco3.2v5* | sco5v6*)
11738 # Note: We CANNOT use -z defs as we might desire, because we do not
11739 # link with -lc, and that would cause any symbols used from libc to
11740 # always be unresolved, which means just about no library would
11741 # ever link correctly. If we're not using GNU ld we use -z text
11742 # though, which does catch some bad symbols but isn't as heavy-handed
11743 # as -z defs.
11744 no_undefined_flag='$wl-z,text'
11745 allow_undefined_flag='$wl-z,nodefs'
11746 archive_cmds_need_lc=no
11747 hardcode_shlibpath_var=no
11748 hardcode_libdir_flag_spec='$wl-R,$libdir'
11749 hardcode_libdir_separator=':'
11750 link_all_deplibs=yes
11751 export_dynamic_flag_spec='$wl-Bexport'
11752 runpath_var='LD_RUN_PATH'
11753
11754 if test yes = "$GCC"; then
11755 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11756 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11757 else
11758 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11759 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11760 fi
11761 ;;
11762
11763 uts4*)
11764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11765 hardcode_libdir_flag_spec='-L$libdir'
11766 hardcode_shlibpath_var=no
11767 ;;
11768
11769 *)
11770 ld_shlibs=no
11771 ;;
11772 esac
11773
11774 if test sni = "$host_vendor"; then
11775 case $host in
11776 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11777 export_dynamic_flag_spec='$wl-Blargedynsym'
11778 ;;
11779 esac
11780 fi
11781 fi
11782
11783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11784 printf "%s\n" "$ld_shlibs" >&6; }
11785 test no = "$ld_shlibs" && can_build_shared=no
11786
11787 with_gnu_ld=$with_gnu_ld
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803 #
11804 # Do we need to explicitly link libc?
11805 #
11806 case "x$archive_cmds_need_lc" in
11807 x|xyes)
11808 # Assume -lc should be added
11809 archive_cmds_need_lc=yes
11810
11811 if test yes,yes = "$GCC,$enable_shared"; then
11812 case $archive_cmds in
11813 *'~'*)
11814 # FIXME: we may have to deal with multi-command sequences.
11815 ;;
11816 '$CC '*)
11817 # Test whether the compiler implicitly links with -lc since on some
11818 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11819 # to ld, don't add -lc before -lgcc.
11820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11821 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11822 if test ${lt_cv_archive_cmds_need_lc+y}
11823 then :
11824 printf %s "(cached) " >&6
11825 else $as_nop
11826 $RM conftest*
11827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11828
11829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11830 (eval $ac_compile) 2>&5
11831 ac_status=$?
11832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11833 test $ac_status = 0; } 2>conftest.err; then
11834 soname=conftest
11835 lib=conftest
11836 libobjs=conftest.$ac_objext
11837 deplibs=
11838 wl=$lt_prog_compiler_wl
11839 pic_flag=$lt_prog_compiler_pic
11840 compiler_flags=-v
11841 linker_flags=-v
11842 verstring=
11843 output_objdir=.
11844 libname=conftest
11845 lt_save_allow_undefined_flag=$allow_undefined_flag
11846 allow_undefined_flag=
11847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11848 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11849 ac_status=$?
11850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851 test $ac_status = 0; }
11852 then
11853 lt_cv_archive_cmds_need_lc=no
11854 else
11855 lt_cv_archive_cmds_need_lc=yes
11856 fi
11857 allow_undefined_flag=$lt_save_allow_undefined_flag
11858 else
11859 cat conftest.err 1>&5
11860 fi
11861 $RM conftest*
11862
11863 fi
11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11865 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11866 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11867 ;;
11868 esac
11869 fi
11870 ;;
11871 esac
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12025 printf %s "checking dynamic linker characteristics... " >&6; }
12026
12027 if test yes = "$GCC"; then
12028 case $host_os in
12029 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12030 *) lt_awk_arg='/^libraries:/' ;;
12031 esac
12032 case $host_os in
12033 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12034 *) lt_sed_strip_eq='s|=/|/|g' ;;
12035 esac
12036 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12037 case $lt_search_path_spec in
12038 *\;*)
12039 # if the path contains ";" then we assume it to be the separator
12040 # otherwise default to the standard path separator (i.e. ":") - it is
12041 # assumed that no part of a normal pathname contains ";" but that should
12042 # okay in the real world where ";" in dirpaths is itself problematic.
12043 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12044 ;;
12045 *)
12046 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12047 ;;
12048 esac
12049 # Ok, now we have the path, separated by spaces, we can step through it
12050 # and add multilib dir if necessary...
12051 lt_tmp_lt_search_path_spec=
12052 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12053 # ...but if some path component already ends with the multilib dir we assume
12054 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12055 case "$lt_multi_os_dir; $lt_search_path_spec " in
12056 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12057 lt_multi_os_dir=
12058 ;;
12059 esac
12060 for lt_sys_path in $lt_search_path_spec; do
12061 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12062 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12063 elif test -n "$lt_multi_os_dir"; then
12064 test -d "$lt_sys_path" && \
12065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12066 fi
12067 done
12068 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12069 BEGIN {RS = " "; FS = "/|\n";} {
12070 lt_foo = "";
12071 lt_count = 0;
12072 for (lt_i = NF; lt_i > 0; lt_i--) {
12073 if ($lt_i != "" && $lt_i != ".") {
12074 if ($lt_i == "..") {
12075 lt_count++;
12076 } else {
12077 if (lt_count == 0) {
12078 lt_foo = "/" $lt_i lt_foo;
12079 } else {
12080 lt_count--;
12081 }
12082 }
12083 }
12084 }
12085 if (lt_foo != "") { lt_freq[lt_foo]++; }
12086 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12087 }'`
12088 # AWK program above erroneously prepends '/' to C:/dos/paths
12089 # for these hosts.
12090 case $host_os in
12091 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12092 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12093 esac
12094 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12095 else
12096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12097 fi
12098 library_names_spec=
12099 libname_spec='lib$name'
12100 soname_spec=
12101 shrext_cmds=.so
12102 postinstall_cmds=
12103 postuninstall_cmds=
12104 finish_cmds=
12105 finish_eval=
12106 shlibpath_var=
12107 shlibpath_overrides_runpath=unknown
12108 version_type=none
12109 dynamic_linker="$host_os ld.so"
12110 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12111 need_lib_prefix=unknown
12112 hardcode_into_libs=no
12113
12114 # when you set need_version to no, make sure it does not cause -set_version
12115 # flags to be left without arguments
12116 need_version=unknown
12117
12118
12119
12120 case $host_os in
12121 aix3*)
12122 version_type=linux # correct to gnu/linux during the next big refactor
12123 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12124 shlibpath_var=LIBPATH
12125
12126 # AIX 3 has no versioning support, so we append a major version to the name.
12127 soname_spec='$libname$release$shared_ext$major'
12128 ;;
12129
12130 aix[4-9]*)
12131 version_type=linux # correct to gnu/linux during the next big refactor
12132 need_lib_prefix=no
12133 need_version=no
12134 hardcode_into_libs=yes
12135 if test ia64 = "$host_cpu"; then
12136 # AIX 5 supports IA64
12137 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12138 shlibpath_var=LD_LIBRARY_PATH
12139 else
12140 # With GCC up to 2.95.x, collect2 would create an import file
12141 # for dependence libraries. The import file would start with
12142 # the line '#! .'. This would cause the generated library to
12143 # depend on '.', always an invalid library. This was fixed in
12144 # development snapshots of GCC prior to 3.0.
12145 case $host_os in
12146 aix4 | aix4.[01] | aix4.[01].*)
12147 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12148 echo ' yes '
12149 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12150 :
12151 else
12152 can_build_shared=no
12153 fi
12154 ;;
12155 esac
12156 # Using Import Files as archive members, it is possible to support
12157 # filename-based versioning of shared library archives on AIX. While
12158 # this would work for both with and without runtime linking, it will
12159 # prevent static linking of such archives. So we do filename-based
12160 # shared library versioning with .so extension only, which is used
12161 # when both runtime linking and shared linking is enabled.
12162 # Unfortunately, runtime linking may impact performance, so we do
12163 # not want this to be the default eventually. Also, we use the
12164 # versioned .so libs for executables only if there is the -brtl
12165 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12166 # To allow for filename-based versioning support, we need to create
12167 # libNAME.so.V as an archive file, containing:
12168 # *) an Import File, referring to the versioned filename of the
12169 # archive as well as the shared archive member, telling the
12170 # bitwidth (32 or 64) of that shared object, and providing the
12171 # list of exported symbols of that shared object, eventually
12172 # decorated with the 'weak' keyword
12173 # *) the shared object with the F_LOADONLY flag set, to really avoid
12174 # it being seen by the linker.
12175 # At run time we better use the real file rather than another symlink,
12176 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12177
12178 case $with_aix_soname,$aix_use_runtimelinking in
12179 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12180 # soname into executable. Probably we can add versioning support to
12181 # collect2, so additional links can be useful in future.
12182 aix,yes) # traditional libtool
12183 dynamic_linker='AIX unversionable lib.so'
12184 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12185 # instead of lib<name>.a to let people know that these are not
12186 # typical AIX shared libraries.
12187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12188 ;;
12189 aix,no) # traditional AIX only
12190 dynamic_linker='AIX lib.a(lib.so.V)'
12191 # We preserve .a as extension for shared libraries through AIX4.2
12192 # and later when we are not doing run time linking.
12193 library_names_spec='$libname$release.a $libname.a'
12194 soname_spec='$libname$release$shared_ext$major'
12195 ;;
12196 svr4,*) # full svr4 only
12197 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12198 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12199 # We do not specify a path in Import Files, so LIBPATH fires.
12200 shlibpath_overrides_runpath=yes
12201 ;;
12202 *,yes) # both, prefer svr4
12203 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12204 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12205 # unpreferred sharedlib libNAME.a needs extra handling
12206 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"'
12207 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"'
12208 # We do not specify a path in Import Files, so LIBPATH fires.
12209 shlibpath_overrides_runpath=yes
12210 ;;
12211 *,no) # both, prefer aix
12212 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12213 library_names_spec='$libname$release.a $libname.a'
12214 soname_spec='$libname$release$shared_ext$major'
12215 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12216 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)'
12217 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"'
12218 ;;
12219 esac
12220 shlibpath_var=LIBPATH
12221 fi
12222 ;;
12223
12224 amigaos*)
12225 case $host_cpu in
12226 powerpc)
12227 # Since July 2007 AmigaOS4 officially supports .so libraries.
12228 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12230 ;;
12231 m68k)
12232 library_names_spec='$libname.ixlibrary $libname.a'
12233 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12234 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'
12235 ;;
12236 esac
12237 ;;
12238
12239 beos*)
12240 library_names_spec='$libname$shared_ext'
12241 dynamic_linker="$host_os ld.so"
12242 shlibpath_var=LIBRARY_PATH
12243 ;;
12244
12245 bsdi[45]*)
12246 version_type=linux # correct to gnu/linux during the next big refactor
12247 need_version=no
12248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12249 soname_spec='$libname$release$shared_ext$major'
12250 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12253 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12254 # the default ld.so.conf also contains /usr/contrib/lib and
12255 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12256 # libtool to hard-code these into programs
12257 ;;
12258
12259 cygwin* | mingw* | pw32* | cegcc*)
12260 version_type=windows
12261 shrext_cmds=.dll
12262 need_version=no
12263 need_lib_prefix=no
12264
12265 case $GCC,$cc_basename in
12266 yes,*)
12267 # gcc
12268 library_names_spec='$libname.dll.a'
12269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12270 postinstall_cmds='base_file=`basename \$file`~
12271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12272 dldir=$destdir/`dirname \$dlpath`~
12273 test -d \$dldir || mkdir -p \$dldir~
12274 $install_prog $dir/$dlname \$dldir/$dlname~
12275 chmod a+x \$dldir/$dlname~
12276 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12277 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12278 fi'
12279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12280 dlpath=$dir/\$dldll~
12281 $RM \$dlpath'
12282 shlibpath_overrides_runpath=yes
12283
12284 case $host_os in
12285 cygwin*)
12286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12287 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12288
12289 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12290 ;;
12291 mingw* | cegcc*)
12292 # MinGW DLLs use traditional 'lib' prefix
12293 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12294 ;;
12295 pw32*)
12296 # pw32 DLLs use 'pw' prefix rather than 'lib'
12297 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12298 ;;
12299 esac
12300 dynamic_linker='Win32 ld.exe'
12301 ;;
12302
12303 *,cl* | *,icl*)
12304 # Native MSVC or ICC
12305 libname_spec='$name'
12306 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12307 library_names_spec='$libname.dll.lib'
12308
12309 case $build_os in
12310 mingw*)
12311 sys_lib_search_path_spec=
12312 lt_save_ifs=$IFS
12313 IFS=';'
12314 for lt_path in $LIB
12315 do
12316 IFS=$lt_save_ifs
12317 # Let DOS variable expansion print the short 8.3 style file name.
12318 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12319 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12320 done
12321 IFS=$lt_save_ifs
12322 # Convert to MSYS style.
12323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12324 ;;
12325 cygwin*)
12326 # Convert to unix form, then to dos form, then back to unix form
12327 # but this time dos style (no spaces!) so that the unix form looks
12328 # like /cygdrive/c/PROGRA~1:/cygdr...
12329 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12330 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12331 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12332 ;;
12333 *)
12334 sys_lib_search_path_spec=$LIB
12335 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12336 # It is most probably a Windows format PATH.
12337 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12338 else
12339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12340 fi
12341 # FIXME: find the short name or the path components, as spaces are
12342 # common. (e.g. "Program Files" -> "PROGRA~1")
12343 ;;
12344 esac
12345
12346 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12347 postinstall_cmds='base_file=`basename \$file`~
12348 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12349 dldir=$destdir/`dirname \$dlpath`~
12350 test -d \$dldir || mkdir -p \$dldir~
12351 $install_prog $dir/$dlname \$dldir/$dlname'
12352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12353 dlpath=$dir/\$dldll~
12354 $RM \$dlpath'
12355 shlibpath_overrides_runpath=yes
12356 dynamic_linker='Win32 link.exe'
12357 ;;
12358
12359 *)
12360 # Assume MSVC and ICC wrapper
12361 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12362 dynamic_linker='Win32 ld.exe'
12363 ;;
12364 esac
12365 # FIXME: first we should search . and the directory the executable is in
12366 shlibpath_var=PATH
12367 ;;
12368
12369 darwin* | rhapsody*)
12370 dynamic_linker="$host_os dyld"
12371 version_type=darwin
12372 need_lib_prefix=no
12373 need_version=no
12374 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12375 soname_spec='$libname$release$major$shared_ext'
12376 shlibpath_overrides_runpath=yes
12377 shlibpath_var=DYLD_LIBRARY_PATH
12378 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12379
12380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12381 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12382 ;;
12383
12384 dgux*)
12385 version_type=linux # correct to gnu/linux during the next big refactor
12386 need_lib_prefix=no
12387 need_version=no
12388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389 soname_spec='$libname$release$shared_ext$major'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 ;;
12392
12393 freebsd* | dragonfly* | midnightbsd*)
12394 # DragonFly does not have aout. When/if they implement a new
12395 # versioning mechanism, adjust this.
12396 if test -x /usr/bin/objformat; then
12397 objformat=`/usr/bin/objformat`
12398 else
12399 case $host_os in
12400 freebsd[23].*) objformat=aout ;;
12401 *) objformat=elf ;;
12402 esac
12403 fi
12404 version_type=freebsd-$objformat
12405 case $version_type in
12406 freebsd-elf*)
12407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12408 soname_spec='$libname$release$shared_ext$major'
12409 need_version=no
12410 need_lib_prefix=no
12411 ;;
12412 freebsd-*)
12413 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12414 need_version=yes
12415 ;;
12416 esac
12417 shlibpath_var=LD_LIBRARY_PATH
12418 case $host_os in
12419 freebsd2.*)
12420 shlibpath_overrides_runpath=yes
12421 ;;
12422 freebsd3.[01]* | freebsdelf3.[01]*)
12423 shlibpath_overrides_runpath=yes
12424 hardcode_into_libs=yes
12425 ;;
12426 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12427 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12428 shlibpath_overrides_runpath=no
12429 hardcode_into_libs=yes
12430 ;;
12431 *) # from 4.6 on, and DragonFly
12432 shlibpath_overrides_runpath=yes
12433 hardcode_into_libs=yes
12434 ;;
12435 esac
12436 ;;
12437
12438 haiku*)
12439 version_type=linux # correct to gnu/linux during the next big refactor
12440 need_lib_prefix=no
12441 need_version=no
12442 dynamic_linker="$host_os runtime_loader"
12443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12444 soname_spec='$libname$release$shared_ext$major'
12445 shlibpath_var=LIBRARY_PATH
12446 shlibpath_overrides_runpath=no
12447 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12448 hardcode_into_libs=yes
12449 ;;
12450
12451 hpux9* | hpux10* | hpux11*)
12452 # Give a soname corresponding to the major version so that dld.sl refuses to
12453 # link against other versions.
12454 version_type=sunos
12455 need_lib_prefix=no
12456 need_version=no
12457 case $host_cpu in
12458 ia64*)
12459 shrext_cmds='.so'
12460 hardcode_into_libs=yes
12461 dynamic_linker="$host_os dld.so"
12462 shlibpath_var=LD_LIBRARY_PATH
12463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12465 soname_spec='$libname$release$shared_ext$major'
12466 if test 32 = "$HPUX_IA64_MODE"; then
12467 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12468 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12469 else
12470 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12471 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12472 fi
12473 ;;
12474 hppa*64*)
12475 shrext_cmds='.sl'
12476 hardcode_into_libs=yes
12477 dynamic_linker="$host_os dld.sl"
12478 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12481 soname_spec='$libname$release$shared_ext$major'
12482 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12484 ;;
12485 *)
12486 shrext_cmds='.sl'
12487 dynamic_linker="$host_os dld.sl"
12488 shlibpath_var=SHLIB_PATH
12489 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12491 soname_spec='$libname$release$shared_ext$major'
12492 ;;
12493 esac
12494 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12495 postinstall_cmds='chmod 555 $lib'
12496 # or fails outright, so override atomically:
12497 install_override_mode=555
12498 ;;
12499
12500 interix[3-9]*)
12501 version_type=linux # correct to gnu/linux during the next big refactor
12502 need_lib_prefix=no
12503 need_version=no
12504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12505 soname_spec='$libname$release$shared_ext$major'
12506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12507 shlibpath_var=LD_LIBRARY_PATH
12508 shlibpath_overrides_runpath=no
12509 hardcode_into_libs=yes
12510 ;;
12511
12512 irix5* | irix6* | nonstopux*)
12513 case $host_os in
12514 nonstopux*) version_type=nonstopux ;;
12515 *)
12516 if test yes = "$lt_cv_prog_gnu_ld"; then
12517 version_type=linux # correct to gnu/linux during the next big refactor
12518 else
12519 version_type=irix
12520 fi ;;
12521 esac
12522 need_lib_prefix=no
12523 need_version=no
12524 soname_spec='$libname$release$shared_ext$major'
12525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12526 case $host_os in
12527 irix5* | nonstopux*)
12528 libsuff= shlibsuff=
12529 ;;
12530 *)
12531 case $LD in # libtool.m4 will add one of these switches to LD
12532 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12533 libsuff= shlibsuff= libmagic=32-bit;;
12534 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12535 libsuff=32 shlibsuff=N32 libmagic=N32;;
12536 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12537 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12538 *) libsuff= shlibsuff= libmagic=never-match;;
12539 esac
12540 ;;
12541 esac
12542 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12543 shlibpath_overrides_runpath=no
12544 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12545 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12546 hardcode_into_libs=yes
12547 ;;
12548
12549 # No shared lib support for Linux oldld, aout, or coff.
12550 linux*oldld* | linux*aout* | linux*coff*)
12551 dynamic_linker=no
12552 ;;
12553
12554 linux*android*)
12555 version_type=none # Android doesn't support versioned libraries.
12556 need_lib_prefix=no
12557 need_version=no
12558 library_names_spec='$libname$release$shared_ext'
12559 soname_spec='$libname$release$shared_ext'
12560 finish_cmds=
12561 shlibpath_var=LD_LIBRARY_PATH
12562 shlibpath_overrides_runpath=yes
12563
12564 # This implies no fast_install, which is unacceptable.
12565 # Some rework will be needed to allow for fast_install
12566 # before this can be enabled.
12567 hardcode_into_libs=yes
12568
12569 dynamic_linker='Android linker'
12570 # Don't embed -rpath directories since the linker doesn't support them.
12571 hardcode_libdir_flag_spec='-L$libdir'
12572 ;;
12573
12574 # This must be glibc/ELF.
12575 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12576 version_type=linux # correct to gnu/linux during the next big refactor
12577 need_lib_prefix=no
12578 need_version=no
12579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12580 soname_spec='$libname$release$shared_ext$major'
12581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12582 shlibpath_var=LD_LIBRARY_PATH
12583 shlibpath_overrides_runpath=no
12584
12585 # Some binutils ld are patched to set DT_RUNPATH
12586 if test ${lt_cv_shlibpath_overrides_runpath+y}
12587 then :
12588 printf %s "(cached) " >&6
12589 else $as_nop
12590 lt_cv_shlibpath_overrides_runpath=no
12591 save_LDFLAGS=$LDFLAGS
12592 save_libdir=$libdir
12593 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12594 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597
12598 int
12599 main (void)
12600 {
12601
12602 ;
12603 return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"
12607 then :
12608 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12609 then :
12610 lt_cv_shlibpath_overrides_runpath=yes
12611 fi
12612 fi
12613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12614 conftest$ac_exeext conftest.$ac_ext
12615 LDFLAGS=$save_LDFLAGS
12616 libdir=$save_libdir
12617
12618 fi
12619
12620 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12621
12622 # This implies no fast_install, which is unacceptable.
12623 # Some rework will be needed to allow for fast_install
12624 # before this can be enabled.
12625 hardcode_into_libs=yes
12626
12627 # Add ABI-specific directories to the system library path.
12628 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12629
12630 # Ideally, we could use ldconfig to report *all* directores which are
12631 # searched for libraries, however this is still not possible. Aside from not
12632 # being certain /sbin/ldconfig is available, command
12633 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12634 # even though it is searched at run-time. Try to do the best guess by
12635 # appending ld.so.conf contents (and includes) to the search path.
12636 if test -f /etc/ld.so.conf; then
12637 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' ' '`
12638 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12639 fi
12640
12641 # We used to test for /lib/ld.so.1 and disable shared libraries on
12642 # powerpc, because MkLinux only supported shared libraries with the
12643 # GNU dynamic linker. Since this was broken with cross compilers,
12644 # most powerpc-linux boxes support dynamic linking these days and
12645 # people can always --disable-shared, the test was removed, and we
12646 # assume the GNU/Linux dynamic linker is in use.
12647 dynamic_linker='GNU/Linux ld.so'
12648 ;;
12649
12650 netbsd*)
12651 version_type=sunos
12652 need_lib_prefix=no
12653 need_version=no
12654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12655 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12657 dynamic_linker='NetBSD (a.out) ld.so'
12658 else
12659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12660 soname_spec='$libname$release$shared_ext$major'
12661 dynamic_linker='NetBSD ld.elf_so'
12662 fi
12663 shlibpath_var=LD_LIBRARY_PATH
12664 shlibpath_overrides_runpath=yes
12665 hardcode_into_libs=yes
12666 ;;
12667
12668 newsos6)
12669 version_type=linux # correct to gnu/linux during the next big refactor
12670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12671 shlibpath_var=LD_LIBRARY_PATH
12672 shlibpath_overrides_runpath=yes
12673 ;;
12674
12675 *nto* | *qnx*)
12676 version_type=qnx
12677 need_lib_prefix=no
12678 need_version=no
12679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12680 soname_spec='$libname$release$shared_ext$major'
12681 shlibpath_var=LD_LIBRARY_PATH
12682 shlibpath_overrides_runpath=no
12683 hardcode_into_libs=yes
12684 dynamic_linker='ldqnx.so'
12685 ;;
12686
12687 openbsd* | bitrig*)
12688 version_type=sunos
12689 sys_lib_dlsearch_path_spec=/usr/lib
12690 need_lib_prefix=no
12691 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12692 need_version=no
12693 else
12694 need_version=yes
12695 fi
12696 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12698 shlibpath_var=LD_LIBRARY_PATH
12699 shlibpath_overrides_runpath=yes
12700 ;;
12701
12702 os2*)
12703 libname_spec='$name'
12704 version_type=windows
12705 shrext_cmds=.dll
12706 need_version=no
12707 need_lib_prefix=no
12708 # OS/2 can only load a DLL with a base name of 8 characters or less.
12709 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12710 v=$($ECHO $release$versuffix | tr -d .-);
12711 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12712 $ECHO $n$v`$shared_ext'
12713 library_names_spec='${libname}_dll.$libext'
12714 dynamic_linker='OS/2 ld.exe'
12715 shlibpath_var=BEGINLIBPATH
12716 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12718 postinstall_cmds='base_file=`basename \$file`~
12719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12720 dldir=$destdir/`dirname \$dlpath`~
12721 test -d \$dldir || mkdir -p \$dldir~
12722 $install_prog $dir/$dlname \$dldir/$dlname~
12723 chmod a+x \$dldir/$dlname~
12724 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12725 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12726 fi'
12727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12728 dlpath=$dir/\$dldll~
12729 $RM \$dlpath'
12730 ;;
12731
12732 osf3* | osf4* | osf5*)
12733 version_type=osf
12734 need_lib_prefix=no
12735 need_version=no
12736 soname_spec='$libname$release$shared_ext$major'
12737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12738 shlibpath_var=LD_LIBRARY_PATH
12739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12741 ;;
12742
12743 rdos*)
12744 dynamic_linker=no
12745 ;;
12746
12747 solaris*)
12748 version_type=linux # correct to gnu/linux during the next big refactor
12749 need_lib_prefix=no
12750 need_version=no
12751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12752 soname_spec='$libname$release$shared_ext$major'
12753 shlibpath_var=LD_LIBRARY_PATH
12754 shlibpath_overrides_runpath=yes
12755 hardcode_into_libs=yes
12756 # ldd complains unless libraries are executable
12757 postinstall_cmds='chmod +x $lib'
12758 ;;
12759
12760 sunos4*)
12761 version_type=sunos
12762 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12764 shlibpath_var=LD_LIBRARY_PATH
12765 shlibpath_overrides_runpath=yes
12766 if test yes = "$with_gnu_ld"; then
12767 need_lib_prefix=no
12768 fi
12769 need_version=yes
12770 ;;
12771
12772 sysv4 | sysv4.3*)
12773 version_type=linux # correct to gnu/linux during the next big refactor
12774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12775 soname_spec='$libname$release$shared_ext$major'
12776 shlibpath_var=LD_LIBRARY_PATH
12777 case $host_vendor in
12778 sni)
12779 shlibpath_overrides_runpath=no
12780 need_lib_prefix=no
12781 runpath_var=LD_RUN_PATH
12782 ;;
12783 siemens)
12784 need_lib_prefix=no
12785 ;;
12786 motorola)
12787 need_lib_prefix=no
12788 need_version=no
12789 shlibpath_overrides_runpath=no
12790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12791 ;;
12792 esac
12793 ;;
12794
12795 sysv4*MP*)
12796 if test -d /usr/nec; then
12797 version_type=linux # correct to gnu/linux during the next big refactor
12798 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12799 soname_spec='$libname$shared_ext.$major'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 fi
12802 ;;
12803
12804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12805 version_type=sco
12806 need_lib_prefix=no
12807 need_version=no
12808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12809 soname_spec='$libname$release$shared_ext$major'
12810 shlibpath_var=LD_LIBRARY_PATH
12811 shlibpath_overrides_runpath=yes
12812 hardcode_into_libs=yes
12813 if test yes = "$with_gnu_ld"; then
12814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12815 else
12816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12817 case $host_os in
12818 sco3.2v5*)
12819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12820 ;;
12821 esac
12822 fi
12823 sys_lib_dlsearch_path_spec='/usr/lib'
12824 ;;
12825
12826 tpf*)
12827 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12828 version_type=linux # correct to gnu/linux during the next big refactor
12829 need_lib_prefix=no
12830 need_version=no
12831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12832 shlibpath_var=LD_LIBRARY_PATH
12833 shlibpath_overrides_runpath=no
12834 hardcode_into_libs=yes
12835 ;;
12836
12837 uts4*)
12838 version_type=linux # correct to gnu/linux during the next big refactor
12839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12840 soname_spec='$libname$release$shared_ext$major'
12841 shlibpath_var=LD_LIBRARY_PATH
12842 ;;
12843
12844 *)
12845 dynamic_linker=no
12846 ;;
12847 esac
12848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12849 printf "%s\n" "$dynamic_linker" >&6; }
12850 test no = "$dynamic_linker" && can_build_shared=no
12851
12852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12853 if test yes = "$GCC"; then
12854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12855 fi
12856
12857 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12858 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12859 fi
12860
12861 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12862 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12863 fi
12864
12865 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12866 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12867
12868 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12869 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12870
12871 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12872 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12971 printf %s "checking how to hardcode library paths into programs... " >&6; }
12972 hardcode_action=
12973 if test -n "$hardcode_libdir_flag_spec" ||
12974 test -n "$runpath_var" ||
12975 test yes = "$hardcode_automatic"; then
12976
12977 # We can hardcode non-existent directories.
12978 if test no != "$hardcode_direct" &&
12979 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12980 # have to relink, otherwise we might link with an installed library
12981 # when we should be linking with a yet-to-be-installed one
12982 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12983 test no != "$hardcode_minus_L"; then
12984 # Linking always hardcodes the temporary library directory.
12985 hardcode_action=relink
12986 else
12987 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12988 hardcode_action=immediate
12989 fi
12990 else
12991 # We cannot hardcode anything, or else we can only hardcode existing
12992 # directories.
12993 hardcode_action=unsupported
12994 fi
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12996 printf "%s\n" "$hardcode_action" >&6; }
12997
12998 if test relink = "$hardcode_action" ||
12999 test yes = "$inherit_rpath"; then
13000 # Fast installation is not supported
13001 enable_fast_install=no
13002 elif test yes = "$shlibpath_overrides_runpath" ||
13003 test no = "$enable_shared"; then
13004 # Fast installation is not necessary
13005 enable_fast_install=needless
13006 fi
13007
13008
13009
13010
13011
13012
13013 if test yes != "$enable_dlopen"; then
13014 enable_dlopen=unknown
13015 enable_dlopen_self=unknown
13016 enable_dlopen_self_static=unknown
13017 else
13018 lt_cv_dlopen=no
13019 lt_cv_dlopen_libs=
13020
13021 case $host_os in
13022 beos*)
13023 lt_cv_dlopen=load_add_on
13024 lt_cv_dlopen_libs=
13025 lt_cv_dlopen_self=yes
13026 ;;
13027
13028 mingw* | pw32* | cegcc*)
13029 lt_cv_dlopen=LoadLibrary
13030 lt_cv_dlopen_libs=
13031 ;;
13032
13033 cygwin*)
13034 lt_cv_dlopen=dlopen
13035 lt_cv_dlopen_libs=
13036 ;;
13037
13038 darwin*)
13039 # if libdl is installed we need to link against it
13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13041 printf %s "checking for dlopen in -ldl... " >&6; }
13042 if test ${ac_cv_lib_dl_dlopen+y}
13043 then :
13044 printf %s "(cached) " >&6
13045 else $as_nop
13046 ac_check_lib_save_LIBS=$LIBS
13047 LIBS="-ldl $LIBS"
13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13050
13051 /* Override any GCC internal prototype to avoid an error.
13052 Use char because int might match the return type of a GCC
13053 builtin and then its argument prototype would still apply. */
13054 char dlopen ();
13055 int
13056 main (void)
13057 {
13058 return dlopen ();
13059 ;
13060 return 0;
13061 }
13062 _ACEOF
13063 if ac_fn_c_try_link "$LINENO"
13064 then :
13065 ac_cv_lib_dl_dlopen=yes
13066 else $as_nop
13067 ac_cv_lib_dl_dlopen=no
13068 fi
13069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13070 conftest$ac_exeext conftest.$ac_ext
13071 LIBS=$ac_check_lib_save_LIBS
13072 fi
13073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13074 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13075 if test "x$ac_cv_lib_dl_dlopen" = xyes
13076 then :
13077 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13078 else $as_nop
13079
13080 lt_cv_dlopen=dyld
13081 lt_cv_dlopen_libs=
13082 lt_cv_dlopen_self=yes
13083
13084 fi
13085
13086 ;;
13087
13088 tpf*)
13089 # Don't try to run any link tests for TPF. We know it's impossible
13090 # because TPF is a cross-compiler, and we know how we open DSOs.
13091 lt_cv_dlopen=dlopen
13092 lt_cv_dlopen_libs=
13093 lt_cv_dlopen_self=no
13094 ;;
13095
13096 *)
13097 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13098 if test "x$ac_cv_func_shl_load" = xyes
13099 then :
13100 lt_cv_dlopen=shl_load
13101 else $as_nop
13102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13103 printf %s "checking for shl_load in -ldld... " >&6; }
13104 if test ${ac_cv_lib_dld_shl_load+y}
13105 then :
13106 printf %s "(cached) " >&6
13107 else $as_nop
13108 ac_check_lib_save_LIBS=$LIBS
13109 LIBS="-ldld $LIBS"
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112
13113 /* Override any GCC internal prototype to avoid an error.
13114 Use char because int might match the return type of a GCC
13115 builtin and then its argument prototype would still apply. */
13116 char shl_load ();
13117 int
13118 main (void)
13119 {
13120 return shl_load ();
13121 ;
13122 return 0;
13123 }
13124 _ACEOF
13125 if ac_fn_c_try_link "$LINENO"
13126 then :
13127 ac_cv_lib_dld_shl_load=yes
13128 else $as_nop
13129 ac_cv_lib_dld_shl_load=no
13130 fi
13131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13132 conftest$ac_exeext conftest.$ac_ext
13133 LIBS=$ac_check_lib_save_LIBS
13134 fi
13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13136 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13137 if test "x$ac_cv_lib_dld_shl_load" = xyes
13138 then :
13139 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13140 else $as_nop
13141 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13142 if test "x$ac_cv_func_dlopen" = xyes
13143 then :
13144 lt_cv_dlopen=dlopen
13145 else $as_nop
13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13147 printf %s "checking for dlopen in -ldl... " >&6; }
13148 if test ${ac_cv_lib_dl_dlopen+y}
13149 then :
13150 printf %s "(cached) " >&6
13151 else $as_nop
13152 ac_check_lib_save_LIBS=$LIBS
13153 LIBS="-ldl $LIBS"
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156
13157 /* Override any GCC internal prototype to avoid an error.
13158 Use char because int might match the return type of a GCC
13159 builtin and then its argument prototype would still apply. */
13160 char dlopen ();
13161 int
13162 main (void)
13163 {
13164 return dlopen ();
13165 ;
13166 return 0;
13167 }
13168 _ACEOF
13169 if ac_fn_c_try_link "$LINENO"
13170 then :
13171 ac_cv_lib_dl_dlopen=yes
13172 else $as_nop
13173 ac_cv_lib_dl_dlopen=no
13174 fi
13175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13176 conftest$ac_exeext conftest.$ac_ext
13177 LIBS=$ac_check_lib_save_LIBS
13178 fi
13179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13180 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13181 if test "x$ac_cv_lib_dl_dlopen" = xyes
13182 then :
13183 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13184 else $as_nop
13185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13186 printf %s "checking for dlopen in -lsvld... " >&6; }
13187 if test ${ac_cv_lib_svld_dlopen+y}
13188 then :
13189 printf %s "(cached) " >&6
13190 else $as_nop
13191 ac_check_lib_save_LIBS=$LIBS
13192 LIBS="-lsvld $LIBS"
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13195
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13199 char dlopen ();
13200 int
13201 main (void)
13202 {
13203 return dlopen ();
13204 ;
13205 return 0;
13206 }
13207 _ACEOF
13208 if ac_fn_c_try_link "$LINENO"
13209 then :
13210 ac_cv_lib_svld_dlopen=yes
13211 else $as_nop
13212 ac_cv_lib_svld_dlopen=no
13213 fi
13214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13215 conftest$ac_exeext conftest.$ac_ext
13216 LIBS=$ac_check_lib_save_LIBS
13217 fi
13218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13219 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13220 if test "x$ac_cv_lib_svld_dlopen" = xyes
13221 then :
13222 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13223 else $as_nop
13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13225 printf %s "checking for dld_link in -ldld... " >&6; }
13226 if test ${ac_cv_lib_dld_dld_link+y}
13227 then :
13228 printf %s "(cached) " >&6
13229 else $as_nop
13230 ac_check_lib_save_LIBS=$LIBS
13231 LIBS="-ldld $LIBS"
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235 /* Override any GCC internal prototype to avoid an error.
13236 Use char because int might match the return type of a GCC
13237 builtin and then its argument prototype would still apply. */
13238 char dld_link ();
13239 int
13240 main (void)
13241 {
13242 return dld_link ();
13243 ;
13244 return 0;
13245 }
13246 _ACEOF
13247 if ac_fn_c_try_link "$LINENO"
13248 then :
13249 ac_cv_lib_dld_dld_link=yes
13250 else $as_nop
13251 ac_cv_lib_dld_dld_link=no
13252 fi
13253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13254 conftest$ac_exeext conftest.$ac_ext
13255 LIBS=$ac_check_lib_save_LIBS
13256 fi
13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13258 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13259 if test "x$ac_cv_lib_dld_dld_link" = xyes
13260 then :
13261 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13262 fi
13263
13264
13265 fi
13266
13267
13268 fi
13269
13270
13271 fi
13272
13273
13274 fi
13275
13276
13277 fi
13278
13279 ;;
13280 esac
13281
13282 if test no = "$lt_cv_dlopen"; then
13283 enable_dlopen=no
13284 else
13285 enable_dlopen=yes
13286 fi
13287
13288 case $lt_cv_dlopen in
13289 dlopen)
13290 save_CPPFLAGS=$CPPFLAGS
13291 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13292
13293 save_LDFLAGS=$LDFLAGS
13294 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13295
13296 save_LIBS=$LIBS
13297 LIBS="$lt_cv_dlopen_libs $LIBS"
13298
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13300 printf %s "checking whether a program can dlopen itself... " >&6; }
13301 if test ${lt_cv_dlopen_self+y}
13302 then :
13303 printf %s "(cached) " >&6
13304 else $as_nop
13305 if test yes = "$cross_compiling"; then :
13306 lt_cv_dlopen_self=cross
13307 else
13308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13309 lt_status=$lt_dlunknown
13310 cat > conftest.$ac_ext <<_LT_EOF
13311 #line $LINENO "configure"
13312 #include "confdefs.h"
13313
13314 #if HAVE_DLFCN_H
13315 #include <dlfcn.h>
13316 #endif
13317
13318 #include <stdio.h>
13319
13320 #ifdef RTLD_GLOBAL
13321 # define LT_DLGLOBAL RTLD_GLOBAL
13322 #else
13323 # ifdef DL_GLOBAL
13324 # define LT_DLGLOBAL DL_GLOBAL
13325 # else
13326 # define LT_DLGLOBAL 0
13327 # endif
13328 #endif
13329
13330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13331 find out it does not work in some platform. */
13332 #ifndef LT_DLLAZY_OR_NOW
13333 # ifdef RTLD_LAZY
13334 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13335 # else
13336 # ifdef DL_LAZY
13337 # define LT_DLLAZY_OR_NOW DL_LAZY
13338 # else
13339 # ifdef RTLD_NOW
13340 # define LT_DLLAZY_OR_NOW RTLD_NOW
13341 # else
13342 # ifdef DL_NOW
13343 # define LT_DLLAZY_OR_NOW DL_NOW
13344 # else
13345 # define LT_DLLAZY_OR_NOW 0
13346 # endif
13347 # endif
13348 # endif
13349 # endif
13350 #endif
13351
13352 /* When -fvisibility=hidden is used, assume the code has been annotated
13353 correspondingly for the symbols needed. */
13354 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13355 int fnord () __attribute__((visibility("default")));
13356 #endif
13357
13358 int fnord () { return 42; }
13359 int main ()
13360 {
13361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13362 int status = $lt_dlunknown;
13363
13364 if (self)
13365 {
13366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13367 else
13368 {
13369 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13370 else puts (dlerror ());
13371 }
13372 /* dlclose (self); */
13373 }
13374 else
13375 puts (dlerror ());
13376
13377 return status;
13378 }
13379 _LT_EOF
13380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13381 (eval $ac_link) 2>&5
13382 ac_status=$?
13383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13384 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13385 (./conftest; exit; ) >&5 2>/dev/null
13386 lt_status=$?
13387 case x$lt_status in
13388 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13389 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13390 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13391 esac
13392 else :
13393 # compilation failed
13394 lt_cv_dlopen_self=no
13395 fi
13396 fi
13397 rm -fr conftest*
13398
13399
13400 fi
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13402 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13403
13404 if test yes = "$lt_cv_dlopen_self"; then
13405 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13407 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13408 if test ${lt_cv_dlopen_self_static+y}
13409 then :
13410 printf %s "(cached) " >&6
13411 else $as_nop
13412 if test yes = "$cross_compiling"; then :
13413 lt_cv_dlopen_self_static=cross
13414 else
13415 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13416 lt_status=$lt_dlunknown
13417 cat > conftest.$ac_ext <<_LT_EOF
13418 #line $LINENO "configure"
13419 #include "confdefs.h"
13420
13421 #if HAVE_DLFCN_H
13422 #include <dlfcn.h>
13423 #endif
13424
13425 #include <stdio.h>
13426
13427 #ifdef RTLD_GLOBAL
13428 # define LT_DLGLOBAL RTLD_GLOBAL
13429 #else
13430 # ifdef DL_GLOBAL
13431 # define LT_DLGLOBAL DL_GLOBAL
13432 # else
13433 # define LT_DLGLOBAL 0
13434 # endif
13435 #endif
13436
13437 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13438 find out it does not work in some platform. */
13439 #ifndef LT_DLLAZY_OR_NOW
13440 # ifdef RTLD_LAZY
13441 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13442 # else
13443 # ifdef DL_LAZY
13444 # define LT_DLLAZY_OR_NOW DL_LAZY
13445 # else
13446 # ifdef RTLD_NOW
13447 # define LT_DLLAZY_OR_NOW RTLD_NOW
13448 # else
13449 # ifdef DL_NOW
13450 # define LT_DLLAZY_OR_NOW DL_NOW
13451 # else
13452 # define LT_DLLAZY_OR_NOW 0
13453 # endif
13454 # endif
13455 # endif
13456 # endif
13457 #endif
13458
13459 /* When -fvisibility=hidden is used, assume the code has been annotated
13460 correspondingly for the symbols needed. */
13461 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13462 int fnord () __attribute__((visibility("default")));
13463 #endif
13464
13465 int fnord () { return 42; }
13466 int main ()
13467 {
13468 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13469 int status = $lt_dlunknown;
13470
13471 if (self)
13472 {
13473 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13474 else
13475 {
13476 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13477 else puts (dlerror ());
13478 }
13479 /* dlclose (self); */
13480 }
13481 else
13482 puts (dlerror ());
13483
13484 return status;
13485 }
13486 _LT_EOF
13487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13488 (eval $ac_link) 2>&5
13489 ac_status=$?
13490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13491 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13492 (./conftest; exit; ) >&5 2>/dev/null
13493 lt_status=$?
13494 case x$lt_status in
13495 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13496 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13497 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13498 esac
13499 else :
13500 # compilation failed
13501 lt_cv_dlopen_self_static=no
13502 fi
13503 fi
13504 rm -fr conftest*
13505
13506
13507 fi
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13509 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13510 fi
13511
13512 CPPFLAGS=$save_CPPFLAGS
13513 LDFLAGS=$save_LDFLAGS
13514 LIBS=$save_LIBS
13515 ;;
13516 esac
13517
13518 case $lt_cv_dlopen_self in
13519 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13520 *) enable_dlopen_self=unknown ;;
13521 esac
13522
13523 case $lt_cv_dlopen_self_static in
13524 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13525 *) enable_dlopen_self_static=unknown ;;
13526 esac
13527 fi
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545 striplib=
13546 old_striplib=
13547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13548 printf %s "checking whether stripping libraries is possible... " >&6; }
13549 if test -z "$STRIP"; then
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 printf "%s\n" "no" >&6; }
13552 else
13553 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13554 old_striplib="$STRIP --strip-debug"
13555 striplib="$STRIP --strip-unneeded"
13556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557 printf "%s\n" "yes" >&6; }
13558 else
13559 case $host_os in
13560 darwin*)
13561 # FIXME - insert some real tests, host_os isn't really good enough
13562 striplib="$STRIP -x"
13563 old_striplib="$STRIP -S"
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13565 printf "%s\n" "yes" >&6; }
13566 ;;
13567 freebsd*)
13568 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13569 old_striplib="$STRIP --strip-debug"
13570 striplib="$STRIP --strip-unneeded"
13571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13572 printf "%s\n" "yes" >&6; }
13573 else
13574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 printf "%s\n" "no" >&6; }
13576 fi
13577 ;;
13578 *)
13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580 printf "%s\n" "no" >&6; }
13581 ;;
13582 esac
13583 fi
13584 fi
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597 # Report what library types will actually be built
13598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13599 printf %s "checking if libtool supports shared libraries... " >&6; }
13600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13601 printf "%s\n" "$can_build_shared" >&6; }
13602
13603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13604 printf %s "checking whether to build shared libraries... " >&6; }
13605 test no = "$can_build_shared" && enable_shared=no
13606
13607 # On AIX, shared libraries and static libraries use the same namespace, and
13608 # are all built from PIC.
13609 case $host_os in
13610 aix3*)
13611 test yes = "$enable_shared" && enable_static=no
13612 if test -n "$RANLIB"; then
13613 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13614 postinstall_cmds='$RANLIB $lib'
13615 fi
13616 ;;
13617
13618 aix[4-9]*)
13619 if test ia64 != "$host_cpu"; then
13620 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13621 yes,aix,yes) ;; # shared object as lib.so file only
13622 yes,svr4,*) ;; # shared object as lib.so archive member only
13623 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13624 esac
13625 fi
13626 ;;
13627 esac
13628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13629 printf "%s\n" "$enable_shared" >&6; }
13630
13631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13632 printf %s "checking whether to build static libraries... " >&6; }
13633 # Make sure either enable_shared or enable_static is yes.
13634 test yes = "$enable_shared" || enable_static=yes
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13636 printf "%s\n" "$enable_static" >&6; }
13637
13638
13639
13640
13641 fi
13642 ac_ext=c
13643 ac_cpp='$CPP $CPPFLAGS'
13644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13647
13648 CC=$lt_save_CC
13649
13650 if test -n "$CXX" && ( test no != "$CXX" &&
13651 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13652 (test g++ != "$CXX"))); then
13653 ac_ext=cpp
13654 ac_cpp='$CXXCPP $CPPFLAGS'
13655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13659 printf %s "checking how to run the C++ preprocessor... " >&6; }
13660 if test -z "$CXXCPP"; then
13661 if test ${ac_cv_prog_CXXCPP+y}
13662 then :
13663 printf %s "(cached) " >&6
13664 else $as_nop
13665 # Double quotes because $CXX needs to be expanded
13666 for CXXCPP in "$CXX -E" cpp /lib/cpp
13667 do
13668 ac_preproc_ok=false
13669 for ac_cxx_preproc_warn_flag in '' yes
13670 do
13671 # Use a header file that comes with gcc, so configuring glibc
13672 # with a fresh cross-compiler works.
13673 # On the NeXT, cc -E runs the code through the compiler's parser,
13674 # not just through cpp. "Syntax error" is here to catch this case.
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 #include <limits.h>
13678 Syntax error
13679 _ACEOF
13680 if ac_fn_cxx_try_cpp "$LINENO"
13681 then :
13682
13683 else $as_nop
13684 # Broken: fails on valid input.
13685 continue
13686 fi
13687 rm -f conftest.err conftest.i conftest.$ac_ext
13688
13689 # OK, works on sane cases. Now check whether nonexistent headers
13690 # can be detected and how.
13691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692 /* end confdefs.h. */
13693 #include <ac_nonexistent.h>
13694 _ACEOF
13695 if ac_fn_cxx_try_cpp "$LINENO"
13696 then :
13697 # Broken: success on invalid input.
13698 continue
13699 else $as_nop
13700 # Passes both tests.
13701 ac_preproc_ok=:
13702 break
13703 fi
13704 rm -f conftest.err conftest.i conftest.$ac_ext
13705
13706 done
13707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13708 rm -f conftest.i conftest.err conftest.$ac_ext
13709 if $ac_preproc_ok
13710 then :
13711 break
13712 fi
13713
13714 done
13715 ac_cv_prog_CXXCPP=$CXXCPP
13716
13717 fi
13718 CXXCPP=$ac_cv_prog_CXXCPP
13719 else
13720 ac_cv_prog_CXXCPP=$CXXCPP
13721 fi
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13723 printf "%s\n" "$CXXCPP" >&6; }
13724 ac_preproc_ok=false
13725 for ac_cxx_preproc_warn_flag in '' yes
13726 do
13727 # Use a header file that comes with gcc, so configuring glibc
13728 # with a fresh cross-compiler works.
13729 # On the NeXT, cc -E runs the code through the compiler's parser,
13730 # not just through cpp. "Syntax error" is here to catch this case.
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 #include <limits.h>
13734 Syntax error
13735 _ACEOF
13736 if ac_fn_cxx_try_cpp "$LINENO"
13737 then :
13738
13739 else $as_nop
13740 # Broken: fails on valid input.
13741 continue
13742 fi
13743 rm -f conftest.err conftest.i conftest.$ac_ext
13744
13745 # OK, works on sane cases. Now check whether nonexistent headers
13746 # can be detected and how.
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 #include <ac_nonexistent.h>
13750 _ACEOF
13751 if ac_fn_cxx_try_cpp "$LINENO"
13752 then :
13753 # Broken: success on invalid input.
13754 continue
13755 else $as_nop
13756 # Passes both tests.
13757 ac_preproc_ok=:
13758 break
13759 fi
13760 rm -f conftest.err conftest.i conftest.$ac_ext
13761
13762 done
13763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13764 rm -f conftest.i conftest.err conftest.$ac_ext
13765 if $ac_preproc_ok
13766 then :
13767
13768 else $as_nop
13769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13770 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13771 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13772 See \`config.log' for more details" "$LINENO" 5; }
13773 fi
13774
13775 ac_ext=c
13776 ac_cpp='$CPP $CPPFLAGS'
13777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13780
13781 else
13782 _lt_caught_CXX_error=yes
13783 fi
13784
13785 ac_ext=cpp
13786 ac_cpp='$CXXCPP $CPPFLAGS'
13787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13790
13791 archive_cmds_need_lc_CXX=no
13792 allow_undefined_flag_CXX=
13793 always_export_symbols_CXX=no
13794 archive_expsym_cmds_CXX=
13795 compiler_needs_object_CXX=no
13796 export_dynamic_flag_spec_CXX=
13797 hardcode_direct_CXX=no
13798 hardcode_direct_absolute_CXX=no
13799 hardcode_libdir_flag_spec_CXX=
13800 hardcode_libdir_separator_CXX=
13801 hardcode_minus_L_CXX=no
13802 hardcode_shlibpath_var_CXX=unsupported
13803 hardcode_automatic_CXX=no
13804 inherit_rpath_CXX=no
13805 module_cmds_CXX=
13806 module_expsym_cmds_CXX=
13807 link_all_deplibs_CXX=unknown
13808 old_archive_cmds_CXX=$old_archive_cmds
13809 reload_flag_CXX=$reload_flag
13810 reload_cmds_CXX=$reload_cmds
13811 no_undefined_flag_CXX=
13812 whole_archive_flag_spec_CXX=
13813 enable_shared_with_static_runtimes_CXX=no
13814
13815 # Source file extension for C++ test sources.
13816 ac_ext=cpp
13817
13818 # Object file extension for compiled C++ test sources.
13819 objext=o
13820 objext_CXX=$objext
13821
13822 # No sense in running all these tests if we already determined that
13823 # the CXX compiler isn't working. Some variables (like enable_shared)
13824 # are currently assumed to apply to all compilers on this platform,
13825 # and will be corrupted by setting them based on a non-working compiler.
13826 if test yes != "$_lt_caught_CXX_error"; then
13827 # Code to be used in simple compile tests
13828 lt_simple_compile_test_code="int some_variable = 0;"
13829
13830 # Code to be used in simple link tests
13831 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13832
13833 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13834
13835
13836
13837
13838
13839
13840 # If no C compiler was specified, use CC.
13841 LTCC=${LTCC-"$CC"}
13842
13843 # If no C compiler flags were specified, use CFLAGS.
13844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13845
13846 # Allow CC to be a program name with arguments.
13847 compiler=$CC
13848
13849
13850 # save warnings/boilerplate of simple test code
13851 ac_outfile=conftest.$ac_objext
13852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13854 _lt_compiler_boilerplate=`cat conftest.err`
13855 $RM conftest*
13856
13857 ac_outfile=conftest.$ac_objext
13858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13860 _lt_linker_boilerplate=`cat conftest.err`
13861 $RM -r conftest*
13862
13863
13864 # Allow CC to be a program name with arguments.
13865 lt_save_CC=$CC
13866 lt_save_CFLAGS=$CFLAGS
13867 lt_save_LD=$LD
13868 lt_save_GCC=$GCC
13869 GCC=$GXX
13870 lt_save_with_gnu_ld=$with_gnu_ld
13871 lt_save_path_LD=$lt_cv_path_LD
13872 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13873 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13874 else
13875 $as_unset lt_cv_prog_gnu_ld
13876 fi
13877 if test -n "${lt_cv_path_LDCXX+set}"; then
13878 lt_cv_path_LD=$lt_cv_path_LDCXX
13879 else
13880 $as_unset lt_cv_path_LD
13881 fi
13882 test -z "${LDCXX+set}" || LD=$LDCXX
13883 CC=${CXX-"c++"}
13884 CFLAGS=$CXXFLAGS
13885 compiler=$CC
13886 compiler_CXX=$CC
13887 func_cc_basename $compiler
13888 cc_basename=$func_cc_basename_result
13889
13890
13891 if test -n "$compiler"; then
13892 # We don't want -fno-exception when compiling C++ code, so set the
13893 # no_builtin_flag separately
13894 if test yes = "$GXX"; then
13895 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13896 else
13897 lt_prog_compiler_no_builtin_flag_CXX=
13898 fi
13899
13900 if test yes = "$GXX"; then
13901 # Set up default GNU C++ configuration
13902
13903
13904
13905 # Check whether --with-gnu-ld was given.
13906 if test ${with_gnu_ld+y}
13907 then :
13908 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13909 else $as_nop
13910 with_gnu_ld=no
13911 fi
13912
13913 ac_prog=ld
13914 if test yes = "$GCC"; then
13915 # Check if gcc -print-prog-name=ld gives a path.
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13917 printf %s "checking for ld used by $CC... " >&6; }
13918 case $host in
13919 *-*-mingw*)
13920 # gcc leaves a trailing carriage return, which upsets mingw
13921 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13922 *)
13923 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13924 esac
13925 case $ac_prog in
13926 # Accept absolute paths.
13927 [\\/]* | ?:[\\/]*)
13928 re_direlt='/[^/][^/]*/\.\./'
13929 # Canonicalize the pathname of ld
13930 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13931 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13932 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13933 done
13934 test -z "$LD" && LD=$ac_prog
13935 ;;
13936 "")
13937 # If it fails, then pretend we aren't using GCC.
13938 ac_prog=ld
13939 ;;
13940 *)
13941 # If it is relative, then search for the first ld in PATH.
13942 with_gnu_ld=unknown
13943 ;;
13944 esac
13945 elif test yes = "$with_gnu_ld"; then
13946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13947 printf %s "checking for GNU ld... " >&6; }
13948 else
13949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13950 printf %s "checking for non-GNU ld... " >&6; }
13951 fi
13952 if test ${lt_cv_path_LD+y}
13953 then :
13954 printf %s "(cached) " >&6
13955 else $as_nop
13956 if test -z "$LD"; then
13957 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13958 for ac_dir in $PATH; do
13959 IFS=$lt_save_ifs
13960 test -z "$ac_dir" && ac_dir=.
13961 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13962 lt_cv_path_LD=$ac_dir/$ac_prog
13963 # Check to see if the program is GNU ld. I'd rather use --version,
13964 # but apparently some variants of GNU ld only accept -v.
13965 # Break only if it was the GNU/non-GNU ld that we prefer.
13966 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13967 *GNU* | *'with BFD'*)
13968 test no != "$with_gnu_ld" && break
13969 ;;
13970 *)
13971 test yes != "$with_gnu_ld" && break
13972 ;;
13973 esac
13974 fi
13975 done
13976 IFS=$lt_save_ifs
13977 else
13978 lt_cv_path_LD=$LD # Let the user override the test with a path.
13979 fi
13980 fi
13981
13982 LD=$lt_cv_path_LD
13983 if test -n "$LD"; then
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13985 printf "%s\n" "$LD" >&6; }
13986 else
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13988 printf "%s\n" "no" >&6; }
13989 fi
13990 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13992 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13993 if test ${lt_cv_prog_gnu_ld+y}
13994 then :
13995 printf %s "(cached) " >&6
13996 else $as_nop
13997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13998 case `$LD -v 2>&1 </dev/null` in
13999 *GNU* | *'with BFD'*)
14000 lt_cv_prog_gnu_ld=yes
14001 ;;
14002 *)
14003 lt_cv_prog_gnu_ld=no
14004 ;;
14005 esac
14006 fi
14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14008 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14009 with_gnu_ld=$lt_cv_prog_gnu_ld
14010
14011
14012
14013
14014
14015
14016
14017 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14018 # archiving commands below assume that GNU ld is being used.
14019 if test yes = "$with_gnu_ld"; then
14020 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14021 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'
14022
14023 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14024 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14025
14026 # If archive_cmds runs LD, not CC, wlarc should be empty
14027 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14028 # investigate it a little bit more. (MM)
14029 wlarc='$wl'
14030
14031 # ancient GNU ld didn't support --whole-archive et. al.
14032 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14033 $GREP 'no-whole-archive' > /dev/null; then
14034 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14035 else
14036 whole_archive_flag_spec_CXX=
14037 fi
14038 else
14039 with_gnu_ld=no
14040 wlarc=
14041
14042 # A generic and very simple default shared library creation
14043 # command for GNU C++ for the case where it uses the native
14044 # linker, instead of GNU ld. If possible, this setting should
14045 # overridden to take advantage of the native linker features on
14046 # the platform it is being used on.
14047 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14048 fi
14049
14050 # Commands to make compiler produce verbose output that lists
14051 # what "hidden" libraries, object files and flags are used when
14052 # linking a shared library.
14053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14054
14055 else
14056 GXX=no
14057 with_gnu_ld=no
14058 wlarc=
14059 fi
14060
14061 # PORTME: fill in a description of your system's C++ link characteristics
14062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14063 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14064 ld_shlibs_CXX=yes
14065 case $host_os in
14066 aix3*)
14067 # FIXME: insert proper C++ library support
14068 ld_shlibs_CXX=no
14069 ;;
14070 aix[4-9]*)
14071 if test ia64 = "$host_cpu"; then
14072 # On IA64, the linker does run time linking by default, so we don't
14073 # have to do anything special.
14074 aix_use_runtimelinking=no
14075 exp_sym_flag='-Bexport'
14076 no_entry_flag=
14077 else
14078 aix_use_runtimelinking=no
14079
14080 # Test if we are trying to use run time linking or normal
14081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14082 # have runtime linking enabled, and use it for executables.
14083 # For shared libraries, we enable/disable runtime linking
14084 # depending on the kind of the shared library created -
14085 # when "with_aix_soname,aix_use_runtimelinking" is:
14086 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14087 # "aix,yes" lib.so shared, rtl:yes, for executables
14088 # lib.a static archive
14089 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14090 # lib.a(lib.so.V) shared, rtl:no, for executables
14091 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14092 # lib.a(lib.so.V) shared, rtl:no
14093 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14094 # lib.a static archive
14095 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14096 for ld_flag in $LDFLAGS; do
14097 case $ld_flag in
14098 *-brtl*)
14099 aix_use_runtimelinking=yes
14100 break
14101 ;;
14102 esac
14103 done
14104 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14105 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14106 # so we don't have lib.a shared libs to link our executables.
14107 # We have to force runtime linking in this case.
14108 aix_use_runtimelinking=yes
14109 LDFLAGS="$LDFLAGS -Wl,-brtl"
14110 fi
14111 ;;
14112 esac
14113
14114 exp_sym_flag='-bexport'
14115 no_entry_flag='-bnoentry'
14116 fi
14117
14118 # When large executables or shared objects are built, AIX ld can
14119 # have problems creating the table of contents. If linking a library
14120 # or program results in "error TOC overflow" add -mminimal-toc to
14121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14123
14124 archive_cmds_CXX=''
14125 hardcode_direct_CXX=yes
14126 hardcode_direct_absolute_CXX=yes
14127 hardcode_libdir_separator_CXX=':'
14128 link_all_deplibs_CXX=yes
14129 file_list_spec_CXX='$wl-f,'
14130 case $with_aix_soname,$aix_use_runtimelinking in
14131 aix,*) ;; # no import file
14132 svr4,* | *,yes) # use import file
14133 # The Import File defines what to hardcode.
14134 hardcode_direct_CXX=no
14135 hardcode_direct_absolute_CXX=no
14136 ;;
14137 esac
14138
14139 if test yes = "$GXX"; then
14140 case $host_os in aix4.[012]|aix4.[012].*)
14141 # We only want to do this on AIX 4.2 and lower, the check
14142 # below for broken collect2 doesn't work under 4.3+
14143 collect2name=`$CC -print-prog-name=collect2`
14144 if test -f "$collect2name" &&
14145 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14146 then
14147 # We have reworked collect2
14148 :
14149 else
14150 # We have old collect2
14151 hardcode_direct_CXX=unsupported
14152 # It fails to find uninstalled libraries when the uninstalled
14153 # path is not listed in the libpath. Setting hardcode_minus_L
14154 # to unsupported forces relinking
14155 hardcode_minus_L_CXX=yes
14156 hardcode_libdir_flag_spec_CXX='-L$libdir'
14157 hardcode_libdir_separator_CXX=
14158 fi
14159 esac
14160 shared_flag='-shared'
14161 if test yes = "$aix_use_runtimelinking"; then
14162 shared_flag=$shared_flag' $wl-G'
14163 fi
14164 # Need to ensure runtime linking is disabled for the traditional
14165 # shared library, or the linker may eventually find shared libraries
14166 # /with/ Import File - we do not want to mix them.
14167 shared_flag_aix='-shared'
14168 shared_flag_svr4='-shared $wl-G'
14169 else
14170 # not using gcc
14171 if test ia64 = "$host_cpu"; then
14172 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14173 # chokes on -Wl,-G. The following line is correct:
14174 shared_flag='-G'
14175 else
14176 if test yes = "$aix_use_runtimelinking"; then
14177 shared_flag='$wl-G'
14178 else
14179 shared_flag='$wl-bM:SRE'
14180 fi
14181 shared_flag_aix='$wl-bM:SRE'
14182 shared_flag_svr4='$wl-G'
14183 fi
14184 fi
14185
14186 export_dynamic_flag_spec_CXX='$wl-bexpall'
14187 # It seems that -bexpall does not export symbols beginning with
14188 # underscore (_), so it is better to generate a list of symbols to
14189 # export.
14190 always_export_symbols_CXX=yes
14191 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14192 # Warning - without using the other runtime loading flags (-brtl),
14193 # -berok will link without error, but may produce a broken library.
14194 # The "-G" linker flag allows undefined symbols.
14195 no_undefined_flag_CXX='-bernotok'
14196 # Determine the default libpath from the value encoded in an empty
14197 # executable.
14198 if test set = "${lt_cv_aix_libpath+set}"; then
14199 aix_libpath=$lt_cv_aix_libpath
14200 else
14201 if test ${lt_cv_aix_libpath__CXX+y}
14202 then :
14203 printf %s "(cached) " >&6
14204 else $as_nop
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14207
14208 int
14209 main (void)
14210 {
14211
14212 ;
14213 return 0;
14214 }
14215 _ACEOF
14216 if ac_fn_cxx_try_link "$LINENO"
14217 then :
14218
14219 lt_aix_libpath_sed='
14220 /Import File Strings/,/^$/ {
14221 /^0/ {
14222 s/^0 *\([^ ]*\) *$/\1/
14223 p
14224 }
14225 }'
14226 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14227 # Check for a 64-bit object if we didn't find anything.
14228 if test -z "$lt_cv_aix_libpath__CXX"; then
14229 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14230 fi
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14233 conftest$ac_exeext conftest.$ac_ext
14234 if test -z "$lt_cv_aix_libpath__CXX"; then
14235 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14236 fi
14237
14238 fi
14239
14240 aix_libpath=$lt_cv_aix_libpath__CXX
14241 fi
14242
14243 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14244
14245 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
14246 else
14247 if test ia64 = "$host_cpu"; then
14248 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14249 allow_undefined_flag_CXX="-z nodefs"
14250 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"
14251 else
14252 # Determine the default libpath from the value encoded in an
14253 # empty executable.
14254 if test set = "${lt_cv_aix_libpath+set}"; then
14255 aix_libpath=$lt_cv_aix_libpath
14256 else
14257 if test ${lt_cv_aix_libpath__CXX+y}
14258 then :
14259 printf %s "(cached) " >&6
14260 else $as_nop
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263
14264 int
14265 main (void)
14266 {
14267
14268 ;
14269 return 0;
14270 }
14271 _ACEOF
14272 if ac_fn_cxx_try_link "$LINENO"
14273 then :
14274
14275 lt_aix_libpath_sed='
14276 /Import File Strings/,/^$/ {
14277 /^0/ {
14278 s/^0 *\([^ ]*\) *$/\1/
14279 p
14280 }
14281 }'
14282 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14283 # Check for a 64-bit object if we didn't find anything.
14284 if test -z "$lt_cv_aix_libpath__CXX"; then
14285 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14286 fi
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14289 conftest$ac_exeext conftest.$ac_ext
14290 if test -z "$lt_cv_aix_libpath__CXX"; then
14291 lt_cv_aix_libpath__CXX=/usr/lib:/lib
14292 fi
14293
14294 fi
14295
14296 aix_libpath=$lt_cv_aix_libpath__CXX
14297 fi
14298
14299 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14300 # Warning - without using the other run time loading flags,
14301 # -berok will link without error, but may produce a broken library.
14302 no_undefined_flag_CXX=' $wl-bernotok'
14303 allow_undefined_flag_CXX=' $wl-berok'
14304 if test yes = "$with_gnu_ld"; then
14305 # We only use this code for GNU lds that support --whole-archive.
14306 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14307 else
14308 # Exported symbols can be pulled into shared objects from archives
14309 whole_archive_flag_spec_CXX='$convenience'
14310 fi
14311 archive_cmds_need_lc_CXX=yes
14312 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14313 # -brtl affects multiple linker settings, -berok does not and is overridden later
14314 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14315 if test svr4 != "$with_aix_soname"; then
14316 # This is similar to how AIX traditionally builds its shared
14317 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14318 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'
14319 fi
14320 if test aix != "$with_aix_soname"; then
14321 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'
14322 else
14323 # used by -dlpreopen to get the symbols
14324 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14325 fi
14326 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14327 fi
14328 fi
14329 ;;
14330
14331 beos*)
14332 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14333 allow_undefined_flag_CXX=unsupported
14334 # Joseph Beckenbach <[email protected]> says some releases of gcc
14335 # support --undefined. This deserves some investigation. FIXME
14336 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14337 else
14338 ld_shlibs_CXX=no
14339 fi
14340 ;;
14341
14342 chorus*)
14343 case $cc_basename in
14344 *)
14345 # FIXME: insert proper C++ library support
14346 ld_shlibs_CXX=no
14347 ;;
14348 esac
14349 ;;
14350
14351 cygwin* | mingw* | pw32* | cegcc*)
14352 case $GXX,$cc_basename in
14353 ,cl* | no,cl* | ,icl* | no,icl*)
14354 # Native MSVC or ICC
14355 # hardcode_libdir_flag_spec is actually meaningless, as there is
14356 # no search path for DLLs.
14357 hardcode_libdir_flag_spec_CXX=' '
14358 allow_undefined_flag_CXX=unsupported
14359 always_export_symbols_CXX=yes
14360 file_list_spec_CXX='@'
14361 # Tell ltmain to make .lib files, not .a files.
14362 libext=lib
14363 # Tell ltmain to make .dll files, not .so files.
14364 shrext_cmds=.dll
14365 # FIXME: Setting linknames here is a bad hack.
14366 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14367 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14368 cp "$export_symbols" "$output_objdir/$soname.def";
14369 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14370 else
14371 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14372 fi~
14373 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14374 linknames='
14375 # The linker will not automatically build a static lib if we build a DLL.
14376 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14377 enable_shared_with_static_runtimes_CXX=yes
14378 # Don't use ranlib
14379 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14380 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14381 lt_tool_outputfile="@TOOL_OUTPUT@"~
14382 case $lt_outputfile in
14383 *.exe|*.EXE) ;;
14384 *)
14385 lt_outputfile=$lt_outputfile.exe
14386 lt_tool_outputfile=$lt_tool_outputfile.exe
14387 ;;
14388 esac~
14389 func_to_tool_file "$lt_outputfile"~
14390 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14391 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14392 $RM "$lt_outputfile.manifest";
14393 fi'
14394 ;;
14395 *)
14396 # g++
14397 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14398 # as there is no search path for DLLs.
14399 hardcode_libdir_flag_spec_CXX='-L$libdir'
14400 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14401 allow_undefined_flag_CXX=unsupported
14402 always_export_symbols_CXX=no
14403 enable_shared_with_static_runtimes_CXX=yes
14404
14405 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14406 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'
14407 # If the export-symbols file already is a .def file, use it as
14408 # is; otherwise, prepend EXPORTS...
14409 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14410 cp $export_symbols $output_objdir/$soname.def;
14411 else
14412 echo EXPORTS > $output_objdir/$soname.def;
14413 cat $export_symbols >> $output_objdir/$soname.def;
14414 fi~
14415 $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'
14416 else
14417 ld_shlibs_CXX=no
14418 fi
14419 ;;
14420 esac
14421 ;;
14422 darwin* | rhapsody*)
14423
14424
14425 archive_cmds_need_lc_CXX=no
14426 hardcode_direct_CXX=no
14427 hardcode_automatic_CXX=yes
14428 hardcode_shlibpath_var_CXX=unsupported
14429 if test yes = "$lt_cv_ld_force_load"; then
14430 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\"`'
14431
14432 else
14433 whole_archive_flag_spec_CXX=''
14434 fi
14435 link_all_deplibs_CXX=yes
14436 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14437 case $cc_basename in
14438 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14439 *) _lt_dar_can_shared=$GCC ;;
14440 esac
14441 if test yes = "$_lt_dar_can_shared"; then
14442 output_verbose_link_cmd=func_echo_all
14443 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"
14444 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14445 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"
14446 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"
14447 if test yes != "$lt_cv_apple_cc_single_mod"; then
14448 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"
14449 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"
14450 fi
14451
14452 else
14453 ld_shlibs_CXX=no
14454 fi
14455
14456 ;;
14457
14458 os2*)
14459 hardcode_libdir_flag_spec_CXX='-L$libdir'
14460 hardcode_minus_L_CXX=yes
14461 allow_undefined_flag_CXX=unsupported
14462 shrext_cmds=.dll
14463 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14464 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14465 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14466 $ECHO EXPORTS >> $output_objdir/$libname.def~
14467 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14468 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14469 emximp -o $lib $output_objdir/$libname.def'
14470 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14471 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14472 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14473 $ECHO EXPORTS >> $output_objdir/$libname.def~
14474 prefix_cmds="$SED"~
14475 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14476 prefix_cmds="$prefix_cmds -e 1d";
14477 fi~
14478 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14479 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14480 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14481 emximp -o $lib $output_objdir/$libname.def'
14482 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14483 enable_shared_with_static_runtimes_CXX=yes
14484 file_list_spec_CXX='@'
14485 ;;
14486
14487 dgux*)
14488 case $cc_basename in
14489 ec++*)
14490 # FIXME: insert proper C++ library support
14491 ld_shlibs_CXX=no
14492 ;;
14493 ghcx*)
14494 # Green Hills C++ Compiler
14495 # FIXME: insert proper C++ library support
14496 ld_shlibs_CXX=no
14497 ;;
14498 *)
14499 # FIXME: insert proper C++ library support
14500 ld_shlibs_CXX=no
14501 ;;
14502 esac
14503 ;;
14504
14505 freebsd2.*)
14506 # C++ shared libraries reported to be fairly broken before
14507 # switch to ELF
14508 ld_shlibs_CXX=no
14509 ;;
14510
14511 freebsd-elf*)
14512 archive_cmds_need_lc_CXX=no
14513 ;;
14514
14515 freebsd* | dragonfly* | midnightbsd*)
14516 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14517 # conventions
14518 ld_shlibs_CXX=yes
14519 ;;
14520
14521 haiku*)
14522 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14523 link_all_deplibs_CXX=yes
14524 ;;
14525
14526 hpux9*)
14527 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14528 hardcode_libdir_separator_CXX=:
14529 export_dynamic_flag_spec_CXX='$wl-E'
14530 hardcode_direct_CXX=yes
14531 hardcode_minus_L_CXX=yes # Not in the search PATH,
14532 # but as the default
14533 # location of the library.
14534
14535 case $cc_basename in
14536 CC*)
14537 # FIXME: insert proper C++ library support
14538 ld_shlibs_CXX=no
14539 ;;
14540 aCC*)
14541 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'
14542 # Commands to make compiler produce verbose output that lists
14543 # what "hidden" libraries, object files and flags are used when
14544 # linking a shared library.
14545 #
14546 # There doesn't appear to be a way to prevent this compiler from
14547 # explicitly linking system object files so we need to strip them
14548 # from the output so that they don't get included in the library
14549 # dependencies.
14550 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"'
14551 ;;
14552 *)
14553 if test yes = "$GXX"; then
14554 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'
14555 else
14556 # FIXME: insert proper C++ library support
14557 ld_shlibs_CXX=no
14558 fi
14559 ;;
14560 esac
14561 ;;
14562
14563 hpux10*|hpux11*)
14564 if test no = "$with_gnu_ld"; then
14565 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14566 hardcode_libdir_separator_CXX=:
14567
14568 case $host_cpu in
14569 hppa*64*|ia64*)
14570 ;;
14571 *)
14572 export_dynamic_flag_spec_CXX='$wl-E'
14573 ;;
14574 esac
14575 fi
14576 case $host_cpu in
14577 hppa*64*|ia64*)
14578 hardcode_direct_CXX=no
14579 hardcode_shlibpath_var_CXX=no
14580 ;;
14581 *)
14582 hardcode_direct_CXX=yes
14583 hardcode_direct_absolute_CXX=yes
14584 hardcode_minus_L_CXX=yes # Not in the search PATH,
14585 # but as the default
14586 # location of the library.
14587 ;;
14588 esac
14589
14590 case $cc_basename in
14591 CC*)
14592 # FIXME: insert proper C++ library support
14593 ld_shlibs_CXX=no
14594 ;;
14595 aCC*)
14596 case $host_cpu in
14597 hppa*64*)
14598 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14599 ;;
14600 ia64*)
14601 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14602 ;;
14603 *)
14604 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14605 ;;
14606 esac
14607 # Commands to make compiler produce verbose output that lists
14608 # what "hidden" libraries, object files and flags are used when
14609 # linking a shared library.
14610 #
14611 # There doesn't appear to be a way to prevent this compiler from
14612 # explicitly linking system object files so we need to strip them
14613 # from the output so that they don't get included in the library
14614 # dependencies.
14615 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"'
14616 ;;
14617 *)
14618 if test yes = "$GXX"; then
14619 if test no = "$with_gnu_ld"; then
14620 case $host_cpu in
14621 hppa*64*)
14622 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14623 ;;
14624 ia64*)
14625 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14626 ;;
14627 *)
14628 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'
14629 ;;
14630 esac
14631 fi
14632 else
14633 # FIXME: insert proper C++ library support
14634 ld_shlibs_CXX=no
14635 fi
14636 ;;
14637 esac
14638 ;;
14639
14640 interix[3-9]*)
14641 hardcode_direct_CXX=no
14642 hardcode_shlibpath_var_CXX=no
14643 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14644 export_dynamic_flag_spec_CXX='$wl-E'
14645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14646 # Instead, shared libraries are loaded at an image base (0x10000000 by
14647 # default) and relocated if they conflict, which is a slow very memory
14648 # consuming and fragmenting process. To avoid this, we pick a random,
14649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14651 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'
14652 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'
14653 ;;
14654 irix5* | irix6*)
14655 case $cc_basename in
14656 CC*)
14657 # SGI C++
14658 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'
14659
14660 # Archives containing C++ object files must be created using
14661 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14662 # necessary to make sure instantiated templates are included
14663 # in the archive.
14664 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14665 ;;
14666 *)
14667 if test yes = "$GXX"; then
14668 if test no = "$with_gnu_ld"; then
14669 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'
14670 else
14671 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'
14672 fi
14673 fi
14674 link_all_deplibs_CXX=yes
14675 ;;
14676 esac
14677 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14678 hardcode_libdir_separator_CXX=:
14679 inherit_rpath_CXX=yes
14680 ;;
14681
14682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14683 case $cc_basename in
14684 KCC*)
14685 # Kuck and Associates, Inc. (KAI) C++ Compiler
14686
14687 # KCC will only create a shared library if the output file
14688 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14689 # to its proper name (with version) after linking.
14690 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'
14691 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'
14692 # Commands to make compiler produce verbose output that lists
14693 # what "hidden" libraries, object files and flags are used when
14694 # linking a shared library.
14695 #
14696 # There doesn't appear to be a way to prevent this compiler from
14697 # explicitly linking system object files so we need to strip them
14698 # from the output so that they don't get included in the library
14699 # dependencies.
14700 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"'
14701
14702 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14703 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14704
14705 # Archives containing C++ object files must be created using
14706 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14707 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14708 ;;
14709 icpc* | ecpc* )
14710 # Intel C++
14711 with_gnu_ld=yes
14712 # version 8.0 and above of icpc choke on multiply defined symbols
14713 # if we add $predep_objects and $postdep_objects, however 7.1 and
14714 # earlier do not add the objects themselves.
14715 case `$CC -V 2>&1` in
14716 *"Version 7."*)
14717 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14718 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'
14719 ;;
14720 *) # Version 8.0 or newer
14721 tmp_idyn=
14722 case $host_cpu in
14723 ia64*) tmp_idyn=' -i_dynamic';;
14724 esac
14725 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14726 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'
14727 ;;
14728 esac
14729 archive_cmds_need_lc_CXX=no
14730 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14731 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14732 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14733 ;;
14734 pgCC* | pgcpp*)
14735 # Portland Group C++ compiler
14736 case `$CC -V` in
14737 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14738 prelink_cmds_CXX='tpldir=Template.dir~
14739 rm -rf $tpldir~
14740 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14741 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14742 old_archive_cmds_CXX='tpldir=Template.dir~
14743 rm -rf $tpldir~
14744 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14745 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14746 $RANLIB $oldlib'
14747 archive_cmds_CXX='tpldir=Template.dir~
14748 rm -rf $tpldir~
14749 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14750 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14751 archive_expsym_cmds_CXX='tpldir=Template.dir~
14752 rm -rf $tpldir~
14753 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14754 $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'
14755 ;;
14756 *) # Version 6 and above use weak symbols
14757 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14758 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'
14759 ;;
14760 esac
14761
14762 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14763 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14764 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'
14765 ;;
14766 cxx*)
14767 # Compaq C++
14768 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14769 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'
14770
14771 runpath_var=LD_RUN_PATH
14772 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14773 hardcode_libdir_separator_CXX=:
14774
14775 # Commands to make compiler produce verbose output that lists
14776 # what "hidden" libraries, object files and flags are used when
14777 # linking a shared library.
14778 #
14779 # There doesn't appear to be a way to prevent this compiler from
14780 # explicitly linking system object files so we need to strip them
14781 # from the output so that they don't get included in the library
14782 # dependencies.
14783 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'
14784 ;;
14785 xl* | mpixl* | bgxl*)
14786 # IBM XL 8.0 on PPC, with GNU ld
14787 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14788 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14789 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14790 if test yes = "$supports_anon_versioning"; then
14791 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14792 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14793 echo "local: *; };" >> $output_objdir/$libname.ver~
14794 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14795 fi
14796 ;;
14797 *)
14798 case `$CC -V 2>&1 | $SED 5q` in
14799 *Sun\ C*)
14800 # Sun C++ 5.9
14801 no_undefined_flag_CXX=' -zdefs'
14802 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14803 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'
14804 hardcode_libdir_flag_spec_CXX='-R$libdir'
14805 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'
14806 compiler_needs_object_CXX=yes
14807
14808 # Not sure whether something based on
14809 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14810 # would be better.
14811 output_verbose_link_cmd='func_echo_all'
14812
14813 # Archives containing C++ object files must be created using
14814 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14815 # necessary to make sure instantiated templates are included
14816 # in the archive.
14817 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14818 ;;
14819 esac
14820 ;;
14821 esac
14822 ;;
14823
14824 lynxos*)
14825 # FIXME: insert proper C++ library support
14826 ld_shlibs_CXX=no
14827 ;;
14828
14829 m88k*)
14830 # FIXME: insert proper C++ library support
14831 ld_shlibs_CXX=no
14832 ;;
14833
14834 mvs*)
14835 case $cc_basename in
14836 cxx*)
14837 # FIXME: insert proper C++ library support
14838 ld_shlibs_CXX=no
14839 ;;
14840 *)
14841 # FIXME: insert proper C++ library support
14842 ld_shlibs_CXX=no
14843 ;;
14844 esac
14845 ;;
14846
14847 netbsd*)
14848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14849 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14850 wlarc=
14851 hardcode_libdir_flag_spec_CXX='-R$libdir'
14852 hardcode_direct_CXX=yes
14853 hardcode_shlibpath_var_CXX=no
14854 fi
14855 # Workaround some broken pre-1.5 toolchains
14856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14857 ;;
14858
14859 *nto* | *qnx*)
14860 ld_shlibs_CXX=yes
14861 ;;
14862
14863 openbsd* | bitrig*)
14864 if test -f /usr/libexec/ld.so; then
14865 hardcode_direct_CXX=yes
14866 hardcode_shlibpath_var_CXX=no
14867 hardcode_direct_absolute_CXX=yes
14868 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14869 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14871 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14872 export_dynamic_flag_spec_CXX='$wl-E'
14873 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14874 fi
14875 output_verbose_link_cmd=func_echo_all
14876 else
14877 ld_shlibs_CXX=no
14878 fi
14879 ;;
14880
14881 osf3* | osf4* | osf5*)
14882 case $cc_basename in
14883 KCC*)
14884 # Kuck and Associates, Inc. (KAI) C++ Compiler
14885
14886 # KCC will only create a shared library if the output file
14887 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14888 # to its proper name (with version) after linking.
14889 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'
14890
14891 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14892 hardcode_libdir_separator_CXX=:
14893
14894 # Archives containing C++ object files must be created using
14895 # the KAI C++ compiler.
14896 case $host in
14897 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14898 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14899 esac
14900 ;;
14901 RCC*)
14902 # Rational C++ 2.4.1
14903 # FIXME: insert proper C++ library support
14904 ld_shlibs_CXX=no
14905 ;;
14906 cxx*)
14907 case $host in
14908 osf3*)
14909 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14910 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'
14911 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14912 ;;
14913 *)
14914 allow_undefined_flag_CXX=' -expect_unresolved \*'
14915 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'
14916 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14917 echo "-hidden">> $lib.exp~
14918 $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~
14919 $RM $lib.exp'
14920 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14921 ;;
14922 esac
14923
14924 hardcode_libdir_separator_CXX=:
14925
14926 # Commands to make compiler produce verbose output that lists
14927 # what "hidden" libraries, object files and flags are used when
14928 # linking a shared library.
14929 #
14930 # There doesn't appear to be a way to prevent this compiler from
14931 # explicitly linking system object files so we need to strip them
14932 # from the output so that they don't get included in the library
14933 # dependencies.
14934 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"'
14935 ;;
14936 *)
14937 if test yes,no = "$GXX,$with_gnu_ld"; then
14938 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14939 case $host in
14940 osf3*)
14941 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'
14942 ;;
14943 *)
14944 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'
14945 ;;
14946 esac
14947
14948 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14949 hardcode_libdir_separator_CXX=:
14950
14951 # Commands to make compiler produce verbose output that lists
14952 # what "hidden" libraries, object files and flags are used when
14953 # linking a shared library.
14954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14955
14956 else
14957 # FIXME: insert proper C++ library support
14958 ld_shlibs_CXX=no
14959 fi
14960 ;;
14961 esac
14962 ;;
14963
14964 psos*)
14965 # FIXME: insert proper C++ library support
14966 ld_shlibs_CXX=no
14967 ;;
14968
14969 sunos4*)
14970 case $cc_basename in
14971 CC*)
14972 # Sun C++ 4.x
14973 # FIXME: insert proper C++ library support
14974 ld_shlibs_CXX=no
14975 ;;
14976 lcc*)
14977 # Lucid
14978 # FIXME: insert proper C++ library support
14979 ld_shlibs_CXX=no
14980 ;;
14981 *)
14982 # FIXME: insert proper C++ library support
14983 ld_shlibs_CXX=no
14984 ;;
14985 esac
14986 ;;
14987
14988 solaris*)
14989 case $cc_basename in
14990 CC* | sunCC*)
14991 # Sun C++ 4.2, 5.x and Centerline C++
14992 archive_cmds_need_lc_CXX=yes
14993 no_undefined_flag_CXX=' -zdefs'
14994 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14995 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14996 $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'
14997
14998 hardcode_libdir_flag_spec_CXX='-R$libdir'
14999 hardcode_shlibpath_var_CXX=no
15000 case $host_os in
15001 solaris2.[0-5] | solaris2.[0-5].*) ;;
15002 *)
15003 # The compiler driver will combine and reorder linker options,
15004 # but understands '-z linker_flag'.
15005 # Supported since Solaris 2.6 (maybe 2.5.1?)
15006 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15007 ;;
15008 esac
15009 link_all_deplibs_CXX=yes
15010
15011 output_verbose_link_cmd='func_echo_all'
15012
15013 # Archives containing C++ object files must be created using
15014 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15015 # necessary to make sure instantiated templates are included
15016 # in the archive.
15017 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15018 ;;
15019 gcx*)
15020 # Green Hills C++ Compiler
15021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15022
15023 # The C++ compiler must be used to create the archive.
15024 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15025 ;;
15026 *)
15027 # GNU C++ compiler with Solaris linker
15028 if test yes,no = "$GXX,$with_gnu_ld"; then
15029 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15030 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15031 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15032 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15033 $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'
15034
15035 # Commands to make compiler produce verbose output that lists
15036 # what "hidden" libraries, object files and flags are used when
15037 # linking a shared library.
15038 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15039 else
15040 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15041 # platform.
15042 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15043 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15044 $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'
15045
15046 # Commands to make compiler produce verbose output that lists
15047 # what "hidden" libraries, object files and flags are used when
15048 # linking a shared library.
15049 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15050 fi
15051
15052 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15053 case $host_os in
15054 solaris2.[0-5] | solaris2.[0-5].*) ;;
15055 *)
15056 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15057 ;;
15058 esac
15059 fi
15060 ;;
15061 esac
15062 ;;
15063
15064 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15065 no_undefined_flag_CXX='$wl-z,text'
15066 archive_cmds_need_lc_CXX=no
15067 hardcode_shlibpath_var_CXX=no
15068 runpath_var='LD_RUN_PATH'
15069
15070 case $cc_basename in
15071 CC*)
15072 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15073 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15074 ;;
15075 *)
15076 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15077 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15078 ;;
15079 esac
15080 ;;
15081
15082 sysv5* | sco3.2v5* | sco5v6*)
15083 # Note: We CANNOT use -z defs as we might desire, because we do not
15084 # link with -lc, and that would cause any symbols used from libc to
15085 # always be unresolved, which means just about no library would
15086 # ever link correctly. If we're not using GNU ld we use -z text
15087 # though, which does catch some bad symbols but isn't as heavy-handed
15088 # as -z defs.
15089 no_undefined_flag_CXX='$wl-z,text'
15090 allow_undefined_flag_CXX='$wl-z,nodefs'
15091 archive_cmds_need_lc_CXX=no
15092 hardcode_shlibpath_var_CXX=no
15093 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15094 hardcode_libdir_separator_CXX=':'
15095 link_all_deplibs_CXX=yes
15096 export_dynamic_flag_spec_CXX='$wl-Bexport'
15097 runpath_var='LD_RUN_PATH'
15098
15099 case $cc_basename in
15100 CC*)
15101 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15102 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15103 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15104 '"$old_archive_cmds_CXX"
15105 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15106 '"$reload_cmds_CXX"
15107 ;;
15108 *)
15109 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15110 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15111 ;;
15112 esac
15113 ;;
15114
15115 tandem*)
15116 case $cc_basename in
15117 NCC*)
15118 # NonStop-UX NCC 3.20
15119 # FIXME: insert proper C++ library support
15120 ld_shlibs_CXX=no
15121 ;;
15122 *)
15123 # FIXME: insert proper C++ library support
15124 ld_shlibs_CXX=no
15125 ;;
15126 esac
15127 ;;
15128
15129 vxworks*)
15130 # FIXME: insert proper C++ library support
15131 ld_shlibs_CXX=no
15132 ;;
15133
15134 *)
15135 # FIXME: insert proper C++ library support
15136 ld_shlibs_CXX=no
15137 ;;
15138 esac
15139
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15141 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15142 test no = "$ld_shlibs_CXX" && can_build_shared=no
15143
15144 GCC_CXX=$GXX
15145 LD_CXX=$LD
15146
15147 ## CAVEAT EMPTOR:
15148 ## There is no encapsulation within the following macros, do not change
15149 ## the running order or otherwise move them around unless you know exactly
15150 ## what you are doing...
15151 # Dependencies to place before and after the object being linked:
15152 predep_objects_CXX=
15153 postdep_objects_CXX=
15154 predeps_CXX=
15155 postdeps_CXX=
15156 compiler_lib_search_path_CXX=
15157
15158 cat > conftest.$ac_ext <<_LT_EOF
15159 class Foo
15160 {
15161 public:
15162 Foo (void) { a = 0; }
15163 private:
15164 int a;
15165 };
15166 _LT_EOF
15167
15168
15169 _lt_libdeps_save_CFLAGS=$CFLAGS
15170 case "$CC $CFLAGS " in #(
15171 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15172 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15173 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15174 esac
15175
15176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15177 (eval $ac_compile) 2>&5
15178 ac_status=$?
15179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15180 test $ac_status = 0; }; then
15181 # Parse the compiler output and extract the necessary
15182 # objects, libraries and library flags.
15183
15184 # Sentinel used to keep track of whether or not we are before
15185 # the conftest object file.
15186 pre_test_object_deps_done=no
15187
15188 for p in `eval "$output_verbose_link_cmd"`; do
15189 case $prev$p in
15190
15191 -L* | -R* | -l*)
15192 # Some compilers place space between "-{L,R}" and the path.
15193 # Remove the space.
15194 if test x-L = "$p" ||
15195 test x-R = "$p"; then
15196 prev=$p
15197 continue
15198 fi
15199
15200 # Expand the sysroot to ease extracting the directories later.
15201 if test -z "$prev"; then
15202 case $p in
15203 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15204 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15205 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15206 esac
15207 fi
15208 case $p in
15209 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15210 esac
15211 if test no = "$pre_test_object_deps_done"; then
15212 case $prev in
15213 -L | -R)
15214 # Internal compiler library paths should come after those
15215 # provided the user. The postdeps already come after the
15216 # user supplied libs so there is no need to process them.
15217 if test -z "$compiler_lib_search_path_CXX"; then
15218 compiler_lib_search_path_CXX=$prev$p
15219 else
15220 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15221 fi
15222 ;;
15223 # The "-l" case would never come before the object being
15224 # linked, so don't bother handling this case.
15225 esac
15226 else
15227 if test -z "$postdeps_CXX"; then
15228 postdeps_CXX=$prev$p
15229 else
15230 postdeps_CXX="${postdeps_CXX} $prev$p"
15231 fi
15232 fi
15233 prev=
15234 ;;
15235
15236 *.lto.$objext) ;; # Ignore GCC LTO objects
15237 *.$objext)
15238 # This assumes that the test object file only shows up
15239 # once in the compiler output.
15240 if test "$p" = "conftest.$objext"; then
15241 pre_test_object_deps_done=yes
15242 continue
15243 fi
15244
15245 if test no = "$pre_test_object_deps_done"; then
15246 if test -z "$predep_objects_CXX"; then
15247 predep_objects_CXX=$p
15248 else
15249 predep_objects_CXX="$predep_objects_CXX $p"
15250 fi
15251 else
15252 if test -z "$postdep_objects_CXX"; then
15253 postdep_objects_CXX=$p
15254 else
15255 postdep_objects_CXX="$postdep_objects_CXX $p"
15256 fi
15257 fi
15258 ;;
15259
15260 *) ;; # Ignore the rest.
15261
15262 esac
15263 done
15264
15265 # Clean up.
15266 rm -f a.out a.exe
15267 else
15268 echo "libtool.m4: error: problem compiling CXX test program"
15269 fi
15270
15271 $RM -f confest.$objext
15272 CFLAGS=$_lt_libdeps_save_CFLAGS
15273
15274 # PORTME: override above test on systems where it is broken
15275 case $host_os in
15276 interix[3-9]*)
15277 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15278 # hack all around it, let's just trust "g++" to DTRT.
15279 predep_objects_CXX=
15280 postdep_objects_CXX=
15281 postdeps_CXX=
15282 ;;
15283 esac
15284
15285
15286 case " $postdeps_CXX " in
15287 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15288 esac
15289 compiler_lib_search_dirs_CXX=
15290 if test -n "${compiler_lib_search_path_CXX}"; then
15291 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15292 fi
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324 lt_prog_compiler_wl_CXX=
15325 lt_prog_compiler_pic_CXX=
15326 lt_prog_compiler_static_CXX=
15327
15328
15329 # C++ specific cases for pic, static, wl, etc.
15330 if test yes = "$GXX"; then
15331 lt_prog_compiler_wl_CXX='-Wl,'
15332 lt_prog_compiler_static_CXX='-static'
15333
15334 case $host_os in
15335 aix*)
15336 # All AIX code is PIC.
15337 if test ia64 = "$host_cpu"; then
15338 # AIX 5 now supports IA64 processor
15339 lt_prog_compiler_static_CXX='-Bstatic'
15340 fi
15341 lt_prog_compiler_pic_CXX='-fPIC'
15342 ;;
15343
15344 amigaos*)
15345 case $host_cpu in
15346 powerpc)
15347 # see comment about AmigaOS4 .so support
15348 lt_prog_compiler_pic_CXX='-fPIC'
15349 ;;
15350 m68k)
15351 # FIXME: we need at least 68020 code to build shared libraries, but
15352 # adding the '-m68020' flag to GCC prevents building anything better,
15353 # like '-m68040'.
15354 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15355 ;;
15356 esac
15357 ;;
15358
15359 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15360 # PIC is the default for these OSes.
15361 ;;
15362 mingw* | cygwin* | os2* | pw32* | cegcc*)
15363 # This hack is so that the source file can tell whether it is being
15364 # built for inclusion in a dll (and should export symbols for example).
15365 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15366 # (--disable-auto-import) libraries
15367 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15368 case $host_os in
15369 os2*)
15370 lt_prog_compiler_static_CXX='$wl-static'
15371 ;;
15372 esac
15373 ;;
15374 darwin* | rhapsody*)
15375 # PIC is the default on this platform
15376 # Common symbols not allowed in MH_DYLIB files
15377 lt_prog_compiler_pic_CXX='-fno-common'
15378 ;;
15379 *djgpp*)
15380 # DJGPP does not support shared libraries at all
15381 lt_prog_compiler_pic_CXX=
15382 ;;
15383 haiku*)
15384 # PIC is the default for Haiku.
15385 # The "-static" flag exists, but is broken.
15386 lt_prog_compiler_static_CXX=
15387 ;;
15388 interix[3-9]*)
15389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15390 # Instead, we relocate shared libraries at runtime.
15391 ;;
15392 sysv4*MP*)
15393 if test -d /usr/nec; then
15394 lt_prog_compiler_pic_CXX=-Kconform_pic
15395 fi
15396 ;;
15397 hpux*)
15398 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15399 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15400 # sets the default TLS model and affects inlining.
15401 case $host_cpu in
15402 hppa*64*)
15403 ;;
15404 *)
15405 lt_prog_compiler_pic_CXX='-fPIC'
15406 ;;
15407 esac
15408 ;;
15409 *qnx* | *nto*)
15410 # QNX uses GNU C++, but need to define -shared option too, otherwise
15411 # it will coredump.
15412 lt_prog_compiler_pic_CXX='-fPIC -shared'
15413 ;;
15414 *)
15415 lt_prog_compiler_pic_CXX='-fPIC'
15416 ;;
15417 esac
15418 else
15419 case $host_os in
15420 aix[4-9]*)
15421 # All AIX code is PIC.
15422 if test ia64 = "$host_cpu"; then
15423 # AIX 5 now supports IA64 processor
15424 lt_prog_compiler_static_CXX='-Bstatic'
15425 else
15426 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15427 fi
15428 ;;
15429 chorus*)
15430 case $cc_basename in
15431 cxch68*)
15432 # Green Hills C++ Compiler
15433 # _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"
15434 ;;
15435 esac
15436 ;;
15437 mingw* | cygwin* | os2* | pw32* | cegcc*)
15438 # This hack is so that the source file can tell whether it is being
15439 # built for inclusion in a dll (and should export symbols for example).
15440 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15441 ;;
15442 dgux*)
15443 case $cc_basename in
15444 ec++*)
15445 lt_prog_compiler_pic_CXX='-KPIC'
15446 ;;
15447 ghcx*)
15448 # Green Hills C++ Compiler
15449 lt_prog_compiler_pic_CXX='-pic'
15450 ;;
15451 *)
15452 ;;
15453 esac
15454 ;;
15455 freebsd* | dragonfly* | midnightbsd*)
15456 # FreeBSD uses GNU C++
15457 ;;
15458 hpux9* | hpux10* | hpux11*)
15459 case $cc_basename in
15460 CC*)
15461 lt_prog_compiler_wl_CXX='-Wl,'
15462 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15463 if test ia64 != "$host_cpu"; then
15464 lt_prog_compiler_pic_CXX='+Z'
15465 fi
15466 ;;
15467 aCC*)
15468 lt_prog_compiler_wl_CXX='-Wl,'
15469 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15470 case $host_cpu in
15471 hppa*64*|ia64*)
15472 # +Z the default
15473 ;;
15474 *)
15475 lt_prog_compiler_pic_CXX='+Z'
15476 ;;
15477 esac
15478 ;;
15479 *)
15480 ;;
15481 esac
15482 ;;
15483 interix*)
15484 # This is c89, which is MS Visual C++ (no shared libs)
15485 # Anyone wants to do a port?
15486 ;;
15487 irix5* | irix6* | nonstopux*)
15488 case $cc_basename in
15489 CC*)
15490 lt_prog_compiler_wl_CXX='-Wl,'
15491 lt_prog_compiler_static_CXX='-non_shared'
15492 # CC pic flag -KPIC is the default.
15493 ;;
15494 *)
15495 ;;
15496 esac
15497 ;;
15498 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15499 case $cc_basename in
15500 KCC*)
15501 # KAI C++ Compiler
15502 lt_prog_compiler_wl_CXX='--backend -Wl,'
15503 lt_prog_compiler_pic_CXX='-fPIC'
15504 ;;
15505 ecpc* )
15506 # old Intel C++ for x86_64, which still supported -KPIC.
15507 lt_prog_compiler_wl_CXX='-Wl,'
15508 lt_prog_compiler_pic_CXX='-KPIC'
15509 lt_prog_compiler_static_CXX='-static'
15510 ;;
15511 icpc* )
15512 # Intel C++, used to be incompatible with GCC.
15513 # ICC 10 doesn't accept -KPIC any more.
15514 lt_prog_compiler_wl_CXX='-Wl,'
15515 lt_prog_compiler_pic_CXX='-fPIC'
15516 lt_prog_compiler_static_CXX='-static'
15517 ;;
15518 pgCC* | pgcpp*)
15519 # Portland Group C++ compiler
15520 lt_prog_compiler_wl_CXX='-Wl,'
15521 lt_prog_compiler_pic_CXX='-fpic'
15522 lt_prog_compiler_static_CXX='-Bstatic'
15523 ;;
15524 cxx*)
15525 # Compaq C++
15526 # Make sure the PIC flag is empty. It appears that all Alpha
15527 # Linux and Compaq Tru64 Unix objects are PIC.
15528 lt_prog_compiler_pic_CXX=
15529 lt_prog_compiler_static_CXX='-non_shared'
15530 ;;
15531 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15532 # IBM XL 8.0, 9.0 on PPC and BlueGene
15533 lt_prog_compiler_wl_CXX='-Wl,'
15534 lt_prog_compiler_pic_CXX='-qpic'
15535 lt_prog_compiler_static_CXX='-qstaticlink'
15536 ;;
15537 *)
15538 case `$CC -V 2>&1 | $SED 5q` in
15539 *Sun\ C*)
15540 # Sun C++ 5.9
15541 lt_prog_compiler_pic_CXX='-KPIC'
15542 lt_prog_compiler_static_CXX='-Bstatic'
15543 lt_prog_compiler_wl_CXX='-Qoption ld '
15544 ;;
15545 esac
15546 ;;
15547 esac
15548 ;;
15549 lynxos*)
15550 ;;
15551 m88k*)
15552 ;;
15553 mvs*)
15554 case $cc_basename in
15555 cxx*)
15556 lt_prog_compiler_pic_CXX='-W c,exportall'
15557 ;;
15558 *)
15559 ;;
15560 esac
15561 ;;
15562 netbsd*)
15563 ;;
15564 *qnx* | *nto*)
15565 # QNX uses GNU C++, but need to define -shared option too, otherwise
15566 # it will coredump.
15567 lt_prog_compiler_pic_CXX='-fPIC -shared'
15568 ;;
15569 osf3* | osf4* | osf5*)
15570 case $cc_basename in
15571 KCC*)
15572 lt_prog_compiler_wl_CXX='--backend -Wl,'
15573 ;;
15574 RCC*)
15575 # Rational C++ 2.4.1
15576 lt_prog_compiler_pic_CXX='-pic'
15577 ;;
15578 cxx*)
15579 # Digital/Compaq C++
15580 lt_prog_compiler_wl_CXX='-Wl,'
15581 # Make sure the PIC flag is empty. It appears that all Alpha
15582 # Linux and Compaq Tru64 Unix objects are PIC.
15583 lt_prog_compiler_pic_CXX=
15584 lt_prog_compiler_static_CXX='-non_shared'
15585 ;;
15586 *)
15587 ;;
15588 esac
15589 ;;
15590 psos*)
15591 ;;
15592 solaris*)
15593 case $cc_basename in
15594 CC* | sunCC*)
15595 # Sun C++ 4.2, 5.x and Centerline C++
15596 lt_prog_compiler_pic_CXX='-KPIC'
15597 lt_prog_compiler_static_CXX='-Bstatic'
15598 lt_prog_compiler_wl_CXX='-Qoption ld '
15599 ;;
15600 gcx*)
15601 # Green Hills C++ Compiler
15602 lt_prog_compiler_pic_CXX='-PIC'
15603 ;;
15604 *)
15605 ;;
15606 esac
15607 ;;
15608 sunos4*)
15609 case $cc_basename in
15610 CC*)
15611 # Sun C++ 4.x
15612 lt_prog_compiler_pic_CXX='-pic'
15613 lt_prog_compiler_static_CXX='-Bstatic'
15614 ;;
15615 lcc*)
15616 # Lucid
15617 lt_prog_compiler_pic_CXX='-pic'
15618 ;;
15619 *)
15620 ;;
15621 esac
15622 ;;
15623 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15624 case $cc_basename in
15625 CC*)
15626 lt_prog_compiler_wl_CXX='-Wl,'
15627 lt_prog_compiler_pic_CXX='-KPIC'
15628 lt_prog_compiler_static_CXX='-Bstatic'
15629 ;;
15630 esac
15631 ;;
15632 tandem*)
15633 case $cc_basename in
15634 NCC*)
15635 # NonStop-UX NCC 3.20
15636 lt_prog_compiler_pic_CXX='-KPIC'
15637 ;;
15638 *)
15639 ;;
15640 esac
15641 ;;
15642 vxworks*)
15643 ;;
15644 *)
15645 lt_prog_compiler_can_build_shared_CXX=no
15646 ;;
15647 esac
15648 fi
15649
15650 case $host_os in
15651 # For platforms that do not support PIC, -DPIC is meaningless:
15652 *djgpp*)
15653 lt_prog_compiler_pic_CXX=
15654 ;;
15655 *)
15656 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15657 ;;
15658 esac
15659
15660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15661 printf %s "checking for $compiler option to produce PIC... " >&6; }
15662 if test ${lt_cv_prog_compiler_pic_CXX+y}
15663 then :
15664 printf %s "(cached) " >&6
15665 else $as_nop
15666 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15667 fi
15668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15669 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15670 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15671
15672 #
15673 # Check to make sure the PIC flag actually works.
15674 #
15675 if test -n "$lt_prog_compiler_pic_CXX"; then
15676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15677 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15678 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15679 then :
15680 printf %s "(cached) " >&6
15681 else $as_nop
15682 lt_cv_prog_compiler_pic_works_CXX=no
15683 ac_outfile=conftest.$ac_objext
15684 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15685 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15686 # Insert the option either (1) after the last *FLAGS variable, or
15687 # (2) before a word containing "conftest.", or (3) at the end.
15688 # Note that $ac_compile itself does not contain backslashes and begins
15689 # with a dollar sign (not a hyphen), so the echo should work correctly.
15690 # The option is referenced via a variable to avoid confusing sed.
15691 lt_compile=`echo "$ac_compile" | $SED \
15692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15694 -e 's:$: $lt_compiler_flag:'`
15695 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15696 (eval "$lt_compile" 2>conftest.err)
15697 ac_status=$?
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 if (exit $ac_status) && test -s "$ac_outfile"; then
15701 # The compiler can only warn and ignore the option if not recognized
15702 # So say no if there are warnings other than the usual output.
15703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15705 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15706 lt_cv_prog_compiler_pic_works_CXX=yes
15707 fi
15708 fi
15709 $RM conftest*
15710
15711 fi
15712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15713 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15714
15715 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15716 case $lt_prog_compiler_pic_CXX in
15717 "" | " "*) ;;
15718 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15719 esac
15720 else
15721 lt_prog_compiler_pic_CXX=
15722 lt_prog_compiler_can_build_shared_CXX=no
15723 fi
15724
15725 fi
15726
15727
15728
15729
15730
15731 #
15732 # Check to make sure the static flag actually works.
15733 #
15734 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15736 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15737 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15738 then :
15739 printf %s "(cached) " >&6
15740 else $as_nop
15741 lt_cv_prog_compiler_static_works_CXX=no
15742 save_LDFLAGS=$LDFLAGS
15743 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15744 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15745 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15746 # The linker can only warn and ignore the option if not recognized
15747 # So say no if there are warnings
15748 if test -s conftest.err; then
15749 # Append any errors to the config.log.
15750 cat conftest.err 1>&5
15751 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15753 if diff conftest.exp conftest.er2 >/dev/null; then
15754 lt_cv_prog_compiler_static_works_CXX=yes
15755 fi
15756 else
15757 lt_cv_prog_compiler_static_works_CXX=yes
15758 fi
15759 fi
15760 $RM -r conftest*
15761 LDFLAGS=$save_LDFLAGS
15762
15763 fi
15764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15765 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15766
15767 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15768 :
15769 else
15770 lt_prog_compiler_static_CXX=
15771 fi
15772
15773
15774
15775
15776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15777 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15778 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15779 then :
15780 printf %s "(cached) " >&6
15781 else $as_nop
15782 lt_cv_prog_compiler_c_o_CXX=no
15783 $RM -r conftest 2>/dev/null
15784 mkdir conftest
15785 cd conftest
15786 mkdir out
15787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15788
15789 lt_compiler_flag="-o out/conftest2.$ac_objext"
15790 # Insert the option either (1) after the last *FLAGS variable, or
15791 # (2) before a word containing "conftest.", or (3) at the end.
15792 # Note that $ac_compile itself does not contain backslashes and begins
15793 # with a dollar sign (not a hyphen), so the echo should work correctly.
15794 lt_compile=`echo "$ac_compile" | $SED \
15795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15797 -e 's:$: $lt_compiler_flag:'`
15798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15799 (eval "$lt_compile" 2>out/conftest.err)
15800 ac_status=$?
15801 cat out/conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15804 then
15805 # The compiler can only warn and ignore the option if not recognized
15806 # So say no if there are warnings
15807 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15808 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15809 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15810 lt_cv_prog_compiler_c_o_CXX=yes
15811 fi
15812 fi
15813 chmod u+w . 2>&5
15814 $RM conftest*
15815 # SGI C++ compiler will create directory out/ii_files/ for
15816 # template instantiation
15817 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15818 $RM out/* && rmdir out
15819 cd ..
15820 $RM -r conftest
15821 $RM conftest*
15822
15823 fi
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15825 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15826
15827
15828
15829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15830 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15831 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15832 then :
15833 printf %s "(cached) " >&6
15834 else $as_nop
15835 lt_cv_prog_compiler_c_o_CXX=no
15836 $RM -r conftest 2>/dev/null
15837 mkdir conftest
15838 cd conftest
15839 mkdir out
15840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15841
15842 lt_compiler_flag="-o out/conftest2.$ac_objext"
15843 # Insert the option either (1) after the last *FLAGS variable, or
15844 # (2) before a word containing "conftest.", or (3) at the end.
15845 # Note that $ac_compile itself does not contain backslashes and begins
15846 # with a dollar sign (not a hyphen), so the echo should work correctly.
15847 lt_compile=`echo "$ac_compile" | $SED \
15848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15850 -e 's:$: $lt_compiler_flag:'`
15851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15852 (eval "$lt_compile" 2>out/conftest.err)
15853 ac_status=$?
15854 cat out/conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15857 then
15858 # The compiler can only warn and ignore the option if not recognized
15859 # So say no if there are warnings
15860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15863 lt_cv_prog_compiler_c_o_CXX=yes
15864 fi
15865 fi
15866 chmod u+w . 2>&5
15867 $RM conftest*
15868 # SGI C++ compiler will create directory out/ii_files/ for
15869 # template instantiation
15870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15871 $RM out/* && rmdir out
15872 cd ..
15873 $RM -r conftest
15874 $RM conftest*
15875
15876 fi
15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15878 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15879
15880
15881
15882
15883 hard_links=nottested
15884 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15885 # do not overwrite the value of need_locks provided by the user
15886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15887 printf %s "checking if we can lock with hard links... " >&6; }
15888 hard_links=yes
15889 $RM conftest*
15890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15891 touch conftest.a
15892 ln conftest.a conftest.b 2>&5 || hard_links=no
15893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15895 printf "%s\n" "$hard_links" >&6; }
15896 if test no = "$hard_links"; then
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15898 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15899 need_locks=warn
15900 fi
15901 else
15902 need_locks=no
15903 fi
15904
15905
15906
15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15908 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15909
15910 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15911 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15912 case $host_os in
15913 aix[4-9]*)
15914 # If we're using GNU nm, then we don't want the "-C" option.
15915 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15916 # Without the "-l" option, or with the "-B" option, AIX nm treats
15917 # weak defined symbols like other global defined symbols, whereas
15918 # GNU nm marks them as "W".
15919 # While the 'weak' keyword is ignored in the Export File, we need
15920 # it in the Import File for the 'aix-soname' feature, so we have
15921 # to replace the "-B" option with "-P" for AIX nm.
15922 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15923 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'
15924 else
15925 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'
15926 fi
15927 ;;
15928 pw32*)
15929 export_symbols_cmds_CXX=$ltdll_cmds
15930 ;;
15931 cygwin* | mingw* | cegcc*)
15932 case $cc_basename in
15933 cl* | icl*)
15934 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15935 ;;
15936 *)
15937 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'
15938 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15939 ;;
15940 esac
15941 ;;
15942 *)
15943 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15944 ;;
15945 esac
15946
15947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15948 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15949 test no = "$ld_shlibs_CXX" && can_build_shared=no
15950
15951 with_gnu_ld_CXX=$with_gnu_ld
15952
15953
15954
15955
15956
15957
15958 #
15959 # Do we need to explicitly link libc?
15960 #
15961 case "x$archive_cmds_need_lc_CXX" in
15962 x|xyes)
15963 # Assume -lc should be added
15964 archive_cmds_need_lc_CXX=yes
15965
15966 if test yes,yes = "$GCC,$enable_shared"; then
15967 case $archive_cmds_CXX in
15968 *'~'*)
15969 # FIXME: we may have to deal with multi-command sequences.
15970 ;;
15971 '$CC '*)
15972 # Test whether the compiler implicitly links with -lc since on some
15973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15974 # to ld, don't add -lc before -lgcc.
15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15976 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15977 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
15978 then :
15979 printf %s "(cached) " >&6
15980 else $as_nop
15981 $RM conftest*
15982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15983
15984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15985 (eval $ac_compile) 2>&5
15986 ac_status=$?
15987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15988 test $ac_status = 0; } 2>conftest.err; then
15989 soname=conftest
15990 lib=conftest
15991 libobjs=conftest.$ac_objext
15992 deplibs=
15993 wl=$lt_prog_compiler_wl_CXX
15994 pic_flag=$lt_prog_compiler_pic_CXX
15995 compiler_flags=-v
15996 linker_flags=-v
15997 verstring=
15998 output_objdir=.
15999 libname=conftest
16000 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16001 allow_undefined_flag_CXX=
16002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16003 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16004 ac_status=$?
16005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16006 test $ac_status = 0; }
16007 then
16008 lt_cv_archive_cmds_need_lc_CXX=no
16009 else
16010 lt_cv_archive_cmds_need_lc_CXX=yes
16011 fi
16012 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16013 else
16014 cat conftest.err 1>&5
16015 fi
16016 $RM conftest*
16017
16018 fi
16019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16020 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16021 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16022 ;;
16023 esac
16024 fi
16025 ;;
16026 esac
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16090 printf %s "checking dynamic linker characteristics... " >&6; }
16091
16092 library_names_spec=
16093 libname_spec='lib$name'
16094 soname_spec=
16095 shrext_cmds=.so
16096 postinstall_cmds=
16097 postuninstall_cmds=
16098 finish_cmds=
16099 finish_eval=
16100 shlibpath_var=
16101 shlibpath_overrides_runpath=unknown
16102 version_type=none
16103 dynamic_linker="$host_os ld.so"
16104 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16105 need_lib_prefix=unknown
16106 hardcode_into_libs=no
16107
16108 # when you set need_version to no, make sure it does not cause -set_version
16109 # flags to be left without arguments
16110 need_version=unknown
16111
16112
16113
16114 case $host_os in
16115 aix3*)
16116 version_type=linux # correct to gnu/linux during the next big refactor
16117 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16118 shlibpath_var=LIBPATH
16119
16120 # AIX 3 has no versioning support, so we append a major version to the name.
16121 soname_spec='$libname$release$shared_ext$major'
16122 ;;
16123
16124 aix[4-9]*)
16125 version_type=linux # correct to gnu/linux during the next big refactor
16126 need_lib_prefix=no
16127 need_version=no
16128 hardcode_into_libs=yes
16129 if test ia64 = "$host_cpu"; then
16130 # AIX 5 supports IA64
16131 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 else
16134 # With GCC up to 2.95.x, collect2 would create an import file
16135 # for dependence libraries. The import file would start with
16136 # the line '#! .'. This would cause the generated library to
16137 # depend on '.', always an invalid library. This was fixed in
16138 # development snapshots of GCC prior to 3.0.
16139 case $host_os in
16140 aix4 | aix4.[01] | aix4.[01].*)
16141 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16142 echo ' yes '
16143 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16144 :
16145 else
16146 can_build_shared=no
16147 fi
16148 ;;
16149 esac
16150 # Using Import Files as archive members, it is possible to support
16151 # filename-based versioning of shared library archives on AIX. While
16152 # this would work for both with and without runtime linking, it will
16153 # prevent static linking of such archives. So we do filename-based
16154 # shared library versioning with .so extension only, which is used
16155 # when both runtime linking and shared linking is enabled.
16156 # Unfortunately, runtime linking may impact performance, so we do
16157 # not want this to be the default eventually. Also, we use the
16158 # versioned .so libs for executables only if there is the -brtl
16159 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16160 # To allow for filename-based versioning support, we need to create
16161 # libNAME.so.V as an archive file, containing:
16162 # *) an Import File, referring to the versioned filename of the
16163 # archive as well as the shared archive member, telling the
16164 # bitwidth (32 or 64) of that shared object, and providing the
16165 # list of exported symbols of that shared object, eventually
16166 # decorated with the 'weak' keyword
16167 # *) the shared object with the F_LOADONLY flag set, to really avoid
16168 # it being seen by the linker.
16169 # At run time we better use the real file rather than another symlink,
16170 # but for link time we create the symlink libNAME.so -> libNAME.so.V
16171
16172 case $with_aix_soname,$aix_use_runtimelinking in
16173 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16174 # soname into executable. Probably we can add versioning support to
16175 # collect2, so additional links can be useful in future.
16176 aix,yes) # traditional libtool
16177 dynamic_linker='AIX unversionable lib.so'
16178 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16179 # instead of lib<name>.a to let people know that these are not
16180 # typical AIX shared libraries.
16181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16182 ;;
16183 aix,no) # traditional AIX only
16184 dynamic_linker='AIX lib.a(lib.so.V)'
16185 # We preserve .a as extension for shared libraries through AIX4.2
16186 # and later when we are not doing run time linking.
16187 library_names_spec='$libname$release.a $libname.a'
16188 soname_spec='$libname$release$shared_ext$major'
16189 ;;
16190 svr4,*) # full svr4 only
16191 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16192 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16193 # We do not specify a path in Import Files, so LIBPATH fires.
16194 shlibpath_overrides_runpath=yes
16195 ;;
16196 *,yes) # both, prefer svr4
16197 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16198 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16199 # unpreferred sharedlib libNAME.a needs extra handling
16200 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"'
16201 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"'
16202 # We do not specify a path in Import Files, so LIBPATH fires.
16203 shlibpath_overrides_runpath=yes
16204 ;;
16205 *,no) # both, prefer aix
16206 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16207 library_names_spec='$libname$release.a $libname.a'
16208 soname_spec='$libname$release$shared_ext$major'
16209 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16210 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)'
16211 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"'
16212 ;;
16213 esac
16214 shlibpath_var=LIBPATH
16215 fi
16216 ;;
16217
16218 amigaos*)
16219 case $host_cpu in
16220 powerpc)
16221 # Since July 2007 AmigaOS4 officially supports .so libraries.
16222 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16224 ;;
16225 m68k)
16226 library_names_spec='$libname.ixlibrary $libname.a'
16227 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16228 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'
16229 ;;
16230 esac
16231 ;;
16232
16233 beos*)
16234 library_names_spec='$libname$shared_ext'
16235 dynamic_linker="$host_os ld.so"
16236 shlibpath_var=LIBRARY_PATH
16237 ;;
16238
16239 bsdi[45]*)
16240 version_type=linux # correct to gnu/linux during the next big refactor
16241 need_version=no
16242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16243 soname_spec='$libname$release$shared_ext$major'
16244 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16245 shlibpath_var=LD_LIBRARY_PATH
16246 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16247 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16248 # the default ld.so.conf also contains /usr/contrib/lib and
16249 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16250 # libtool to hard-code these into programs
16251 ;;
16252
16253 cygwin* | mingw* | pw32* | cegcc*)
16254 version_type=windows
16255 shrext_cmds=.dll
16256 need_version=no
16257 need_lib_prefix=no
16258
16259 case $GCC,$cc_basename in
16260 yes,*)
16261 # gcc
16262 library_names_spec='$libname.dll.a'
16263 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16264 postinstall_cmds='base_file=`basename \$file`~
16265 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16266 dldir=$destdir/`dirname \$dlpath`~
16267 test -d \$dldir || mkdir -p \$dldir~
16268 $install_prog $dir/$dlname \$dldir/$dlname~
16269 chmod a+x \$dldir/$dlname~
16270 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16271 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16272 fi'
16273 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16274 dlpath=$dir/\$dldll~
16275 $RM \$dlpath'
16276 shlibpath_overrides_runpath=yes
16277
16278 case $host_os in
16279 cygwin*)
16280 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16281 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16282
16283 ;;
16284 mingw* | cegcc*)
16285 # MinGW DLLs use traditional 'lib' prefix
16286 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16287 ;;
16288 pw32*)
16289 # pw32 DLLs use 'pw' prefix rather than 'lib'
16290 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16291 ;;
16292 esac
16293 dynamic_linker='Win32 ld.exe'
16294 ;;
16295
16296 *,cl* | *,icl*)
16297 # Native MSVC or ICC
16298 libname_spec='$name'
16299 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16300 library_names_spec='$libname.dll.lib'
16301
16302 case $build_os in
16303 mingw*)
16304 sys_lib_search_path_spec=
16305 lt_save_ifs=$IFS
16306 IFS=';'
16307 for lt_path in $LIB
16308 do
16309 IFS=$lt_save_ifs
16310 # Let DOS variable expansion print the short 8.3 style file name.
16311 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16312 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16313 done
16314 IFS=$lt_save_ifs
16315 # Convert to MSYS style.
16316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16317 ;;
16318 cygwin*)
16319 # Convert to unix form, then to dos form, then back to unix form
16320 # but this time dos style (no spaces!) so that the unix form looks
16321 # like /cygdrive/c/PROGRA~1:/cygdr...
16322 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16323 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16324 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16325 ;;
16326 *)
16327 sys_lib_search_path_spec=$LIB
16328 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16329 # It is most probably a Windows format PATH.
16330 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16331 else
16332 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16333 fi
16334 # FIXME: find the short name or the path components, as spaces are
16335 # common. (e.g. "Program Files" -> "PROGRA~1")
16336 ;;
16337 esac
16338
16339 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16340 postinstall_cmds='base_file=`basename \$file`~
16341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16342 dldir=$destdir/`dirname \$dlpath`~
16343 test -d \$dldir || mkdir -p \$dldir~
16344 $install_prog $dir/$dlname \$dldir/$dlname'
16345 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16346 dlpath=$dir/\$dldll~
16347 $RM \$dlpath'
16348 shlibpath_overrides_runpath=yes
16349 dynamic_linker='Win32 link.exe'
16350 ;;
16351
16352 *)
16353 # Assume MSVC and ICC wrapper
16354 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16355 dynamic_linker='Win32 ld.exe'
16356 ;;
16357 esac
16358 # FIXME: first we should search . and the directory the executable is in
16359 shlibpath_var=PATH
16360 ;;
16361
16362 darwin* | rhapsody*)
16363 dynamic_linker="$host_os dyld"
16364 version_type=darwin
16365 need_lib_prefix=no
16366 need_version=no
16367 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16368 soname_spec='$libname$release$major$shared_ext'
16369 shlibpath_overrides_runpath=yes
16370 shlibpath_var=DYLD_LIBRARY_PATH
16371 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16372
16373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16374 ;;
16375
16376 dgux*)
16377 version_type=linux # correct to gnu/linux during the next big refactor
16378 need_lib_prefix=no
16379 need_version=no
16380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16381 soname_spec='$libname$release$shared_ext$major'
16382 shlibpath_var=LD_LIBRARY_PATH
16383 ;;
16384
16385 freebsd* | dragonfly* | midnightbsd*)
16386 # DragonFly does not have aout. When/if they implement a new
16387 # versioning mechanism, adjust this.
16388 if test -x /usr/bin/objformat; then
16389 objformat=`/usr/bin/objformat`
16390 else
16391 case $host_os in
16392 freebsd[23].*) objformat=aout ;;
16393 *) objformat=elf ;;
16394 esac
16395 fi
16396 version_type=freebsd-$objformat
16397 case $version_type in
16398 freebsd-elf*)
16399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16400 soname_spec='$libname$release$shared_ext$major'
16401 need_version=no
16402 need_lib_prefix=no
16403 ;;
16404 freebsd-*)
16405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16406 need_version=yes
16407 ;;
16408 esac
16409 shlibpath_var=LD_LIBRARY_PATH
16410 case $host_os in
16411 freebsd2.*)
16412 shlibpath_overrides_runpath=yes
16413 ;;
16414 freebsd3.[01]* | freebsdelf3.[01]*)
16415 shlibpath_overrides_runpath=yes
16416 hardcode_into_libs=yes
16417 ;;
16418 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16419 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16420 shlibpath_overrides_runpath=no
16421 hardcode_into_libs=yes
16422 ;;
16423 *) # from 4.6 on, and DragonFly
16424 shlibpath_overrides_runpath=yes
16425 hardcode_into_libs=yes
16426 ;;
16427 esac
16428 ;;
16429
16430 haiku*)
16431 version_type=linux # correct to gnu/linux during the next big refactor
16432 need_lib_prefix=no
16433 need_version=no
16434 dynamic_linker="$host_os runtime_loader"
16435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16436 soname_spec='$libname$release$shared_ext$major'
16437 shlibpath_var=LIBRARY_PATH
16438 shlibpath_overrides_runpath=no
16439 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16440 hardcode_into_libs=yes
16441 ;;
16442
16443 hpux9* | hpux10* | hpux11*)
16444 # Give a soname corresponding to the major version so that dld.sl refuses to
16445 # link against other versions.
16446 version_type=sunos
16447 need_lib_prefix=no
16448 need_version=no
16449 case $host_cpu in
16450 ia64*)
16451 shrext_cmds='.so'
16452 hardcode_into_libs=yes
16453 dynamic_linker="$host_os dld.so"
16454 shlibpath_var=LD_LIBRARY_PATH
16455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16457 soname_spec='$libname$release$shared_ext$major'
16458 if test 32 = "$HPUX_IA64_MODE"; then
16459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16460 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16461 else
16462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16463 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16464 fi
16465 ;;
16466 hppa*64*)
16467 shrext_cmds='.sl'
16468 hardcode_into_libs=yes
16469 dynamic_linker="$host_os dld.sl"
16470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16473 soname_spec='$libname$release$shared_ext$major'
16474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16476 ;;
16477 *)
16478 shrext_cmds='.sl'
16479 dynamic_linker="$host_os dld.sl"
16480 shlibpath_var=SHLIB_PATH
16481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16483 soname_spec='$libname$release$shared_ext$major'
16484 ;;
16485 esac
16486 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16487 postinstall_cmds='chmod 555 $lib'
16488 # or fails outright, so override atomically:
16489 install_override_mode=555
16490 ;;
16491
16492 interix[3-9]*)
16493 version_type=linux # correct to gnu/linux during the next big refactor
16494 need_lib_prefix=no
16495 need_version=no
16496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16497 soname_spec='$libname$release$shared_ext$major'
16498 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16499 shlibpath_var=LD_LIBRARY_PATH
16500 shlibpath_overrides_runpath=no
16501 hardcode_into_libs=yes
16502 ;;
16503
16504 irix5* | irix6* | nonstopux*)
16505 case $host_os in
16506 nonstopux*) version_type=nonstopux ;;
16507 *)
16508 if test yes = "$lt_cv_prog_gnu_ld"; then
16509 version_type=linux # correct to gnu/linux during the next big refactor
16510 else
16511 version_type=irix
16512 fi ;;
16513 esac
16514 need_lib_prefix=no
16515 need_version=no
16516 soname_spec='$libname$release$shared_ext$major'
16517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16518 case $host_os in
16519 irix5* | nonstopux*)
16520 libsuff= shlibsuff=
16521 ;;
16522 *)
16523 case $LD in # libtool.m4 will add one of these switches to LD
16524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16525 libsuff= shlibsuff= libmagic=32-bit;;
16526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16527 libsuff=32 shlibsuff=N32 libmagic=N32;;
16528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16529 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16530 *) libsuff= shlibsuff= libmagic=never-match;;
16531 esac
16532 ;;
16533 esac
16534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16535 shlibpath_overrides_runpath=no
16536 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16537 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16538 hardcode_into_libs=yes
16539 ;;
16540
16541 # No shared lib support for Linux oldld, aout, or coff.
16542 linux*oldld* | linux*aout* | linux*coff*)
16543 dynamic_linker=no
16544 ;;
16545
16546 linux*android*)
16547 version_type=none # Android doesn't support versioned libraries.
16548 need_lib_prefix=no
16549 need_version=no
16550 library_names_spec='$libname$release$shared_ext'
16551 soname_spec='$libname$release$shared_ext'
16552 finish_cmds=
16553 shlibpath_var=LD_LIBRARY_PATH
16554 shlibpath_overrides_runpath=yes
16555
16556 # This implies no fast_install, which is unacceptable.
16557 # Some rework will be needed to allow for fast_install
16558 # before this can be enabled.
16559 hardcode_into_libs=yes
16560
16561 dynamic_linker='Android linker'
16562 # Don't embed -rpath directories since the linker doesn't support them.
16563 hardcode_libdir_flag_spec_CXX='-L$libdir'
16564 ;;
16565
16566 # This must be glibc/ELF.
16567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16568 version_type=linux # correct to gnu/linux during the next big refactor
16569 need_lib_prefix=no
16570 need_version=no
16571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16572 soname_spec='$libname$release$shared_ext$major'
16573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16574 shlibpath_var=LD_LIBRARY_PATH
16575 shlibpath_overrides_runpath=no
16576
16577 # Some binutils ld are patched to set DT_RUNPATH
16578 if test ${lt_cv_shlibpath_overrides_runpath+y}
16579 then :
16580 printf %s "(cached) " >&6
16581 else $as_nop
16582 lt_cv_shlibpath_overrides_runpath=no
16583 save_LDFLAGS=$LDFLAGS
16584 save_libdir=$libdir
16585 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16586 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16589
16590 int
16591 main (void)
16592 {
16593
16594 ;
16595 return 0;
16596 }
16597 _ACEOF
16598 if ac_fn_cxx_try_link "$LINENO"
16599 then :
16600 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16601 then :
16602 lt_cv_shlibpath_overrides_runpath=yes
16603 fi
16604 fi
16605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16606 conftest$ac_exeext conftest.$ac_ext
16607 LDFLAGS=$save_LDFLAGS
16608 libdir=$save_libdir
16609
16610 fi
16611
16612 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16613
16614 # This implies no fast_install, which is unacceptable.
16615 # Some rework will be needed to allow for fast_install
16616 # before this can be enabled.
16617 hardcode_into_libs=yes
16618
16619 # Add ABI-specific directories to the system library path.
16620 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16621
16622 # Ideally, we could use ldconfig to report *all* directores which are
16623 # searched for libraries, however this is still not possible. Aside from not
16624 # being certain /sbin/ldconfig is available, command
16625 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16626 # even though it is searched at run-time. Try to do the best guess by
16627 # appending ld.so.conf contents (and includes) to the search path.
16628 if test -f /etc/ld.so.conf; then
16629 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' ' '`
16630 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16631 fi
16632
16633 # We used to test for /lib/ld.so.1 and disable shared libraries on
16634 # powerpc, because MkLinux only supported shared libraries with the
16635 # GNU dynamic linker. Since this was broken with cross compilers,
16636 # most powerpc-linux boxes support dynamic linking these days and
16637 # people can always --disable-shared, the test was removed, and we
16638 # assume the GNU/Linux dynamic linker is in use.
16639 dynamic_linker='GNU/Linux ld.so'
16640 ;;
16641
16642 netbsd*)
16643 version_type=sunos
16644 need_lib_prefix=no
16645 need_version=no
16646 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16647 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16649 dynamic_linker='NetBSD (a.out) ld.so'
16650 else
16651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16652 soname_spec='$libname$release$shared_ext$major'
16653 dynamic_linker='NetBSD ld.elf_so'
16654 fi
16655 shlibpath_var=LD_LIBRARY_PATH
16656 shlibpath_overrides_runpath=yes
16657 hardcode_into_libs=yes
16658 ;;
16659
16660 newsos6)
16661 version_type=linux # correct to gnu/linux during the next big refactor
16662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16663 shlibpath_var=LD_LIBRARY_PATH
16664 shlibpath_overrides_runpath=yes
16665 ;;
16666
16667 *nto* | *qnx*)
16668 version_type=qnx
16669 need_lib_prefix=no
16670 need_version=no
16671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16672 soname_spec='$libname$release$shared_ext$major'
16673 shlibpath_var=LD_LIBRARY_PATH
16674 shlibpath_overrides_runpath=no
16675 hardcode_into_libs=yes
16676 dynamic_linker='ldqnx.so'
16677 ;;
16678
16679 openbsd* | bitrig*)
16680 version_type=sunos
16681 sys_lib_dlsearch_path_spec=/usr/lib
16682 need_lib_prefix=no
16683 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16684 need_version=no
16685 else
16686 need_version=yes
16687 fi
16688 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16690 shlibpath_var=LD_LIBRARY_PATH
16691 shlibpath_overrides_runpath=yes
16692 ;;
16693
16694 os2*)
16695 libname_spec='$name'
16696 version_type=windows
16697 shrext_cmds=.dll
16698 need_version=no
16699 need_lib_prefix=no
16700 # OS/2 can only load a DLL with a base name of 8 characters or less.
16701 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16702 v=$($ECHO $release$versuffix | tr -d .-);
16703 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16704 $ECHO $n$v`$shared_ext'
16705 library_names_spec='${libname}_dll.$libext'
16706 dynamic_linker='OS/2 ld.exe'
16707 shlibpath_var=BEGINLIBPATH
16708 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16710 postinstall_cmds='base_file=`basename \$file`~
16711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16712 dldir=$destdir/`dirname \$dlpath`~
16713 test -d \$dldir || mkdir -p \$dldir~
16714 $install_prog $dir/$dlname \$dldir/$dlname~
16715 chmod a+x \$dldir/$dlname~
16716 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16717 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16718 fi'
16719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16720 dlpath=$dir/\$dldll~
16721 $RM \$dlpath'
16722 ;;
16723
16724 osf3* | osf4* | osf5*)
16725 version_type=osf
16726 need_lib_prefix=no
16727 need_version=no
16728 soname_spec='$libname$release$shared_ext$major'
16729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16730 shlibpath_var=LD_LIBRARY_PATH
16731 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16733 ;;
16734
16735 rdos*)
16736 dynamic_linker=no
16737 ;;
16738
16739 solaris*)
16740 version_type=linux # correct to gnu/linux during the next big refactor
16741 need_lib_prefix=no
16742 need_version=no
16743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16744 soname_spec='$libname$release$shared_ext$major'
16745 shlibpath_var=LD_LIBRARY_PATH
16746 shlibpath_overrides_runpath=yes
16747 hardcode_into_libs=yes
16748 # ldd complains unless libraries are executable
16749 postinstall_cmds='chmod +x $lib'
16750 ;;
16751
16752 sunos4*)
16753 version_type=sunos
16754 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16755 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16756 shlibpath_var=LD_LIBRARY_PATH
16757 shlibpath_overrides_runpath=yes
16758 if test yes = "$with_gnu_ld"; then
16759 need_lib_prefix=no
16760 fi
16761 need_version=yes
16762 ;;
16763
16764 sysv4 | sysv4.3*)
16765 version_type=linux # correct to gnu/linux during the next big refactor
16766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16767 soname_spec='$libname$release$shared_ext$major'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 case $host_vendor in
16770 sni)
16771 shlibpath_overrides_runpath=no
16772 need_lib_prefix=no
16773 runpath_var=LD_RUN_PATH
16774 ;;
16775 siemens)
16776 need_lib_prefix=no
16777 ;;
16778 motorola)
16779 need_lib_prefix=no
16780 need_version=no
16781 shlibpath_overrides_runpath=no
16782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16783 ;;
16784 esac
16785 ;;
16786
16787 sysv4*MP*)
16788 if test -d /usr/nec; then
16789 version_type=linux # correct to gnu/linux during the next big refactor
16790 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16791 soname_spec='$libname$shared_ext.$major'
16792 shlibpath_var=LD_LIBRARY_PATH
16793 fi
16794 ;;
16795
16796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16797 version_type=sco
16798 need_lib_prefix=no
16799 need_version=no
16800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16801 soname_spec='$libname$release$shared_ext$major'
16802 shlibpath_var=LD_LIBRARY_PATH
16803 shlibpath_overrides_runpath=yes
16804 hardcode_into_libs=yes
16805 if test yes = "$with_gnu_ld"; then
16806 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16807 else
16808 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16809 case $host_os in
16810 sco3.2v5*)
16811 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16812 ;;
16813 esac
16814 fi
16815 sys_lib_dlsearch_path_spec='/usr/lib'
16816 ;;
16817
16818 tpf*)
16819 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16820 version_type=linux # correct to gnu/linux during the next big refactor
16821 need_lib_prefix=no
16822 need_version=no
16823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16824 shlibpath_var=LD_LIBRARY_PATH
16825 shlibpath_overrides_runpath=no
16826 hardcode_into_libs=yes
16827 ;;
16828
16829 uts4*)
16830 version_type=linux # correct to gnu/linux during the next big refactor
16831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16832 soname_spec='$libname$release$shared_ext$major'
16833 shlibpath_var=LD_LIBRARY_PATH
16834 ;;
16835
16836 *)
16837 dynamic_linker=no
16838 ;;
16839 esac
16840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16841 printf "%s\n" "$dynamic_linker" >&6; }
16842 test no = "$dynamic_linker" && can_build_shared=no
16843
16844 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16845 if test yes = "$GCC"; then
16846 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16847 fi
16848
16849 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16850 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16851 fi
16852
16853 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16854 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16855 fi
16856
16857 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16858 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16859
16860 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16861 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16862
16863 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16864 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16906 printf %s "checking how to hardcode library paths into programs... " >&6; }
16907 hardcode_action_CXX=
16908 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16909 test -n "$runpath_var_CXX" ||
16910 test yes = "$hardcode_automatic_CXX"; then
16911
16912 # We can hardcode non-existent directories.
16913 if test no != "$hardcode_direct_CXX" &&
16914 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16915 # have to relink, otherwise we might link with an installed library
16916 # when we should be linking with a yet-to-be-installed one
16917 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16918 test no != "$hardcode_minus_L_CXX"; then
16919 # Linking always hardcodes the temporary library directory.
16920 hardcode_action_CXX=relink
16921 else
16922 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16923 hardcode_action_CXX=immediate
16924 fi
16925 else
16926 # We cannot hardcode anything, or else we can only hardcode existing
16927 # directories.
16928 hardcode_action_CXX=unsupported
16929 fi
16930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16931 printf "%s\n" "$hardcode_action_CXX" >&6; }
16932
16933 if test relink = "$hardcode_action_CXX" ||
16934 test yes = "$inherit_rpath_CXX"; then
16935 # Fast installation is not supported
16936 enable_fast_install=no
16937 elif test yes = "$shlibpath_overrides_runpath" ||
16938 test no = "$enable_shared"; then
16939 # Fast installation is not necessary
16940 enable_fast_install=needless
16941 fi
16942
16943
16944
16945
16946
16947
16948
16949 fi # test -n "$compiler"
16950
16951 CC=$lt_save_CC
16952 CFLAGS=$lt_save_CFLAGS
16953 LDCXX=$LD
16954 LD=$lt_save_LD
16955 GCC=$lt_save_GCC
16956 with_gnu_ld=$lt_save_with_gnu_ld
16957 lt_cv_path_LDCXX=$lt_cv_path_LD
16958 lt_cv_path_LD=$lt_save_path_LD
16959 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16960 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16961 fi # test yes != "$_lt_caught_CXX_error"
16962
16963 ac_ext=c
16964 ac_cpp='$CPP $CPPFLAGS'
16965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983 ac_config_commands="$ac_config_commands libtool"
16984
16985
16986
16987
16988 # Only expand once:
16989
16990
16991
16992
16993 for ac_prog in 'bison -y' byacc
16994 do
16995 # Extract the first word of "$ac_prog", so it can be a program name with args.
16996 set dummy $ac_prog; ac_word=$2
16997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16998 printf %s "checking for $ac_word... " >&6; }
16999 if test ${ac_cv_prog_YACC+y}
17000 then :
17001 printf %s "(cached) " >&6
17002 else $as_nop
17003 if test -n "$YACC"; then
17004 ac_cv_prog_YACC="$YACC" # Let the user override the test.
17005 else
17006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17007 for as_dir in $PATH
17008 do
17009 IFS=$as_save_IFS
17010 case $as_dir in #(((
17011 '') as_dir=./ ;;
17012 */) ;;
17013 *) as_dir=$as_dir/ ;;
17014 esac
17015 for ac_exec_ext in '' $ac_executable_extensions; do
17016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17017 ac_cv_prog_YACC="$ac_prog"
17018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17019 break 2
17020 fi
17021 done
17022 done
17023 IFS=$as_save_IFS
17024
17025 fi
17026 fi
17027 YACC=$ac_cv_prog_YACC
17028 if test -n "$YACC"; then
17029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
17030 printf "%s\n" "$YACC" >&6; }
17031 else
17032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033 printf "%s\n" "no" >&6; }
17034 fi
17035
17036
17037 test -n "$YACC" && break
17038 done
17039 test -n "$YACC" || YACC="yacc"
17040
17041 yacc_version=$($YACC --version 2> /dev/null|head -1|sed 's/[^0-9]\+//')
17042 if test "x$yacc_version" != "x"; then
17043 yacc_major=$(echo $yacc_version|cut -d. -f1)
17044 yacc_minor=$(echo $yacc_version|cut -d. -f2)
17045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: yacc is \"$YACC\" version is $yacc_major.$yacc_minor" >&5
17046 printf "%s\n" "$as_me: yacc is \"$YACC\" version is $yacc_major.$yacc_minor" >&6;}
17047 else
17048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: yacc is \"$YACC\" version is unknown" >&5
17049 printf "%s\n" "$as_me: yacc is \"$YACC\" version is unknown" >&6;}
17050 fi
17051
17052
17053 for ac_prog in flex lex
17054 do
17055 # Extract the first word of "$ac_prog", so it can be a program name with args.
17056 set dummy $ac_prog; ac_word=$2
17057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17058 printf %s "checking for $ac_word... " >&6; }
17059 if test ${ac_cv_prog_LEX+y}
17060 then :
17061 printf %s "(cached) " >&6
17062 else $as_nop
17063 if test -n "$LEX"; then
17064 ac_cv_prog_LEX="$LEX" # Let the user override the test.
17065 else
17066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17067 for as_dir in $PATH
17068 do
17069 IFS=$as_save_IFS
17070 case $as_dir in #(((
17071 '') as_dir=./ ;;
17072 */) ;;
17073 *) as_dir=$as_dir/ ;;
17074 esac
17075 for ac_exec_ext in '' $ac_executable_extensions; do
17076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17077 ac_cv_prog_LEX="$ac_prog"
17078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17079 break 2
17080 fi
17081 done
17082 done
17083 IFS=$as_save_IFS
17084
17085 fi
17086 fi
17087 LEX=$ac_cv_prog_LEX
17088 if test -n "$LEX"; then
17089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
17090 printf "%s\n" "$LEX" >&6; }
17091 else
17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17093 printf "%s\n" "no" >&6; }
17094 fi
17095
17096
17097 test -n "$LEX" && break
17098 done
17099 test -n "$LEX" || LEX=":"
17100
17101 if test "x$LEX" != "x:"; then
17102 cat >conftest.l <<_ACEOF
17103 %{
17104 #ifdef __cplusplus
17105 extern "C"
17106 #endif
17107 int yywrap(void);
17108 %}
17109 %%
17110 a { ECHO; }
17111 b { REJECT; }
17112 c { yymore (); }
17113 d { yyless (1); }
17114 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
17115 #ifdef __cplusplus
17116 yyless ((yyinput () != 0));
17117 #else
17118 yyless ((input () != 0));
17119 #endif
17120 }
17121 f { unput (yytext[0]); }
17122 . { BEGIN INITIAL; }
17123 %%
17124 #ifdef YYTEXT_POINTER
17125 extern char *yytext;
17126 #endif
17127 int
17128 yywrap (void)
17129 {
17130 return 1;
17131 }
17132 int
17133 main (void)
17134 {
17135 return ! yylex ();
17136 }
17137 _ACEOF
17138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
17139 printf %s "checking for lex output file root... " >&6; }
17140 if test ${ac_cv_prog_lex_root+y}
17141 then :
17142 printf %s "(cached) " >&6
17143 else $as_nop
17144
17145 ac_cv_prog_lex_root=unknown
17146 { { ac_try="$LEX conftest.l"
17147 case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17150 esac
17151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17152 printf "%s\n" "$ac_try_echo"; } >&5
17153 (eval "$LEX conftest.l") 2>&5
17154 ac_status=$?
17155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17156 test $ac_status = 0; } &&
17157 if test -f lex.yy.c; then
17158 ac_cv_prog_lex_root=lex.yy
17159 elif test -f lexyy.c; then
17160 ac_cv_prog_lex_root=lexyy
17161 fi
17162 fi
17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
17164 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
17165 if test "$ac_cv_prog_lex_root" = unknown
17166 then :
17167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
17168 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
17169 LEX=: LEXLIB=
17170 fi
17171 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
17172
17173 if test ${LEXLIB+y}
17174 then :
17175
17176 else $as_nop
17177
17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
17179 printf %s "checking for lex library... " >&6; }
17180 if test ${ac_cv_lib_lex+y}
17181 then :
17182 printf %s "(cached) " >&6
17183 else $as_nop
17184
17185 ac_save_LIBS="$LIBS"
17186 ac_found=false
17187 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
17188 case $ac_cv_lib_lex in #(
17189 'none needed') :
17190 ;; #(
17191 'not found') :
17192 break ;; #(
17193 *) :
17194 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
17195 *) :
17196 ;;
17197 esac
17198
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17201 `cat $LEX_OUTPUT_ROOT.c`
17202 _ACEOF
17203 if ac_fn_c_try_link "$LINENO"
17204 then :
17205 ac_found=:
17206 fi
17207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17208 conftest$ac_exeext conftest.$ac_ext
17209 if $ac_found; then
17210 break
17211 fi
17212 done
17213 LIBS="$ac_save_LIBS"
17214
17215 fi
17216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
17217 printf "%s\n" "$ac_cv_lib_lex" >&6; }
17218 if test "$ac_cv_lib_lex" = 'not found'
17219 then :
17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
17221 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
17222 LEX=: LEXLIB=
17223 elif test "$ac_cv_lib_lex" = 'none needed'
17224 then :
17225 LEXLIB=''
17226 else $as_nop
17227 LEXLIB=$ac_cv_lib_lex
17228 fi
17229 ac_save_LIBS="$LIBS"
17230 LIBS=
17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
17232 printf %s "checking for library containing yywrap... " >&6; }
17233 if test ${ac_cv_search_yywrap+y}
17234 then :
17235 printf %s "(cached) " >&6
17236 else $as_nop
17237 ac_func_search_save_LIBS=$LIBS
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239 /* end confdefs.h. */
17240
17241 /* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17244 char yywrap ();
17245 int
17246 main (void)
17247 {
17248 return yywrap ();
17249 ;
17250 return 0;
17251 }
17252 _ACEOF
17253 for ac_lib in '' fl l
17254 do
17255 if test -z "$ac_lib"; then
17256 ac_res="none required"
17257 else
17258 ac_res=-l$ac_lib
17259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17260 fi
17261 if ac_fn_c_try_link "$LINENO"
17262 then :
17263 ac_cv_search_yywrap=$ac_res
17264 fi
17265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17266 conftest$ac_exeext
17267 if test ${ac_cv_search_yywrap+y}
17268 then :
17269 break
17270 fi
17271 done
17272 if test ${ac_cv_search_yywrap+y}
17273 then :
17274
17275 else $as_nop
17276 ac_cv_search_yywrap=no
17277 fi
17278 rm conftest.$ac_ext
17279 LIBS=$ac_func_search_save_LIBS
17280 fi
17281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
17282 printf "%s\n" "$ac_cv_search_yywrap" >&6; }
17283 ac_res=$ac_cv_search_yywrap
17284 if test "$ac_res" != no
17285 then :
17286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17287 LEXLIB="$LIBS"
17288 fi
17289
17290 LIBS="$ac_save_LIBS"
17291 fi
17292
17293
17294 if test "$LEX" != :
17295 then :
17296
17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
17298 printf %s "checking whether yytext is a pointer... " >&6; }
17299 if test ${ac_cv_prog_lex_yytext_pointer+y}
17300 then :
17301 printf %s "(cached) " >&6
17302 else $as_nop
17303 # POSIX says lex can declare yytext either as a pointer or an array; the
17304 # default is implementation-dependent. Figure out which it is, since
17305 # not all implementations provide the %pointer and %array declarations.
17306 ac_cv_prog_lex_yytext_pointer=no
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17309
17310 #define YYTEXT_POINTER 1
17311 `cat $LEX_OUTPUT_ROOT.c`
17312 _ACEOF
17313 if ac_fn_c_try_compile "$LINENO"
17314 then :
17315 ac_cv_prog_lex_yytext_pointer=yes
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17318
17319 fi
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
17321 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
17322 if test $ac_cv_prog_lex_yytext_pointer = yes; then
17323
17324 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
17325
17326 fi
17327
17328 fi
17329 rm -f conftest.l $LEX_OUTPUT_ROOT.c
17330
17331 fi
17332 if test "$LEX" = :; then
17333 LEX=${am_missing_run}flex
17334 fi
17335 if test "$LEX"="flex"; then
17336 if $LEX -DTEST -V > /dev/null 2> /dev/null; then
17337 LEX_HAS_D_TRUE=
17338 LEX_HAS_D_FALSE='#'
17339 else
17340 LEX_HAS_D_TRUE='#'
17341 LEX_HAS_D_FALSE=
17342 fi
17343
17344 fi
17345
17346
17347 # Checks for libraries.
17348 # dlopen library
17349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17350 printf %s "checking for dlopen in -ldl... " >&6; }
17351 if test ${ac_cv_lib_dl_dlopen+y}
17352 then :
17353 printf %s "(cached) " >&6
17354 else $as_nop
17355 ac_check_lib_save_LIBS=$LIBS
17356 LIBS="-ldl $LIBS"
17357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h. */
17359
17360 /* Override any GCC internal prototype to avoid an error.
17361 Use char because int might match the return type of a GCC
17362 builtin and then its argument prototype would still apply. */
17363 char dlopen ();
17364 int
17365 main (void)
17366 {
17367 return dlopen ();
17368 ;
17369 return 0;
17370 }
17371 _ACEOF
17372 if ac_fn_c_try_link "$LINENO"
17373 then :
17374 ac_cv_lib_dl_dlopen=yes
17375 else $as_nop
17376 ac_cv_lib_dl_dlopen=no
17377 fi
17378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17379 conftest$ac_exeext conftest.$ac_ext
17380 LIBS=$ac_check_lib_save_LIBS
17381 fi
17382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17383 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
17384 if test "x$ac_cv_lib_dl_dlopen" = xyes
17385 then :
17386
17387 DL_LIBS=-ldl
17388
17389
17390 else $as_nop
17391
17392 as_fn_error $? "cannot find libdl" "$LINENO" 5
17393
17394 fi
17395
17396
17397 # Checks for header files.
17398 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
17399 if test "x$ac_cv_header_dlfcn_h" = xyes
17400 then :
17401 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
17402
17403 fi
17404 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17405 if test "x$ac_cv_header_stdlib_h" = xyes
17406 then :
17407 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
17408
17409 fi
17410 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
17411 if test "x$ac_cv_header_string_h" = xyes
17412 then :
17413 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
17414
17415 fi
17416 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
17417 if test "x$ac_cv_header_syslog_h" = xyes
17418 then :
17419 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
17420
17421 fi
17422 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17423 if test "x$ac_cv_header_unistd_h" = xyes
17424 then :
17425 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17426
17427 fi
17428
17429
17430 # Checks for typedefs, structures, and compiler characteristics.
17431 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17432 if test "x$ac_cv_type_size_t" = xyes
17433 then :
17434
17435 else $as_nop
17436
17437 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17438
17439 fi
17440
17441
17442 # Checks for library functions.
17443 ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
17444 if test "x$ac_cv_func_malloc" = xyes
17445 then :
17446 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
17447
17448 fi
17449 ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
17450 if test "x$ac_cv_func_realloc" = xyes
17451 then :
17452 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
17453
17454 fi
17455 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
17456 if test "x$ac_cv_func_setenv" = xyes
17457 then :
17458 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
17459
17460 fi
17461 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
17462 if test "x$ac_cv_func_strchr" = xyes
17463 then :
17464 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
17465
17466 fi
17467 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
17468 if test "x$ac_cv_func_strcspn" = xyes
17469 then :
17470 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
17471
17472 fi
17473 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17474 if test "x$ac_cv_func_strdup" = xyes
17475 then :
17476 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
17477
17478 fi
17479 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
17480 if test "x$ac_cv_func_strerror" = xyes
17481 then :
17482 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
17483
17484 fi
17485 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
17486 if test "x$ac_cv_func_strpbrk" = xyes
17487 then :
17488 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
17489
17490 fi
17491 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
17492 if test "x$ac_cv_func_strspn" = xyes
17493 then :
17494 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
17495
17496 fi
17497 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
17498 if test "x$ac_cv_func_strtol" = xyes
17499 then :
17500 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
17501
17502 fi
17503 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
17504 if test "x$ac_cv_func_getgrouplist" = xyes
17505 then :
17506 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
17507
17508 fi
17509
17510
17511
17512 # Building headers mode
17513 enable_headers_default=no
17514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable building header files only" >&5
17515 printf %s "checking whether to enable building header files only... " >&6; }
17516 # Check whether --enable-headers was given.
17517 if test ${enable_headers+y}
17518 then :
17519 enableval=$enable_headers; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_headers" >&5
17520 printf "%s\n" "$enable_headers" >&6; }
17521 else $as_nop
17522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_headers_default" >&5
17523 printf "%s\n" "$enable_headers_default" >&6; }
17524 enable_headers=$enable_headers_default
17525
17526
17527 fi
17528
17529
17530 # Building GLOBUS mode
17531 enable_gsi_mode_default=yes
17532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable GSI flavour" >&5
17533 printf %s "checking whether to enable GSI flavour... " >&6; }
17534 # Check whether --enable-gsi-mode was given.
17535 if test ${enable_gsi_mode+y}
17536 then :
17537 enableval=$enable_gsi_mode; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gsi_mode" >&5
17538 printf "%s\n" "$enable_gsi_mode" >&6; }
17539 else $as_nop
17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gsi_mode_default" >&5
17541 printf "%s\n" "$enable_gsi_mode_default" >&6; }
17542 enable_gsi_mode=$enable_gsi_mode_default
17543
17544
17545 fi
17546
17547
17548 # When building headers only
17549 if test "x$enable_headers" = "xyes"; then
17550 ENABLE_HEADERS_TRUE=
17551 ENABLE_HEADERS_FALSE='#'
17552 else
17553 ENABLE_HEADERS_TRUE='#'
17554 ENABLE_HEADERS_FALSE=
17555 fi
17556
17557
17558
17559 # Check whether --with-globus_prefix was given.
17560 if test ${with_globus_prefix+y}
17561 then :
17562 withval=$with_globus_prefix; ac_globus_prefix=$with_globus_prefix
17563 else $as_nop
17564 ac_globus_prefix=${GLOBUS_LOCATION:-}
17565 fi
17566
17567
17568
17569 # Check whether --with-globus_libdir was given.
17570 if test ${with_globus_libdir+y}
17571 then :
17572 withval=$with_globus_libdir; ac_globus_libdir=$with_globus_libdir
17573 fi
17574
17575
17576
17577 # Check whether --with-globus_flavor was given.
17578 if test ${with_globus_flavor+y}
17579 then :
17580 withval=$with_globus_flavor;
17581 else $as_nop
17582 with_globus_flavor=${GLOBUS_FLAVOR:-}
17583 fi
17584
17585
17586
17587 # Check whether --with-globus_thr_flavor was given.
17588 if test ${with_globus_thr_flavor+y}
17589 then :
17590 withval=$with_globus_thr_flavor;
17591 else $as_nop
17592 with_globus_thr_flavor=${GLOBUS_FLAVOR:-}
17593 fi
17594
17595
17596
17597 # Check whether --with-globus_nothr_flavor was given.
17598 if test ${with_globus_nothr_flavor+y}
17599 then :
17600 withval=$with_globus_nothr_flavor;
17601 else $as_nop
17602 with_globus_nothr_flavor=${GLOBUS_FLAVOR:-}
17603 fi
17604
17605
17606
17607 # Check whether --with-globus_flavorincdir was given.
17608 if test ${with_globus_flavorincdir+y}
17609 then :
17610 withval=$with_globus_flavorincdir; ac_globus_flavorincdir=$with_globus_flavorincdir
17611 else $as_nop
17612 with_globus_flavorincdir=${GLOBUS_FLAVOR:-}
17613 fi
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17731 if test -n "$ac_tool_prefix"; then
17732 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17733 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17735 printf %s "checking for $ac_word... " >&6; }
17736 if test ${ac_cv_path_PKG_CONFIG+y}
17737 then :
17738 printf %s "(cached) " >&6
17739 else $as_nop
17740 case $PKG_CONFIG in
17741 [\\/]* | ?:[\\/]*)
17742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17743 ;;
17744 *)
17745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17746 for as_dir in $PATH
17747 do
17748 IFS=$as_save_IFS
17749 case $as_dir in #(((
17750 '') as_dir=./ ;;
17751 */) ;;
17752 *) as_dir=$as_dir/ ;;
17753 esac
17754 for ac_exec_ext in '' $ac_executable_extensions; do
17755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17756 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17758 break 2
17759 fi
17760 done
17761 done
17762 IFS=$as_save_IFS
17763
17764 ;;
17765 esac
17766 fi
17767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17768 if test -n "$PKG_CONFIG"; then
17769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17770 printf "%s\n" "$PKG_CONFIG" >&6; }
17771 else
17772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17773 printf "%s\n" "no" >&6; }
17774 fi
17775
17776
17777 fi
17778 if test -z "$ac_cv_path_PKG_CONFIG"; then
17779 ac_pt_PKG_CONFIG=$PKG_CONFIG
17780 # Extract the first word of "pkg-config", so it can be a program name with args.
17781 set dummy pkg-config; ac_word=$2
17782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17783 printf %s "checking for $ac_word... " >&6; }
17784 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
17785 then :
17786 printf %s "(cached) " >&6
17787 else $as_nop
17788 case $ac_pt_PKG_CONFIG in
17789 [\\/]* | ?:[\\/]*)
17790 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17791 ;;
17792 *)
17793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17794 for as_dir in $PATH
17795 do
17796 IFS=$as_save_IFS
17797 case $as_dir in #(((
17798 '') as_dir=./ ;;
17799 */) ;;
17800 *) as_dir=$as_dir/ ;;
17801 esac
17802 for ac_exec_ext in '' $ac_executable_extensions; do
17803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17804 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
17805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17806 break 2
17807 fi
17808 done
17809 done
17810 IFS=$as_save_IFS
17811
17812 ;;
17813 esac
17814 fi
17815 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17816 if test -n "$ac_pt_PKG_CONFIG"; then
17817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17818 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
17819 else
17820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17821 printf "%s\n" "no" >&6; }
17822 fi
17823
17824 if test "x$ac_pt_PKG_CONFIG" = x; then
17825 PKG_CONFIG=""
17826 else
17827 case $cross_compiling:$ac_tool_warned in
17828 yes:)
17829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17830 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17831 ac_tool_warned=yes ;;
17832 esac
17833 PKG_CONFIG=$ac_pt_PKG_CONFIG
17834 fi
17835 else
17836 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17837 fi
17838
17839 fi
17840 if test -n "$PKG_CONFIG"; then
17841 _pkg_min_version=0.9.0
17842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17843 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17844 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17846 printf "%s\n" "yes" >&6; }
17847 else
17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849 printf "%s\n" "no" >&6; }
17850 PKG_CONFIG=""
17851 fi
17852 fi
17853 if test "x$enable_headers" = "xyes"
17854 then :
17855
17856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \"building headers only\"" >&5
17857 printf "%s\n" "$as_me: \"building headers only\"" >&6;}
17858
17859 LCMAPS_FLAVOUR=""
17860 LCMAPS_FLAVOUR_NAME=""
17861
17862
17863 printf "%s\n" "#define ENABLE_HEADERS 1" >>confdefs.h
17864
17865
17866 else $as_nop
17867
17868 # Find proper shared library extension
17869 eval SHREXT=$shrext_cmds
17870
17871
17872 # Configuration items
17873
17874 ac_config_files="$ac_config_files src/Makefile"
17875
17876 ac_config_files="$ac_config_files examples/Makefile"
17877
17878
17879 ac_config_files="$ac_config_files etc/Makefile"
17880
17881
17882
17883 printf "%s\n" "#define ENABLE_HEADERS 0" >>confdefs.h
17884
17885
17886 if test "x$enable_gsi_mode" = "xyes"
17887 then :
17888
17889 LCMAPS_FLAVOUR=""
17890 LCMAPS_FLAVOUR_NAME=""
17891
17892
17893 printf "%s\n" "#define LCMAPS_GSI_MODE 1" >>confdefs.h
17894
17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Creating GSI flavour of LCMAPS" >&5
17896 printf "%s\n" "Creating GSI flavour of LCMAPS" >&6; }
17897
17898 # not sure what canonical symbol we should check for here
17899 # NOTE: we should check for libcrypto, but presumably due to a clash
17900 # with globus linking explicitly against libcrypto leads to a segv...
17901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5
17902 printf %s "checking for X509_free in -lcrypto... " >&6; }
17903 if test ${ac_cv_lib_crypto_X509_free+y}
17904 then :
17905 printf %s "(cached) " >&6
17906 else $as_nop
17907 ac_check_lib_save_LIBS=$LIBS
17908 LIBS="-lcrypto $LIBS"
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17911
17912 /* Override any GCC internal prototype to avoid an error.
17913 Use char because int might match the return type of a GCC
17914 builtin and then its argument prototype would still apply. */
17915 char X509_free ();
17916 int
17917 main (void)
17918 {
17919 return X509_free ();
17920 ;
17921 return 0;
17922 }
17923 _ACEOF
17924 if ac_fn_c_try_link "$LINENO"
17925 then :
17926 ac_cv_lib_crypto_X509_free=yes
17927 else $as_nop
17928 ac_cv_lib_crypto_X509_free=no
17929 fi
17930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17931 conftest$ac_exeext conftest.$ac_ext
17932 LIBS=$ac_check_lib_save_LIBS
17933 fi
17934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5
17935 printf "%s\n" "$ac_cv_lib_crypto_X509_free" >&6; }
17936 if test "x$ac_cv_lib_crypto_X509_free" = xyes
17937 then :
17938
17939 CRYPTO_LIBS=-lcrypto
17940
17941
17942 else $as_nop
17943
17944 as_fn_error $? "cannot find libcrypto" "$LINENO" 5
17945
17946 fi
17947
17948
17949 # Check globus modules
17950
17951
17952
17953
17954
17955 if test "x$globus_tested" = "x"
17956 then :
17957
17958 globus_tested="yes"
17959
17960 if test "x$with_globus_thr_flavor" != "x" ; then
17961 if test "x$with_globus_nothr_flavor" != "x" -o
17962 test "x$with_globus_flavor" != "x" ; then
17963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17964 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17965 as_fn_error $? "Cannot build against multiple flavor types
17966 See \`config.log' for more details" "$LINENO" 5; }
17967 fi
17968 ac_globus_flavor=$with_globus_thr_flavor
17969 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
17970 elif test "x$with_globus_nothr_flavor" != "x" ; then
17971 if test "x$with_globus_flavor" != "x" ; then
17972 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17973 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17974 as_fn_error $? "Cannot build against multiple flavor types
17975 See \`config.log' for more details" "$LINENO" 5; }
17976 fi
17977 ac_globus_flavor=$with_globus_nothr_flavor
17978 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
17979 elif test "x$with_globus_flavor" != "x" ; then
17980 ac_globus_flavor=$with_globus_flavor
17981 GLOBUS_FLAVOR=$with_globus_flavor
17982 fi
17983
17984
17985
17986
17987 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
17988 ac_globus_prefix=/usr
17989 fi
17990
17991 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
17992 ac_globus_prefix=/opt/globus
17993 fi
17994
17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
17996 printf %s "checking for globus version... " >&6; }
17997 if test "x$ac_globus_prefix" = "x" ; then
17998 ac_globus_version_script=`which globus-version 2> /dev/null`
17999 else
18000 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
18001 fi
18002 if test "x$ac_globus_version_script" != "x" ; then
18003 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
18004 fi
18005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
18006 printf "%s\n" "$ac_globus_version" >&6; }
18007
18008 if test "x$ac_globus_version" != "x" ; then
18009 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
18010 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
18011 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
18012 fi
18013
18014 if test "x$ac_globus_prefix" != "x" ; then
18015 if test "x$ac_globus_libdir" = "x" ; then
18016 if test "x$host_cpu" = "xx86_64" \
18017 -a -e $ac_globus_prefix/lib64 \
18018 -a ! -h $ac_globus_prefix/lib64 ; then
18019 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
18020 if test $num -gt 0 ; then
18021 ac_globus_libdir="$ac_globus_prefix/lib64"
18022 else
18023 ac_globus_libdir="$ac_globus_prefix/lib"
18024 fi
18025 else
18026 ac_globus_libdir="$ac_globus_prefix/lib"
18027 fi
18028 fi
18029 ac_globus_ldflags="-L$ac_globus_libdir"
18030
18031 if test -d "$ac_globus_prefix/include/globus" ; then
18032 ac_globus_cflags=-I$ac_globus_prefix/include/globus
18033 if test "x$ac_globus_flavorincdir" != "x" ; then
18034 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
18035 elif test "x$ac_globus_flavor" != "x" ; then
18036 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
18037 else
18038 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
18039 fi
18040 ac_globus_libsuffix=""
18041 else
18042 if test "x$ac_globus_flavor" != "x" ; then
18043 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
18044 ac_globus_libsuffix=_$ac_globus_flavor
18045 elif test -d "$ac_globus_prefix/include"; then
18046 ac_globus_cflags=-I$ac_globus_prefix/include
18047 else ac_globus_cflags=""
18048 ac_globus_libsuffix=""
18049 fi
18050 fi
18051 fi
18052
18053 fi
18054
18055
18056
18057
18058 if test "x$with_globus_prefix" = "x" ; then
18059
18060 pkg_failed=no
18061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-common" >&5
18062 printf %s "checking for globus-common... " >&6; }
18063
18064 if test -n "$GLOBUS_COMMON_CFLAGS"; then
18065 pkg_cv_GLOBUS_COMMON_CFLAGS="$GLOBUS_COMMON_CFLAGS"
18066 elif test -n "$PKG_CONFIG"; then
18067 if test -n "$PKG_CONFIG" && \
18068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
18069 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
18070 ac_status=$?
18071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18072 test $ac_status = 0; }; then
18073 pkg_cv_GLOBUS_COMMON_CFLAGS=`$PKG_CONFIG --cflags "globus-common" 2>/dev/null`
18074 test "x$?" != "x0" && pkg_failed=yes
18075 else
18076 pkg_failed=yes
18077 fi
18078 else
18079 pkg_failed=untried
18080 fi
18081 if test -n "$GLOBUS_COMMON_LIBS"; then
18082 pkg_cv_GLOBUS_COMMON_LIBS="$GLOBUS_COMMON_LIBS"
18083 elif test -n "$PKG_CONFIG"; then
18084 if test -n "$PKG_CONFIG" && \
18085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
18086 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
18087 ac_status=$?
18088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18089 test $ac_status = 0; }; then
18090 pkg_cv_GLOBUS_COMMON_LIBS=`$PKG_CONFIG --libs "globus-common" 2>/dev/null`
18091 test "x$?" != "x0" && pkg_failed=yes
18092 else
18093 pkg_failed=yes
18094 fi
18095 else
18096 pkg_failed=untried
18097 fi
18098
18099
18100
18101 if test $pkg_failed = yes; then
18102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 printf "%s\n" "no" >&6; }
18104
18105 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18106 _pkg_short_errors_supported=yes
18107 else
18108 _pkg_short_errors_supported=no
18109 fi
18110 if test $_pkg_short_errors_supported = yes; then
18111 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-common" 2>&1`
18112 else
18113 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-common" 2>&1`
18114 fi
18115 # Put the nasty error message in config.log where it belongs
18116 echo "$GLOBUS_COMMON_PKG_ERRORS" >&5
18117
18118 have_globus_mod=no
18119 elif test $pkg_failed = untried; then
18120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18121 printf "%s\n" "no" >&6; }
18122 have_globus_mod=no
18123 else
18124 GLOBUS_COMMON_CFLAGS=$pkg_cv_GLOBUS_COMMON_CFLAGS
18125 GLOBUS_COMMON_LIBS=$pkg_cv_GLOBUS_COMMON_LIBS
18126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18127 printf "%s\n" "yes" >&6; }
18128 have_globus_mod=yes
18129 fi
18130 if test "$have_globus_mod" = "no" ; then
18131
18132 ac_save_CFLAGS=$CFLAGS
18133 ac_save_CPPFLAGS=$CPPFLAGS
18134 ac_save_LIBS=$LIBS
18135 ac_save_LDFLAGS=$LDFLAGS
18136
18137 ac_try_CFLAGS=$ac_globus_cflags
18138
18139 if test "xglobus_common" = "x" ; then
18140 ac_try_LIBS=""
18141 else
18142 ac_try_LIBS="-lglobus_common$ac_globus_libsuffix"
18143 fi
18144
18145 ac_try_CPPFLAGS=$ac_try_CFLAGS
18146 if test "x$ac_globus_libdir" != "x" ; then
18147 ac_try_LDFLAGS="$ac_globus_ldflags"
18148 if test "x$LD_LIBRARY_PATH" != "x" ; then
18149 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
18150 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
18151 else
18152 export LD_LIBRARY_PATH="$ac_globus_libdir"
18153 fi
18154 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
18155 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
18156 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
18157 else
18158 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
18159 fi
18160 fi
18161
18162 CFLAGS="$ac_try_CFLAGS $CFLAGS"
18163 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
18164 LIBS="$ac_try_LIBS $LIBS"
18165 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
18166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_COMMON at system default and $ac_globus_libdir" >&5
18167 printf %s "checking for GLOBUS_COMMON at system default and $ac_globus_libdir... " >&6; }
18168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18169 /* end confdefs.h. */
18170 #include <globus_common.h>
18171 int main(void) {return 0;}
18172 _ACEOF
18173 if ac_fn_c_try_link "$LINENO"
18174 then :
18175 have_mod=yes
18176 else $as_nop
18177 have_mod=no
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18180 conftest$ac_exeext conftest.$ac_ext
18181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
18182 printf "%s\n" "$have_mod" >&6; }
18183
18184 if test "x$have_mod" = "xyes" ; then
18185 have_globus_mod=yes
18186 if test "x$with_globus_thr_flavor" != "x" ; then
18187 GLOBUS_COMMON_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18188 GLOBUS_COMMON_THR_CFLAGS=$ac_try_CFLAGS
18189 elif test "x$with_globus_nothr_flavor" != "x" ; then
18190 GLOBUS_COMMON_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18191 GLOBUS_COMMON_NOTHR_CFLAGS=$ac_try_CFLAGS
18192 else
18193 GLOBUS_COMMON_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18194 GLOBUS_COMMON_CFLAGS=$ac_try_CFLAGS
18195 fi
18196 else
18197 have_globus_mod=no
18198 fi
18199
18200 CFLAGS=$ac_save_CFLAGS
18201 CPPFLAGS=$ac_save_CPPFLAGS
18202 LIBS=$ac_save_LIBS
18203 LDFLAGS=$ac_save_LDFLAGS
18204 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
18205 unset LD_LIBRARY_PATH
18206 else
18207 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
18208 fi
18209 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
18210 unset DYLD_LIBRARY_PATH
18211 else
18212 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
18213 fi
18214
18215
18216 fi
18217 else
18218
18219 ac_save_CFLAGS=$CFLAGS
18220 ac_save_CPPFLAGS=$CPPFLAGS
18221 ac_save_LIBS=$LIBS
18222 ac_save_LDFLAGS=$LDFLAGS
18223
18224 ac_try_CFLAGS=$ac_globus_cflags
18225
18226 if test "xglobus_common" = "x" ; then
18227 ac_try_LIBS=""
18228 else
18229 ac_try_LIBS="-lglobus_common$ac_globus_libsuffix"
18230 fi
18231
18232 ac_try_CPPFLAGS=$ac_try_CFLAGS
18233 if test "x$ac_globus_libdir" != "x" ; then
18234 ac_try_LDFLAGS="$ac_globus_ldflags"
18235 if test "x$LD_LIBRARY_PATH" != "x" ; then
18236 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
18237 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
18238 else
18239 export LD_LIBRARY_PATH="$ac_globus_libdir"
18240 fi
18241 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
18242 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
18243 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
18244 else
18245 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
18246 fi
18247 fi
18248
18249 CFLAGS="$ac_try_CFLAGS $CFLAGS"
18250 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
18251 LIBS="$ac_try_LIBS $LIBS"
18252 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
18253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_COMMON at system default and $ac_globus_libdir" >&5
18254 printf %s "checking for GLOBUS_COMMON at system default and $ac_globus_libdir... " >&6; }
18255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18256 /* end confdefs.h. */
18257 #include <globus_common.h>
18258 int main(void) {return 0;}
18259 _ACEOF
18260 if ac_fn_c_try_link "$LINENO"
18261 then :
18262 have_mod=yes
18263 else $as_nop
18264 have_mod=no
18265 fi
18266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18267 conftest$ac_exeext conftest.$ac_ext
18268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
18269 printf "%s\n" "$have_mod" >&6; }
18270
18271 if test "x$have_mod" = "xyes" ; then
18272 have_globus_mod=yes
18273 if test "x$with_globus_thr_flavor" != "x" ; then
18274 GLOBUS_COMMON_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18275 GLOBUS_COMMON_THR_CFLAGS=$ac_try_CFLAGS
18276 elif test "x$with_globus_nothr_flavor" != "x" ; then
18277 GLOBUS_COMMON_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18278 GLOBUS_COMMON_NOTHR_CFLAGS=$ac_try_CFLAGS
18279 else
18280 GLOBUS_COMMON_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18281 GLOBUS_COMMON_CFLAGS=$ac_try_CFLAGS
18282 fi
18283 else
18284 have_globus_mod=no
18285 fi
18286
18287 CFLAGS=$ac_save_CFLAGS
18288 CPPFLAGS=$ac_save_CPPFLAGS
18289 LIBS=$ac_save_LIBS
18290 LDFLAGS=$ac_save_LDFLAGS
18291 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
18292 unset LD_LIBRARY_PATH
18293 else
18294 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
18295 fi
18296 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
18297 unset DYLD_LIBRARY_PATH
18298 else
18299 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
18300 fi
18301
18302
18303 if test "$have_globus_mod" = "no" ; then
18304
18305 pkg_failed=no
18306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-common" >&5
18307 printf %s "checking for globus-common... " >&6; }
18308
18309 if test -n "$GLOBUS_COMMON_CFLAGS"; then
18310 pkg_cv_GLOBUS_COMMON_CFLAGS="$GLOBUS_COMMON_CFLAGS"
18311 elif test -n "$PKG_CONFIG"; then
18312 if test -n "$PKG_CONFIG" && \
18313 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
18314 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
18315 ac_status=$?
18316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18317 test $ac_status = 0; }; then
18318 pkg_cv_GLOBUS_COMMON_CFLAGS=`$PKG_CONFIG --cflags "globus-common" 2>/dev/null`
18319 test "x$?" != "x0" && pkg_failed=yes
18320 else
18321 pkg_failed=yes
18322 fi
18323 else
18324 pkg_failed=untried
18325 fi
18326 if test -n "$GLOBUS_COMMON_LIBS"; then
18327 pkg_cv_GLOBUS_COMMON_LIBS="$GLOBUS_COMMON_LIBS"
18328 elif test -n "$PKG_CONFIG"; then
18329 if test -n "$PKG_CONFIG" && \
18330 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
18331 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
18332 ac_status=$?
18333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18334 test $ac_status = 0; }; then
18335 pkg_cv_GLOBUS_COMMON_LIBS=`$PKG_CONFIG --libs "globus-common" 2>/dev/null`
18336 test "x$?" != "x0" && pkg_failed=yes
18337 else
18338 pkg_failed=yes
18339 fi
18340 else
18341 pkg_failed=untried
18342 fi
18343
18344
18345
18346 if test $pkg_failed = yes; then
18347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348 printf "%s\n" "no" >&6; }
18349
18350 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18351 _pkg_short_errors_supported=yes
18352 else
18353 _pkg_short_errors_supported=no
18354 fi
18355 if test $_pkg_short_errors_supported = yes; then
18356 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-common" 2>&1`
18357 else
18358 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-common" 2>&1`
18359 fi
18360 # Put the nasty error message in config.log where it belongs
18361 echo "$GLOBUS_COMMON_PKG_ERRORS" >&5
18362
18363 have_globus_mod=no
18364 elif test $pkg_failed = untried; then
18365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18366 printf "%s\n" "no" >&6; }
18367 have_globus_mod=no
18368 else
18369 GLOBUS_COMMON_CFLAGS=$pkg_cv_GLOBUS_COMMON_CFLAGS
18370 GLOBUS_COMMON_LIBS=$pkg_cv_GLOBUS_COMMON_LIBS
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18372 printf "%s\n" "yes" >&6; }
18373 have_globus_mod=yes
18374 fi
18375 fi
18376 fi
18377 have_globus_common=$have_globus_mod
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389 if test "x$have_globus_common" != "xyes" ; then
18390 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18391 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18392 as_fn_error $? "\"no globus-common found\"
18393 See \`config.log' for more details" "$LINENO" 5; }
18394 fi
18395
18396
18397
18398
18399
18400
18401
18402 if test "x$globus_tested" = "x"
18403 then :
18404
18405 globus_tested="yes"
18406
18407 if test "x$with_globus_thr_flavor" != "x" ; then
18408 if test "x$with_globus_nothr_flavor" != "x" -o
18409 test "x$with_globus_flavor" != "x" ; then
18410 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18411 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18412 as_fn_error $? "Cannot build against multiple flavor types
18413 See \`config.log' for more details" "$LINENO" 5; }
18414 fi
18415 ac_globus_flavor=$with_globus_thr_flavor
18416 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
18417 elif test "x$with_globus_nothr_flavor" != "x" ; then
18418 if test "x$with_globus_flavor" != "x" ; then
18419 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18420 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18421 as_fn_error $? "Cannot build against multiple flavor types
18422 See \`config.log' for more details" "$LINENO" 5; }
18423 fi
18424 ac_globus_flavor=$with_globus_nothr_flavor
18425 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
18426 elif test "x$with_globus_flavor" != "x" ; then
18427 ac_globus_flavor=$with_globus_flavor
18428 GLOBUS_FLAVOR=$with_globus_flavor
18429 fi
18430
18431
18432
18433
18434 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
18435 ac_globus_prefix=/usr
18436 fi
18437
18438 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
18439 ac_globus_prefix=/opt/globus
18440 fi
18441
18442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
18443 printf %s "checking for globus version... " >&6; }
18444 if test "x$ac_globus_prefix" = "x" ; then
18445 ac_globus_version_script=`which globus-version 2> /dev/null`
18446 else
18447 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
18448 fi
18449 if test "x$ac_globus_version_script" != "x" ; then
18450 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
18451 fi
18452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
18453 printf "%s\n" "$ac_globus_version" >&6; }
18454
18455 if test "x$ac_globus_version" != "x" ; then
18456 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
18457 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
18458 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
18459 fi
18460
18461 if test "x$ac_globus_prefix" != "x" ; then
18462 if test "x$ac_globus_libdir" = "x" ; then
18463 if test "x$host_cpu" = "xx86_64" \
18464 -a -e $ac_globus_prefix/lib64 \
18465 -a ! -h $ac_globus_prefix/lib64 ; then
18466 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
18467 if test $num -gt 0 ; then
18468 ac_globus_libdir="$ac_globus_prefix/lib64"
18469 else
18470 ac_globus_libdir="$ac_globus_prefix/lib"
18471 fi
18472 else
18473 ac_globus_libdir="$ac_globus_prefix/lib"
18474 fi
18475 fi
18476 ac_globus_ldflags="-L$ac_globus_libdir"
18477
18478 if test -d "$ac_globus_prefix/include/globus" ; then
18479 ac_globus_cflags=-I$ac_globus_prefix/include/globus
18480 if test "x$ac_globus_flavorincdir" != "x" ; then
18481 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
18482 elif test "x$ac_globus_flavor" != "x" ; then
18483 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
18484 else
18485 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
18486 fi
18487 ac_globus_libsuffix=""
18488 else
18489 if test "x$ac_globus_flavor" != "x" ; then
18490 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
18491 ac_globus_libsuffix=_$ac_globus_flavor
18492 elif test -d "$ac_globus_prefix/include"; then
18493 ac_globus_cflags=-I$ac_globus_prefix/include
18494 else ac_globus_cflags=""
18495 ac_globus_libsuffix=""
18496 fi
18497 fi
18498 fi
18499
18500 fi
18501
18502
18503
18504
18505 if test "x$with_globus_prefix" = "x" ; then
18506
18507 pkg_failed=no
18508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-gssapi-gsi" >&5
18509 printf %s "checking for globus-gssapi-gsi... " >&6; }
18510
18511 if test -n "$GLOBUS_GSSAPI_GSI_CFLAGS"; then
18512 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS"
18513 elif test -n "$PKG_CONFIG"; then
18514 if test -n "$PKG_CONFIG" && \
18515 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
18516 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
18517 ac_status=$?
18518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18519 test $ac_status = 0; }; then
18520 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-gsi" 2>/dev/null`
18521 test "x$?" != "x0" && pkg_failed=yes
18522 else
18523 pkg_failed=yes
18524 fi
18525 else
18526 pkg_failed=untried
18527 fi
18528 if test -n "$GLOBUS_GSSAPI_GSI_LIBS"; then
18529 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS="$GLOBUS_GSSAPI_GSI_LIBS"
18530 elif test -n "$PKG_CONFIG"; then
18531 if test -n "$PKG_CONFIG" && \
18532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
18533 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
18534 ac_status=$?
18535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536 test $ac_status = 0; }; then
18537 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS=`$PKG_CONFIG --libs "globus-gssapi-gsi" 2>/dev/null`
18538 test "x$?" != "x0" && pkg_failed=yes
18539 else
18540 pkg_failed=yes
18541 fi
18542 else
18543 pkg_failed=untried
18544 fi
18545
18546
18547
18548 if test $pkg_failed = yes; then
18549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18550 printf "%s\n" "no" >&6; }
18551
18552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18553 _pkg_short_errors_supported=yes
18554 else
18555 _pkg_short_errors_supported=no
18556 fi
18557 if test $_pkg_short_errors_supported = yes; then
18558 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
18559 else
18560 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
18561 fi
18562 # Put the nasty error message in config.log where it belongs
18563 echo "$GLOBUS_GSSAPI_GSI_PKG_ERRORS" >&5
18564
18565 have_globus_mod=no
18566 elif test $pkg_failed = untried; then
18567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18568 printf "%s\n" "no" >&6; }
18569 have_globus_mod=no
18570 else
18571 GLOBUS_GSSAPI_GSI_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS
18572 GLOBUS_GSSAPI_GSI_LIBS=$pkg_cv_GLOBUS_GSSAPI_GSI_LIBS
18573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18574 printf "%s\n" "yes" >&6; }
18575 have_globus_mod=yes
18576 fi
18577 if test "$have_globus_mod" = "no" ; then
18578
18579 ac_save_CFLAGS=$CFLAGS
18580 ac_save_CPPFLAGS=$CPPFLAGS
18581 ac_save_LIBS=$LIBS
18582 ac_save_LDFLAGS=$LDFLAGS
18583
18584 ac_try_CFLAGS=$ac_globus_cflags
18585
18586 if test "xglobus_gssapi_gsi" = "x" ; then
18587 ac_try_LIBS=""
18588 else
18589 ac_try_LIBS="-lglobus_gssapi_gsi$ac_globus_libsuffix"
18590 fi
18591
18592 ac_try_CPPFLAGS=$ac_try_CFLAGS
18593 if test "x$ac_globus_libdir" != "x" ; then
18594 ac_try_LDFLAGS="$ac_globus_ldflags"
18595 if test "x$LD_LIBRARY_PATH" != "x" ; then
18596 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
18597 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
18598 else
18599 export LD_LIBRARY_PATH="$ac_globus_libdir"
18600 fi
18601 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
18602 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
18603 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
18604 else
18605 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
18606 fi
18607 fi
18608
18609 CFLAGS="$ac_try_CFLAGS $CFLAGS"
18610 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
18611 LIBS="$ac_try_LIBS $LIBS"
18612 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
18613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir" >&5
18614 printf %s "checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir... " >&6; }
18615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h. */
18617 #include <gssapi.h>
18618 int main(void) {return 0;}
18619 _ACEOF
18620 if ac_fn_c_try_link "$LINENO"
18621 then :
18622 have_mod=yes
18623 else $as_nop
18624 have_mod=no
18625 fi
18626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18627 conftest$ac_exeext conftest.$ac_ext
18628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
18629 printf "%s\n" "$have_mod" >&6; }
18630
18631 if test "x$have_mod" = "xyes" ; then
18632 have_globus_mod=yes
18633 if test "x$with_globus_thr_flavor" != "x" ; then
18634 GLOBUS_GSSAPI_GSI_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18635 GLOBUS_GSSAPI_GSI_THR_CFLAGS=$ac_try_CFLAGS
18636 elif test "x$with_globus_nothr_flavor" != "x" ; then
18637 GLOBUS_GSSAPI_GSI_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18638 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS=$ac_try_CFLAGS
18639 else
18640 GLOBUS_GSSAPI_GSI_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18641 GLOBUS_GSSAPI_GSI_CFLAGS=$ac_try_CFLAGS
18642 fi
18643 else
18644 have_globus_mod=no
18645 fi
18646
18647 CFLAGS=$ac_save_CFLAGS
18648 CPPFLAGS=$ac_save_CPPFLAGS
18649 LIBS=$ac_save_LIBS
18650 LDFLAGS=$ac_save_LDFLAGS
18651 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
18652 unset LD_LIBRARY_PATH
18653 else
18654 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
18655 fi
18656 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
18657 unset DYLD_LIBRARY_PATH
18658 else
18659 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
18660 fi
18661
18662
18663 fi
18664 else
18665
18666 ac_save_CFLAGS=$CFLAGS
18667 ac_save_CPPFLAGS=$CPPFLAGS
18668 ac_save_LIBS=$LIBS
18669 ac_save_LDFLAGS=$LDFLAGS
18670
18671 ac_try_CFLAGS=$ac_globus_cflags
18672
18673 if test "xglobus_gssapi_gsi" = "x" ; then
18674 ac_try_LIBS=""
18675 else
18676 ac_try_LIBS="-lglobus_gssapi_gsi$ac_globus_libsuffix"
18677 fi
18678
18679 ac_try_CPPFLAGS=$ac_try_CFLAGS
18680 if test "x$ac_globus_libdir" != "x" ; then
18681 ac_try_LDFLAGS="$ac_globus_ldflags"
18682 if test "x$LD_LIBRARY_PATH" != "x" ; then
18683 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
18684 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
18685 else
18686 export LD_LIBRARY_PATH="$ac_globus_libdir"
18687 fi
18688 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
18689 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
18690 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
18691 else
18692 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
18693 fi
18694 fi
18695
18696 CFLAGS="$ac_try_CFLAGS $CFLAGS"
18697 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
18698 LIBS="$ac_try_LIBS $LIBS"
18699 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
18700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir" >&5
18701 printf %s "checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir... " >&6; }
18702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703 /* end confdefs.h. */
18704 #include <gssapi.h>
18705 int main(void) {return 0;}
18706 _ACEOF
18707 if ac_fn_c_try_link "$LINENO"
18708 then :
18709 have_mod=yes
18710 else $as_nop
18711 have_mod=no
18712 fi
18713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18714 conftest$ac_exeext conftest.$ac_ext
18715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
18716 printf "%s\n" "$have_mod" >&6; }
18717
18718 if test "x$have_mod" = "xyes" ; then
18719 have_globus_mod=yes
18720 if test "x$with_globus_thr_flavor" != "x" ; then
18721 GLOBUS_GSSAPI_GSI_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18722 GLOBUS_GSSAPI_GSI_THR_CFLAGS=$ac_try_CFLAGS
18723 elif test "x$with_globus_nothr_flavor" != "x" ; then
18724 GLOBUS_GSSAPI_GSI_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18725 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS=$ac_try_CFLAGS
18726 else
18727 GLOBUS_GSSAPI_GSI_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
18728 GLOBUS_GSSAPI_GSI_CFLAGS=$ac_try_CFLAGS
18729 fi
18730 else
18731 have_globus_mod=no
18732 fi
18733
18734 CFLAGS=$ac_save_CFLAGS
18735 CPPFLAGS=$ac_save_CPPFLAGS
18736 LIBS=$ac_save_LIBS
18737 LDFLAGS=$ac_save_LDFLAGS
18738 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
18739 unset LD_LIBRARY_PATH
18740 else
18741 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
18742 fi
18743 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
18744 unset DYLD_LIBRARY_PATH
18745 else
18746 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
18747 fi
18748
18749
18750 if test "$have_globus_mod" = "no" ; then
18751
18752 pkg_failed=no
18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-gssapi-gsi" >&5
18754 printf %s "checking for globus-gssapi-gsi... " >&6; }
18755
18756 if test -n "$GLOBUS_GSSAPI_GSI_CFLAGS"; then
18757 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS"
18758 elif test -n "$PKG_CONFIG"; then
18759 if test -n "$PKG_CONFIG" && \
18760 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
18761 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
18762 ac_status=$?
18763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18764 test $ac_status = 0; }; then
18765 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-gsi" 2>/dev/null`
18766 test "x$?" != "x0" && pkg_failed=yes
18767 else
18768 pkg_failed=yes
18769 fi
18770 else
18771 pkg_failed=untried
18772 fi
18773 if test -n "$GLOBUS_GSSAPI_GSI_LIBS"; then
18774 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS="$GLOBUS_GSSAPI_GSI_LIBS"
18775 elif test -n "$PKG_CONFIG"; then
18776 if test -n "$PKG_CONFIG" && \
18777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
18778 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
18779 ac_status=$?
18780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18781 test $ac_status = 0; }; then
18782 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS=`$PKG_CONFIG --libs "globus-gssapi-gsi" 2>/dev/null`
18783 test "x$?" != "x0" && pkg_failed=yes
18784 else
18785 pkg_failed=yes
18786 fi
18787 else
18788 pkg_failed=untried
18789 fi
18790
18791
18792
18793 if test $pkg_failed = yes; then
18794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18795 printf "%s\n" "no" >&6; }
18796
18797 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18798 _pkg_short_errors_supported=yes
18799 else
18800 _pkg_short_errors_supported=no
18801 fi
18802 if test $_pkg_short_errors_supported = yes; then
18803 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
18804 else
18805 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
18806 fi
18807 # Put the nasty error message in config.log where it belongs
18808 echo "$GLOBUS_GSSAPI_GSI_PKG_ERRORS" >&5
18809
18810 have_globus_mod=no
18811 elif test $pkg_failed = untried; then
18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18813 printf "%s\n" "no" >&6; }
18814 have_globus_mod=no
18815 else
18816 GLOBUS_GSSAPI_GSI_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS
18817 GLOBUS_GSSAPI_GSI_LIBS=$pkg_cv_GLOBUS_GSSAPI_GSI_LIBS
18818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18819 printf "%s\n" "yes" >&6; }
18820 have_globus_mod=yes
18821 fi
18822 fi
18823 fi
18824 have_globus_gssapi_gsi=$have_globus_mod
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836 if test "x$have_globus_gssapi_gsi" != "xyes" ; then
18837 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18838 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18839 as_fn_error $? "\"no globus-gssapi-gsi found\"
18840 See \`config.log' for more details" "$LINENO" 5; }
18841 fi
18842
18843
18844
18845
18846
18847
18848
18849 if test "x$globus_tested" = "x"
18850 then :
18851
18852 globus_tested="yes"
18853
18854 if test "x$with_globus_thr_flavor" != "x" ; then
18855 if test "x$with_globus_nothr_flavor" != "x" -o
18856 test "x$with_globus_flavor" != "x" ; then
18857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18858 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18859 as_fn_error $? "Cannot build against multiple flavor types
18860 See \`config.log' for more details" "$LINENO" 5; }
18861 fi
18862 ac_globus_flavor=$with_globus_thr_flavor
18863 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
18864 elif test "x$with_globus_nothr_flavor" != "x" ; then
18865 if test "x$with_globus_flavor" != "x" ; then
18866 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18867 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18868 as_fn_error $? "Cannot build against multiple flavor types
18869 See \`config.log' for more details" "$LINENO" 5; }
18870 fi
18871 ac_globus_flavor=$with_globus_nothr_flavor
18872 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
18873 elif test "x$with_globus_flavor" != "x" ; then
18874 ac_globus_flavor=$with_globus_flavor
18875 GLOBUS_FLAVOR=$with_globus_flavor
18876 fi
18877
18878
18879
18880
18881 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
18882 ac_globus_prefix=/usr
18883 fi
18884
18885 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
18886 ac_globus_prefix=/opt/globus
18887 fi
18888
18889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
18890 printf %s "checking for globus version... " >&6; }
18891 if test "x$ac_globus_prefix" = "x" ; then
18892 ac_globus_version_script=`which globus-version 2> /dev/null`
18893 else
18894 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
18895 fi
18896 if test "x$ac_globus_version_script" != "x" ; then
18897 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
18898 fi
18899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
18900 printf "%s\n" "$ac_globus_version" >&6; }
18901
18902 if test "x$ac_globus_version" != "x" ; then
18903 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
18904 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
18905 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
18906 fi
18907
18908 if test "x$ac_globus_prefix" != "x" ; then
18909 if test "x$ac_globus_libdir" = "x" ; then
18910 if test "x$host_cpu" = "xx86_64" \
18911 -a -e $ac_globus_prefix/lib64 \
18912 -a ! -h $ac_globus_prefix/lib64 ; then
18913 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
18914 if test $num -gt 0 ; then
18915 ac_globus_libdir="$ac_globus_prefix/lib64"
18916 else
18917 ac_globus_libdir="$ac_globus_prefix/lib"
18918 fi
18919 else
18920 ac_globus_libdir="$ac_globus_prefix/lib"
18921 fi
18922 fi
18923 ac_globus_ldflags="-L$ac_globus_libdir"
18924
18925 if test -d "$ac_globus_prefix/include/globus" ; then
18926 ac_globus_cflags=-I$ac_globus_prefix/include/globus
18927 if test "x$ac_globus_flavorincdir" != "x" ; then
18928 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
18929 elif test "x$ac_globus_flavor" != "x" ; then
18930 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
18931 else
18932 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
18933 fi
18934 ac_globus_libsuffix=""
18935 else
18936 if test "x$ac_globus_flavor" != "x" ; then
18937 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
18938 ac_globus_libsuffix=_$ac_globus_flavor
18939 elif test -d "$ac_globus_prefix/include"; then
18940 ac_globus_cflags=-I$ac_globus_prefix/include
18941 else ac_globus_cflags=""
18942 ac_globus_libsuffix=""
18943 fi
18944 fi
18945 fi
18946
18947 fi
18948
18949
18950
18951
18952 if test "x$with_globus_prefix" = "x" ; then
18953
18954 pkg_failed=no
18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-gss-assist" >&5
18956 printf %s "checking for globus-gss-assist... " >&6; }
18957
18958 if test -n "$GLOBUS_GSS_ASSIST_CFLAGS"; then
18959 pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS="$GLOBUS_GSS_ASSIST_CFLAGS"
18960 elif test -n "$PKG_CONFIG"; then
18961 if test -n "$PKG_CONFIG" && \
18962 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gss-assist\""; } >&5
18963 ($PKG_CONFIG --exists --print-errors "globus-gss-assist") 2>&5
18964 ac_status=$?
18965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18966 test $ac_status = 0; }; then
18967 pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS=`$PKG_CONFIG --cflags "globus-gss-assist" 2>/dev/null`
18968 test "x$?" != "x0" && pkg_failed=yes
18969 else
18970 pkg_failed=yes
18971 fi
18972 else
18973 pkg_failed=untried
18974 fi
18975 if test -n "$GLOBUS_GSS_ASSIST_LIBS"; then
18976 pkg_cv_GLOBUS_GSS_ASSIST_LIBS="$GLOBUS_GSS_ASSIST_LIBS"
18977 elif test -n "$PKG_CONFIG"; then
18978 if test -n "$PKG_CONFIG" && \
18979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gss-assist\""; } >&5
18980 ($PKG_CONFIG --exists --print-errors "globus-gss-assist") 2>&5
18981 ac_status=$?
18982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18983 test $ac_status = 0; }; then
18984 pkg_cv_GLOBUS_GSS_ASSIST_LIBS=`$PKG_CONFIG --libs "globus-gss-assist" 2>/dev/null`
18985 test "x$?" != "x0" && pkg_failed=yes
18986 else
18987 pkg_failed=yes
18988 fi
18989 else
18990 pkg_failed=untried
18991 fi
18992
18993
18994
18995 if test $pkg_failed = yes; then
18996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18997 printf "%s\n" "no" >&6; }
18998
18999 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19000 _pkg_short_errors_supported=yes
19001 else
19002 _pkg_short_errors_supported=no
19003 fi
19004 if test $_pkg_short_errors_supported = yes; then
19005 GLOBUS_GSS_ASSIST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gss-assist" 2>&1`
19006 else
19007 GLOBUS_GSS_ASSIST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gss-assist" 2>&1`
19008 fi
19009 # Put the nasty error message in config.log where it belongs
19010 echo "$GLOBUS_GSS_ASSIST_PKG_ERRORS" >&5
19011
19012 have_globus_mod=no
19013 elif test $pkg_failed = untried; then
19014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19015 printf "%s\n" "no" >&6; }
19016 have_globus_mod=no
19017 else
19018 GLOBUS_GSS_ASSIST_CFLAGS=$pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS
19019 GLOBUS_GSS_ASSIST_LIBS=$pkg_cv_GLOBUS_GSS_ASSIST_LIBS
19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19021 printf "%s\n" "yes" >&6; }
19022 have_globus_mod=yes
19023 fi
19024 if test "$have_globus_mod" = "no" ; then
19025
19026 ac_save_CFLAGS=$CFLAGS
19027 ac_save_CPPFLAGS=$CPPFLAGS
19028 ac_save_LIBS=$LIBS
19029 ac_save_LDFLAGS=$LDFLAGS
19030
19031 ac_try_CFLAGS=$ac_globus_cflags
19032
19033 if test "xglobus_gss_assist" = "x" ; then
19034 ac_try_LIBS=""
19035 else
19036 ac_try_LIBS="-lglobus_gss_assist$ac_globus_libsuffix"
19037 fi
19038
19039 ac_try_CPPFLAGS=$ac_try_CFLAGS
19040 if test "x$ac_globus_libdir" != "x" ; then
19041 ac_try_LDFLAGS="$ac_globus_ldflags"
19042 if test "x$LD_LIBRARY_PATH" != "x" ; then
19043 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
19044 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
19045 else
19046 export LD_LIBRARY_PATH="$ac_globus_libdir"
19047 fi
19048 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
19049 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
19050 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
19051 else
19052 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
19053 fi
19054 fi
19055
19056 CFLAGS="$ac_try_CFLAGS $CFLAGS"
19057 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
19058 LIBS="$ac_try_LIBS $LIBS"
19059 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
19060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSS_ASSIST at system default and $ac_globus_libdir" >&5
19061 printf %s "checking for GLOBUS_GSS_ASSIST at system default and $ac_globus_libdir... " >&6; }
19062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19063 /* end confdefs.h. */
19064 #include <globus_gss_assist.h>
19065 int main(void) {return 0;}
19066 _ACEOF
19067 if ac_fn_c_try_link "$LINENO"
19068 then :
19069 have_mod=yes
19070 else $as_nop
19071 have_mod=no
19072 fi
19073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19074 conftest$ac_exeext conftest.$ac_ext
19075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
19076 printf "%s\n" "$have_mod" >&6; }
19077
19078 if test "x$have_mod" = "xyes" ; then
19079 have_globus_mod=yes
19080 if test "x$with_globus_thr_flavor" != "x" ; then
19081 GLOBUS_GSS_ASSIST_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19082 GLOBUS_GSS_ASSIST_THR_CFLAGS=$ac_try_CFLAGS
19083 elif test "x$with_globus_nothr_flavor" != "x" ; then
19084 GLOBUS_GSS_ASSIST_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19085 GLOBUS_GSS_ASSIST_NOTHR_CFLAGS=$ac_try_CFLAGS
19086 else
19087 GLOBUS_GSS_ASSIST_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19088 GLOBUS_GSS_ASSIST_CFLAGS=$ac_try_CFLAGS
19089 fi
19090 else
19091 have_globus_mod=no
19092 fi
19093
19094 CFLAGS=$ac_save_CFLAGS
19095 CPPFLAGS=$ac_save_CPPFLAGS
19096 LIBS=$ac_save_LIBS
19097 LDFLAGS=$ac_save_LDFLAGS
19098 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
19099 unset LD_LIBRARY_PATH
19100 else
19101 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
19102 fi
19103 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
19104 unset DYLD_LIBRARY_PATH
19105 else
19106 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
19107 fi
19108
19109
19110 fi
19111 else
19112
19113 ac_save_CFLAGS=$CFLAGS
19114 ac_save_CPPFLAGS=$CPPFLAGS
19115 ac_save_LIBS=$LIBS
19116 ac_save_LDFLAGS=$LDFLAGS
19117
19118 ac_try_CFLAGS=$ac_globus_cflags
19119
19120 if test "xglobus_gss_assist" = "x" ; then
19121 ac_try_LIBS=""
19122 else
19123 ac_try_LIBS="-lglobus_gss_assist$ac_globus_libsuffix"
19124 fi
19125
19126 ac_try_CPPFLAGS=$ac_try_CFLAGS
19127 if test "x$ac_globus_libdir" != "x" ; then
19128 ac_try_LDFLAGS="$ac_globus_ldflags"
19129 if test "x$LD_LIBRARY_PATH" != "x" ; then
19130 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
19131 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
19132 else
19133 export LD_LIBRARY_PATH="$ac_globus_libdir"
19134 fi
19135 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
19136 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
19137 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
19138 else
19139 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
19140 fi
19141 fi
19142
19143 CFLAGS="$ac_try_CFLAGS $CFLAGS"
19144 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
19145 LIBS="$ac_try_LIBS $LIBS"
19146 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
19147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSS_ASSIST at system default and $ac_globus_libdir" >&5
19148 printf %s "checking for GLOBUS_GSS_ASSIST at system default and $ac_globus_libdir... " >&6; }
19149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19150 /* end confdefs.h. */
19151 #include <globus_gss_assist.h>
19152 int main(void) {return 0;}
19153 _ACEOF
19154 if ac_fn_c_try_link "$LINENO"
19155 then :
19156 have_mod=yes
19157 else $as_nop
19158 have_mod=no
19159 fi
19160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19161 conftest$ac_exeext conftest.$ac_ext
19162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
19163 printf "%s\n" "$have_mod" >&6; }
19164
19165 if test "x$have_mod" = "xyes" ; then
19166 have_globus_mod=yes
19167 if test "x$with_globus_thr_flavor" != "x" ; then
19168 GLOBUS_GSS_ASSIST_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19169 GLOBUS_GSS_ASSIST_THR_CFLAGS=$ac_try_CFLAGS
19170 elif test "x$with_globus_nothr_flavor" != "x" ; then
19171 GLOBUS_GSS_ASSIST_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19172 GLOBUS_GSS_ASSIST_NOTHR_CFLAGS=$ac_try_CFLAGS
19173 else
19174 GLOBUS_GSS_ASSIST_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19175 GLOBUS_GSS_ASSIST_CFLAGS=$ac_try_CFLAGS
19176 fi
19177 else
19178 have_globus_mod=no
19179 fi
19180
19181 CFLAGS=$ac_save_CFLAGS
19182 CPPFLAGS=$ac_save_CPPFLAGS
19183 LIBS=$ac_save_LIBS
19184 LDFLAGS=$ac_save_LDFLAGS
19185 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
19186 unset LD_LIBRARY_PATH
19187 else
19188 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
19189 fi
19190 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
19191 unset DYLD_LIBRARY_PATH
19192 else
19193 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
19194 fi
19195
19196
19197 if test "$have_globus_mod" = "no" ; then
19198
19199 pkg_failed=no
19200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-gss-assist" >&5
19201 printf %s "checking for globus-gss-assist... " >&6; }
19202
19203 if test -n "$GLOBUS_GSS_ASSIST_CFLAGS"; then
19204 pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS="$GLOBUS_GSS_ASSIST_CFLAGS"
19205 elif test -n "$PKG_CONFIG"; then
19206 if test -n "$PKG_CONFIG" && \
19207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gss-assist\""; } >&5
19208 ($PKG_CONFIG --exists --print-errors "globus-gss-assist") 2>&5
19209 ac_status=$?
19210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19211 test $ac_status = 0; }; then
19212 pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS=`$PKG_CONFIG --cflags "globus-gss-assist" 2>/dev/null`
19213 test "x$?" != "x0" && pkg_failed=yes
19214 else
19215 pkg_failed=yes
19216 fi
19217 else
19218 pkg_failed=untried
19219 fi
19220 if test -n "$GLOBUS_GSS_ASSIST_LIBS"; then
19221 pkg_cv_GLOBUS_GSS_ASSIST_LIBS="$GLOBUS_GSS_ASSIST_LIBS"
19222 elif test -n "$PKG_CONFIG"; then
19223 if test -n "$PKG_CONFIG" && \
19224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gss-assist\""; } >&5
19225 ($PKG_CONFIG --exists --print-errors "globus-gss-assist") 2>&5
19226 ac_status=$?
19227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19228 test $ac_status = 0; }; then
19229 pkg_cv_GLOBUS_GSS_ASSIST_LIBS=`$PKG_CONFIG --libs "globus-gss-assist" 2>/dev/null`
19230 test "x$?" != "x0" && pkg_failed=yes
19231 else
19232 pkg_failed=yes
19233 fi
19234 else
19235 pkg_failed=untried
19236 fi
19237
19238
19239
19240 if test $pkg_failed = yes; then
19241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 printf "%s\n" "no" >&6; }
19243
19244 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19245 _pkg_short_errors_supported=yes
19246 else
19247 _pkg_short_errors_supported=no
19248 fi
19249 if test $_pkg_short_errors_supported = yes; then
19250 GLOBUS_GSS_ASSIST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gss-assist" 2>&1`
19251 else
19252 GLOBUS_GSS_ASSIST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gss-assist" 2>&1`
19253 fi
19254 # Put the nasty error message in config.log where it belongs
19255 echo "$GLOBUS_GSS_ASSIST_PKG_ERRORS" >&5
19256
19257 have_globus_mod=no
19258 elif test $pkg_failed = untried; then
19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260 printf "%s\n" "no" >&6; }
19261 have_globus_mod=no
19262 else
19263 GLOBUS_GSS_ASSIST_CFLAGS=$pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS
19264 GLOBUS_GSS_ASSIST_LIBS=$pkg_cv_GLOBUS_GSS_ASSIST_LIBS
19265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266 printf "%s\n" "yes" >&6; }
19267 have_globus_mod=yes
19268 fi
19269 fi
19270 fi
19271 have_globus_gss_assist=$have_globus_mod
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283 if test "x$have_globus_gss_assist" != "xyes" ; then
19284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19285 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19286 as_fn_error $? "\"no globus-gss-assist found\"
19287 See \`config.log' for more details" "$LINENO" 5; }
19288 fi
19289
19290
19291
19292
19293
19294
19295
19296 if test "x$globus_tested" = "x"
19297 then :
19298
19299 globus_tested="yes"
19300
19301 if test "x$with_globus_thr_flavor" != "x" ; then
19302 if test "x$with_globus_nothr_flavor" != "x" -o
19303 test "x$with_globus_flavor" != "x" ; then
19304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19305 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19306 as_fn_error $? "Cannot build against multiple flavor types
19307 See \`config.log' for more details" "$LINENO" 5; }
19308 fi
19309 ac_globus_flavor=$with_globus_thr_flavor
19310 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
19311 elif test "x$with_globus_nothr_flavor" != "x" ; then
19312 if test "x$with_globus_flavor" != "x" ; then
19313 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19314 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19315 as_fn_error $? "Cannot build against multiple flavor types
19316 See \`config.log' for more details" "$LINENO" 5; }
19317 fi
19318 ac_globus_flavor=$with_globus_nothr_flavor
19319 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
19320 elif test "x$with_globus_flavor" != "x" ; then
19321 ac_globus_flavor=$with_globus_flavor
19322 GLOBUS_FLAVOR=$with_globus_flavor
19323 fi
19324
19325
19326
19327
19328 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
19329 ac_globus_prefix=/usr
19330 fi
19331
19332 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
19333 ac_globus_prefix=/opt/globus
19334 fi
19335
19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
19337 printf %s "checking for globus version... " >&6; }
19338 if test "x$ac_globus_prefix" = "x" ; then
19339 ac_globus_version_script=`which globus-version 2> /dev/null`
19340 else
19341 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
19342 fi
19343 if test "x$ac_globus_version_script" != "x" ; then
19344 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
19345 fi
19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
19347 printf "%s\n" "$ac_globus_version" >&6; }
19348
19349 if test "x$ac_globus_version" != "x" ; then
19350 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
19351 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
19352 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
19353 fi
19354
19355 if test "x$ac_globus_prefix" != "x" ; then
19356 if test "x$ac_globus_libdir" = "x" ; then
19357 if test "x$host_cpu" = "xx86_64" \
19358 -a -e $ac_globus_prefix/lib64 \
19359 -a ! -h $ac_globus_prefix/lib64 ; then
19360 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
19361 if test $num -gt 0 ; then
19362 ac_globus_libdir="$ac_globus_prefix/lib64"
19363 else
19364 ac_globus_libdir="$ac_globus_prefix/lib"
19365 fi
19366 else
19367 ac_globus_libdir="$ac_globus_prefix/lib"
19368 fi
19369 fi
19370 ac_globus_ldflags="-L$ac_globus_libdir"
19371
19372 if test -d "$ac_globus_prefix/include/globus" ; then
19373 ac_globus_cflags=-I$ac_globus_prefix/include/globus
19374 if test "x$ac_globus_flavorincdir" != "x" ; then
19375 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
19376 elif test "x$ac_globus_flavor" != "x" ; then
19377 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
19378 else
19379 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
19380 fi
19381 ac_globus_libsuffix=""
19382 else
19383 if test "x$ac_globus_flavor" != "x" ; then
19384 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
19385 ac_globus_libsuffix=_$ac_globus_flavor
19386 elif test -d "$ac_globus_prefix/include"; then
19387 ac_globus_cflags=-I$ac_globus_prefix/include
19388 else ac_globus_cflags=""
19389 ac_globus_libsuffix=""
19390 fi
19391 fi
19392 fi
19393
19394 fi
19395
19396
19397
19398
19399 if test "x$with_globus_prefix" = "x" ; then
19400
19401 pkg_failed=no
19402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-gsi-credential" >&5
19403 printf %s "checking for globus-gsi-credential... " >&6; }
19404
19405 if test -n "$GLOBUS_GSI_CREDENTIAL_CFLAGS"; then
19406 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS="$GLOBUS_GSI_CREDENTIAL_CFLAGS"
19407 elif test -n "$PKG_CONFIG"; then
19408 if test -n "$PKG_CONFIG" && \
19409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
19410 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
19411 ac_status=$?
19412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19413 test $ac_status = 0; }; then
19414 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS=`$PKG_CONFIG --cflags "globus-gsi-credential" 2>/dev/null`
19415 test "x$?" != "x0" && pkg_failed=yes
19416 else
19417 pkg_failed=yes
19418 fi
19419 else
19420 pkg_failed=untried
19421 fi
19422 if test -n "$GLOBUS_GSI_CREDENTIAL_LIBS"; then
19423 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS="$GLOBUS_GSI_CREDENTIAL_LIBS"
19424 elif test -n "$PKG_CONFIG"; then
19425 if test -n "$PKG_CONFIG" && \
19426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
19427 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
19428 ac_status=$?
19429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19430 test $ac_status = 0; }; then
19431 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS=`$PKG_CONFIG --libs "globus-gsi-credential" 2>/dev/null`
19432 test "x$?" != "x0" && pkg_failed=yes
19433 else
19434 pkg_failed=yes
19435 fi
19436 else
19437 pkg_failed=untried
19438 fi
19439
19440
19441
19442 if test $pkg_failed = yes; then
19443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 printf "%s\n" "no" >&6; }
19445
19446 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19447 _pkg_short_errors_supported=yes
19448 else
19449 _pkg_short_errors_supported=no
19450 fi
19451 if test $_pkg_short_errors_supported = yes; then
19452 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
19453 else
19454 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
19455 fi
19456 # Put the nasty error message in config.log where it belongs
19457 echo "$GLOBUS_GSI_CREDENTIAL_PKG_ERRORS" >&5
19458
19459 have_globus_mod=no
19460 elif test $pkg_failed = untried; then
19461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19462 printf "%s\n" "no" >&6; }
19463 have_globus_mod=no
19464 else
19465 GLOBUS_GSI_CREDENTIAL_CFLAGS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS
19466 GLOBUS_GSI_CREDENTIAL_LIBS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS
19467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19468 printf "%s\n" "yes" >&6; }
19469 have_globus_mod=yes
19470 fi
19471 if test "$have_globus_mod" = "no" ; then
19472
19473 ac_save_CFLAGS=$CFLAGS
19474 ac_save_CPPFLAGS=$CPPFLAGS
19475 ac_save_LIBS=$LIBS
19476 ac_save_LDFLAGS=$LDFLAGS
19477
19478 ac_try_CFLAGS=$ac_globus_cflags
19479
19480 if test "xglobus_gsi_credential" = "x" ; then
19481 ac_try_LIBS=""
19482 else
19483 ac_try_LIBS="-lglobus_gsi_credential$ac_globus_libsuffix"
19484 fi
19485
19486 ac_try_CPPFLAGS=$ac_try_CFLAGS
19487 if test "x$ac_globus_libdir" != "x" ; then
19488 ac_try_LDFLAGS="$ac_globus_ldflags"
19489 if test "x$LD_LIBRARY_PATH" != "x" ; then
19490 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
19491 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
19492 else
19493 export LD_LIBRARY_PATH="$ac_globus_libdir"
19494 fi
19495 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
19496 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
19497 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
19498 else
19499 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
19500 fi
19501 fi
19502
19503 CFLAGS="$ac_try_CFLAGS $CFLAGS"
19504 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
19505 LIBS="$ac_try_LIBS $LIBS"
19506 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
19507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir" >&5
19508 printf %s "checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir... " >&6; }
19509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19510 /* end confdefs.h. */
19511 #include <globus_gsi_credential.h>
19512 int main(void) {return 0;}
19513 _ACEOF
19514 if ac_fn_c_try_link "$LINENO"
19515 then :
19516 have_mod=yes
19517 else $as_nop
19518 have_mod=no
19519 fi
19520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19521 conftest$ac_exeext conftest.$ac_ext
19522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
19523 printf "%s\n" "$have_mod" >&6; }
19524
19525 if test "x$have_mod" = "xyes" ; then
19526 have_globus_mod=yes
19527 if test "x$with_globus_thr_flavor" != "x" ; then
19528 GLOBUS_GSI_CREDENTIAL_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19529 GLOBUS_GSI_CREDENTIAL_THR_CFLAGS=$ac_try_CFLAGS
19530 elif test "x$with_globus_nothr_flavor" != "x" ; then
19531 GLOBUS_GSI_CREDENTIAL_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19532 GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS=$ac_try_CFLAGS
19533 else
19534 GLOBUS_GSI_CREDENTIAL_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19535 GLOBUS_GSI_CREDENTIAL_CFLAGS=$ac_try_CFLAGS
19536 fi
19537 else
19538 have_globus_mod=no
19539 fi
19540
19541 CFLAGS=$ac_save_CFLAGS
19542 CPPFLAGS=$ac_save_CPPFLAGS
19543 LIBS=$ac_save_LIBS
19544 LDFLAGS=$ac_save_LDFLAGS
19545 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
19546 unset LD_LIBRARY_PATH
19547 else
19548 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
19549 fi
19550 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
19551 unset DYLD_LIBRARY_PATH
19552 else
19553 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
19554 fi
19555
19556
19557 fi
19558 else
19559
19560 ac_save_CFLAGS=$CFLAGS
19561 ac_save_CPPFLAGS=$CPPFLAGS
19562 ac_save_LIBS=$LIBS
19563 ac_save_LDFLAGS=$LDFLAGS
19564
19565 ac_try_CFLAGS=$ac_globus_cflags
19566
19567 if test "xglobus_gsi_credential" = "x" ; then
19568 ac_try_LIBS=""
19569 else
19570 ac_try_LIBS="-lglobus_gsi_credential$ac_globus_libsuffix"
19571 fi
19572
19573 ac_try_CPPFLAGS=$ac_try_CFLAGS
19574 if test "x$ac_globus_libdir" != "x" ; then
19575 ac_try_LDFLAGS="$ac_globus_ldflags"
19576 if test "x$LD_LIBRARY_PATH" != "x" ; then
19577 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
19578 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
19579 else
19580 export LD_LIBRARY_PATH="$ac_globus_libdir"
19581 fi
19582 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
19583 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
19584 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
19585 else
19586 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
19587 fi
19588 fi
19589
19590 CFLAGS="$ac_try_CFLAGS $CFLAGS"
19591 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
19592 LIBS="$ac_try_LIBS $LIBS"
19593 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
19594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir" >&5
19595 printf %s "checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir... " >&6; }
19596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19597 /* end confdefs.h. */
19598 #include <globus_gsi_credential.h>
19599 int main(void) {return 0;}
19600 _ACEOF
19601 if ac_fn_c_try_link "$LINENO"
19602 then :
19603 have_mod=yes
19604 else $as_nop
19605 have_mod=no
19606 fi
19607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19608 conftest$ac_exeext conftest.$ac_ext
19609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
19610 printf "%s\n" "$have_mod" >&6; }
19611
19612 if test "x$have_mod" = "xyes" ; then
19613 have_globus_mod=yes
19614 if test "x$with_globus_thr_flavor" != "x" ; then
19615 GLOBUS_GSI_CREDENTIAL_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19616 GLOBUS_GSI_CREDENTIAL_THR_CFLAGS=$ac_try_CFLAGS
19617 elif test "x$with_globus_nothr_flavor" != "x" ; then
19618 GLOBUS_GSI_CREDENTIAL_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19619 GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS=$ac_try_CFLAGS
19620 else
19621 GLOBUS_GSI_CREDENTIAL_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
19622 GLOBUS_GSI_CREDENTIAL_CFLAGS=$ac_try_CFLAGS
19623 fi
19624 else
19625 have_globus_mod=no
19626 fi
19627
19628 CFLAGS=$ac_save_CFLAGS
19629 CPPFLAGS=$ac_save_CPPFLAGS
19630 LIBS=$ac_save_LIBS
19631 LDFLAGS=$ac_save_LDFLAGS
19632 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
19633 unset LD_LIBRARY_PATH
19634 else
19635 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
19636 fi
19637 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
19638 unset DYLD_LIBRARY_PATH
19639 else
19640 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
19641 fi
19642
19643
19644 if test "$have_globus_mod" = "no" ; then
19645
19646 pkg_failed=no
19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for globus-gsi-credential" >&5
19648 printf %s "checking for globus-gsi-credential... " >&6; }
19649
19650 if test -n "$GLOBUS_GSI_CREDENTIAL_CFLAGS"; then
19651 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS="$GLOBUS_GSI_CREDENTIAL_CFLAGS"
19652 elif test -n "$PKG_CONFIG"; then
19653 if test -n "$PKG_CONFIG" && \
19654 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
19655 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
19656 ac_status=$?
19657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19658 test $ac_status = 0; }; then
19659 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS=`$PKG_CONFIG --cflags "globus-gsi-credential" 2>/dev/null`
19660 test "x$?" != "x0" && pkg_failed=yes
19661 else
19662 pkg_failed=yes
19663 fi
19664 else
19665 pkg_failed=untried
19666 fi
19667 if test -n "$GLOBUS_GSI_CREDENTIAL_LIBS"; then
19668 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS="$GLOBUS_GSI_CREDENTIAL_LIBS"
19669 elif test -n "$PKG_CONFIG"; then
19670 if test -n "$PKG_CONFIG" && \
19671 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
19672 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
19673 ac_status=$?
19674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19675 test $ac_status = 0; }; then
19676 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS=`$PKG_CONFIG --libs "globus-gsi-credential" 2>/dev/null`
19677 test "x$?" != "x0" && pkg_failed=yes
19678 else
19679 pkg_failed=yes
19680 fi
19681 else
19682 pkg_failed=untried
19683 fi
19684
19685
19686
19687 if test $pkg_failed = yes; then
19688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19689 printf "%s\n" "no" >&6; }
19690
19691 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19692 _pkg_short_errors_supported=yes
19693 else
19694 _pkg_short_errors_supported=no
19695 fi
19696 if test $_pkg_short_errors_supported = yes; then
19697 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
19698 else
19699 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
19700 fi
19701 # Put the nasty error message in config.log where it belongs
19702 echo "$GLOBUS_GSI_CREDENTIAL_PKG_ERRORS" >&5
19703
19704 have_globus_mod=no
19705 elif test $pkg_failed = untried; then
19706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19707 printf "%s\n" "no" >&6; }
19708 have_globus_mod=no
19709 else
19710 GLOBUS_GSI_CREDENTIAL_CFLAGS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS
19711 GLOBUS_GSI_CREDENTIAL_LIBS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS
19712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19713 printf "%s\n" "yes" >&6; }
19714 have_globus_mod=yes
19715 fi
19716 fi
19717 fi
19718 have_globus_gsi_credential=$have_globus_mod
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730 if test "x$have_globus_gsi_credential" != "xyes" ; then
19731 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19732 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19733 as_fn_error $? "\"no globus-gsi-credentials found\"
19734 See \`config.log' for more details" "$LINENO" 5; }
19735 fi
19736
19737
19738
19739 # Check voms location, only check for C API
19740 have_voms=no
19741
19742
19743
19744
19745 # Check whether --with-voms-prefix was given.
19746 if test ${with_voms_prefix+y}
19747 then :
19748 withval=$with_voms_prefix; ac_voms_prefix=$withval
19749 else $as_nop
19750 ac_voms_prefix=/usr
19751 fi
19752
19753
19754
19755 # Check whether --with-voms-includes was given.
19756 if test ${with_voms_includes+y}
19757 then :
19758 withval=$with_voms_includes; ac_voms_includes=$withval
19759 else $as_nop
19760 ac_voms_includes=$ac_voms_prefix/include
19761 fi
19762
19763
19764
19765 # Check whether --with-voms-libdir was given.
19766 if test ${with_voms_libdir+y}
19767 then :
19768 withval=$with_voms_libdir; ac_voms_libdir=$withval
19769 fi
19770
19771
19772 have_voms_pkgconfig=no
19773 if test "x$with_voms_prefix" = "x" -a \
19774 "x$with_voms_includes" = "x" -a \
19775 "x$with_voms_libdir" = "x" ; then
19776
19777 pkg_failed=no
19778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for voms-2.0" >&5
19779 printf %s "checking for voms-2.0... " >&6; }
19780
19781 if test -n "$VOMS_CFLAGS"; then
19782 pkg_cv_VOMS_CFLAGS="$VOMS_CFLAGS"
19783 elif test -n "$PKG_CONFIG"; then
19784 if test -n "$PKG_CONFIG" && \
19785 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-2.0\""; } >&5
19786 ($PKG_CONFIG --exists --print-errors "voms-2.0") 2>&5
19787 ac_status=$?
19788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19789 test $ac_status = 0; }; then
19790 pkg_cv_VOMS_CFLAGS=`$PKG_CONFIG --cflags "voms-2.0" 2>/dev/null`
19791 test "x$?" != "x0" && pkg_failed=yes
19792 else
19793 pkg_failed=yes
19794 fi
19795 else
19796 pkg_failed=untried
19797 fi
19798 if test -n "$VOMS_LIBS"; then
19799 pkg_cv_VOMS_LIBS="$VOMS_LIBS"
19800 elif test -n "$PKG_CONFIG"; then
19801 if test -n "$PKG_CONFIG" && \
19802 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-2.0\""; } >&5
19803 ($PKG_CONFIG --exists --print-errors "voms-2.0") 2>&5
19804 ac_status=$?
19805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19806 test $ac_status = 0; }; then
19807 pkg_cv_VOMS_LIBS=`$PKG_CONFIG --libs "voms-2.0" 2>/dev/null`
19808 test "x$?" != "x0" && pkg_failed=yes
19809 else
19810 pkg_failed=yes
19811 fi
19812 else
19813 pkg_failed=untried
19814 fi
19815
19816
19817
19818 if test $pkg_failed = yes; then
19819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19820 printf "%s\n" "no" >&6; }
19821
19822 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19823 _pkg_short_errors_supported=yes
19824 else
19825 _pkg_short_errors_supported=no
19826 fi
19827 if test $_pkg_short_errors_supported = yes; then
19828 VOMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "voms-2.0" 2>&1`
19829 else
19830 VOMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "voms-2.0" 2>&1`
19831 fi
19832 # Put the nasty error message in config.log where it belongs
19833 echo "$VOMS_PKG_ERRORS" >&5
19834
19835
19836 pkg_failed=no
19837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for voms-1.0" >&5
19838 printf %s "checking for voms-1.0... " >&6; }
19839
19840 if test -n "$VOMS_CFLAGS"; then
19841 pkg_cv_VOMS_CFLAGS="$VOMS_CFLAGS"
19842 elif test -n "$PKG_CONFIG"; then
19843 if test -n "$PKG_CONFIG" && \
19844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-1.0\""; } >&5
19845 ($PKG_CONFIG --exists --print-errors "voms-1.0") 2>&5
19846 ac_status=$?
19847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19848 test $ac_status = 0; }; then
19849 pkg_cv_VOMS_CFLAGS=`$PKG_CONFIG --cflags "voms-1.0" 2>/dev/null`
19850 test "x$?" != "x0" && pkg_failed=yes
19851 else
19852 pkg_failed=yes
19853 fi
19854 else
19855 pkg_failed=untried
19856 fi
19857 if test -n "$VOMS_LIBS"; then
19858 pkg_cv_VOMS_LIBS="$VOMS_LIBS"
19859 elif test -n "$PKG_CONFIG"; then
19860 if test -n "$PKG_CONFIG" && \
19861 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-1.0\""; } >&5
19862 ($PKG_CONFIG --exists --print-errors "voms-1.0") 2>&5
19863 ac_status=$?
19864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19865 test $ac_status = 0; }; then
19866 pkg_cv_VOMS_LIBS=`$PKG_CONFIG --libs "voms-1.0" 2>/dev/null`
19867 test "x$?" != "x0" && pkg_failed=yes
19868 else
19869 pkg_failed=yes
19870 fi
19871 else
19872 pkg_failed=untried
19873 fi
19874
19875
19876
19877 if test $pkg_failed = yes; then
19878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19879 printf "%s\n" "no" >&6; }
19880
19881 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19882 _pkg_short_errors_supported=yes
19883 else
19884 _pkg_short_errors_supported=no
19885 fi
19886 if test $_pkg_short_errors_supported = yes; then
19887 VOMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "voms-1.0" 2>&1`
19888 else
19889 VOMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "voms-1.0" 2>&1`
19890 fi
19891 # Put the nasty error message in config.log where it belongs
19892 echo "$VOMS_PKG_ERRORS" >&5
19893
19894 have_voms=no
19895 elif test $pkg_failed = untried; then
19896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19897 printf "%s\n" "no" >&6; }
19898 have_voms=no
19899 else
19900 VOMS_CFLAGS=$pkg_cv_VOMS_CFLAGS
19901 VOMS_LIBS=$pkg_cv_VOMS_LIBS
19902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19903 printf "%s\n" "yes" >&6; }
19904 have_voms=yes
19905 fi
19906
19907 elif test $pkg_failed = untried; then
19908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19909 printf "%s\n" "no" >&6; }
19910
19911 pkg_failed=no
19912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for voms-1.0" >&5
19913 printf %s "checking for voms-1.0... " >&6; }
19914
19915 if test -n "$VOMS_CFLAGS"; then
19916 pkg_cv_VOMS_CFLAGS="$VOMS_CFLAGS"
19917 elif test -n "$PKG_CONFIG"; then
19918 if test -n "$PKG_CONFIG" && \
19919 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-1.0\""; } >&5
19920 ($PKG_CONFIG --exists --print-errors "voms-1.0") 2>&5
19921 ac_status=$?
19922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19923 test $ac_status = 0; }; then
19924 pkg_cv_VOMS_CFLAGS=`$PKG_CONFIG --cflags "voms-1.0" 2>/dev/null`
19925 test "x$?" != "x0" && pkg_failed=yes
19926 else
19927 pkg_failed=yes
19928 fi
19929 else
19930 pkg_failed=untried
19931 fi
19932 if test -n "$VOMS_LIBS"; then
19933 pkg_cv_VOMS_LIBS="$VOMS_LIBS"
19934 elif test -n "$PKG_CONFIG"; then
19935 if test -n "$PKG_CONFIG" && \
19936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-1.0\""; } >&5
19937 ($PKG_CONFIG --exists --print-errors "voms-1.0") 2>&5
19938 ac_status=$?
19939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19940 test $ac_status = 0; }; then
19941 pkg_cv_VOMS_LIBS=`$PKG_CONFIG --libs "voms-1.0" 2>/dev/null`
19942 test "x$?" != "x0" && pkg_failed=yes
19943 else
19944 pkg_failed=yes
19945 fi
19946 else
19947 pkg_failed=untried
19948 fi
19949
19950
19951
19952 if test $pkg_failed = yes; then
19953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19954 printf "%s\n" "no" >&6; }
19955
19956 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19957 _pkg_short_errors_supported=yes
19958 else
19959 _pkg_short_errors_supported=no
19960 fi
19961 if test $_pkg_short_errors_supported = yes; then
19962 VOMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "voms-1.0" 2>&1`
19963 else
19964 VOMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "voms-1.0" 2>&1`
19965 fi
19966 # Put the nasty error message in config.log where it belongs
19967 echo "$VOMS_PKG_ERRORS" >&5
19968
19969 have_voms=no
19970 elif test $pkg_failed = untried; then
19971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19972 printf "%s\n" "no" >&6; }
19973 have_voms=no
19974 else
19975 VOMS_CFLAGS=$pkg_cv_VOMS_CFLAGS
19976 VOMS_LIBS=$pkg_cv_VOMS_LIBS
19977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19978 printf "%s\n" "yes" >&6; }
19979 have_voms=yes
19980 fi
19981
19982 else
19983 VOMS_CFLAGS=$pkg_cv_VOMS_CFLAGS
19984 VOMS_LIBS=$pkg_cv_VOMS_LIBS
19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19986 printf "%s\n" "yes" >&6; }
19987 have_voms=yes
19988 fi
19989 if test "$have_voms" = "no" ; then
19990
19991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VOMS installation at system default and ${ac_voms_prefix}" >&5
19992 printf %s "checking for VOMS installation at system default and ${ac_voms_prefix}... " >&6; }
19993
19994 ac_save_CFLAGS=$CFLAGS
19995 ac_save_CPPFLAGS=$CPPFLAGS
19996 ac_save_LIBS=$LIBS
19997 if test -n "$ac_voms_libdir" ; then
19998 VOMS_PATH_LIBS="-L$ac_voms_libdir"
19999 elif test -n "$ac_voms_prefix" ; then
20000 if test "x$host_cpu" = "xx86_64" \
20001 -a -e $ac_voms_prefix/lib64 \
20002 -a ! -h $ac_voms_prefix/lib64 ; then
20003 ac_voms_libdir="$ac_voms_prefix/lib64"
20004 else
20005 ac_voms_libdir="$ac_voms_prefix/lib"
20006 fi
20007 VOMS_PATH_LIBS="-L$ac_voms_libdir"
20008 else
20009 VOMS_PATH_LIBS=""
20010 fi
20011
20012 if test "x$ac_voms_includes" != "x" ; then
20013 VOMS_CFLAGS="-I$ac_voms_includes"
20014 fi
20015
20016 VOMS_LIBS="$VOMS_PATH_LIBS -lvomsc -lvomsapi"
20017 VOMS_CPP_LIBS="$VOMS_PATH_LIBS -lvomsapi"
20018 VOMS_STATIC_LIBS="$ac_voms_libdir/libvomsc.a"
20019
20020 if test -n "$GLOBUS_THR_FLAVOR" ; then
20021 VOMS_THR_LIBS="$VOMS_PATH_LIBS -lvomsc_$GLOBUS_THR_FLAVOR"
20022 VOMS_CPP_THR_LIBS="$VOMS_PATH_LIBS -lvomsapi_$GLOBUS_THR_FLAVOR"
20023 VOMS_STATIC_THR_LIBS="$ac_voms_libdir/libvomsc_$GLOBUS_THR_FLAVOR.a"
20024 else
20025 VOMS_THR_LIBS=""
20026 VOMS_CPP_THR_LIBS=""
20027 VOMS_STATIC_THR_LIBS=""
20028 fi
20029
20030 if test -n "$GLOBUS_NOTHR_FLAVOR" ; then
20031 VOMS_NOTHR_LIBS="$VOMS_PATH_LIBS -lvomsc_$GLOBUS_NOTHR_FLAVOR"
20032 VOMS_CPP_NOTHR_LIBS="$VOMS_PATH_LIBS -lvomsapi_$GLOBUS_NOTHR_FLAVOR"
20033 VOMS_STATIC_NOTHR_LIBS="$ac_voms_libdir/libvomsc_$GLOBUS_NOTHR_FLAVOR.a"
20034 else
20035 VOMS_NOTHR_LIBS=""
20036 VOMS_CPP_NOTHR_LIBS=""
20037 VOMS_STATIC_NOTHR_LIBS=""
20038 fi
20039
20040
20041
20042 ac_ext=c
20043 ac_cpp='$CPP $CPPFLAGS'
20044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20047
20048 CFLAGS="$GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS $GLOBUS_GSSAPI_GSI_CFLAGS $VOMS_CFLAGS $CFLAGS"
20049 LIBS="$VOMS_LIBS $VOMS_THR_LIBS $VOMS_NOTHR_LIBS $LIBS"
20050
20051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20052 /* end confdefs.h. */
20053 #include <voms/voms_apic.h>
20054 int
20055 main (void)
20056 {
20057 struct vomsdata *voms_info = VOMS_Init("/tmp", "/tmp")
20058 ;
20059 return 0;
20060 }
20061 _ACEOF
20062 if ac_fn_c_try_compile "$LINENO"
20063 then :
20064 ac_cv_vomsc_valid=yes
20065 else $as_nop
20066 ac_cv_vomsc_valid=no
20067 fi
20068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20069 CFLAGS=$ac_save_CFLAGS
20070 LIBS=$ac_save_LIBS
20071 ac_ext=c
20072 ac_cpp='$CPP $CPPFLAGS'
20073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20076
20077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vomsc_valid for c api" >&5
20078 printf "%s\n" "$ac_cv_vomsc_valid for c api" >&6; }
20079
20080
20081
20082
20083
20084 if test "x$ac_cv_vomsc_valid" = "xyes" ; then
20085
20086 have_voms=yes
20087 else
20088 VOMS_LIBS=""
20089 VOMS_THR_LIBS=""
20090 VOMS_NOTHR_LIBS=""
20091 VOMS_CPP_LIBS=""
20092 VOMS_CPP_THR_LIBS=""
20093 VOMS_CPP_NOTHR_LIBS=""
20094 VOMS_STATIC_LIBS=""
20095 VOMS_STATIC_THR_LIBS=""
20096 VOMS_STATIC_NOTHR_LIBS=""
20097 have_voms=no
20098 fi
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111 else
20112 VOMS_CPP_LIBS=${VOMS_LIBS}
20113 fi
20114 else
20115
20116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VOMS installation at system default and ${ac_voms_prefix}" >&5
20117 printf %s "checking for VOMS installation at system default and ${ac_voms_prefix}... " >&6; }
20118
20119 ac_save_CFLAGS=$CFLAGS
20120 ac_save_CPPFLAGS=$CPPFLAGS
20121 ac_save_LIBS=$LIBS
20122 if test -n "$ac_voms_libdir" ; then
20123 VOMS_PATH_LIBS="-L$ac_voms_libdir"
20124 elif test -n "$ac_voms_prefix" ; then
20125 if test "x$host_cpu" = "xx86_64" \
20126 -a -e $ac_voms_prefix/lib64 \
20127 -a ! -h $ac_voms_prefix/lib64 ; then
20128 ac_voms_libdir="$ac_voms_prefix/lib64"
20129 else
20130 ac_voms_libdir="$ac_voms_prefix/lib"
20131 fi
20132 VOMS_PATH_LIBS="-L$ac_voms_libdir"
20133 else
20134 VOMS_PATH_LIBS=""
20135 fi
20136
20137 if test "x$ac_voms_includes" != "x" ; then
20138 VOMS_CFLAGS="-I$ac_voms_includes"
20139 fi
20140
20141 VOMS_LIBS="$VOMS_PATH_LIBS -lvomsc -lvomsapi"
20142 VOMS_CPP_LIBS="$VOMS_PATH_LIBS -lvomsapi"
20143 VOMS_STATIC_LIBS="$ac_voms_libdir/libvomsc.a"
20144
20145 if test -n "$GLOBUS_THR_FLAVOR" ; then
20146 VOMS_THR_LIBS="$VOMS_PATH_LIBS -lvomsc_$GLOBUS_THR_FLAVOR"
20147 VOMS_CPP_THR_LIBS="$VOMS_PATH_LIBS -lvomsapi_$GLOBUS_THR_FLAVOR"
20148 VOMS_STATIC_THR_LIBS="$ac_voms_libdir/libvomsc_$GLOBUS_THR_FLAVOR.a"
20149 else
20150 VOMS_THR_LIBS=""
20151 VOMS_CPP_THR_LIBS=""
20152 VOMS_STATIC_THR_LIBS=""
20153 fi
20154
20155 if test -n "$GLOBUS_NOTHR_FLAVOR" ; then
20156 VOMS_NOTHR_LIBS="$VOMS_PATH_LIBS -lvomsc_$GLOBUS_NOTHR_FLAVOR"
20157 VOMS_CPP_NOTHR_LIBS="$VOMS_PATH_LIBS -lvomsapi_$GLOBUS_NOTHR_FLAVOR"
20158 VOMS_STATIC_NOTHR_LIBS="$ac_voms_libdir/libvomsc_$GLOBUS_NOTHR_FLAVOR.a"
20159 else
20160 VOMS_NOTHR_LIBS=""
20161 VOMS_CPP_NOTHR_LIBS=""
20162 VOMS_STATIC_NOTHR_LIBS=""
20163 fi
20164
20165
20166
20167 ac_ext=c
20168 ac_cpp='$CPP $CPPFLAGS'
20169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20172
20173 CFLAGS="$GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS $GLOBUS_GSSAPI_GSI_CFLAGS $VOMS_CFLAGS $CFLAGS"
20174 LIBS="$VOMS_LIBS $VOMS_THR_LIBS $VOMS_NOTHR_LIBS $LIBS"
20175
20176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20177 /* end confdefs.h. */
20178 #include <voms/voms_apic.h>
20179 int
20180 main (void)
20181 {
20182 struct vomsdata *voms_info = VOMS_Init("/tmp", "/tmp")
20183 ;
20184 return 0;
20185 }
20186 _ACEOF
20187 if ac_fn_c_try_compile "$LINENO"
20188 then :
20189 ac_cv_vomsc_valid=yes
20190 else $as_nop
20191 ac_cv_vomsc_valid=no
20192 fi
20193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20194 CFLAGS=$ac_save_CFLAGS
20195 LIBS=$ac_save_LIBS
20196 ac_ext=c
20197 ac_cpp='$CPP $CPPFLAGS'
20198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20201
20202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_vomsc_valid for c api" >&5
20203 printf "%s\n" "$ac_cv_vomsc_valid for c api" >&6; }
20204
20205
20206
20207
20208
20209 if test "x$ac_cv_vomsc_valid" = "xyes" ; then
20210
20211 have_voms=yes
20212 else
20213 VOMS_LIBS=""
20214 VOMS_THR_LIBS=""
20215 VOMS_NOTHR_LIBS=""
20216 VOMS_CPP_LIBS=""
20217 VOMS_CPP_THR_LIBS=""
20218 VOMS_CPP_NOTHR_LIBS=""
20219 VOMS_STATIC_LIBS=""
20220 VOMS_STATIC_THR_LIBS=""
20221 VOMS_STATIC_NOTHR_LIBS=""
20222 have_voms=no
20223 fi
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236 if test "$have_voms" = "no" ; then
20237
20238 pkg_failed=no
20239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for voms-2.0" >&5
20240 printf %s "checking for voms-2.0... " >&6; }
20241
20242 if test -n "$VOMS_CFLAGS"; then
20243 pkg_cv_VOMS_CFLAGS="$VOMS_CFLAGS"
20244 elif test -n "$PKG_CONFIG"; then
20245 if test -n "$PKG_CONFIG" && \
20246 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-2.0\""; } >&5
20247 ($PKG_CONFIG --exists --print-errors "voms-2.0") 2>&5
20248 ac_status=$?
20249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20250 test $ac_status = 0; }; then
20251 pkg_cv_VOMS_CFLAGS=`$PKG_CONFIG --cflags "voms-2.0" 2>/dev/null`
20252 test "x$?" != "x0" && pkg_failed=yes
20253 else
20254 pkg_failed=yes
20255 fi
20256 else
20257 pkg_failed=untried
20258 fi
20259 if test -n "$VOMS_LIBS"; then
20260 pkg_cv_VOMS_LIBS="$VOMS_LIBS"
20261 elif test -n "$PKG_CONFIG"; then
20262 if test -n "$PKG_CONFIG" && \
20263 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-2.0\""; } >&5
20264 ($PKG_CONFIG --exists --print-errors "voms-2.0") 2>&5
20265 ac_status=$?
20266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20267 test $ac_status = 0; }; then
20268 pkg_cv_VOMS_LIBS=`$PKG_CONFIG --libs "voms-2.0" 2>/dev/null`
20269 test "x$?" != "x0" && pkg_failed=yes
20270 else
20271 pkg_failed=yes
20272 fi
20273 else
20274 pkg_failed=untried
20275 fi
20276
20277
20278
20279 if test $pkg_failed = yes; then
20280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20281 printf "%s\n" "no" >&6; }
20282
20283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20284 _pkg_short_errors_supported=yes
20285 else
20286 _pkg_short_errors_supported=no
20287 fi
20288 if test $_pkg_short_errors_supported = yes; then
20289 VOMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "voms-2.0" 2>&1`
20290 else
20291 VOMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "voms-2.0" 2>&1`
20292 fi
20293 # Put the nasty error message in config.log where it belongs
20294 echo "$VOMS_PKG_ERRORS" >&5
20295
20296
20297 pkg_failed=no
20298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for voms-1.0" >&5
20299 printf %s "checking for voms-1.0... " >&6; }
20300
20301 if test -n "$VOMS_CFLAGS"; then
20302 pkg_cv_VOMS_CFLAGS="$VOMS_CFLAGS"
20303 elif test -n "$PKG_CONFIG"; then
20304 if test -n "$PKG_CONFIG" && \
20305 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-1.0\""; } >&5
20306 ($PKG_CONFIG --exists --print-errors "voms-1.0") 2>&5
20307 ac_status=$?
20308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20309 test $ac_status = 0; }; then
20310 pkg_cv_VOMS_CFLAGS=`$PKG_CONFIG --cflags "voms-1.0" 2>/dev/null`
20311 test "x$?" != "x0" && pkg_failed=yes
20312 else
20313 pkg_failed=yes
20314 fi
20315 else
20316 pkg_failed=untried
20317 fi
20318 if test -n "$VOMS_LIBS"; then
20319 pkg_cv_VOMS_LIBS="$VOMS_LIBS"
20320 elif test -n "$PKG_CONFIG"; then
20321 if test -n "$PKG_CONFIG" && \
20322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-1.0\""; } >&5
20323 ($PKG_CONFIG --exists --print-errors "voms-1.0") 2>&5
20324 ac_status=$?
20325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20326 test $ac_status = 0; }; then
20327 pkg_cv_VOMS_LIBS=`$PKG_CONFIG --libs "voms-1.0" 2>/dev/null`
20328 test "x$?" != "x0" && pkg_failed=yes
20329 else
20330 pkg_failed=yes
20331 fi
20332 else
20333 pkg_failed=untried
20334 fi
20335
20336
20337
20338 if test $pkg_failed = yes; then
20339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20340 printf "%s\n" "no" >&6; }
20341
20342 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20343 _pkg_short_errors_supported=yes
20344 else
20345 _pkg_short_errors_supported=no
20346 fi
20347 if test $_pkg_short_errors_supported = yes; then
20348 VOMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "voms-1.0" 2>&1`
20349 else
20350 VOMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "voms-1.0" 2>&1`
20351 fi
20352 # Put the nasty error message in config.log where it belongs
20353 echo "$VOMS_PKG_ERRORS" >&5
20354
20355 have_voms=no
20356 elif test $pkg_failed = untried; then
20357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20358 printf "%s\n" "no" >&6; }
20359 have_voms=no
20360 else
20361 VOMS_CFLAGS=$pkg_cv_VOMS_CFLAGS
20362 VOMS_LIBS=$pkg_cv_VOMS_LIBS
20363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20364 printf "%s\n" "yes" >&6; }
20365 have_voms=yes
20366 fi
20367
20368 elif test $pkg_failed = untried; then
20369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20370 printf "%s\n" "no" >&6; }
20371
20372 pkg_failed=no
20373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for voms-1.0" >&5
20374 printf %s "checking for voms-1.0... " >&6; }
20375
20376 if test -n "$VOMS_CFLAGS"; then
20377 pkg_cv_VOMS_CFLAGS="$VOMS_CFLAGS"
20378 elif test -n "$PKG_CONFIG"; then
20379 if test -n "$PKG_CONFIG" && \
20380 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-1.0\""; } >&5
20381 ($PKG_CONFIG --exists --print-errors "voms-1.0") 2>&5
20382 ac_status=$?
20383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20384 test $ac_status = 0; }; then
20385 pkg_cv_VOMS_CFLAGS=`$PKG_CONFIG --cflags "voms-1.0" 2>/dev/null`
20386 test "x$?" != "x0" && pkg_failed=yes
20387 else
20388 pkg_failed=yes
20389 fi
20390 else
20391 pkg_failed=untried
20392 fi
20393 if test -n "$VOMS_LIBS"; then
20394 pkg_cv_VOMS_LIBS="$VOMS_LIBS"
20395 elif test -n "$PKG_CONFIG"; then
20396 if test -n "$PKG_CONFIG" && \
20397 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"voms-1.0\""; } >&5
20398 ($PKG_CONFIG --exists --print-errors "voms-1.0") 2>&5
20399 ac_status=$?
20400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20401 test $ac_status = 0; }; then
20402 pkg_cv_VOMS_LIBS=`$PKG_CONFIG --libs "voms-1.0" 2>/dev/null`
20403 test "x$?" != "x0" && pkg_failed=yes
20404 else
20405 pkg_failed=yes
20406 fi
20407 else
20408 pkg_failed=untried
20409 fi
20410
20411
20412
20413 if test $pkg_failed = yes; then
20414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20415 printf "%s\n" "no" >&6; }
20416
20417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20418 _pkg_short_errors_supported=yes
20419 else
20420 _pkg_short_errors_supported=no
20421 fi
20422 if test $_pkg_short_errors_supported = yes; then
20423 VOMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "voms-1.0" 2>&1`
20424 else
20425 VOMS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "voms-1.0" 2>&1`
20426 fi
20427 # Put the nasty error message in config.log where it belongs
20428 echo "$VOMS_PKG_ERRORS" >&5
20429
20430 have_voms=no
20431 elif test $pkg_failed = untried; then
20432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20433 printf "%s\n" "no" >&6; }
20434 have_voms=no
20435 else
20436 VOMS_CFLAGS=$pkg_cv_VOMS_CFLAGS
20437 VOMS_LIBS=$pkg_cv_VOMS_LIBS
20438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20439 printf "%s\n" "yes" >&6; }
20440 have_voms=yes
20441 fi
20442
20443 else
20444 VOMS_CFLAGS=$pkg_cv_VOMS_CFLAGS
20445 VOMS_LIBS=$pkg_cv_VOMS_LIBS
20446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20447 printf "%s\n" "yes" >&6; }
20448 have_voms=yes
20449 fi
20450 if test "$have_voms" = "yes" ; then
20451 VOMS_CPP_LIBS=${VOMS_LIBS}
20452 fi
20453 fi
20454 fi
20455
20456 VOMS_THR_LIBS=${VOMS_LIBS}
20457 VOMS_NOTHR_LIBS=${VOMS_LIBS}
20458 VOMS_CPP_THR_LIBS=${VOMS_CPP_LIBS}
20459 VOMS_CPP_NOTHR_LIBS=${VOMS_CPP_LIBS}
20460
20461
20462
20463
20464
20465
20466
20467
20468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"VOMS found $have_voms\"" >&5
20469 printf "%s\n" "\"VOMS found $have_voms\"" >&6; }
20470 if test "x$have_voms" = "xno" ; then
20471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20472 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20473 as_fn_error $? "\"no working voms found\"
20474 See \`config.log' for more details" "$LINENO" 5; }
20475 fi
20476
20477 ac_config_files="$ac_config_files src/lcmaps.pc"
20478
20479 ac_config_files="$ac_config_files src/lcmaps-gss-assist-gridmap.pc"
20480
20481 ac_config_files="$ac_config_files src/lcmaps-return-poolindex.pc"
20482
20483 ac_config_files="$ac_config_files src/lcmaps-return-account-from-pem.pc"
20484
20485 ac_config_files="$ac_config_files src/lcmaps-verify-account-from-pem.pc"
20486
20487
20488
20489 else $as_nop
20490
20491 LCMAPS_FLAVOUR="_without_gsi"
20492 LCMAPS_FLAVOUR_NAME="-without-gsi"
20493
20494 PACKAGE="$PACKAGE-without-gsi"
20495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting package name to $PACKAGE" >&5
20496 printf "%s\n" "Setting package name to $PACKAGE" >&6; }
20497
20498
20499 PACKAGE_TARNAME="$PACKAGE_TARNAME-without-gsi"
20500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: setting package tarname $PACKAGE_TARNAME" >&5
20501 printf "%s\n" "setting package tarname $PACKAGE_TARNAME" >&6; }
20502
20503
20504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Creating GSI-free flavour of LCMAPS" >&5
20505 printf "%s\n" "Creating GSI-free flavour of LCMAPS" >&6; }
20506
20507 ac_config_files="$ac_config_files src/lcmaps-without-gsi.pc"
20508
20509 ac_config_files="$ac_config_files src/lcmaps-gss-assist-gridmap-without-gsi.pc:src/lcmaps-gss-assist-gridmap.pc.in"
20510
20511 ac_config_files="$ac_config_files src/lcmaps-return-poolindex-without-gsi.pc:src/lcmaps-return-poolindex.pc.in"
20512
20513
20514 fi
20515
20516 fi
20517
20518 if test x$enable_gsi_mode = xyes; then
20519 LCMAPS_GSI_MODE_TRUE=
20520 LCMAPS_GSI_MODE_FALSE='#'
20521 else
20522 LCMAPS_GSI_MODE_TRUE='#'
20523 LCMAPS_GSI_MODE_FALSE=
20524 fi
20525
20526
20527
20528
20529
20530 # Set OSG macros when needed
20531 # Check whether --enable-osg was given.
20532 if test ${enable_osg+y}
20533 then :
20534 enableval=$enable_osg; ADD_THESE_DEFINES="-D ALLOW_EMPTY_CREDENTIALS -D CONF_LCMAPS_DEBUG_LEVEL=4 -D GUMSOSG"
20535 else $as_nop
20536 ADD_THESE_DEFINES="-D ALLOW_EMPTY_CREDENTIALS -D CONF_LCMAPS_DEBUG_LEVEL=4"
20537 fi
20538
20539
20540
20541
20542 # Set default directories
20543 LCMAPS_ETC_HOME=${sysconfdir}/lcmaps
20544
20545 LCMAPS_LIB_HOME=$libdir
20546
20547
20548
20549 # Check whether --with-lcmaps_moduledir was given.
20550 if test ${with_lcmaps_moduledir+y}
20551 then :
20552 withval=$with_lcmaps_moduledir; if test "x`echo $withval|cut -c1`" = "x/"
20553 then :
20554 LCMAPS_MOD_HOME=$withval
20555
20556 else $as_nop
20557 LCMAPS_MOD_HOME=$LCMAPS_LIB_HOME/$withval
20558
20559 fi
20560
20561 else $as_nop
20562 LCMAPS_MOD_HOME=$LCMAPS_LIB_HOME/lcmaps
20563
20564
20565 fi
20566
20567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LCMAPS_MOD_HOME set to $LCMAPS_MOD_HOME" >&5
20568 printf "%s\n" "LCMAPS_MOD_HOME set to $LCMAPS_MOD_HOME" >&6; }
20569
20570 LCMAPS_MAJOR_VERSION=`echo ${VERSION}|cut -d. -f1`
20571 LCMAPS_MINOR_VERSION=`echo ${VERSION}|cut -d. -f2`
20572 LCMAPS_PATCH_VERSION=`echo ${VERSION}|cut -d. -f3`
20573
20574
20575
20576
20577 # Configuration items
20578 ac_config_files="$ac_config_files Makefile"
20579
20580 ac_config_files="$ac_config_files doc/Makefile"
20581
20582 ac_config_files="$ac_config_files doc/evaluationmanager/Makefile"
20583
20584 ac_config_files="$ac_config_files interface/Makefile"
20585
20586 ac_config_files="$ac_config_files interface/lcmaps_version.h"
20587
20588 ac_config_files="$ac_config_files interface/lcmaps-interface.pc"
20589
20590 ac_config_files="$ac_config_files interface/lcmaps-globus-interface.pc"
20591
20592 ac_config_files="$ac_config_files interface/lcmaps-openssl-interface.pc"
20593
20594 ac_config_files="$ac_config_files interface/lcmaps-basic-interface.pc"
20595
20596
20597 ac_config_headers="$ac_config_headers src/lcmaps_config.h"
20598
20599
20600 cat >confcache <<\_ACEOF
20601 # This file is a shell script that caches the results of configure
20602 # tests run on this system so they can be shared between configure
20603 # scripts and configure runs, see configure's option --config-cache.
20604 # It is not useful on other systems. If it contains results you don't
20605 # want to keep, you may remove or edit it.
20606 #
20607 # config.status only pays attention to the cache file if you give it
20608 # the --recheck option to rerun configure.
20609 #
20610 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20611 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20612 # following values.
20613
20614 _ACEOF
20615
20616 # The following way of writing the cache mishandles newlines in values,
20617 # but we know of no workaround that is simple, portable, and efficient.
20618 # So, we kill variables containing newlines.
20619 # Ultrix sh set writes to stderr and can't be redirected directly,
20620 # and sets the high bit in the cache file unless we assign to the vars.
20621 (
20622 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20623 eval ac_val=\$$ac_var
20624 case $ac_val in #(
20625 *${as_nl}*)
20626 case $ac_var in #(
20627 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20628 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20629 esac
20630 case $ac_var in #(
20631 _ | IFS | as_nl) ;; #(
20632 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20633 *) { eval $ac_var=; unset $ac_var;} ;;
20634 esac ;;
20635 esac
20636 done
20637
20638 (set) 2>&1 |
20639 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20640 *${as_nl}ac_space=\ *)
20641 # `set' does not quote correctly, so add quotes: double-quote
20642 # substitution turns \\\\ into \\, and sed turns \\ into \.
20643 sed -n \
20644 "s/'/'\\\\''/g;
20645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20646 ;; #(
20647 *)
20648 # `set' quotes correctly as required by POSIX, so do not add quotes.
20649 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20650 ;;
20651 esac |
20652 sort
20653 ) |
20654 sed '
20655 /^ac_cv_env_/b end
20656 t clear
20657 :clear
20658 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20659 t end
20660 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20661 :end' >>confcache
20662 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20663 if test -w "$cache_file"; then
20664 if test "x$cache_file" != "x/dev/null"; then
20665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20666 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20667 if test ! -f "$cache_file" || test -h "$cache_file"; then
20668 cat confcache >"$cache_file"
20669 else
20670 case $cache_file in #(
20671 */* | ?:*)
20672 mv -f confcache "$cache_file"$$ &&
20673 mv -f "$cache_file"$$ "$cache_file" ;; #(
20674 *)
20675 mv -f confcache "$cache_file" ;;
20676 esac
20677 fi
20678 fi
20679 else
20680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20681 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20682 fi
20683 fi
20684 rm -f confcache
20685
20686 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20687 # Let make expand exec_prefix.
20688 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20689
20690 DEFS=-DHAVE_CONFIG_H
20691
20692 ac_libobjs=
20693 ac_ltlibobjs=
20694 U=
20695 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20696 # 1. Remove the extension, and $U if already installed.
20697 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20698 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20699 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20700 # will be set to the directory where LIBOBJS objects are built.
20701 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20702 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20703 done
20704 LIBOBJS=$ac_libobjs
20705
20706 LTLIBOBJS=$ac_ltlibobjs
20707
20708
20709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20710 printf %s "checking that generated files are newer than configure... " >&6; }
20711 if test -n "$am_sleep_pid"; then
20712 # Hide warnings about reused PIDs.
20713 wait $am_sleep_pid 2>/dev/null
20714 fi
20715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20716 printf "%s\n" "done" >&6; }
20717 if test -n "$EXEEXT"; then
20718 am__EXEEXT_TRUE=
20719 am__EXEEXT_FALSE='#'
20720 else
20721 am__EXEEXT_TRUE='#'
20722 am__EXEEXT_FALSE=
20723 fi
20724
20725 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20726 as_fn_error $? "conditional \"AMDEP\" was never defined.
20727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20728 fi
20729 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20730 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20732 fi
20733 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20734 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20736 fi
20737 if test -z "${LEX_HAS_D_TRUE}" && test -z "${LEX_HAS_D_FALSE}"; then
20738 as_fn_error $? "conditional \"LEX_HAS_D\" was never defined.
20739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20740 fi
20741 if test -z "${ENABLE_HEADERS_TRUE}" && test -z "${ENABLE_HEADERS_FALSE}"; then
20742 as_fn_error $? "conditional \"ENABLE_HEADERS\" was never defined.
20743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20744 fi
20745 if test -z "${LCMAPS_GSI_MODE_TRUE}" && test -z "${LCMAPS_GSI_MODE_FALSE}"; then
20746 as_fn_error $? "conditional \"LCMAPS_GSI_MODE\" was never defined.
20747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20748 fi
20749
20750 : "${CONFIG_STATUS=./config.status}"
20751 ac_write_fail=0
20752 ac_clean_files_save=$ac_clean_files
20753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20755 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20756 as_write_fail=0
20757 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20758 #! $SHELL
20759 # Generated by $as_me.
20760 # Run this file to recreate the current configuration.
20761 # Compiler output produced by configure, useful for debugging
20762 # configure, is in config.log if it exists.
20763
20764 debug=false
20765 ac_cs_recheck=false
20766 ac_cs_silent=false
20767
20768 SHELL=\${CONFIG_SHELL-$SHELL}
20769 export SHELL
20770 _ASEOF
20771 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20772 ## -------------------- ##
20773 ## M4sh Initialization. ##
20774 ## -------------------- ##
20775
20776 # Be more Bourne compatible
20777 DUALCASE=1; export DUALCASE # for MKS sh
20778 as_nop=:
20779 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20780 then :
20781 emulate sh
20782 NULLCMD=:
20783 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20784 # is contrary to our usage. Disable this feature.
20785 alias -g '${1+"$@"}'='"$@"'
20786 setopt NO_GLOB_SUBST
20787 else $as_nop
20788 case `(set -o) 2>/dev/null` in #(
20789 *posix*) :
20790 set -o posix ;; #(
20791 *) :
20792 ;;
20793 esac
20794 fi
20795
20796
20797
20798 # Reset variables that may have inherited troublesome values from
20799 # the environment.
20800
20801 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20802 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20803 # side effect of setting IFS to empty, thus disabling word splitting.)
20804 # Quoting is to prevent editors from complaining about space-tab.
20805 as_nl='
20806 '
20807 export as_nl
20808 IFS=" "" $as_nl"
20809
20810 PS1='$ '
20811 PS2='> '
20812 PS4='+ '
20813
20814 # Ensure predictable behavior from utilities with locale-dependent output.
20815 LC_ALL=C
20816 export LC_ALL
20817 LANGUAGE=C
20818 export LANGUAGE
20819
20820 # We cannot yet rely on "unset" to work, but we need these variables
20821 # to be unset--not just set to an empty or harmless value--now, to
20822 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20823 # also avoids known problems related to "unset" and subshell syntax
20824 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20825 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20826 do eval test \${$as_var+y} \
20827 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20828 done
20829
20830 # Ensure that fds 0, 1, and 2 are open.
20831 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20832 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20833 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20834
20835 # The user is always right.
20836 if ${PATH_SEPARATOR+false} :; then
20837 PATH_SEPARATOR=:
20838 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20839 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20840 PATH_SEPARATOR=';'
20841 }
20842 fi
20843
20844
20845 # Find who we are. Look in the path if we contain no directory separator.
20846 as_myself=
20847 case $0 in #((
20848 *[\\/]* ) as_myself=$0 ;;
20849 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20850 for as_dir in $PATH
20851 do
20852 IFS=$as_save_IFS
20853 case $as_dir in #(((
20854 '') as_dir=./ ;;
20855 */) ;;
20856 *) as_dir=$as_dir/ ;;
20857 esac
20858 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20859 done
20860 IFS=$as_save_IFS
20861
20862 ;;
20863 esac
20864 # We did not find ourselves, most probably we were run as `sh COMMAND'
20865 # in which case we are not to be found in the path.
20866 if test "x$as_myself" = x; then
20867 as_myself=$0
20868 fi
20869 if test ! -f "$as_myself"; then
20870 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20871 exit 1
20872 fi
20873
20874
20875
20876 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20877 # ----------------------------------------
20878 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20879 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20880 # script with STATUS, using 1 if that was 0.
20881 as_fn_error ()
20882 {
20883 as_status=$1; test $as_status -eq 0 && as_status=1
20884 if test "$4"; then
20885 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20887 fi
20888 printf "%s\n" "$as_me: error: $2" >&2
20889 as_fn_exit $as_status
20890 } # as_fn_error
20891
20892
20893
20894 # as_fn_set_status STATUS
20895 # -----------------------
20896 # Set $? to STATUS, without forking.
20897 as_fn_set_status ()
20898 {
20899 return $1
20900 } # as_fn_set_status
20901
20902 # as_fn_exit STATUS
20903 # -----------------
20904 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20905 as_fn_exit ()
20906 {
20907 set +e
20908 as_fn_set_status $1
20909 exit $1
20910 } # as_fn_exit
20911
20912 # as_fn_unset VAR
20913 # ---------------
20914 # Portably unset VAR.
20915 as_fn_unset ()
20916 {
20917 { eval $1=; unset $1;}
20918 }
20919 as_unset=as_fn_unset
20920
20921 # as_fn_append VAR VALUE
20922 # ----------------------
20923 # Append the text in VALUE to the end of the definition contained in VAR. Take
20924 # advantage of any shell optimizations that allow amortized linear growth over
20925 # repeated appends, instead of the typical quadratic growth present in naive
20926 # implementations.
20927 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20928 then :
20929 eval 'as_fn_append ()
20930 {
20931 eval $1+=\$2
20932 }'
20933 else $as_nop
20934 as_fn_append ()
20935 {
20936 eval $1=\$$1\$2
20937 }
20938 fi # as_fn_append
20939
20940 # as_fn_arith ARG...
20941 # ------------------
20942 # Perform arithmetic evaluation on the ARGs, and store the result in the
20943 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20944 # must be portable across $(()) and expr.
20945 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20946 then :
20947 eval 'as_fn_arith ()
20948 {
20949 as_val=$(( $* ))
20950 }'
20951 else $as_nop
20952 as_fn_arith ()
20953 {
20954 as_val=`expr "$@" || test $? -eq 1`
20955 }
20956 fi # as_fn_arith
20957
20958
20959 if expr a : '\(a\)' >/dev/null 2>&1 &&
20960 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20961 as_expr=expr
20962 else
20963 as_expr=false
20964 fi
20965
20966 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20967 as_basename=basename
20968 else
20969 as_basename=false
20970 fi
20971
20972 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20973 as_dirname=dirname
20974 else
20975 as_dirname=false
20976 fi
20977
20978 as_me=`$as_basename -- "$0" ||
20979 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20980 X"$0" : 'X\(//\)$' \| \
20981 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20982 printf "%s\n" X/"$0" |
20983 sed '/^.*\/\([^/][^/]*\)\/*$/{
20984 s//\1/
20985 q
20986 }
20987 /^X\/\(\/\/\)$/{
20988 s//\1/
20989 q
20990 }
20991 /^X\/\(\/\).*/{
20992 s//\1/
20993 q
20994 }
20995 s/.*/./; q'`
20996
20997 # Avoid depending upon Character Ranges.
20998 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20999 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21000 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21001 as_cr_digits='0123456789'
21002 as_cr_alnum=$as_cr_Letters$as_cr_digits
21003
21004
21005 # Determine whether it's possible to make 'echo' print without a newline.
21006 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21007 # for compatibility with existing Makefiles.
21008 ECHO_C= ECHO_N= ECHO_T=
21009 case `echo -n x` in #(((((
21010 -n*)
21011 case `echo 'xy\c'` in
21012 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21013 xy) ECHO_C='\c';;
21014 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21015 ECHO_T=' ';;
21016 esac;;
21017 *)
21018 ECHO_N='-n';;
21019 esac
21020
21021 # For backward compatibility with old third-party macros, we provide
21022 # the shell variables $as_echo and $as_echo_n. New code should use
21023 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21024 as_echo='printf %s\n'
21025 as_echo_n='printf %s'
21026
21027 rm -f conf$$ conf$$.exe conf$$.file
21028 if test -d conf$$.dir; then
21029 rm -f conf$$.dir/conf$$.file
21030 else
21031 rm -f conf$$.dir
21032 mkdir conf$$.dir 2>/dev/null
21033 fi
21034 if (echo >conf$$.file) 2>/dev/null; then
21035 if ln -s conf$$.file conf$$ 2>/dev/null; then
21036 as_ln_s='ln -s'
21037 # ... but there are two gotchas:
21038 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21039 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21040 # In both cases, we have to default to `cp -pR'.
21041 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21042 as_ln_s='cp -pR'
21043 elif ln conf$$.file conf$$ 2>/dev/null; then
21044 as_ln_s=ln
21045 else
21046 as_ln_s='cp -pR'
21047 fi
21048 else
21049 as_ln_s='cp -pR'
21050 fi
21051 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21052 rmdir conf$$.dir 2>/dev/null
21053
21054
21055 # as_fn_mkdir_p
21056 # -------------
21057 # Create "$as_dir" as a directory, including parents if necessary.
21058 as_fn_mkdir_p ()
21059 {
21060
21061 case $as_dir in #(
21062 -*) as_dir=./$as_dir;;
21063 esac
21064 test -d "$as_dir" || eval $as_mkdir_p || {
21065 as_dirs=
21066 while :; do
21067 case $as_dir in #(
21068 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21069 *) as_qdir=$as_dir;;
21070 esac
21071 as_dirs="'$as_qdir' $as_dirs"
21072 as_dir=`$as_dirname -- "$as_dir" ||
21073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21074 X"$as_dir" : 'X\(//\)[^/]' \| \
21075 X"$as_dir" : 'X\(//\)$' \| \
21076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21077 printf "%s\n" X"$as_dir" |
21078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21079 s//\1/
21080 q
21081 }
21082 /^X\(\/\/\)[^/].*/{
21083 s//\1/
21084 q
21085 }
21086 /^X\(\/\/\)$/{
21087 s//\1/
21088 q
21089 }
21090 /^X\(\/\).*/{
21091 s//\1/
21092 q
21093 }
21094 s/.*/./; q'`
21095 test -d "$as_dir" && break
21096 done
21097 test -z "$as_dirs" || eval "mkdir $as_dirs"
21098 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21099
21100
21101 } # as_fn_mkdir_p
21102 if mkdir -p . 2>/dev/null; then
21103 as_mkdir_p='mkdir -p "$as_dir"'
21104 else
21105 test -d ./-p && rmdir ./-p
21106 as_mkdir_p=false
21107 fi
21108
21109
21110 # as_fn_executable_p FILE
21111 # -----------------------
21112 # Test if FILE is an executable regular file.
21113 as_fn_executable_p ()
21114 {
21115 test -f "$1" && test -x "$1"
21116 } # as_fn_executable_p
21117 as_test_x='test -x'
21118 as_executable_p=as_fn_executable_p
21119
21120 # Sed expression to map a string onto a valid CPP name.
21121 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21122
21123 # Sed expression to map a string onto a valid variable name.
21124 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21125
21126
21127 exec 6>&1
21128 ## ----------------------------------- ##
21129 ## Main body of $CONFIG_STATUS script. ##
21130 ## ----------------------------------- ##
21131 _ASEOF
21132 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21133
21134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21135 # Save the log message, to keep $0 and so on meaningful, and to
21136 # report actual input values of CONFIG_FILES etc. instead of their
21137 # values after options handling.
21138 ac_log="
21139 This file was extended by lcmaps $as_me 1.6.7, which was
21140 generated by GNU Autoconf 2.71. Invocation command line was
21141
21142 CONFIG_FILES = $CONFIG_FILES
21143 CONFIG_HEADERS = $CONFIG_HEADERS
21144 CONFIG_LINKS = $CONFIG_LINKS
21145 CONFIG_COMMANDS = $CONFIG_COMMANDS
21146 $ $0 $@
21147
21148 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21149 "
21150
21151 _ACEOF
21152
21153 case $ac_config_files in *"
21154 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21155 esac
21156
21157 case $ac_config_headers in *"
21158 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21159 esac
21160
21161
21162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21163 # Files that config.status was made for.
21164 config_files="$ac_config_files"
21165 config_headers="$ac_config_headers"
21166 config_commands="$ac_config_commands"
21167
21168 _ACEOF
21169
21170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21171 ac_cs_usage="\
21172 \`$as_me' instantiates files and other configuration actions
21173 from templates according to the current configuration. Unless the files
21174 and actions are specified as TAGs, all are instantiated by default.
21175
21176 Usage: $0 [OPTION]... [TAG]...
21177
21178 -h, --help print this help, then exit
21179 -V, --version print version number and configuration settings, then exit
21180 --config print configuration, then exit
21181 -q, --quiet, --silent
21182 do not print progress messages
21183 -d, --debug don't remove temporary files
21184 --recheck update $as_me by reconfiguring in the same conditions
21185 --file=FILE[:TEMPLATE]
21186 instantiate the configuration file FILE
21187 --header=FILE[:TEMPLATE]
21188 instantiate the configuration header FILE
21189
21190 Configuration files:
21191 $config_files
21192
21193 Configuration headers:
21194 $config_headers
21195
21196 Configuration commands:
21197 $config_commands
21198
21199 Report bugs to the package provider."
21200
21201 _ACEOF
21202 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21203 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21205 ac_cs_config='$ac_cs_config_escaped'
21206 ac_cs_version="\\
21207 lcmaps config.status 1.6.7
21208 configured by $0, generated by GNU Autoconf 2.71,
21209 with options \\"\$ac_cs_config\\"
21210
21211 Copyright (C) 2021 Free Software Foundation, Inc.
21212 This config.status script is free software; the Free Software Foundation
21213 gives unlimited permission to copy, distribute and modify it."
21214
21215 ac_pwd='$ac_pwd'
21216 srcdir='$srcdir'
21217 INSTALL='$INSTALL'
21218 MKDIR_P='$MKDIR_P'
21219 AWK='$AWK'
21220 test -n "\$AWK" || AWK=awk
21221 _ACEOF
21222
21223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21224 # The default lists apply if the user does not specify any file.
21225 ac_need_defaults=:
21226 while test $# != 0
21227 do
21228 case $1 in
21229 --*=?*)
21230 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21231 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21232 ac_shift=:
21233 ;;
21234 --*=)
21235 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21236 ac_optarg=
21237 ac_shift=:
21238 ;;
21239 *)
21240 ac_option=$1
21241 ac_optarg=$2
21242 ac_shift=shift
21243 ;;
21244 esac
21245
21246 case $ac_option in
21247 # Handling of the options.
21248 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21249 ac_cs_recheck=: ;;
21250 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21251 printf "%s\n" "$ac_cs_version"; exit ;;
21252 --config | --confi | --conf | --con | --co | --c )
21253 printf "%s\n" "$ac_cs_config"; exit ;;
21254 --debug | --debu | --deb | --de | --d | -d )
21255 debug=: ;;
21256 --file | --fil | --fi | --f )
21257 $ac_shift
21258 case $ac_optarg in
21259 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21260 '') as_fn_error $? "missing file argument" ;;
21261 esac
21262 as_fn_append CONFIG_FILES " '$ac_optarg'"
21263 ac_need_defaults=false;;
21264 --header | --heade | --head | --hea )
21265 $ac_shift
21266 case $ac_optarg in
21267 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21268 esac
21269 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21270 ac_need_defaults=false;;
21271 --he | --h)
21272 # Conflict between --help and --header
21273 as_fn_error $? "ambiguous option: \`$1'
21274 Try \`$0 --help' for more information.";;
21275 --help | --hel | -h )
21276 printf "%s\n" "$ac_cs_usage"; exit ;;
21277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21278 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21279 ac_cs_silent=: ;;
21280
21281 # This is an error.
21282 -*) as_fn_error $? "unrecognized option: \`$1'
21283 Try \`$0 --help' for more information." ;;
21284
21285 *) as_fn_append ac_config_targets " $1"
21286 ac_need_defaults=false ;;
21287
21288 esac
21289 shift
21290 done
21291
21292 ac_configure_extra_args=
21293
21294 if $ac_cs_silent; then
21295 exec 6>/dev/null
21296 ac_configure_extra_args="$ac_configure_extra_args --silent"
21297 fi
21298
21299 _ACEOF
21300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21301 if \$ac_cs_recheck; then
21302 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21303 shift
21304 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21305 CONFIG_SHELL='$SHELL'
21306 export CONFIG_SHELL
21307 exec "\$@"
21308 fi
21309
21310 _ACEOF
21311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21312 exec 5>>config.log
21313 {
21314 echo
21315 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21316 ## Running $as_me. ##
21317 _ASBOX
21318 printf "%s\n" "$ac_log"
21319 } >&5
21320
21321 _ACEOF
21322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21323 #
21324 # INIT-COMMANDS
21325 #
21326 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21327
21328
21329 # The HP-UX ksh and POSIX shell print the target directory to stdout
21330 # if CDPATH is set.
21331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21332
21333 sed_quote_subst='$sed_quote_subst'
21334 double_quote_subst='$double_quote_subst'
21335 delay_variable_subst='$delay_variable_subst'
21336 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21337 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21338 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21339 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21340 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21341 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21342 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21343 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21344 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21345 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21346 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21347 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21348 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21349 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21350 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21351 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21352 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21353 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21354 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21355 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21356 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21357 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21358 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21359 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21360 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21361 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21362 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21363 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21364 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21365 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21366 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21367 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21368 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21369 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21370 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21371 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21372 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21373 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21374 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21375 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21376 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21377 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21378 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21379 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21380 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21381 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21382 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21383 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21384 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21385 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21386 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21387 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21388 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21389 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21390 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21391 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21392 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21393 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21394 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21395 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21396 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"`'
21397 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21398 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21399 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21400 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21401 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21402 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21403 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21404 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21405 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21406 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21407 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21408 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21409 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21410 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21411 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21412 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21413 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21414 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21415 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21416 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21417 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21418 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21419 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21420 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21421 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21422 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21423 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21424 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21425 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21426 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21427 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21428 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21429 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21430 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21431 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21432 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21433 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21434 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21435 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21436 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21437 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21438 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21439 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21440 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21441 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21442 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21443 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21444 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21445 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21446 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21447 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21448 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21449 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21450 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21451 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21452 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21453 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21454 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21455 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21456 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21457 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21458 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21459 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21460 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21461 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21462 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21463 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21464 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21465 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21466 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21467 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21468 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21469 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21470 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21471 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21472 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21473 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21474 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21475 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21476 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21477 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21478 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21479 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21480 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21481 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21482 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21483 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21484 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21485 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21486 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21487 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21488 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21489 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21490 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21491 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21492 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21493 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21494 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21495 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21496 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21497 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21498 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21499 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21500 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21501 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21502 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21503 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21504 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21505 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21506 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21507 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21508 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21509 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21510 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21511 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21512 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21513 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21514 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21515 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21516 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21517 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21518 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21519 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21520 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21521 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21522 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21523 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21524 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21525 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21526 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21527
21528 LTCC='$LTCC'
21529 LTCFLAGS='$LTCFLAGS'
21530 compiler='$compiler_DEFAULT'
21531
21532 # A function that is used when there is no print builtin or printf.
21533 func_fallback_echo ()
21534 {
21535 eval 'cat <<_LTECHO_EOF
21536 \$1
21537 _LTECHO_EOF'
21538 }
21539
21540 # Quote evaled strings.
21541 for var in SHELL \
21542 ECHO \
21543 PATH_SEPARATOR \
21544 SED \
21545 GREP \
21546 EGREP \
21547 FGREP \
21548 LD \
21549 NM \
21550 LN_S \
21551 lt_SP2NL \
21552 lt_NL2SP \
21553 reload_flag \
21554 FILECMD \
21555 OBJDUMP \
21556 deplibs_check_method \
21557 file_magic_cmd \
21558 file_magic_glob \
21559 want_nocaseglob \
21560 DLLTOOL \
21561 sharedlib_from_linklib_cmd \
21562 AR \
21563 archiver_list_spec \
21564 STRIP \
21565 RANLIB \
21566 CC \
21567 CFLAGS \
21568 compiler \
21569 lt_cv_sys_global_symbol_pipe \
21570 lt_cv_sys_global_symbol_to_cdecl \
21571 lt_cv_sys_global_symbol_to_import \
21572 lt_cv_sys_global_symbol_to_c_name_address \
21573 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21574 lt_cv_nm_interface \
21575 nm_file_list_spec \
21576 lt_cv_truncate_bin \
21577 lt_prog_compiler_no_builtin_flag \
21578 lt_prog_compiler_pic \
21579 lt_prog_compiler_wl \
21580 lt_prog_compiler_static \
21581 lt_cv_prog_compiler_c_o \
21582 need_locks \
21583 MANIFEST_TOOL \
21584 DSYMUTIL \
21585 NMEDIT \
21586 LIPO \
21587 OTOOL \
21588 OTOOL64 \
21589 shrext_cmds \
21590 export_dynamic_flag_spec \
21591 whole_archive_flag_spec \
21592 compiler_needs_object \
21593 with_gnu_ld \
21594 allow_undefined_flag \
21595 no_undefined_flag \
21596 hardcode_libdir_flag_spec \
21597 hardcode_libdir_separator \
21598 exclude_expsyms \
21599 include_expsyms \
21600 file_list_spec \
21601 variables_saved_for_relink \
21602 libname_spec \
21603 library_names_spec \
21604 soname_spec \
21605 install_override_mode \
21606 finish_eval \
21607 old_striplib \
21608 striplib \
21609 compiler_lib_search_dirs \
21610 predep_objects \
21611 postdep_objects \
21612 predeps \
21613 postdeps \
21614 compiler_lib_search_path \
21615 LD_CXX \
21616 reload_flag_CXX \
21617 compiler_CXX \
21618 lt_prog_compiler_no_builtin_flag_CXX \
21619 lt_prog_compiler_pic_CXX \
21620 lt_prog_compiler_wl_CXX \
21621 lt_prog_compiler_static_CXX \
21622 lt_cv_prog_compiler_c_o_CXX \
21623 export_dynamic_flag_spec_CXX \
21624 whole_archive_flag_spec_CXX \
21625 compiler_needs_object_CXX \
21626 with_gnu_ld_CXX \
21627 allow_undefined_flag_CXX \
21628 no_undefined_flag_CXX \
21629 hardcode_libdir_flag_spec_CXX \
21630 hardcode_libdir_separator_CXX \
21631 exclude_expsyms_CXX \
21632 include_expsyms_CXX \
21633 file_list_spec_CXX \
21634 compiler_lib_search_dirs_CXX \
21635 predep_objects_CXX \
21636 postdep_objects_CXX \
21637 predeps_CXX \
21638 postdeps_CXX \
21639 compiler_lib_search_path_CXX; do
21640 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21641 *[\\\\\\\`\\"\\\$]*)
21642 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21643 ;;
21644 *)
21645 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21646 ;;
21647 esac
21648 done
21649
21650 # Double-quote double-evaled strings.
21651 for var in reload_cmds \
21652 old_postinstall_cmds \
21653 old_postuninstall_cmds \
21654 old_archive_cmds \
21655 extract_expsyms_cmds \
21656 old_archive_from_new_cmds \
21657 old_archive_from_expsyms_cmds \
21658 archive_cmds \
21659 archive_expsym_cmds \
21660 module_cmds \
21661 module_expsym_cmds \
21662 export_symbols_cmds \
21663 prelink_cmds \
21664 postlink_cmds \
21665 postinstall_cmds \
21666 postuninstall_cmds \
21667 finish_cmds \
21668 sys_lib_search_path_spec \
21669 configure_time_dlsearch_path \
21670 configure_time_lt_sys_library_path \
21671 reload_cmds_CXX \
21672 old_archive_cmds_CXX \
21673 old_archive_from_new_cmds_CXX \
21674 old_archive_from_expsyms_cmds_CXX \
21675 archive_cmds_CXX \
21676 archive_expsym_cmds_CXX \
21677 module_cmds_CXX \
21678 module_expsym_cmds_CXX \
21679 export_symbols_cmds_CXX \
21680 prelink_cmds_CXX \
21681 postlink_cmds_CXX; do
21682 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21683 *[\\\\\\\`\\"\\\$]*)
21684 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21685 ;;
21686 *)
21687 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21688 ;;
21689 esac
21690 done
21691
21692 ac_aux_dir='$ac_aux_dir'
21693
21694 # See if we are running on zsh, and set the options that allow our
21695 # commands through without removal of \ escapes INIT.
21696 if test -n "\${ZSH_VERSION+set}"; then
21697 setopt NO_GLOB_SUBST
21698 fi
21699
21700
21701 PACKAGE='$PACKAGE'
21702 VERSION='$VERSION'
21703 RM='$RM'
21704 ofile='$ofile'
21705
21706
21707
21708
21709
21710
21711 _ACEOF
21712
21713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21714
21715 # Handling of arguments.
21716 for ac_config_target in $ac_config_targets
21717 do
21718 case $ac_config_target in
21719 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21720 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21721 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21722 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21723 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
21724 "src/lcmaps.pc") CONFIG_FILES="$CONFIG_FILES src/lcmaps.pc" ;;
21725 "src/lcmaps-gss-assist-gridmap.pc") CONFIG_FILES="$CONFIG_FILES src/lcmaps-gss-assist-gridmap.pc" ;;
21726 "src/lcmaps-return-poolindex.pc") CONFIG_FILES="$CONFIG_FILES src/lcmaps-return-poolindex.pc" ;;
21727 "src/lcmaps-return-account-from-pem.pc") CONFIG_FILES="$CONFIG_FILES src/lcmaps-return-account-from-pem.pc" ;;
21728 "src/lcmaps-verify-account-from-pem.pc") CONFIG_FILES="$CONFIG_FILES src/lcmaps-verify-account-from-pem.pc" ;;
21729 "src/lcmaps-without-gsi.pc") CONFIG_FILES="$CONFIG_FILES src/lcmaps-without-gsi.pc" ;;
21730 "src/lcmaps-gss-assist-gridmap-without-gsi.pc") CONFIG_FILES="$CONFIG_FILES src/lcmaps-gss-assist-gridmap-without-gsi.pc:src/lcmaps-gss-assist-gridmap.pc.in" ;;
21731 "src/lcmaps-return-poolindex-without-gsi.pc") CONFIG_FILES="$CONFIG_FILES src/lcmaps-return-poolindex-without-gsi.pc:src/lcmaps-return-poolindex.pc.in" ;;
21732 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21733 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21734 "doc/evaluationmanager/Makefile") CONFIG_FILES="$CONFIG_FILES doc/evaluationmanager/Makefile" ;;
21735 "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;;
21736 "interface/lcmaps_version.h") CONFIG_FILES="$CONFIG_FILES interface/lcmaps_version.h" ;;
21737 "interface/lcmaps-interface.pc") CONFIG_FILES="$CONFIG_FILES interface/lcmaps-interface.pc" ;;
21738 "interface/lcmaps-globus-interface.pc") CONFIG_FILES="$CONFIG_FILES interface/lcmaps-globus-interface.pc" ;;
21739 "interface/lcmaps-openssl-interface.pc") CONFIG_FILES="$CONFIG_FILES interface/lcmaps-openssl-interface.pc" ;;
21740 "interface/lcmaps-basic-interface.pc") CONFIG_FILES="$CONFIG_FILES interface/lcmaps-basic-interface.pc" ;;
21741 "src/lcmaps_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lcmaps_config.h" ;;
21742
21743 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21744 esac
21745 done
21746
21747
21748 # If the user did not use the arguments to specify the items to instantiate,
21749 # then the envvar interface is used. Set only those that are not.
21750 # We use the long form for the default assignment because of an extremely
21751 # bizarre bug on SunOS 4.1.3.
21752 if $ac_need_defaults; then
21753 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21754 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21755 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21756 fi
21757
21758 # Have a temporary directory for convenience. Make it in the build tree
21759 # simply because there is no reason against having it here, and in addition,
21760 # creating and moving files from /tmp can sometimes cause problems.
21761 # Hook for its removal unless debugging.
21762 # Note that there is a small window in which the directory will not be cleaned:
21763 # after its creation but before its name has been assigned to `$tmp'.
21764 $debug ||
21765 {
21766 tmp= ac_tmp=
21767 trap 'exit_status=$?
21768 : "${ac_tmp:=$tmp}"
21769 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21770 ' 0
21771 trap 'as_fn_exit 1' 1 2 13 15
21772 }
21773 # Create a (secure) tmp directory for tmp files.
21774
21775 {
21776 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21777 test -d "$tmp"
21778 } ||
21779 {
21780 tmp=./conf$$-$RANDOM
21781 (umask 077 && mkdir "$tmp")
21782 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21783 ac_tmp=$tmp
21784
21785 # Set up the scripts for CONFIG_FILES section.
21786 # No need to generate them if there are no CONFIG_FILES.
21787 # This happens for instance with `./config.status config.h'.
21788 if test -n "$CONFIG_FILES"; then
21789
21790
21791 ac_cr=`echo X | tr X '\015'`
21792 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21793 # But we know of no other shell where ac_cr would be empty at this
21794 # point, so we can use a bashism as a fallback.
21795 if test "x$ac_cr" = x; then
21796 eval ac_cr=\$\'\\r\'
21797 fi
21798 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21799 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21800 ac_cs_awk_cr='\\r'
21801 else
21802 ac_cs_awk_cr=$ac_cr
21803 fi
21804
21805 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21806 _ACEOF
21807
21808
21809 {
21810 echo "cat >conf$$subs.awk <<_ACEOF" &&
21811 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21812 echo "_ACEOF"
21813 } >conf$$subs.sh ||
21814 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21815 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21816 ac_delim='%!_!# '
21817 for ac_last_try in false false false false false :; do
21818 . ./conf$$subs.sh ||
21819 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21820
21821 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21822 if test $ac_delim_n = $ac_delim_num; then
21823 break
21824 elif $ac_last_try; then
21825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21826 else
21827 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21828 fi
21829 done
21830 rm -f conf$$subs.sh
21831
21832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21833 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21834 _ACEOF
21835 sed -n '
21836 h
21837 s/^/S["/; s/!.*/"]=/
21838 p
21839 g
21840 s/^[^!]*!//
21841 :repl
21842 t repl
21843 s/'"$ac_delim"'$//
21844 t delim
21845 :nl
21846 h
21847 s/\(.\{148\}\)..*/\1/
21848 t more1
21849 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21850 p
21851 n
21852 b repl
21853 :more1
21854 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21855 p
21856 g
21857 s/.\{148\}//
21858 t nl
21859 :delim
21860 h
21861 s/\(.\{148\}\)..*/\1/
21862 t more2
21863 s/["\\]/\\&/g; s/^/"/; s/$/"/
21864 p
21865 b
21866 :more2
21867 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21868 p
21869 g
21870 s/.\{148\}//
21871 t delim
21872 ' <conf$$subs.awk | sed '
21873 /^[^""]/{
21874 N
21875 s/\n//
21876 }
21877 ' >>$CONFIG_STATUS || ac_write_fail=1
21878 rm -f conf$$subs.awk
21879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21880 _ACAWK
21881 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21882 for (key in S) S_is_set[key] = 1
21883 FS = ""
21884
21885 }
21886 {
21887 line = $ 0
21888 nfields = split(line, field, "@")
21889 substed = 0
21890 len = length(field[1])
21891 for (i = 2; i < nfields; i++) {
21892 key = field[i]
21893 keylen = length(key)
21894 if (S_is_set[key]) {
21895 value = S[key]
21896 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21897 len += length(value) + length(field[++i])
21898 substed = 1
21899 } else
21900 len += 1 + keylen
21901 }
21902
21903 print line
21904 }
21905
21906 _ACAWK
21907 _ACEOF
21908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21909 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21910 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21911 else
21912 cat
21913 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21914 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21915 _ACEOF
21916
21917 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21918 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21919 # trailing colons and then remove the whole line if VPATH becomes empty
21920 # (actually we leave an empty line to preserve line numbers).
21921 if test "x$srcdir" = x.; then
21922 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21923 h
21924 s///
21925 s/^/:/
21926 s/[ ]*$/:/
21927 s/:\$(srcdir):/:/g
21928 s/:\${srcdir}:/:/g
21929 s/:@srcdir@:/:/g
21930 s/^:*//
21931 s/:*$//
21932 x
21933 s/\(=[ ]*\).*/\1/
21934 G
21935 s/\n//
21936 s/^[^=]*=[ ]*$//
21937 }'
21938 fi
21939
21940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21941 fi # test -n "$CONFIG_FILES"
21942
21943 # Set up the scripts for CONFIG_HEADERS section.
21944 # No need to generate them if there are no CONFIG_HEADERS.
21945 # This happens for instance with `./config.status Makefile'.
21946 if test -n "$CONFIG_HEADERS"; then
21947 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21948 BEGIN {
21949 _ACEOF
21950
21951 # Transform confdefs.h into an awk script `defines.awk', embedded as
21952 # here-document in config.status, that substitutes the proper values into
21953 # config.h.in to produce config.h.
21954
21955 # Create a delimiter string that does not exist in confdefs.h, to ease
21956 # handling of long lines.
21957 ac_delim='%!_!# '
21958 for ac_last_try in false false :; do
21959 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21960 if test -z "$ac_tt"; then
21961 break
21962 elif $ac_last_try; then
21963 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21964 else
21965 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21966 fi
21967 done
21968
21969 # For the awk script, D is an array of macro values keyed by name,
21970 # likewise P contains macro parameters if any. Preserve backslash
21971 # newline sequences.
21972
21973 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21974 sed -n '
21975 s/.\{148\}/&'"$ac_delim"'/g
21976 t rset
21977 :rset
21978 s/^[ ]*#[ ]*define[ ][ ]*/ /
21979 t def
21980 d
21981 :def
21982 s/\\$//
21983 t bsnl
21984 s/["\\]/\\&/g
21985 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21986 D["\1"]=" \3"/p
21987 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21988 d
21989 :bsnl
21990 s/["\\]/\\&/g
21991 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21992 D["\1"]=" \3\\\\\\n"\\/p
21993 t cont
21994 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21995 t cont
21996 d
21997 :cont
21998 n
21999 s/.\{148\}/&'"$ac_delim"'/g
22000 t clear
22001 :clear
22002 s/\\$//
22003 t bsnlc
22004 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22005 d
22006 :bsnlc
22007 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22008 b cont
22009 ' <confdefs.h | sed '
22010 s/'"$ac_delim"'/"\\\
22011 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22012
22013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22014 for (key in D) D_is_set[key] = 1
22015 FS = ""
22016 }
22017 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22018 line = \$ 0
22019 split(line, arg, " ")
22020 if (arg[1] == "#") {
22021 defundef = arg[2]
22022 mac1 = arg[3]
22023 } else {
22024 defundef = substr(arg[1], 2)
22025 mac1 = arg[2]
22026 }
22027 split(mac1, mac2, "(") #)
22028 macro = mac2[1]
22029 prefix = substr(line, 1, index(line, defundef) - 1)
22030 if (D_is_set[macro]) {
22031 # Preserve the white space surrounding the "#".
22032 print prefix "define", macro P[macro] D[macro]
22033 next
22034 } else {
22035 # Replace #undef with comments. This is necessary, for example,
22036 # in the case of _POSIX_SOURCE, which is predefined and required
22037 # on some systems where configure will not decide to define it.
22038 if (defundef == "undef") {
22039 print "/*", prefix defundef, macro, "*/"
22040 next
22041 }
22042 }
22043 }
22044 { print }
22045 _ACAWK
22046 _ACEOF
22047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22048 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22049 fi # test -n "$CONFIG_HEADERS"
22050
22051
22052 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22053 shift
22054 for ac_tag
22055 do
22056 case $ac_tag in
22057 :[FHLC]) ac_mode=$ac_tag; continue;;
22058 esac
22059 case $ac_mode$ac_tag in
22060 :[FHL]*:*);;
22061 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22062 :[FH]-) ac_tag=-:-;;
22063 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22064 esac
22065 ac_save_IFS=$IFS
22066 IFS=:
22067 set x $ac_tag
22068 IFS=$ac_save_IFS
22069 shift
22070 ac_file=$1
22071 shift
22072
22073 case $ac_mode in
22074 :L) ac_source=$1;;
22075 :[FH])
22076 ac_file_inputs=
22077 for ac_f
22078 do
22079 case $ac_f in
22080 -) ac_f="$ac_tmp/stdin";;
22081 *) # Look for the file first in the build tree, then in the source tree
22082 # (if the path is not absolute). The absolute path cannot be DOS-style,
22083 # because $ac_f cannot contain `:'.
22084 test -f "$ac_f" ||
22085 case $ac_f in
22086 [\\/$]*) false;;
22087 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22088 esac ||
22089 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22090 esac
22091 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22092 as_fn_append ac_file_inputs " '$ac_f'"
22093 done
22094
22095 # Let's still pretend it is `configure' which instantiates (i.e., don't
22096 # use $as_me), people would be surprised to read:
22097 # /* config.h. Generated by config.status. */
22098 configure_input='Generated from '`
22099 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22100 `' by configure.'
22101 if test x"$ac_file" != x-; then
22102 configure_input="$ac_file. $configure_input"
22103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22104 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22105 fi
22106 # Neutralize special characters interpreted by sed in replacement strings.
22107 case $configure_input in #(
22108 *\&* | *\|* | *\\* )
22109 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22110 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22111 *) ac_sed_conf_input=$configure_input;;
22112 esac
22113
22114 case $ac_tag in
22115 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22117 esac
22118 ;;
22119 esac
22120
22121 ac_dir=`$as_dirname -- "$ac_file" ||
22122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22123 X"$ac_file" : 'X\(//\)[^/]' \| \
22124 X"$ac_file" : 'X\(//\)$' \| \
22125 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22126 printf "%s\n" X"$ac_file" |
22127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22128 s//\1/
22129 q
22130 }
22131 /^X\(\/\/\)[^/].*/{
22132 s//\1/
22133 q
22134 }
22135 /^X\(\/\/\)$/{
22136 s//\1/
22137 q
22138 }
22139 /^X\(\/\).*/{
22140 s//\1/
22141 q
22142 }
22143 s/.*/./; q'`
22144 as_dir="$ac_dir"; as_fn_mkdir_p
22145 ac_builddir=.
22146
22147 case "$ac_dir" in
22148 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22149 *)
22150 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22151 # A ".." for each directory in $ac_dir_suffix.
22152 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22153 case $ac_top_builddir_sub in
22154 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22155 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22156 esac ;;
22157 esac
22158 ac_abs_top_builddir=$ac_pwd
22159 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22160 # for backward compatibility:
22161 ac_top_builddir=$ac_top_build_prefix
22162
22163 case $srcdir in
22164 .) # We are building in place.
22165 ac_srcdir=.
22166 ac_top_srcdir=$ac_top_builddir_sub
22167 ac_abs_top_srcdir=$ac_pwd ;;
22168 [\\/]* | ?:[\\/]* ) # Absolute name.
22169 ac_srcdir=$srcdir$ac_dir_suffix;
22170 ac_top_srcdir=$srcdir
22171 ac_abs_top_srcdir=$srcdir ;;
22172 *) # Relative name.
22173 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22174 ac_top_srcdir=$ac_top_build_prefix$srcdir
22175 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22176 esac
22177 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22178
22179
22180 case $ac_mode in
22181 :F)
22182 #
22183 # CONFIG_FILE
22184 #
22185
22186 case $INSTALL in
22187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22188 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22189 esac
22190 ac_MKDIR_P=$MKDIR_P
22191 case $MKDIR_P in
22192 [\\/$]* | ?:[\\/]* ) ;;
22193 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22194 esac
22195 _ACEOF
22196
22197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22198 # If the template does not know about datarootdir, expand it.
22199 # FIXME: This hack should be removed a few years after 2.60.
22200 ac_datarootdir_hack=; ac_datarootdir_seen=
22201 ac_sed_dataroot='
22202 /datarootdir/ {
22203 p
22204 q
22205 }
22206 /@datadir@/p
22207 /@docdir@/p
22208 /@infodir@/p
22209 /@localedir@/p
22210 /@mandir@/p'
22211 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22212 *datarootdir*) ac_datarootdir_seen=yes;;
22213 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22215 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22216 _ACEOF
22217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22218 ac_datarootdir_hack='
22219 s&@datadir@&$datadir&g
22220 s&@docdir@&$docdir&g
22221 s&@infodir@&$infodir&g
22222 s&@localedir@&$localedir&g
22223 s&@mandir@&$mandir&g
22224 s&\\\${datarootdir}&$datarootdir&g' ;;
22225 esac
22226 _ACEOF
22227
22228 # Neutralize VPATH when `$srcdir' = `.'.
22229 # Shell code in configure.ac might set extrasub.
22230 # FIXME: do we really want to maintain this feature?
22231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22232 ac_sed_extra="$ac_vpsub
22233 $extrasub
22234 _ACEOF
22235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22236 :t
22237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22238 s|@configure_input@|$ac_sed_conf_input|;t t
22239 s&@top_builddir@&$ac_top_builddir_sub&;t t
22240 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22241 s&@srcdir@&$ac_srcdir&;t t
22242 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22243 s&@top_srcdir@&$ac_top_srcdir&;t t
22244 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22245 s&@builddir@&$ac_builddir&;t t
22246 s&@abs_builddir@&$ac_abs_builddir&;t t
22247 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22248 s&@INSTALL@&$ac_INSTALL&;t t
22249 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22250 $ac_datarootdir_hack
22251 "
22252 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22253 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22254
22255 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22256 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22257 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22258 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22260 which seems to be undefined. Please make sure it is defined" >&5
22261 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22262 which seems to be undefined. Please make sure it is defined" >&2;}
22263
22264 rm -f "$ac_tmp/stdin"
22265 case $ac_file in
22266 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22267 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22268 esac \
22269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22270 ;;
22271 :H)
22272 #
22273 # CONFIG_HEADER
22274 #
22275 if test x"$ac_file" != x-; then
22276 {
22277 printf "%s\n" "/* $configure_input */" >&1 \
22278 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22279 } >"$ac_tmp/config.h" \
22280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22281 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22283 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22284 else
22285 rm -f "$ac_file"
22286 mv "$ac_tmp/config.h" "$ac_file" \
22287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22288 fi
22289 else
22290 printf "%s\n" "/* $configure_input */" >&1 \
22291 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22292 || as_fn_error $? "could not create -" "$LINENO" 5
22293 fi
22294 # Compute "$ac_file"'s index in $config_headers.
22295 _am_arg="$ac_file"
22296 _am_stamp_count=1
22297 for _am_header in $config_headers :; do
22298 case $_am_header in
22299 $_am_arg | $_am_arg:* )
22300 break ;;
22301 * )
22302 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22303 esac
22304 done
22305 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22306 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22307 X"$_am_arg" : 'X\(//\)[^/]' \| \
22308 X"$_am_arg" : 'X\(//\)$' \| \
22309 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22310 printf "%s\n" X"$_am_arg" |
22311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22312 s//\1/
22313 q
22314 }
22315 /^X\(\/\/\)[^/].*/{
22316 s//\1/
22317 q
22318 }
22319 /^X\(\/\/\)$/{
22320 s//\1/
22321 q
22322 }
22323 /^X\(\/\).*/{
22324 s//\1/
22325 q
22326 }
22327 s/.*/./; q'`/stamp-h$_am_stamp_count
22328 ;;
22329
22330 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22331 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22332 ;;
22333 esac
22334
22335
22336 case $ac_file$ac_mode in
22337 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22338 # Older Autoconf quotes --file arguments for eval, but not when files
22339 # are listed without --file. Let's play safe and only enable the eval
22340 # if we detect the quoting.
22341 # TODO: see whether this extra hack can be removed once we start
22342 # requiring Autoconf 2.70 or later.
22343 case $CONFIG_FILES in #(
22344 *\'*) :
22345 eval set x "$CONFIG_FILES" ;; #(
22346 *) :
22347 set x $CONFIG_FILES ;; #(
22348 *) :
22349 ;;
22350 esac
22351 shift
22352 # Used to flag and report bootstrapping failures.
22353 am_rc=0
22354 for am_mf
22355 do
22356 # Strip MF so we end up with the name of the file.
22357 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22358 # Check whether this is an Automake generated Makefile which includes
22359 # dependency-tracking related rules and includes.
22360 # Grep'ing the whole file directly is not great: AIX grep has a line
22361 # limit of 2048, but all sed's we know have understand at least 4000.
22362 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22363 || continue
22364 am_dirpart=`$as_dirname -- "$am_mf" ||
22365 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22366 X"$am_mf" : 'X\(//\)[^/]' \| \
22367 X"$am_mf" : 'X\(//\)$' \| \
22368 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22369 printf "%s\n" X"$am_mf" |
22370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22371 s//\1/
22372 q
22373 }
22374 /^X\(\/\/\)[^/].*/{
22375 s//\1/
22376 q
22377 }
22378 /^X\(\/\/\)$/{
22379 s//\1/
22380 q
22381 }
22382 /^X\(\/\).*/{
22383 s//\1/
22384 q
22385 }
22386 s/.*/./; q'`
22387 am_filepart=`$as_basename -- "$am_mf" ||
22388 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22389 X"$am_mf" : 'X\(//\)$' \| \
22390 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22391 printf "%s\n" X/"$am_mf" |
22392 sed '/^.*\/\([^/][^/]*\)\/*$/{
22393 s//\1/
22394 q
22395 }
22396 /^X\/\(\/\/\)$/{
22397 s//\1/
22398 q
22399 }
22400 /^X\/\(\/\).*/{
22401 s//\1/
22402 q
22403 }
22404 s/.*/./; q'`
22405 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22406 && sed -e '/# am--include-marker/d' "$am_filepart" \
22407 | $MAKE -f - am--depfiles" >&5
22408 (cd "$am_dirpart" \
22409 && sed -e '/# am--include-marker/d' "$am_filepart" \
22410 | $MAKE -f - am--depfiles) >&5 2>&5
22411 ac_status=$?
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } || am_rc=$?
22414 done
22415 if test $am_rc -ne 0; then
22416 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22417 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22418 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22419 for automatic dependency tracking. If GNU make was not used, consider
22420 re-running the configure script with MAKE=\"gmake\" (or whatever is
22421 necessary). You can also try re-running configure with the
22422 '--disable-dependency-tracking' option to at least be able to build
22423 the package (albeit without support for automatic dependency tracking).
22424 See \`config.log' for more details" "$LINENO" 5; }
22425 fi
22426 { am_dirpart=; unset am_dirpart;}
22427 { am_filepart=; unset am_filepart;}
22428 { am_mf=; unset am_mf;}
22429 { am_rc=; unset am_rc;}
22430 rm -f conftest-deps.mk
22431 }
22432 ;;
22433 "libtool":C)
22434
22435 # See if we are running on zsh, and set the options that allow our
22436 # commands through without removal of \ escapes.
22437 if test -n "${ZSH_VERSION+set}"; then
22438 setopt NO_GLOB_SUBST
22439 fi
22440
22441 cfgfile=${ofile}T
22442 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22443 $RM "$cfgfile"
22444
22445 cat <<_LT_EOF >> "$cfgfile"
22446 #! $SHELL
22447 # Generated automatically by $as_me ($PACKAGE) $VERSION
22448 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22449 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22450
22451 # Provide generalized library-building support services.
22452 # Written by Gordon Matzigkeit, 1996
22453
22454 # Copyright (C) 2014 Free Software Foundation, Inc.
22455 # This is free software; see the source for copying conditions. There is NO
22456 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22457
22458 # GNU Libtool is free software; you can redistribute it and/or modify
22459 # it under the terms of the GNU General Public License as published by
22460 # the Free Software Foundation; either version 2 of of the License, or
22461 # (at your option) any later version.
22462 #
22463 # As a special exception to the GNU General Public License, if you
22464 # distribute this file as part of a program or library that is built
22465 # using GNU Libtool, you may include this file under the same
22466 # distribution terms that you use for the rest of that program.
22467 #
22468 # GNU Libtool is distributed in the hope that it will be useful, but
22469 # WITHOUT ANY WARRANTY; without even the implied warranty of
22470 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22471 # GNU General Public License for more details.
22472 #
22473 # You should have received a copy of the GNU General Public License
22474 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22475
22476
22477 # The names of the tagged configurations supported by this script.
22478 available_tags='CXX '
22479
22480 # Configured defaults for sys_lib_dlsearch_path munging.
22481 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22482
22483 # ### BEGIN LIBTOOL CONFIG
22484
22485 # Which release of libtool.m4 was used?
22486 macro_version=$macro_version
22487 macro_revision=$macro_revision
22488
22489 # Whether or not to build shared libraries.
22490 build_libtool_libs=$enable_shared
22491
22492 # Whether or not to build static libraries.
22493 build_old_libs=$enable_static
22494
22495 # What type of objects to build.
22496 pic_mode=$pic_mode
22497
22498 # Whether or not to optimize for fast installation.
22499 fast_install=$enable_fast_install
22500
22501 # Shared archive member basename,for filename based shared library versioning on AIX.
22502 shared_archive_member_spec=$shared_archive_member_spec
22503
22504 # Shell to use when invoking shell scripts.
22505 SHELL=$lt_SHELL
22506
22507 # An echo program that protects backslashes.
22508 ECHO=$lt_ECHO
22509
22510 # The PATH separator for the build system.
22511 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22512
22513 # The host system.
22514 host_alias=$host_alias
22515 host=$host
22516 host_os=$host_os
22517
22518 # The build system.
22519 build_alias=$build_alias
22520 build=$build
22521 build_os=$build_os
22522
22523 # A sed program that does not truncate output.
22524 SED=$lt_SED
22525
22526 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22527 Xsed="\$SED -e 1s/^X//"
22528
22529 # A grep program that handles long lines.
22530 GREP=$lt_GREP
22531
22532 # An ERE matcher.
22533 EGREP=$lt_EGREP
22534
22535 # A literal string matcher.
22536 FGREP=$lt_FGREP
22537
22538 # A BSD- or MS-compatible name lister.
22539 NM=$lt_NM
22540
22541 # Whether we need soft or hard links.
22542 LN_S=$lt_LN_S
22543
22544 # What is the maximum length of a command?
22545 max_cmd_len=$max_cmd_len
22546
22547 # Object file suffix (normally "o").
22548 objext=$ac_objext
22549
22550 # Executable file suffix (normally "").
22551 exeext=$exeext
22552
22553 # whether the shell understands "unset".
22554 lt_unset=$lt_unset
22555
22556 # turn spaces into newlines.
22557 SP2NL=$lt_lt_SP2NL
22558
22559 # turn newlines into spaces.
22560 NL2SP=$lt_lt_NL2SP
22561
22562 # convert \$build file names to \$host format.
22563 to_host_file_cmd=$lt_cv_to_host_file_cmd
22564
22565 # convert \$build files to toolchain format.
22566 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22567
22568 # A file(cmd) program that detects file types.
22569 FILECMD=$lt_FILECMD
22570
22571 # An object symbol dumper.
22572 OBJDUMP=$lt_OBJDUMP
22573
22574 # Method to check whether dependent libraries are shared objects.
22575 deplibs_check_method=$lt_deplibs_check_method
22576
22577 # Command to use when deplibs_check_method = "file_magic".
22578 file_magic_cmd=$lt_file_magic_cmd
22579
22580 # How to find potential files when deplibs_check_method = "file_magic".
22581 file_magic_glob=$lt_file_magic_glob
22582
22583 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22584 want_nocaseglob=$lt_want_nocaseglob
22585
22586 # DLL creation program.
22587 DLLTOOL=$lt_DLLTOOL
22588
22589 # Command to associate shared and link libraries.
22590 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22591
22592 # The archiver.
22593 AR=$lt_AR
22594
22595 # Flags to create an archive (by configure).
22596 lt_ar_flags=$lt_ar_flags
22597
22598 # Flags to create an archive.
22599 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22600
22601 # How to feed a file listing to the archiver.
22602 archiver_list_spec=$lt_archiver_list_spec
22603
22604 # A symbol stripping program.
22605 STRIP=$lt_STRIP
22606
22607 # Commands used to install an old-style archive.
22608 RANLIB=$lt_RANLIB
22609 old_postinstall_cmds=$lt_old_postinstall_cmds
22610 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22611
22612 # Whether to use a lock for old archive extraction.
22613 lock_old_archive_extraction=$lock_old_archive_extraction
22614
22615 # A C compiler.
22616 LTCC=$lt_CC
22617
22618 # LTCC compiler flags.
22619 LTCFLAGS=$lt_CFLAGS
22620
22621 # Take the output of nm and produce a listing of raw symbols and C names.
22622 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22623
22624 # Transform the output of nm in a proper C declaration.
22625 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22626
22627 # Transform the output of nm into a list of symbols to manually relocate.
22628 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22629
22630 # Transform the output of nm in a C name address pair.
22631 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22632
22633 # Transform the output of nm in a C name address pair when lib prefix is needed.
22634 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22635
22636 # The name lister interface.
22637 nm_interface=$lt_lt_cv_nm_interface
22638
22639 # Specify filename containing input files for \$NM.
22640 nm_file_list_spec=$lt_nm_file_list_spec
22641
22642 # The root where to search for dependent libraries,and where our libraries should be installed.
22643 lt_sysroot=$lt_sysroot
22644
22645 # Command to truncate a binary pipe.
22646 lt_truncate_bin=$lt_lt_cv_truncate_bin
22647
22648 # The name of the directory that contains temporary libtool files.
22649 objdir=$objdir
22650
22651 # Used to examine libraries when file_magic_cmd begins with "file".
22652 MAGIC_CMD=$MAGIC_CMD
22653
22654 # Must we lock files when doing compilation?
22655 need_locks=$lt_need_locks
22656
22657 # Manifest tool.
22658 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22659
22660 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22661 DSYMUTIL=$lt_DSYMUTIL
22662
22663 # Tool to change global to local symbols on Mac OS X.
22664 NMEDIT=$lt_NMEDIT
22665
22666 # Tool to manipulate fat objects and archives on Mac OS X.
22667 LIPO=$lt_LIPO
22668
22669 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22670 OTOOL=$lt_OTOOL
22671
22672 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22673 OTOOL64=$lt_OTOOL64
22674
22675 # Old archive suffix (normally "a").
22676 libext=$libext
22677
22678 # Shared library suffix (normally ".so").
22679 shrext_cmds=$lt_shrext_cmds
22680
22681 # The commands to extract the exported symbol list from a shared archive.
22682 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22683
22684 # Variables whose values should be saved in libtool wrapper scripts and
22685 # restored at link time.
22686 variables_saved_for_relink=$lt_variables_saved_for_relink
22687
22688 # Do we need the "lib" prefix for modules?
22689 need_lib_prefix=$need_lib_prefix
22690
22691 # Do we need a version for libraries?
22692 need_version=$need_version
22693
22694 # Library versioning type.
22695 version_type=$version_type
22696
22697 # Shared library runtime path variable.
22698 runpath_var=$runpath_var
22699
22700 # Shared library path variable.
22701 shlibpath_var=$shlibpath_var
22702
22703 # Is shlibpath searched before the hard-coded library search path?
22704 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22705
22706 # Format of library name prefix.
22707 libname_spec=$lt_libname_spec
22708
22709 # List of archive names. First name is the real one, the rest are links.
22710 # The last name is the one that the linker finds with -lNAME
22711 library_names_spec=$lt_library_names_spec
22712
22713 # The coded name of the library, if different from the real name.
22714 soname_spec=$lt_soname_spec
22715
22716 # Permission mode override for installation of shared libraries.
22717 install_override_mode=$lt_install_override_mode
22718
22719 # Command to use after installation of a shared archive.
22720 postinstall_cmds=$lt_postinstall_cmds
22721
22722 # Command to use after uninstallation of a shared archive.
22723 postuninstall_cmds=$lt_postuninstall_cmds
22724
22725 # Commands used to finish a libtool library installation in a directory.
22726 finish_cmds=$lt_finish_cmds
22727
22728 # As "finish_cmds", except a single script fragment to be evaled but
22729 # not shown.
22730 finish_eval=$lt_finish_eval
22731
22732 # Whether we should hardcode library paths into libraries.
22733 hardcode_into_libs=$hardcode_into_libs
22734
22735 # Compile-time system search path for libraries.
22736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22737
22738 # Detected run-time system search path for libraries.
22739 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22740
22741 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22742 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22743
22744 # Whether dlopen is supported.
22745 dlopen_support=$enable_dlopen
22746
22747 # Whether dlopen of programs is supported.
22748 dlopen_self=$enable_dlopen_self
22749
22750 # Whether dlopen of statically linked programs is supported.
22751 dlopen_self_static=$enable_dlopen_self_static
22752
22753 # Commands to strip libraries.
22754 old_striplib=$lt_old_striplib
22755 striplib=$lt_striplib
22756
22757
22758 # The linker used to build libraries.
22759 LD=$lt_LD
22760
22761 # How to create reloadable object files.
22762 reload_flag=$lt_reload_flag
22763 reload_cmds=$lt_reload_cmds
22764
22765 # Commands used to build an old-style archive.
22766 old_archive_cmds=$lt_old_archive_cmds
22767
22768 # A language specific compiler.
22769 CC=$lt_compiler
22770
22771 # Is the compiler the GNU compiler?
22772 with_gcc=$GCC
22773
22774 # Compiler flag to turn off builtin functions.
22775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22776
22777 # Additional compiler flags for building library objects.
22778 pic_flag=$lt_lt_prog_compiler_pic
22779
22780 # How to pass a linker flag through the compiler.
22781 wl=$lt_lt_prog_compiler_wl
22782
22783 # Compiler flag to prevent dynamic linking.
22784 link_static_flag=$lt_lt_prog_compiler_static
22785
22786 # Does compiler simultaneously support -c and -o options?
22787 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22788
22789 # Whether or not to add -lc for building shared libraries.
22790 build_libtool_need_lc=$archive_cmds_need_lc
22791
22792 # Whether or not to disallow shared libs when runtime libs are static.
22793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22794
22795 # Compiler flag to allow reflexive dlopens.
22796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22797
22798 # Compiler flag to generate shared objects directly from archives.
22799 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22800
22801 # Whether the compiler copes with passing no objects directly.
22802 compiler_needs_object=$lt_compiler_needs_object
22803
22804 # Create an old-style archive from a shared archive.
22805 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22806
22807 # Create a temporary old-style archive to link instead of a shared archive.
22808 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22809
22810 # Commands used to build a shared archive.
22811 archive_cmds=$lt_archive_cmds
22812 archive_expsym_cmds=$lt_archive_expsym_cmds
22813
22814 # Commands used to build a loadable module if different from building
22815 # a shared archive.
22816 module_cmds=$lt_module_cmds
22817 module_expsym_cmds=$lt_module_expsym_cmds
22818
22819 # Whether we are building with GNU ld or not.
22820 with_gnu_ld=$lt_with_gnu_ld
22821
22822 # Flag that allows shared libraries with undefined symbols to be built.
22823 allow_undefined_flag=$lt_allow_undefined_flag
22824
22825 # Flag that enforces no undefined symbols.
22826 no_undefined_flag=$lt_no_undefined_flag
22827
22828 # Flag to hardcode \$libdir into a binary during linking.
22829 # This must work even if \$libdir does not exist
22830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22831
22832 # Whether we need a single "-rpath" flag with a separated argument.
22833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22834
22835 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22836 # DIR into the resulting binary.
22837 hardcode_direct=$hardcode_direct
22838
22839 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22840 # DIR into the resulting binary and the resulting library dependency is
22841 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22842 # library is relocated.
22843 hardcode_direct_absolute=$hardcode_direct_absolute
22844
22845 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22846 # into the resulting binary.
22847 hardcode_minus_L=$hardcode_minus_L
22848
22849 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22850 # into the resulting binary.
22851 hardcode_shlibpath_var=$hardcode_shlibpath_var
22852
22853 # Set to "yes" if building a shared library automatically hardcodes DIR
22854 # into the library and all subsequent libraries and executables linked
22855 # against it.
22856 hardcode_automatic=$hardcode_automatic
22857
22858 # Set to yes if linker adds runtime paths of dependent libraries
22859 # to runtime path list.
22860 inherit_rpath=$inherit_rpath
22861
22862 # Whether libtool must link a program against all its dependency libraries.
22863 link_all_deplibs=$link_all_deplibs
22864
22865 # Set to "yes" if exported symbols are required.
22866 always_export_symbols=$always_export_symbols
22867
22868 # The commands to list exported symbols.
22869 export_symbols_cmds=$lt_export_symbols_cmds
22870
22871 # Symbols that should not be listed in the preloaded symbols.
22872 exclude_expsyms=$lt_exclude_expsyms
22873
22874 # Symbols that must always be exported.
22875 include_expsyms=$lt_include_expsyms
22876
22877 # Commands necessary for linking programs (against libraries) with templates.
22878 prelink_cmds=$lt_prelink_cmds
22879
22880 # Commands necessary for finishing linking programs.
22881 postlink_cmds=$lt_postlink_cmds
22882
22883 # Specify filename containing input files.
22884 file_list_spec=$lt_file_list_spec
22885
22886 # How to hardcode a shared library path into an executable.
22887 hardcode_action=$hardcode_action
22888
22889 # The directories searched by this compiler when creating a shared library.
22890 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22891
22892 # Dependencies to place before and after the objects being linked to
22893 # create a shared library.
22894 predep_objects=$lt_predep_objects
22895 postdep_objects=$lt_postdep_objects
22896 predeps=$lt_predeps
22897 postdeps=$lt_postdeps
22898
22899 # The library search path used internally by the compiler when linking
22900 # a shared library.
22901 compiler_lib_search_path=$lt_compiler_lib_search_path
22902
22903 # ### END LIBTOOL CONFIG
22904
22905 _LT_EOF
22906
22907 cat <<'_LT_EOF' >> "$cfgfile"
22908
22909 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22910
22911 # func_munge_path_list VARIABLE PATH
22912 # -----------------------------------
22913 # VARIABLE is name of variable containing _space_ separated list of
22914 # directories to be munged by the contents of PATH, which is string
22915 # having a format:
22916 # "DIR[:DIR]:"
22917 # string "DIR[ DIR]" will be prepended to VARIABLE
22918 # ":DIR[:DIR]"
22919 # string "DIR[ DIR]" will be appended to VARIABLE
22920 # "DIRP[:DIRP]::[DIRA:]DIRA"
22921 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22922 # "DIRA[ DIRA]" will be appended to VARIABLE
22923 # "DIR[:DIR]"
22924 # VARIABLE will be replaced by "DIR[ DIR]"
22925 func_munge_path_list ()
22926 {
22927 case x$2 in
22928 x)
22929 ;;
22930 *:)
22931 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22932 ;;
22933 x:*)
22934 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22935 ;;
22936 *::*)
22937 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22938 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22939 ;;
22940 *)
22941 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22942 ;;
22943 esac
22944 }
22945
22946
22947 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22948 func_cc_basename ()
22949 {
22950 for cc_temp in $*""; do
22951 case $cc_temp in
22952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22954 \-*) ;;
22955 *) break;;
22956 esac
22957 done
22958 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22959 }
22960
22961
22962 # ### END FUNCTIONS SHARED WITH CONFIGURE
22963
22964 _LT_EOF
22965
22966 case $host_os in
22967 aix3*)
22968 cat <<\_LT_EOF >> "$cfgfile"
22969 # AIX sometimes has problems with the GCC collect2 program. For some
22970 # reason, if we set the COLLECT_NAMES environment variable, the problems
22971 # vanish in a puff of smoke.
22972 if test set != "${COLLECT_NAMES+set}"; then
22973 COLLECT_NAMES=
22974 export COLLECT_NAMES
22975 fi
22976 _LT_EOF
22977 ;;
22978 esac
22979
22980
22981
22982 ltmain=$ac_aux_dir/ltmain.sh
22983
22984
22985 # We use sed instead of cat because bash on DJGPP gets confused if
22986 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22987 # text mode, it properly converts lines to CR/LF. This bash problem
22988 # is reportedly fixed, but why not run on old versions too?
22989 $SED '$q' "$ltmain" >> "$cfgfile" \
22990 || (rm -f "$cfgfile"; exit 1)
22991
22992 mv -f "$cfgfile" "$ofile" ||
22993 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22994 chmod +x "$ofile"
22995
22996
22997 cat <<_LT_EOF >> "$ofile"
22998
22999 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23000
23001 # The linker used to build libraries.
23002 LD=$lt_LD_CXX
23003
23004 # How to create reloadable object files.
23005 reload_flag=$lt_reload_flag_CXX
23006 reload_cmds=$lt_reload_cmds_CXX
23007
23008 # Commands used to build an old-style archive.
23009 old_archive_cmds=$lt_old_archive_cmds_CXX
23010
23011 # A language specific compiler.
23012 CC=$lt_compiler_CXX
23013
23014 # Is the compiler the GNU compiler?
23015 with_gcc=$GCC_CXX
23016
23017 # Compiler flag to turn off builtin functions.
23018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23019
23020 # Additional compiler flags for building library objects.
23021 pic_flag=$lt_lt_prog_compiler_pic_CXX
23022
23023 # How to pass a linker flag through the compiler.
23024 wl=$lt_lt_prog_compiler_wl_CXX
23025
23026 # Compiler flag to prevent dynamic linking.
23027 link_static_flag=$lt_lt_prog_compiler_static_CXX
23028
23029 # Does compiler simultaneously support -c and -o options?
23030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23031
23032 # Whether or not to add -lc for building shared libraries.
23033 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23034
23035 # Whether or not to disallow shared libs when runtime libs are static.
23036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23037
23038 # Compiler flag to allow reflexive dlopens.
23039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23040
23041 # Compiler flag to generate shared objects directly from archives.
23042 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23043
23044 # Whether the compiler copes with passing no objects directly.
23045 compiler_needs_object=$lt_compiler_needs_object_CXX
23046
23047 # Create an old-style archive from a shared archive.
23048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23049
23050 # Create a temporary old-style archive to link instead of a shared archive.
23051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23052
23053 # Commands used to build a shared archive.
23054 archive_cmds=$lt_archive_cmds_CXX
23055 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23056
23057 # Commands used to build a loadable module if different from building
23058 # a shared archive.
23059 module_cmds=$lt_module_cmds_CXX
23060 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23061
23062 # Whether we are building with GNU ld or not.
23063 with_gnu_ld=$lt_with_gnu_ld_CXX
23064
23065 # Flag that allows shared libraries with undefined symbols to be built.
23066 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23067
23068 # Flag that enforces no undefined symbols.
23069 no_undefined_flag=$lt_no_undefined_flag_CXX
23070
23071 # Flag to hardcode \$libdir into a binary during linking.
23072 # This must work even if \$libdir does not exist
23073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23074
23075 # Whether we need a single "-rpath" flag with a separated argument.
23076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23077
23078 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23079 # DIR into the resulting binary.
23080 hardcode_direct=$hardcode_direct_CXX
23081
23082 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23083 # DIR into the resulting binary and the resulting library dependency is
23084 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23085 # library is relocated.
23086 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23087
23088 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23089 # into the resulting binary.
23090 hardcode_minus_L=$hardcode_minus_L_CXX
23091
23092 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23093 # into the resulting binary.
23094 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23095
23096 # Set to "yes" if building a shared library automatically hardcodes DIR
23097 # into the library and all subsequent libraries and executables linked
23098 # against it.
23099 hardcode_automatic=$hardcode_automatic_CXX
23100
23101 # Set to yes if linker adds runtime paths of dependent libraries
23102 # to runtime path list.
23103 inherit_rpath=$inherit_rpath_CXX
23104
23105 # Whether libtool must link a program against all its dependency libraries.
23106 link_all_deplibs=$link_all_deplibs_CXX
23107
23108 # Set to "yes" if exported symbols are required.
23109 always_export_symbols=$always_export_symbols_CXX
23110
23111 # The commands to list exported symbols.
23112 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23113
23114 # Symbols that should not be listed in the preloaded symbols.
23115 exclude_expsyms=$lt_exclude_expsyms_CXX
23116
23117 # Symbols that must always be exported.
23118 include_expsyms=$lt_include_expsyms_CXX
23119
23120 # Commands necessary for linking programs (against libraries) with templates.
23121 prelink_cmds=$lt_prelink_cmds_CXX
23122
23123 # Commands necessary for finishing linking programs.
23124 postlink_cmds=$lt_postlink_cmds_CXX
23125
23126 # Specify filename containing input files.
23127 file_list_spec=$lt_file_list_spec_CXX
23128
23129 # How to hardcode a shared library path into an executable.
23130 hardcode_action=$hardcode_action_CXX
23131
23132 # The directories searched by this compiler when creating a shared library.
23133 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23134
23135 # Dependencies to place before and after the objects being linked to
23136 # create a shared library.
23137 predep_objects=$lt_predep_objects_CXX
23138 postdep_objects=$lt_postdep_objects_CXX
23139 predeps=$lt_predeps_CXX
23140 postdeps=$lt_postdeps_CXX
23141
23142 # The library search path used internally by the compiler when linking
23143 # a shared library.
23144 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23145
23146 # ### END LIBTOOL TAG CONFIG: CXX
23147 _LT_EOF
23148
23149 ;;
23150
23151 esac
23152 done # for ac_tag
23153
23154
23155 as_fn_exit 0
23156 _ACEOF
23157 ac_clean_files=$ac_clean_files_save
23158
23159 test $ac_write_fail = 0 ||
23160 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23161
23162
23163 # configure is writing to config.log, and then calls config.status.
23164 # config.status does its own redirection, appending to config.log.
23165 # Unfortunately, on DOS this fails, as config.log is still kept open
23166 # by configure, so config.status won't be able to write to it; its
23167 # output is simply discarded. So we exec the FD to /dev/null,
23168 # effectively closing config.log, so it can be properly (re)opened and
23169 # appended to by config.status. When coming back to configure, we
23170 # need to make the FD available again.
23171 if test "$no_create" != yes; then
23172 ac_cs_success=:
23173 ac_config_status_args=
23174 test "$silent" = yes &&
23175 ac_config_status_args="$ac_config_status_args --quiet"
23176 exec 5>/dev/null
23177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23178 exec 5>>config.log
23179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23180 # would make configure fail if this is the last instruction.
23181 $ac_cs_success || as_fn_exit 1
23182 fi
23183 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23185 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23186 fi
23187
23188