Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # From configure.ac Revision: 1.28 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for LCAS-LCMAPS GT4 interface 0.3.2.
5 #
6 # Report bugs to <[email protected]>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 #
15 # Copyright (c) 2011 The Initiative for Globus in Europe project
16 # See LICENCE file for details
17 #
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
21
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 emulate sh
26 NULLCMD=:
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
30 setopt NO_GLOB_SUBST
31 else
32 case `(set -o) 2>/dev/null` in #(
33 *posix*) :
34 set -o posix ;; #(
35 *) :
36 ;;
37 esac
38 fi
39
40
41 as_nl='
42 '
43 export as_nl
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 # Prefer a ksh shell builtin over an external printf program on Solaris,
49 # but without wasting forks for bash or zsh.
50 if test -z "$BASH_VERSION$ZSH_VERSION" \
51 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='print -r --'
53 as_echo_n='print -rn --'
54 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 as_echo='printf %s\n'
56 as_echo_n='printf %s'
57 else
58 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60 as_echo_n='/usr/ucb/echo -n'
61 else
62 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 as_echo_n_body='eval
64 arg=$1;
65 case $arg in #(
66 *"$as_nl"*)
67 expr "X$arg" : "X\\(.*\\)$as_nl";
68 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
69 esac;
70 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 '
72 export as_echo_n_body
73 as_echo_n='sh -c $as_echo_n_body as_echo'
74 fi
75 export as_echo_body
76 as_echo='sh -c $as_echo_body as_echo'
77 fi
78
79 # The user is always right.
80 if test "${PATH_SEPARATOR+set}" != set; then
81 PATH_SEPARATOR=:
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 PATH_SEPARATOR=';'
85 }
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 as_myself=
98 case $0 in #((
99 *[\\/]* ) as_myself=$0 ;;
100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 for as_dir in $PATH
102 do
103 IFS=$as_save_IFS
104 test -z "$as_dir" && as_dir=.
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 done
107 IFS=$as_save_IFS
108
109 ;;
110 esac
111 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 # in which case we are not to be found in the path.
113 if test "x$as_myself" = x; then
114 as_myself=$0
115 fi
116 if test ! -f "$as_myself"; then
117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 exit 1
119 fi
120
121 # Unset variables that we do not need and which cause bugs (e.g. in
122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
123 # suppresses any "Segmentation fault" message there. '((' could
124 # trigger a bug in pdksh 5.2.14.
125 for as_var in BASH_ENV ENV MAIL MAILPATH
126 do eval test x\${$as_var+set} = xset \
127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
128 done
129 PS1='$ '
130 PS2='> '
131 PS4='+ '
132
133 # NLS nuisances.
134 LC_ALL=C
135 export LC_ALL
136 LANGUAGE=C
137 export LANGUAGE
138
139 # CDPATH.
140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141
142 # Use a proper internal environment variable to ensure we don't fall
143 # into an infinite loop, continuously re-executing ourselves.
144 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
145 _as_can_reexec=no; export _as_can_reexec;
146 # We cannot yet assume a decent shell, so we have to provide a
147 # neutralization value for shells without unset; and this also
148 # works around shells that cannot unset nonexistent variables.
149 # Preserve -v and -x to the replacement shell.
150 BASH_ENV=/dev/null
151 ENV=/dev/null
152 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
153 case $- in # ((((
154 *v*x* | *x*v* ) as_opts=-vx ;;
155 *v* ) as_opts=-v ;;
156 *x* ) as_opts=-x ;;
157 * ) as_opts= ;;
158 esac
159 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
160 # Admittedly, this is quite paranoid, since all the known shells bail
161 # out after a failed `exec'.
162 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
163 as_fn_exit 255
164 fi
165 # We don't want this to propagate to other subprocesses.
166 { _as_can_reexec=; unset _as_can_reexec;}
167 if test "x$CONFIG_SHELL" = x; then
168 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
169 emulate sh
170 NULLCMD=:
171 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
172 # is contrary to our usage. Disable this feature.
173 alias -g '\${1+\"\$@\"}'='\"\$@\"'
174 setopt NO_GLOB_SUBST
175 else
176 case \`(set -o) 2>/dev/null\` in #(
177 *posix*) :
178 set -o posix ;; #(
179 *) :
180 ;;
181 esac
182 fi
183 "
184 as_required="as_fn_return () { (exit \$1); }
185 as_fn_success () { as_fn_return 0; }
186 as_fn_failure () { as_fn_return 1; }
187 as_fn_ret_success () { return 0; }
188 as_fn_ret_failure () { return 1; }
189
190 exitcode=0
191 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
192 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
193 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
194 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
195 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
196
197 else
198 exitcode=1; echo positional parameters were not saved.
199 fi
200 test x\$exitcode = x0 || exit 1
201 test -x / || exit 1"
202 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
203 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
204 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
205 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
206
207 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
208 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
209 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
210 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
211 PATH=/empty FPATH=/empty; export PATH FPATH
212 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
213 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
214 test \$(( 1 + 1 )) = 2 || exit 1"
215 if (eval "$as_required") 2>/dev/null; then :
216 as_have_required=yes
217 else
218 as_have_required=no
219 fi
220 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
221
222 else
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 as_found=false
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 as_found=:
230 case $as_dir in #(
231 /*)
232 for as_base in sh bash ksh sh5; do
233 # Try only shells that exist, to save several forks.
234 as_shell=$as_dir/$as_base
235 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
237 CONFIG_SHELL=$as_shell as_have_required=yes
238 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 break 2
240 fi
241 fi
242 done;;
243 esac
244 as_found=false
245 done
246 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
247 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
248 CONFIG_SHELL=$SHELL as_have_required=yes
249 fi; }
250 IFS=$as_save_IFS
251
252
253 if test "x$CONFIG_SHELL" != x; then :
254 export CONFIG_SHELL
255 # We cannot yet assume a decent shell, so we have to provide a
256 # neutralization value for shells without unset; and this also
257 # works around shells that cannot unset nonexistent variables.
258 # Preserve -v and -x to the replacement shell.
259 BASH_ENV=/dev/null
260 ENV=/dev/null
261 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
262 case $- in # ((((
263 *v*x* | *x*v* ) as_opts=-vx ;;
264 *v* ) as_opts=-v ;;
265 *x* ) as_opts=-x ;;
266 * ) as_opts= ;;
267 esac
268 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
269 # Admittedly, this is quite paranoid, since all the known shells bail
270 # out after a failed `exec'.
271 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
272 exit 255
273 fi
274
275 if test x$as_have_required = xno; then :
276 $as_echo "$0: This script requires a shell more modern than all"
277 $as_echo "$0: the shells that I found on your system."
278 if test x${ZSH_VERSION+set} = xset ; then
279 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
280 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
281 else
282 $as_echo "$0: Please tell [email protected] and
283 $0: [email protected] about your system, including
284 $0: any error possibly output before this message. Then
285 $0: install a modern shell, or manually run the script
286 $0: under such a shell if you do have one."
287 fi
288 exit 1
289 fi
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310 # as_fn_set_status STATUS
311 # -----------------------
312 # Set $? to STATUS, without forking.
313 as_fn_set_status ()
314 {
315 return $1
316 } # as_fn_set_status
317
318 # as_fn_exit STATUS
319 # -----------------
320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
321 as_fn_exit ()
322 {
323 set +e
324 as_fn_set_status $1
325 exit $1
326 } # as_fn_exit
327
328 # as_fn_mkdir_p
329 # -------------
330 # Create "$as_dir" as a directory, including parents if necessary.
331 as_fn_mkdir_p ()
332 {
333
334 case $as_dir in #(
335 -*) as_dir=./$as_dir;;
336 esac
337 test -d "$as_dir" || eval $as_mkdir_p || {
338 as_dirs=
339 while :; do
340 case $as_dir in #(
341 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
342 *) as_qdir=$as_dir;;
343 esac
344 as_dirs="'$as_qdir' $as_dirs"
345 as_dir=`$as_dirname -- "$as_dir" ||
346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
347 X"$as_dir" : 'X\(//\)[^/]' \| \
348 X"$as_dir" : 'X\(//\)$' \| \
349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
350 $as_echo X"$as_dir" |
351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)[^/].*/{
356 s//\1/
357 q
358 }
359 /^X\(\/\/\)$/{
360 s//\1/
361 q
362 }
363 /^X\(\/\).*/{
364 s//\1/
365 q
366 }
367 s/.*/./; q'`
368 test -d "$as_dir" && break
369 done
370 test -z "$as_dirs" || eval "mkdir $as_dirs"
371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
373
374 } # as_fn_mkdir_p
375
376 # as_fn_executable_p FILE
377 # -----------------------
378 # Test if FILE is an executable regular file.
379 as_fn_executable_p ()
380 {
381 test -f "$1" && test -x "$1"
382 } # as_fn_executable_p
383 # as_fn_append VAR VALUE
384 # ----------------------
385 # Append the text in VALUE to the end of the definition contained in VAR. Take
386 # advantage of any shell optimizations that allow amortized linear growth over
387 # repeated appends, instead of the typical quadratic growth present in naive
388 # implementations.
389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
390 eval 'as_fn_append ()
391 {
392 eval $1+=\$2
393 }'
394 else
395 as_fn_append ()
396 {
397 eval $1=\$$1\$2
398 }
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418
419 # as_fn_error STATUS ERROR [LINENO LOG_FD]
420 # ----------------------------------------
421 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
422 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
423 # script with STATUS, using 1 if that was 0.
424 as_fn_error ()
425 {
426 as_status=$1; test $as_status -eq 0 && as_status=1
427 if test "$4"; then
428 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
429 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
430 fi
431 $as_echo "$as_me: error: $2" >&2
432 as_fn_exit $as_status
433 } # as_fn_error
434
435 if expr a : '\(a\)' >/dev/null 2>&1 &&
436 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 as_expr=expr
438 else
439 as_expr=false
440 fi
441
442 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 as_basename=basename
444 else
445 as_basename=false
446 fi
447
448 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_dirname=dirname
450 else
451 as_dirname=false
452 fi
453
454 as_me=`$as_basename -- "$0" ||
455 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
456 X"$0" : 'X\(//\)$' \| \
457 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
458 $as_echo X/"$0" |
459 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\/\)$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\).*/{
468 s//\1/
469 q
470 }
471 s/.*/./; q'`
472
473 # Avoid depending upon Character Ranges.
474 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
475 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
476 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
477 as_cr_digits='0123456789'
478 as_cr_alnum=$as_cr_Letters$as_cr_digits
479
480
481 as_lineno_1=$LINENO as_lineno_1a=$LINENO
482 as_lineno_2=$LINENO as_lineno_2a=$LINENO
483 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
484 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
485 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 sed -n '
487 p
488 /[$]LINENO/=
489 ' <$as_myself |
490 sed '
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516 ECHO_C= ECHO_N= ECHO_T=
517 case `echo -n x` in #(((((
518 -n*)
519 case `echo 'xy\c'` in
520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
521 xy) ECHO_C='\c';;
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 ECHO_T=' ';;
524 esac;;
525 *)
526 ECHO_N='-n';;
527 esac
528
529 rm -f conf$$ conf$$.exe conf$$.file
530 if test -d conf$$.dir; then
531 rm -f conf$$.dir/conf$$.file
532 else
533 rm -f conf$$.dir
534 mkdir conf$$.dir 2>/dev/null
535 fi
536 if (echo >conf$$.file) 2>/dev/null; then
537 if ln -s conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s='ln -s'
539 # ... but there are two gotchas:
540 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
541 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
542 # In both cases, we have to default to `cp -pR'.
543 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
544 as_ln_s='cp -pR'
545 elif ln conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s=ln
547 else
548 as_ln_s='cp -pR'
549 fi
550 else
551 as_ln_s='cp -pR'
552 fi
553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
554 rmdir conf$$.dir 2>/dev/null
555
556 if mkdir -p . 2>/dev/null; then
557 as_mkdir_p='mkdir -p "$as_dir"'
558 else
559 test -d ./-p && rmdir ./-p
560 as_mkdir_p=false
561 fi
562
563 as_test_x='test -x'
564 as_executable_p=as_fn_executable_p
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574
575 test -n "$DJDIR" || exec 7<&0 </dev/null
576 exec 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594
595 # Identity of this package.
596 PACKAGE_NAME='LCAS-LCMAPS GT4 interface'
597 PACKAGE_TARNAME='lcas-lcmaps-gt4-interface'
598 PACKAGE_VERSION='0.3.2'
599 PACKAGE_STRING='LCAS-LCMAPS GT4 interface 0.3.2'
600 PACKAGE_BUGREPORT='[email protected]'
601 PACKAGE_URL=''
602
603 ac_unique_file="src/llgt_config.h.in"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 # include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_subst_vars='am__EXEEXT_FALSE
641 am__EXEEXT_TRUE
642 LTLIBOBJS
643 SHREXT
644 LCMAPS_MODULEDIR
645 LCMAPS_MODULEDIR_SFX
646 LCMAPS_DB_FILENAME
647 LCMAPS_DB_DIR
648 LCMAPS_DB_FILE
649 LCMAPS_CFLAGS
650 LCMAPS_INTERFACE_LIBS
651 LCMAPS_INTERFACE_CFLAGS
652 LCMAPS_GLOBUS_INTERFACE_LIBS
653 LCMAPS_GLOBUS_INTERFACE_CFLAGS
654 USE_LCAS_FALSE
655 USE_LCAS_TRUE
656 LCAS_MODULEDIR
657 LCAS_MODULEDIR_SFX
658 LCAS_DB_FILENAME
659 LCAS_DB_DIR
660 LCAS_DB_FILE
661 LCAS_CFLAGS
662 LCAS_INTERFACE_LIBS
663 LCAS_INTERFACE_CFLAGS
664 GLOBUS_GSI_PROXY_CORE_NOTHR_LIBS
665 GLOBUS_GSI_PROXY_CORE_NOTHR_CFLAGS
666 GLOBUS_GSI_PROXY_CORE_THR_LIBS
667 GLOBUS_GSI_PROXY_CORE_THR_CFLAGS
668 GLOBUS_GSI_PROXY_CORE_LIBS
669 GLOBUS_GSI_PROXY_CORE_CFLAGS
670 GLOBUS_GRIDMAP_CALLOUT_ERROR_NOTHR_LIBS
671 GLOBUS_GRIDMAP_CALLOUT_ERROR_NOTHR_CFLAGS
672 GLOBUS_GRIDMAP_CALLOUT_ERROR_THR_LIBS
673 GLOBUS_GRIDMAP_CALLOUT_ERROR_THR_CFLAGS
674 GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS
675 GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS
676 GLOBUS_GSS_ASSIST_NOTHR_LIBS
677 GLOBUS_GSS_ASSIST_NOTHR_CFLAGS
678 GLOBUS_GSS_ASSIST_THR_LIBS
679 GLOBUS_GSS_ASSIST_THR_CFLAGS
680 GLOBUS_GSS_ASSIST_LIBS
681 GLOBUS_GSS_ASSIST_CFLAGS
682 GLOBUS_GSSAPI_GSI_NOTHR_LIBS
683 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS
684 GLOBUS_GSSAPI_GSI_THR_LIBS
685 GLOBUS_GSSAPI_GSI_THR_CFLAGS
686 GLOBUS_GSSAPI_GSI_LIBS
687 GLOBUS_GSSAPI_GSI_CFLAGS
688 GLOBUS_GSSAPI_ERROR_NOTHR_LIBS
689 GLOBUS_GSSAPI_ERROR_NOTHR_CFLAGS
690 GLOBUS_GSSAPI_ERROR_THR_LIBS
691 GLOBUS_GSSAPI_ERROR_THR_CFLAGS
692 GLOBUS_GSSAPI_ERROR_LIBS
693 GLOBUS_GSSAPI_ERROR_CFLAGS
694 GLOBUS_GSI_CREDENTIAL_NOTHR_LIBS
695 GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS
696 GLOBUS_GSI_CREDENTIAL_THR_LIBS
697 GLOBUS_GSI_CREDENTIAL_THR_CFLAGS
698 GLOBUS_GSI_CREDENTIAL_LIBS
699 GLOBUS_GSI_CREDENTIAL_CFLAGS
700 GLOBUS_COMMON_NOTHR_LIBS
701 GLOBUS_COMMON_NOTHR_CFLAGS
702 GLOBUS_COMMON_THR_LIBS
703 GLOBUS_COMMON_THR_CFLAGS
704 GLOBUS_COMMON_LIBS
705 GLOBUS_COMMON_CFLAGS
706 PKG_CONFIG_LIBDIR
707 PKG_CONFIG_PATH
708 PKG_CONFIG
709 GLOBUS_NOTHR_FLAVOR
710 GLOBUS_THR_FLAVOR
711 GLOBUS_FLAVOR
712 LIBOBJS
713 CPP
714 LT_SYS_LIBRARY_PATH
715 OTOOL64
716 OTOOL
717 LIPO
718 NMEDIT
719 DSYMUTIL
720 MANIFEST_TOOL
721 RANLIB
722 ac_ct_AR
723 AR
724 DLLTOOL
725 OBJDUMP
726 NM
727 ac_ct_DUMPBIN
728 DUMPBIN
729 LD
730 FGREP
731 EGREP
732 GREP
733 SED
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 LIBTOOL
743 LN_S
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 am__nodep
748 AMDEPBACKSLASH
749 AMDEP_FALSE
750 AMDEP_TRUE
751 am__include
752 DEPDIR
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 DISTBIN
761 WORKDIR
762 AM_BACKSLASH
763 AM_DEFAULT_VERBOSITY
764 AM_DEFAULT_V
765 AM_V
766 am__untar
767 am__tar
768 AMTAR
769 am__leading_dot
770 SET_MAKE
771 AWK
772 mkdir_p
773 MKDIR_P
774 INSTALL_STRIP_PROGRAM
775 STRIP
776 install_sh
777 MAKEINFO
778 AUTOHEADER
779 AUTOMAKE
780 AUTOCONF
781 ACLOCAL
782 VERSION
783 PACKAGE
784 CYGPATH_W
785 am__isrc
786 INSTALL_DATA
787 INSTALL_SCRIPT
788 INSTALL_PROGRAM
789 target_alias
790 host_alias
791 build_alias
792 LIBS
793 ECHO_T
794 ECHO_N
795 ECHO_C
796 DEFS
797 mandir
798 localedir
799 libdir
800 psdir
801 pdfdir
802 dvidir
803 htmldir
804 infodir
805 docdir
806 oldincludedir
807 includedir
808 runstatedir
809 localstatedir
810 sharedstatedir
811 sysconfdir
812 datadir
813 datarootdir
814 libexecdir
815 sbindir
816 bindir
817 program_transform_name
818 prefix
819 exec_prefix
820 PACKAGE_URL
821 PACKAGE_BUGREPORT
822 PACKAGE_STRING
823 PACKAGE_VERSION
824 PACKAGE_TARNAME
825 PACKAGE_NAME
826 PATH_SEPARATOR
827 SHELL
828 am__quote'
829 ac_subst_files=''
830 ac_user_opts='
831 enable_option_checking
832 enable_silent_rules
833 enable_dependency_tracking
834 enable_shared
835 enable_static
836 with_pic
837 enable_fast_install
838 with_aix_soname
839 with_gnu_ld
840 with_sysroot
841 enable_libtool_lock
842 with_globus_prefix
843 with_globus_libdir
844 with_globus_flavor
845 with_globus_thr_flavor
846 with_globus_nothr_flavor
847 with_globus_flavorincdir
848 enable_lcas
849 with_lcas_prefix
850 with_lcas_includes
851 with_lcas_db
852 with_lcas_moduledir_sfx
853 with_lcas_moduledir
854 with_lcmaps_prefix
855 with_lcmaps_includes
856 with_lcmaps_db
857 with_lcmaps_moduledir_sfx
858 with_lcmaps_moduledir
859 '
860 ac_precious_vars='build_alias
861 host_alias
862 target_alias
863 CC
864 CFLAGS
865 LDFLAGS
866 LIBS
867 CPPFLAGS
868 LT_SYS_LIBRARY_PATH
869 CPP
870 PKG_CONFIG
871 PKG_CONFIG_PATH
872 PKG_CONFIG_LIBDIR
873 GLOBUS_COMMON_CFLAGS
874 GLOBUS_COMMON_LIBS
875 GLOBUS_GSI_CREDENTIAL_CFLAGS
876 GLOBUS_GSI_CREDENTIAL_LIBS
877 GLOBUS_GSSAPI_ERROR_CFLAGS
878 GLOBUS_GSSAPI_ERROR_LIBS
879 GLOBUS_GSSAPI_GSI_CFLAGS
880 GLOBUS_GSSAPI_GSI_LIBS
881 GLOBUS_GSS_ASSIST_CFLAGS
882 GLOBUS_GSS_ASSIST_LIBS
883 GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS
884 GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS
885 GLOBUS_GSI_PROXY_CORE_CFLAGS
886 GLOBUS_GSI_PROXY_CORE_LIBS
887 LCAS_INTERFACE_CFLAGS
888 LCAS_INTERFACE_LIBS
889 LCMAPS_GLOBUS_INTERFACE_CFLAGS
890 LCMAPS_GLOBUS_INTERFACE_LIBS
891 LCMAPS_INTERFACE_CFLAGS
892 LCMAPS_INTERFACE_LIBS'
893
894
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 ac_unrecognized_opts=
899 ac_unrecognized_sep=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 runstatedir='${localstatedir}/run'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
943
944 ac_prev=
945 ac_dashdash=
946 for ac_option
947 do
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
953 fi
954
955 case $ac_option in
956 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *=) ac_optarg= ;;
958 *) ac_optarg=yes ;;
959 esac
960
961 # Accept the important Cygnus configure options, so we can diagnose typos.
962
963 case $ac_dashdash$ac_option in
964 --)
965 ac_dashdash=yes ;;
966
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 ac_prev=bindir ;;
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 bindir=$ac_optarg ;;
971
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
976
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
983
984 --config-cache | -C)
985 cache_file=config.cache ;;
986
987 -datadir | --datadir | --datadi | --datad)
988 ac_prev=datadir ;;
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
991
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
998
999 -disable-* | --disable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error $? "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
1024
1025 -enable-* | --enable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=\$ac_optarg ;;
1040
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1049
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1052 with_gas=yes ;;
1053
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1060
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1065
1066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 ac_prev=htmldir ;;
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 | --ht=*)
1070 htmldir=$ac_optarg ;;
1071
1072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1078
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 ac_prev=infodir ;;
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1083
1084 -libdir | --libdir | --libdi | --libd)
1085 ac_prev=libdir ;;
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1088
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1095
1096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1100
1101 -localstatedir | --localstatedir | --localstatedi | --localstated \
1102 | --localstate | --localstat | --localsta | --localst | --locals)
1103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1106 localstatedir=$ac_optarg ;;
1107
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 ac_prev=mandir ;;
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1112
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1115 with_fp=no ;;
1116
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1119 no_create=yes ;;
1120
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 no_recursion=yes ;;
1124
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1133
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 ac_prev=prefix ;;
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1138
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1145
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1152
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1169
1170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 ac_prev=pdfdir ;;
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1174
1175 -psdir | --psdir | --psdi | --psd | --ps)
1176 ac_prev=psdir ;;
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 psdir=$ac_optarg ;;
1179
1180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1182 silent=yes ;;
1183
1184 -runstatedir | --runstatedir | --runstatedi | --runstated \
1185 | --runstate | --runstat | --runsta | --runst | --runs \
1186 | --run | --ru | --r)
1187 ac_prev=runstatedir ;;
1188 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1189 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1190 | --run=* | --ru=* | --r=*)
1191 runstatedir=$ac_optarg ;;
1192
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
1197 sbindir=$ac_optarg ;;
1198
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
1208 sharedstatedir=$ac_optarg ;;
1209
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
1213 site=$ac_optarg ;;
1214
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1219
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1226
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1231
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1234
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1237
1238 -with-* | --with-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=\$ac_optarg ;;
1253
1254 -without-* | --without-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
1269
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1273
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279 x_includes=$ac_optarg ;;
1280
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286 x_libraries=$ac_optarg ;;
1287
1288 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information"
1290 ;;
1291
1292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
1297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298 esac
1299 eval $ac_envvar=\$ac_optarg
1300 export $ac_envvar ;;
1301
1302 *)
1303 # FIXME: should be removed in autoconf 3.0.
1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 ;;
1309
1310 esac
1311 done
1312
1313 if test -n "$ac_prev"; then
1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315 as_fn_error $? "missing argument to $ac_option"
1316 fi
1317
1318 if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1320 no) ;;
1321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324 fi
1325
1326 # Check all directory arguments for consistency.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir runstatedir
1331 do
1332 eval ac_val=\$$ac_var
1333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
1340 case $ac_val in
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 esac
1344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 done
1346
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1353
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361 fi
1362
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366 test "$silent" = yes && exec 6>/dev/null
1367
1368
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $? "pwd does not report name of working directory"
1375
1376
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\).*/{
1400 s//\1/
1401 q
1402 }
1403 s/.*/./; q'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1407 fi
1408 else
1409 ac_srcdir_defaulted=no
1410 fi
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 fi
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1422 fi
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1435
1436 #
1437 # Report the --help message.
1438 #
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1442 cat <<_ACEOF
1443 \`configure' configures LCAS-LCMAPS GT4 interface 0.3.2 to adapt to many kinds of systems.
1444
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1449
1450 Defaults for the options are specified in brackets.
1451
1452 Configuration:
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking ...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 [PREFIX]
1468
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1473
1474 For better control, use the options below.
1475
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1484 --libdir=DIR object code libraries [EPREFIX/lib]
1485 --includedir=DIR C header files [PREFIX/include]
1486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489 --infodir=DIR info documentation [DATAROOTDIR/info]
1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491 --mandir=DIR man documentation [DATAROOTDIR/man]
1492 --docdir=DIR documentation root
1493 [DATAROOTDIR/doc/lcas-lcmaps-gt4-interface]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1498 _ACEOF
1499
1500 cat <<\_ACEOF
1501
1502 Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506
1507 System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of LCAS-LCMAPS GT4 interface 0.3.2:";;
1516 esac
1517 cat <<\_ACEOF
1518
1519 Optional Features:
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-silent-rules less verbose build output (undo: "make V=1")
1524 --disable-silent-rules verbose build output (undo: "make V=0")
1525 --enable-dependency-tracking
1526 do not reject slow dependency extractors
1527 --disable-dependency-tracking
1528 speeds up one-time build
1529 --enable-shared[=PKGS] build shared libraries [default=yes]
1530 --enable-static[=PKGS] build static libraries [default=yes]
1531 --enable-fast-install[=PKGS]
1532 optimize for fast installation [default=yes]
1533 --disable-libtool-lock avoid locking (might break parallel builds)
1534 --enable-lcas Enables LCAS to run prior to LCMAPS (default)
1535
1536 Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1540 both]
1541 --with-aix-soname=aix|svr4|both
1542 shared library versioning (aka "SONAME") variant to
1543 provide on AIX, [default=aix].
1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1546 compiler's sysroot if not specified).
1547 --with-globus-prefix=PFX
1548 prefix where GLOBUS is installed.
1549 --with-globus-libdir=DIR
1550 directory where GLOBUS libraries are installed
1551 (default either GLOBUS-PREFIX/lib or
1552 GLOBUS-PREFIX/lib64).
1553 --with-globus-flavor globus flavor
1554 --with-globus-thr-flavor
1555 globus threaded flavor
1556 --with-globus-nothr-flavor
1557 globus non-threaded flavor
1558 --with-globus-flavorincdir
1559 flavored includedir, i.e. location of
1560 globus_config.h
1561 --with-lcas-prefix=DIR Prefix where LCAS is installed (default /usr)
1562 --with-lcas-includes=DIR
1563 Directory where LCAS headers are installed (default
1564 LCAS-PREFIX/include)
1565 --with-lcas-db=FILE use specified FILE as lcas.db
1566 [default=SYSCONFDIR/lcas/lcas.db]
1567 --with-lcas-moduledir-sfx=path
1568 Specify the install location of the LCAS plug-ins
1569 with respect to LIBDIR [default=/lcas]
1570 --with-lcas-moduledir=path
1571 Specify the absolute install location of the LCAS
1572 plug-ins [default=LIBDIR/LCAS_MODULEDIR_SFX]
1573 --with-lcmaps-prefix=DIR
1574 Prefix where LCMAPS is installed (default /usr)
1575 --with-lcmaps-includes=DIR
1576 Directory where LCMAPS headers are installed
1577 (default LCMAPS-PREFIX/include)
1578 --with-lcmaps-db=FILE use specified FILE as lcmaps.db
1579 [default=SYSCONFDIR/lcmaps/lcmaps.db]
1580 --with-lcmaps-moduledir-sfx=path
1581 Specify the install location of the LCMAPS plug-ins
1582 with respect to LIBDIR [default=/lcmaps]
1583 --with-lcmaps-moduledir=path
1584 Specify the absolute install location of the LCMAPS
1585 plug-ins to be set in the LCMAPS_DB_FILE
1586 [default=LIBDIR/LCMAPS_MODULEDIR_SFX]
1587
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1596 LT_SYS_LIBRARY_PATH
1597 User-defined run-time library search path.
1598 CPP C preprocessor
1599 PKG_CONFIG path to pkg-config utility
1600 PKG_CONFIG_PATH
1601 directories to add to pkg-config's search path
1602 PKG_CONFIG_LIBDIR
1603 path overriding pkg-config's built-in search path
1604 GLOBUS_COMMON_CFLAGS
1605 C compiler flags for GLOBUS_COMMON, overriding pkg-config
1606 GLOBUS_COMMON_LIBS
1607 linker flags for GLOBUS_COMMON, overriding pkg-config
1608 GLOBUS_GSI_CREDENTIAL_CFLAGS
1609 C compiler flags for GLOBUS_GSI_CREDENTIAL, overriding
1610 pkg-config
1611 GLOBUS_GSI_CREDENTIAL_LIBS
1612 linker flags for GLOBUS_GSI_CREDENTIAL, overriding pkg-config
1613 GLOBUS_GSSAPI_ERROR_CFLAGS
1614 C compiler flags for GLOBUS_GSSAPI_ERROR, overriding pkg-config
1615 GLOBUS_GSSAPI_ERROR_LIBS
1616 linker flags for GLOBUS_GSSAPI_ERROR, overriding pkg-config
1617 GLOBUS_GSSAPI_GSI_CFLAGS
1618 C compiler flags for GLOBUS_GSSAPI_GSI, overriding pkg-config
1619 GLOBUS_GSSAPI_GSI_LIBS
1620 linker flags for GLOBUS_GSSAPI_GSI, overriding pkg-config
1621 GLOBUS_GSS_ASSIST_CFLAGS
1622 C compiler flags for GLOBUS_GSS_ASSIST, overriding pkg-config
1623 GLOBUS_GSS_ASSIST_LIBS
1624 linker flags for GLOBUS_GSS_ASSIST, overriding pkg-config
1625 GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS
1626 C compiler flags for GLOBUS_GRIDMAP_CALLOUT_ERROR, overriding
1627 pkg-config
1628 GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS
1629 linker flags for GLOBUS_GRIDMAP_CALLOUT_ERROR, overriding
1630 pkg-config
1631 GLOBUS_GSI_PROXY_CORE_CFLAGS
1632 C compiler flags for GLOBUS_GSI_PROXY_CORE, overriding
1633 pkg-config
1634 GLOBUS_GSI_PROXY_CORE_LIBS
1635 linker flags for GLOBUS_GSI_PROXY_CORE, overriding pkg-config
1636 LCAS_INTERFACE_CFLAGS
1637 C compiler flags for LCAS_INTERFACE, overriding pkg-config
1638 LCAS_INTERFACE_LIBS
1639 linker flags for LCAS_INTERFACE, overriding pkg-config
1640 LCMAPS_GLOBUS_INTERFACE_CFLAGS
1641 C compiler flags for LCMAPS_GLOBUS_INTERFACE, overriding
1642 pkg-config
1643 LCMAPS_GLOBUS_INTERFACE_LIBS
1644 linker flags for LCMAPS_GLOBUS_INTERFACE, overriding pkg-config
1645 LCMAPS_INTERFACE_CFLAGS
1646 C compiler flags for LCMAPS_INTERFACE, overriding pkg-config
1647 LCMAPS_INTERFACE_LIBS
1648 linker flags for LCMAPS_INTERFACE, overriding pkg-config
1649
1650 Use these variables to override the choices made by `configure' or to help
1651 it to find libraries and programs with nonstandard names/locations.
1652
1653 Report bugs to <[email protected]>.
1654 _ACEOF
1655 ac_status=$?
1656 fi
1657
1658 if test "$ac_init_help" = "recursive"; then
1659 # If there are subdirs, report their specific --help.
1660 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661 test -d "$ac_dir" ||
1662 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663 continue
1664 ac_builddir=.
1665
1666 case "$ac_dir" in
1667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *)
1669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670 # A ".." for each directory in $ac_dir_suffix.
1671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672 case $ac_top_builddir_sub in
1673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675 esac ;;
1676 esac
1677 ac_abs_top_builddir=$ac_pwd
1678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679 # for backward compatibility:
1680 ac_top_builddir=$ac_top_build_prefix
1681
1682 case $srcdir in
1683 .) # We are building in place.
1684 ac_srcdir=.
1685 ac_top_srcdir=$ac_top_builddir_sub
1686 ac_abs_top_srcdir=$ac_pwd ;;
1687 [\\/]* | ?:[\\/]* ) # Absolute name.
1688 ac_srcdir=$srcdir$ac_dir_suffix;
1689 ac_top_srcdir=$srcdir
1690 ac_abs_top_srcdir=$srcdir ;;
1691 *) # Relative name.
1692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693 ac_top_srcdir=$ac_top_build_prefix$srcdir
1694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 esac
1696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697
1698 cd "$ac_dir" || { ac_status=$?; continue; }
1699 # Check for guested configure.
1700 if test -f "$ac_srcdir/configure.gnu"; then
1701 echo &&
1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703 elif test -f "$ac_srcdir/configure"; then
1704 echo &&
1705 $SHELL "$ac_srcdir/configure" --help=recursive
1706 else
1707 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 fi || ac_status=$?
1709 cd "$ac_pwd" || { ac_status=$?; break; }
1710 done
1711 fi
1712
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1715 cat <<\_ACEOF
1716 LCAS-LCMAPS GT4 interface configure 0.3.2
1717 generated by GNU Autoconf 2.69
1718
1719 Copyright (C) 2012 Free Software Foundation, Inc.
1720 This configure script is free software; the Free Software Foundation
1721 gives unlimited permission to copy, distribute and modify it.
1722
1723 Copyright (c) 2011 The Initiative for Globus in Europe project
1724 See LICENCE file for details
1725
1726 _ACEOF
1727 exit
1728 fi
1729
1730 ## ------------------------ ##
1731 ## Autoconf initialization. ##
1732 ## ------------------------ ##
1733
1734 # ac_fn_c_try_compile LINENO
1735 # --------------------------
1736 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_compile ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext
1741 if { { ac_try="$ac_compile"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_compile") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest.$ac_objext; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766 fi
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_compile
1771
1772 # ac_fn_c_try_link LINENO
1773 # -----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded.
1775 ac_fn_c_try_link ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext conftest$ac_exeext
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest$ac_exeext && {
1798 test "$cross_compiling" = yes ||
1799 test -x conftest$ac_exeext
1800 }; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807 fi
1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1810 # interfere with the next link command; also delete a directory that is
1811 # left behind by Apple's compiler. We do this before executing the actions.
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status $ac_retval
1815
1816 } # ac_fn_c_try_link
1817
1818 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1819 # -------------------------------------------------------
1820 # Tests whether HEADER exists and can be compiled using the include files in
1821 # INCLUDES, setting the cache variable VAR accordingly.
1822 ac_fn_c_check_header_compile ()
1823 {
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1829 else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 $4
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836 eval "$3=yes"
1837 else
1838 eval "$3=no"
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 fi
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_header_compile
1848
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } > conftest.i && {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_cpp
1885
1886 # ac_fn_c_try_run LINENO
1887 # ----------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889 # that executables *can* be run.
1890 ac_fn_c_try_run ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_link"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>&5
1901 ac_status=$?
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904 { { case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_try") 2>&5
1911 ac_status=$?
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; }; }; then :
1914 ac_retval=0
1915 else
1916 $as_echo "$as_me: program exited with status $ac_status" >&5
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=$ac_status
1921 fi
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1925
1926 } # ac_fn_c_try_run
1927
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943 #define $2 innocuous_$2
1944
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1949
1950 #ifdef __STDC__
1951 # include <limits.h>
1952 #else
1953 # include <assert.h>
1954 #endif
1955
1956 #undef $2
1957
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 ();
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1971
1972 int
1973 main ()
1974 {
1975 return $2 ();
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982 else
1983 eval "$3=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993 } # ac_fn_c_check_func
1994
1995 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1996 # -------------------------------------------------------
1997 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1998 # the include files in INCLUDES and setting the cache variable VAR
1999 # accordingly.
2000 ac_fn_c_check_header_mongrel ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if eval \${$3+:} false; then :
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2008 fi
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 else
2013 # Is the header compilable?
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2015 $as_echo_n "checking $2 usability... " >&6; }
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $4
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 ac_header_compiler=yes
2023 else
2024 ac_header_compiler=no
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2028 $as_echo "$ac_header_compiler" >&6; }
2029
2030 # Is the header present?
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2032 $as_echo_n "checking $2 presence... " >&6; }
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 #include <$2>
2036 _ACEOF
2037 if ac_fn_c_try_cpp "$LINENO"; then :
2038 ac_header_preproc=yes
2039 else
2040 ac_header_preproc=no
2041 fi
2042 rm -f conftest.err conftest.i conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2044 $as_echo "$ac_header_preproc" >&6; }
2045
2046 # So? What about this header?
2047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2048 yes:no: )
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2050 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2052 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2053 ;;
2054 no:yes:* )
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2056 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2058 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2060 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2062 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2064 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2065 ( $as_echo "## ----------------------------------------- ##
2066 ## Report this to [email protected] ##
2067 ## ----------------------------------------- ##"
2068 ) | sed "s/^/$as_me: WARNING: /" >&2
2069 ;;
2070 esac
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 eval "$3=\$ac_header_compiler"
2077 fi
2078 eval ac_res=\$$3
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 fi
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083
2084 } # ac_fn_c_check_header_mongrel
2085
2086 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2087 # -------------------------------------------
2088 # Tests whether TYPE exists after having included INCLUDES, setting cache
2089 # variable VAR accordingly.
2090 ac_fn_c_check_type ()
2091 {
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2097 else
2098 eval "$3=no"
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main ()
2104 {
2105 if (sizeof ($2))
2106 return 0;
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 $4
2115 int
2116 main ()
2117 {
2118 if (sizeof (($2)))
2119 return 0;
2120 ;
2121 return 0;
2122 }
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125
2126 else
2127 eval "$3=yes"
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138 } # ac_fn_c_check_type
2139
2140 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2141 # ---------------------------------------------
2142 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2143 # accordingly.
2144 ac_fn_c_check_decl ()
2145 {
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 as_decl_name=`echo $2|sed 's/ *(.*//'`
2148 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2150 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2153 else
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 $4
2157 int
2158 main ()
2159 {
2160 #ifndef $as_decl_name
2161 #ifdef __cplusplus
2162 (void) $as_decl_use;
2163 #else
2164 (void) $as_decl_name;
2165 #endif
2166 #endif
2167
2168 ;
2169 return 0;
2170 }
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 eval "$3=yes"
2174 else
2175 eval "$3=no"
2176 fi
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 fi
2179 eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183
2184 } # ac_fn_c_check_decl
2185 cat >config.log <<_ACEOF
2186 This file contains any messages produced by compilers while
2187 running configure, to aid debugging if configure makes a mistake.
2188
2189 It was created by LCAS-LCMAPS GT4 interface $as_me 0.3.2, which was
2190 generated by GNU Autoconf 2.69. Invocation command line was
2191
2192 $ $0 $@
2193
2194 _ACEOF
2195 exec 5>>config.log
2196 {
2197 cat <<_ASUNAME
2198 ## --------- ##
2199 ## Platform. ##
2200 ## --------- ##
2201
2202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2207
2208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2210
2211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2218
2219 _ASUNAME
2220
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224 IFS=$as_save_IFS
2225 test -z "$as_dir" && as_dir=.
2226 $as_echo "PATH: $as_dir"
2227 done
2228 IFS=$as_save_IFS
2229
2230 } >&5
2231
2232 cat >&5 <<_ACEOF
2233
2234
2235 ## ----------- ##
2236 ## Core tests. ##
2237 ## ----------- ##
2238
2239 _ACEOF
2240
2241
2242 # Keep a trace of the command line.
2243 # Strip out --no-create and --no-recursion so they do not pile up.
2244 # Strip out --silent because we don't want to record it for future runs.
2245 # Also quote any args containing shell meta-characters.
2246 # Make two passes to allow for proper duplicate-argument suppression.
2247 ac_configure_args=
2248 ac_configure_args0=
2249 ac_configure_args1=
2250 ac_must_keep_next=false
2251 for ac_pass in 1 2
2252 do
2253 for ac_arg
2254 do
2255 case $ac_arg in
2256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258 | -silent | --silent | --silen | --sile | --sil)
2259 continue ;;
2260 *\'*)
2261 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262 esac
2263 case $ac_pass in
2264 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2265 2)
2266 as_fn_append ac_configure_args1 " '$ac_arg'"
2267 if test $ac_must_keep_next = true; then
2268 ac_must_keep_next=false # Got value, back to normal.
2269 else
2270 case $ac_arg in
2271 *=* | --config-cache | -C | -disable-* | --disable-* \
2272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274 | -with-* | --with-* | -without-* | --without-* | --x)
2275 case "$ac_configure_args0 " in
2276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277 esac
2278 ;;
2279 -* ) ac_must_keep_next=true ;;
2280 esac
2281 fi
2282 as_fn_append ac_configure_args " '$ac_arg'"
2283 ;;
2284 esac
2285 done
2286 done
2287 { ac_configure_args0=; unset ac_configure_args0;}
2288 { ac_configure_args1=; unset ac_configure_args1;}
2289
2290 # When interrupted or exit'd, cleanup temporary files, and complete
2291 # config.log. We remove comments because anyway the quotes in there
2292 # would cause problems or look ugly.
2293 # WARNING: Use '\'' to represent an apostrophe within the trap.
2294 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295 trap 'exit_status=$?
2296 # Save into config.log some information that might help in debugging.
2297 {
2298 echo
2299
2300 $as_echo "## ---------------- ##
2301 ## Cache variables. ##
2302 ## ---------------- ##"
2303 echo
2304 # The following way of writing the cache mishandles newlines in values,
2305 (
2306 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2307 eval ac_val=\$$ac_var
2308 case $ac_val in #(
2309 *${as_nl}*)
2310 case $ac_var in #(
2311 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2312 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2313 esac
2314 case $ac_var in #(
2315 _ | IFS | as_nl) ;; #(
2316 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2317 *) { eval $ac_var=; unset $ac_var;} ;;
2318 esac ;;
2319 esac
2320 done
2321 (set) 2>&1 |
2322 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2323 *${as_nl}ac_space=\ *)
2324 sed -n \
2325 "s/'\''/'\''\\\\'\'''\''/g;
2326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2327 ;; #(
2328 *)
2329 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2330 ;;
2331 esac |
2332 sort
2333 )
2334 echo
2335
2336 $as_echo "## ----------------- ##
2337 ## Output variables. ##
2338 ## ----------------- ##"
2339 echo
2340 for ac_var in $ac_subst_vars
2341 do
2342 eval ac_val=\$$ac_var
2343 case $ac_val in
2344 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2345 esac
2346 $as_echo "$ac_var='\''$ac_val'\''"
2347 done | sort
2348 echo
2349
2350 if test -n "$ac_subst_files"; then
2351 $as_echo "## ------------------- ##
2352 ## File substitutions. ##
2353 ## ------------------- ##"
2354 echo
2355 for ac_var in $ac_subst_files
2356 do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in
2359 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360 esac
2361 $as_echo "$ac_var='\''$ac_val'\''"
2362 done | sort
2363 echo
2364 fi
2365
2366 if test -s confdefs.h; then
2367 $as_echo "## ----------- ##
2368 ## confdefs.h. ##
2369 ## ----------- ##"
2370 echo
2371 cat confdefs.h
2372 echo
2373 fi
2374 test "$ac_signal" != 0 &&
2375 $as_echo "$as_me: caught signal $ac_signal"
2376 $as_echo "$as_me: exit $exit_status"
2377 } >&5
2378 rm -f core *.core core.conftest.* &&
2379 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2380 exit $exit_status
2381 ' 0
2382 for ac_signal in 1 2 13 15; do
2383 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2384 done
2385 ac_signal=0
2386
2387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2388 rm -f -r conftest* confdefs.h
2389
2390 $as_echo "/* confdefs.h */" > confdefs.h
2391
2392 # Predefined preprocessor variables.
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_NAME "$PACKAGE_NAME"
2396 _ACEOF
2397
2398 cat >>confdefs.h <<_ACEOF
2399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2400 _ACEOF
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2404 _ACEOF
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_STRING "$PACKAGE_STRING"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_URL "$PACKAGE_URL"
2416 _ACEOF
2417
2418
2419 # Let the site file select an alternate cache file if it wants to.
2420 # Prefer an explicitly selected file to automatically selected ones.
2421 ac_site_file1=NONE
2422 ac_site_file2=NONE
2423 if test -n "$CONFIG_SITE"; then
2424 # We do not want a PATH search for config.site.
2425 case $CONFIG_SITE in #((
2426 -*) ac_site_file1=./$CONFIG_SITE;;
2427 */*) ac_site_file1=$CONFIG_SITE;;
2428 *) ac_site_file1=./$CONFIG_SITE;;
2429 esac
2430 elif test "x$prefix" != xNONE; then
2431 ac_site_file1=$prefix/share/config.site
2432 ac_site_file2=$prefix/etc/config.site
2433 else
2434 ac_site_file1=$ac_default_prefix/share/config.site
2435 ac_site_file2=$ac_default_prefix/etc/config.site
2436 fi
2437 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2438 do
2439 test "x$ac_site_file" = xNONE && continue
2440 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2442 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2443 sed 's/^/| /' "$ac_site_file" >&5
2444 . "$ac_site_file" \
2445 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 as_fn_error $? "failed to load site script $ac_site_file
2448 See \`config.log' for more details" "$LINENO" 5; }
2449 fi
2450 done
2451
2452 if test -r "$cache_file"; then
2453 # Some versions of bash will fail to source /dev/null (special files
2454 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2455 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2457 $as_echo "$as_me: loading cache $cache_file" >&6;}
2458 case $cache_file in
2459 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2460 *) . "./$cache_file";;
2461 esac
2462 fi
2463 else
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2465 $as_echo "$as_me: creating cache $cache_file" >&6;}
2466 >$cache_file
2467 fi
2468
2469 # Check that the precious variables saved in the cache have kept the same
2470 # value.
2471 ac_cache_corrupted=false
2472 for ac_var in $ac_precious_vars; do
2473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2474 eval ac_new_set=\$ac_env_${ac_var}_set
2475 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2476 eval ac_new_val=\$ac_env_${ac_var}_value
2477 case $ac_old_set,$ac_new_set in
2478 set,)
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2480 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2481 ac_cache_corrupted=: ;;
2482 ,set)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2486 ,);;
2487 *)
2488 if test "x$ac_old_val" != "x$ac_new_val"; then
2489 # differences in whitespace do not lead to failure.
2490 ac_old_val_w=`echo x $ac_old_val`
2491 ac_new_val_w=`echo x $ac_new_val`
2492 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2494 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2495 ac_cache_corrupted=:
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2498 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2499 eval $ac_var=\$ac_old_val
2500 fi
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2502 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2504 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2505 fi;;
2506 esac
2507 # Pass precious variables to config.status.
2508 if test "$ac_new_set" = set; then
2509 case $ac_new_val in
2510 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2511 *) ac_arg=$ac_var=$ac_new_val ;;
2512 esac
2513 case " $ac_configure_args " in
2514 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2515 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2516 esac
2517 fi
2518 done
2519 if $ac_cache_corrupted; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2523 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2524 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2525 fi
2526 ## -------------------- ##
2527 ## Main body of script. ##
2528 ## -------------------- ##
2529
2530 ac_ext=c
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535
2536
2537
2538 am__api_version='1.16'
2539
2540 ac_aux_dir=
2541 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2542 if test -f "$ac_dir/install-sh"; then
2543 ac_aux_dir=$ac_dir
2544 ac_install_sh="$ac_aux_dir/install-sh -c"
2545 break
2546 elif test -f "$ac_dir/install.sh"; then
2547 ac_aux_dir=$ac_dir
2548 ac_install_sh="$ac_aux_dir/install.sh -c"
2549 break
2550 elif test -f "$ac_dir/shtool"; then
2551 ac_aux_dir=$ac_dir
2552 ac_install_sh="$ac_aux_dir/shtool install -c"
2553 break
2554 fi
2555 done
2556 if test -z "$ac_aux_dir"; then
2557 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2558 fi
2559
2560 # These three variables are undocumented and unsupported,
2561 # and are intended to be withdrawn in a future Autoconf release.
2562 # They can cause serious problems if a builder's source tree is in a directory
2563 # whose full name contains unusual characters.
2564 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2565 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2566 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2567
2568
2569 # Find a good install program. We prefer a C program (faster),
2570 # so one script is as good as another. But avoid the broken or
2571 # incompatible versions:
2572 # SysV /etc/install, /usr/sbin/install
2573 # SunOS /usr/etc/install
2574 # IRIX /sbin/install
2575 # AIX /bin/install
2576 # AmigaOS /C/install, which installs bootblocks on floppy discs
2577 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2578 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2579 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2580 # OS/2's system install, which has a completely different semantic
2581 # ./install, which can be erroneously created by make from ./install.sh.
2582 # Reject install programs that cannot install multiple files.
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2584 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2585 if test -z "$INSTALL"; then
2586 if ${ac_cv_path_install+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 # Account for people who put trailing slashes in PATH elements.
2595 case $as_dir/ in #((
2596 ./ | .// | /[cC]/* | \
2597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2599 /usr/ucb/* ) ;;
2600 *)
2601 # OSF1 and SCO ODT 3.0 have their own names for install.
2602 # Don't use installbsd from OSF since it installs stuff as root
2603 # by default.
2604 for ac_prog in ginstall scoinst install; do
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2607 if test $ac_prog = install &&
2608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # AIX install. It has an incompatible calling convention.
2610 :
2611 elif test $ac_prog = install &&
2612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2613 # program-specific install script used by HP pwplus--don't use.
2614 :
2615 else
2616 rm -rf conftest.one conftest.two conftest.dir
2617 echo one > conftest.one
2618 echo two > conftest.two
2619 mkdir conftest.dir
2620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2621 test -s conftest.one && test -s conftest.two &&
2622 test -s conftest.dir/conftest.one &&
2623 test -s conftest.dir/conftest.two
2624 then
2625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2626 break 3
2627 fi
2628 fi
2629 fi
2630 done
2631 done
2632 ;;
2633 esac
2634
2635 done
2636 IFS=$as_save_IFS
2637
2638 rm -rf conftest.one conftest.two conftest.dir
2639
2640 fi
2641 if test "${ac_cv_path_install+set}" = set; then
2642 INSTALL=$ac_cv_path_install
2643 else
2644 # As a last resort, use the slow shell script. Don't cache a
2645 # value for INSTALL within a source directory, because that will
2646 # break other packages using the cache if that directory is
2647 # removed, or if the value is a relative name.
2648 INSTALL=$ac_install_sh
2649 fi
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2652 $as_echo "$INSTALL" >&6; }
2653
2654 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2655 # It thinks the first close brace ends the variable substitution.
2656 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2657
2658 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2659
2660 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2661
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2663 $as_echo_n "checking whether build environment is sane... " >&6; }
2664 # Reject unsafe characters in $srcdir or the absolute working directory
2665 # name. Accept space and tab only in the latter.
2666 am_lf='
2667 '
2668 case `pwd` in
2669 *[\\\"\#\$\&\'\`$am_lf]*)
2670 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2671 esac
2672 case $srcdir in
2673 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2674 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2675 esac
2676
2677 # Do 'set' in a subshell so we don't clobber the current shell's
2678 # arguments. Must try -L first in case configure is actually a
2679 # symlink; some systems play weird games with the mod time of symlinks
2680 # (eg FreeBSD returns the mod time of the symlink's containing
2681 # directory).
2682 if (
2683 am_has_slept=no
2684 for am_try in 1 2; do
2685 echo "timestamp, slept: $am_has_slept" > conftest.file
2686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2687 if test "$*" = "X"; then
2688 # -L didn't work.
2689 set X `ls -t "$srcdir/configure" conftest.file`
2690 fi
2691 if test "$*" != "X $srcdir/configure conftest.file" \
2692 && test "$*" != "X conftest.file $srcdir/configure"; then
2693
2694 # If neither matched, then we have a broken ls. This can happen
2695 # if, for instance, CONFIG_SHELL is bash and it inherits a
2696 # broken ls alias from the environment. This has actually
2697 # happened. Such a system could not be considered "sane".
2698 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2699 alias in your environment" "$LINENO" 5
2700 fi
2701 if test "$2" = conftest.file || test $am_try -eq 2; then
2702 break
2703 fi
2704 # Just in case.
2705 sleep 1
2706 am_has_slept=yes
2707 done
2708 test "$2" = conftest.file
2709 )
2710 then
2711 # Ok.
2712 :
2713 else
2714 as_fn_error $? "newly created file is older than distributed files!
2715 Check your system clock" "$LINENO" 5
2716 fi
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2718 $as_echo "yes" >&6; }
2719 # If we didn't sleep, we still need to ensure time stamps of config.status and
2720 # generated files are strictly newer.
2721 am_sleep_pid=
2722 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2723 ( sleep 1 ) &
2724 am_sleep_pid=$!
2725 fi
2726
2727 rm -f conftest.file
2728
2729 test "$program_prefix" != NONE &&
2730 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2731 # Use a double $ so make ignores it.
2732 test "$program_suffix" != NONE &&
2733 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2734 # Double any \ or $.
2735 # By default was `s,x,x', remove it if useless.
2736 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2737 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2738
2739 # Expand $ac_aux_dir to an absolute path.
2740 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2741
2742 if test x"${MISSING+set}" != xset; then
2743 case $am_aux_dir in
2744 *\ * | *\ *)
2745 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2746 *)
2747 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2748 esac
2749 fi
2750 # Use eval to expand $SHELL
2751 if eval "$MISSING --is-lightweight"; then
2752 am_missing_run="$MISSING "
2753 else
2754 am_missing_run=
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2756 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2757 fi
2758
2759 if test x"${install_sh+set}" != xset; then
2760 case $am_aux_dir in
2761 *\ * | *\ *)
2762 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2763 *)
2764 install_sh="\${SHELL} $am_aux_dir/install-sh"
2765 esac
2766 fi
2767
2768 # Installed binaries are usually stripped using 'strip' when the user
2769 # run "make install-strip". However 'strip' might not be the right
2770 # tool to use in cross-compilation environments, therefore Automake
2771 # will honor the 'STRIP' environment variable to overrule this program.
2772 if test "$cross_compiling" != no; then
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}strip; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_STRIP+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$STRIP"; then
2782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 fi
2800 fi
2801 STRIP=$ac_cv_prog_STRIP
2802 if test -n "$STRIP"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2804 $as_echo "$STRIP" >&6; }
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2808 fi
2809
2810
2811 fi
2812 if test -z "$ac_cv_prog_STRIP"; then
2813 ac_ct_STRIP=$STRIP
2814 # Extract the first word of "strip", so it can be a program name with args.
2815 set dummy strip; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$ac_ct_STRIP"; then
2822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_ac_ct_STRIP="strip"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2842 if test -n "$ac_ct_STRIP"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2844 $as_echo "$ac_ct_STRIP" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850 if test "x$ac_ct_STRIP" = x; then
2851 STRIP=":"
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857 ac_tool_warned=yes ;;
2858 esac
2859 STRIP=$ac_ct_STRIP
2860 fi
2861 else
2862 STRIP="$ac_cv_prog_STRIP"
2863 fi
2864
2865 fi
2866 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2869 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2870 if test -z "$MKDIR_P"; then
2871 if ${ac_cv_path_mkdir+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_prog in mkdir gmkdir; do
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2882 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2883 'mkdir (GNU coreutils) '* | \
2884 'mkdir (coreutils) '* | \
2885 'mkdir (fileutils) '4.1*)
2886 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2887 break 3;;
2888 esac
2889 done
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895
2896 test -d ./--version && rmdir ./--version
2897 if test "${ac_cv_path_mkdir+set}" = set; then
2898 MKDIR_P="$ac_cv_path_mkdir -p"
2899 else
2900 # As a last resort, use the slow shell script. Don't cache a
2901 # value for MKDIR_P within a source directory, because that will
2902 # break other packages using the cache if that directory is
2903 # removed, or if the value is a relative name.
2904 MKDIR_P="$ac_install_sh -d"
2905 fi
2906 fi
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2908 $as_echo "$MKDIR_P" >&6; }
2909
2910 for ac_prog in gawk mawk nawk awk
2911 do
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913 set dummy $ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_AWK+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$AWK"; then
2920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_AWK="$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 AWK=$ac_cv_prog_AWK
2940 if test -n "$AWK"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2942 $as_echo "$AWK" >&6; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949 test -n "$AWK" && break
2950 done
2951
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2953 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2954 set x ${MAKE-make}
2955 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2956 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2957 $as_echo_n "(cached) " >&6
2958 else
2959 cat >conftest.make <<\_ACEOF
2960 SHELL = /bin/sh
2961 all:
2962 @echo '@@@%%%=$(MAKE)=@@@%%%'
2963 _ACEOF
2964 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2965 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2966 *@@@%%%=?*=@@@%%%*)
2967 eval ac_cv_prog_make_${ac_make}_set=yes;;
2968 *)
2969 eval ac_cv_prog_make_${ac_make}_set=no;;
2970 esac
2971 rm -f conftest.make
2972 fi
2973 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2975 $as_echo "yes" >&6; }
2976 SET_MAKE=
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 SET_MAKE="MAKE=${MAKE-make}"
2981 fi
2982
2983 rm -rf .tst 2>/dev/null
2984 mkdir .tst 2>/dev/null
2985 if test -d .tst; then
2986 am__leading_dot=.
2987 else
2988 am__leading_dot=_
2989 fi
2990 rmdir .tst 2>/dev/null
2991
2992 # Check whether --enable-silent-rules was given.
2993 if test "${enable_silent_rules+set}" = set; then :
2994 enableval=$enable_silent_rules;
2995 fi
2996
2997 case $enable_silent_rules in # (((
2998 yes) AM_DEFAULT_VERBOSITY=0;;
2999 no) AM_DEFAULT_VERBOSITY=1;;
3000 *) AM_DEFAULT_VERBOSITY=1;;
3001 esac
3002 am_make=${MAKE-make}
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3004 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3005 if ${am_cv_make_support_nested_variables+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if $as_echo 'TRUE=$(BAR$(V))
3009 BAR0=false
3010 BAR1=true
3011 V=1
3012 am__doit:
3013 @$(TRUE)
3014 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3015 am_cv_make_support_nested_variables=yes
3016 else
3017 am_cv_make_support_nested_variables=no
3018 fi
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3021 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3022 if test $am_cv_make_support_nested_variables = yes; then
3023 AM_V='$(V)'
3024 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3025 else
3026 AM_V=$AM_DEFAULT_VERBOSITY
3027 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3028 fi
3029 AM_BACKSLASH='\'
3030
3031 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3032 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3033 # is not polluted with repeated "-I."
3034 am__isrc=' -I$(srcdir)'
3035 # test to see if srcdir already configured
3036 if test -f $srcdir/config.status; then
3037 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3038 fi
3039 fi
3040
3041 # test whether we have cygpath
3042 if test -z "$CYGPATH_W"; then
3043 if (cygpath --version) >/dev/null 2>/dev/null; then
3044 CYGPATH_W='cygpath -w'
3045 else
3046 CYGPATH_W=echo
3047 fi
3048 fi
3049
3050
3051 # Define the identity of the package.
3052 PACKAGE='lcas-lcmaps-gt4-interface'
3053 VERSION='0.3.2'
3054
3055
3056 cat >>confdefs.h <<_ACEOF
3057 #define PACKAGE "$PACKAGE"
3058 _ACEOF
3059
3060
3061 cat >>confdefs.h <<_ACEOF
3062 #define VERSION "$VERSION"
3063 _ACEOF
3064
3065 # Some tools Automake needs.
3066
3067 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3068
3069
3070 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3071
3072
3073 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3074
3075
3076 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3077
3078
3079 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3080
3081 # For better backward compatibility. To be removed once Automake 1.9.x
3082 # dies out for good. For more background, see:
3083 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3084 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3085 mkdir_p='$(MKDIR_P)'
3086
3087 # We need awk for the "check" target (and possibly the TAP driver). The
3088 # system "awk" is bad on some platforms.
3089 # Always define AMTAR for backward compatibility. Yes, it's still used
3090 # in the wild :-( We should find a proper way to deprecate it ...
3091 AMTAR='$${TAR-tar}'
3092
3093
3094 # We'll loop over all known methods to create a tar archive until one works.
3095 _am_tools='gnutar pax cpio none'
3096
3097 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3098
3099
3100
3101
3102
3103
3104 # POSIX will say in a future version that running "rm -f" with no argument
3105 # is OK; and we want to be able to make that assumption in our Makefile
3106 # recipes. So use an aggressive probe to check that the usage we want is
3107 # actually supported "in the wild" to an acceptable degree.
3108 # See automake bug#10828.
3109 # To make any issue more visible, cause the running configure to be aborted
3110 # by default if the 'rm' program in use doesn't match our expectations; the
3111 # user can still override this though.
3112 if rm -f && rm -fr && rm -rf; then : OK; else
3113 cat >&2 <<'END'
3114 Oops!
3115
3116 Your 'rm' program seems unable to run without file operands specified
3117 on the command line, even when the '-f' option is present. This is contrary
3118 to the behaviour of most rm programs out there, and not conforming with
3119 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3120
3121 Please tell [email protected] about your system, including the value
3122 of your $PATH and any error possibly output before this message. This
3123 can help us improve future automake versions.
3124
3125 END
3126 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3127 echo 'Configuration will proceed anyway, since you have set the' >&2
3128 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3129 echo >&2
3130 else
3131 cat >&2 <<'END'
3132 Aborting the configuration process, to ensure you take notice of the issue.
3133
3134 You can download and install GNU coreutils to get an 'rm' implementation
3135 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3136
3137 If you want to complete the configuration process using your problematic
3138 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3139 to "yes", and re-run configure.
3140
3141 END
3142 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3143 fi
3144 fi
3145
3146
3147
3148 # Notices.
3149
3150
3151
3152 #Environment.
3153 WORKDIR=`pwd`
3154
3155
3156 DISTBIN=$WORKDIR/../../dist
3157
3158
3159 # Checks for programs.
3160 ac_ext=c
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165 if test -n "$ac_tool_prefix"; then
3166 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_CC+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3175 else
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187 done
3188 done
3189 IFS=$as_save_IFS
3190
3191 fi
3192 fi
3193 CC=$ac_cv_prog_CC
3194 if test -n "$CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 $as_echo "$CC" >&6; }
3197 else
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 fi
3201
3202
3203 fi
3204 if test -z "$ac_cv_prog_CC"; then
3205 ac_ct_CC=$CC
3206 # Extract the first word of "gcc", so it can be a program name with args.
3207 set dummy gcc; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3211 $as_echo_n "(cached) " >&6
3212 else
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_prog_ac_ct_CC="gcc"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3226 fi
3227 done
3228 done
3229 IFS=$as_save_IFS
3230
3231 fi
3232 fi
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3236 $as_echo "$ac_ct_CC" >&6; }
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242 if test "x$ac_ct_CC" = x; then
3243 CC=""
3244 else
3245 case $cross_compiling:$ac_tool_warned in
3246 yes:)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249 ac_tool_warned=yes ;;
3250 esac
3251 CC=$ac_ct_CC
3252 fi
3253 else
3254 CC="$ac_cv_prog_CC"
3255 fi
3256
3257 if test -z "$CC"; then
3258 if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}cc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_CC+:} false; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276 ac_cv_prog_CC="${ac_tool_prefix}cc"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280 done
3281 done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 CC=$ac_cv_prog_CC
3287 if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296 fi
3297 fi
3298 if test -z "$CC"; then
3299 # Extract the first word of "cc", so it can be a program name with args.
3300 set dummy cc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_CC+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3308 else
3309 ac_prog_rejected=no
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3318 ac_prog_rejected=yes
3319 continue
3320 fi
3321 ac_cv_prog_CC="cc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325 done
3326 done
3327 IFS=$as_save_IFS
3328
3329 if test $ac_prog_rejected = yes; then
3330 # We found a bogon in the path, so make sure we never use it.
3331 set dummy $ac_cv_prog_CC
3332 shift
3333 if test $# != 0; then
3334 # We chose a different compiler from the bogus one.
3335 # However, it has the same basename, so the bogon will be chosen
3336 # first if we set CC to just the basename; use the full file name.
3337 shift
3338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3339 fi
3340 fi
3341 fi
3342 fi
3343 CC=$ac_cv_prog_CC
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3350 fi
3351
3352
3353 fi
3354 if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 for ac_prog in cl.exe
3357 do
3358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if ${ac_cv_prog_CC+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3378 fi
3379 done
3380 done
3381 IFS=$as_save_IFS
3382
3383 fi
3384 fi
3385 CC=$ac_cv_prog_CC
3386 if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3389 else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392 fi
3393
3394
3395 test -n "$CC" && break
3396 done
3397 fi
3398 if test -z "$CC"; then
3399 ac_ct_CC=$CC
3400 for ac_prog in cl.exe
3401 do
3402 # Extract the first word of "$ac_prog", so it can be a program name with args.
3403 set dummy $ac_prog; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_ac_ct_CC="$ac_prog"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 fi
3428 fi
3429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430 if test -n "$ac_ct_CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432 $as_echo "$ac_ct_CC" >&6; }
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438
3439 test -n "$ac_ct_CC" && break
3440 done
3441
3442 if test "x$ac_ct_CC" = x; then
3443 CC=""
3444 else
3445 case $cross_compiling:$ac_tool_warned in
3446 yes:)
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3449 ac_tool_warned=yes ;;
3450 esac
3451 CC=$ac_ct_CC
3452 fi
3453 fi
3454
3455 fi
3456
3457
3458 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error $? "no acceptable C compiler found in \$PATH
3461 See \`config.log' for more details" "$LINENO" 5; }
3462
3463 # Provide some information about the compiler.
3464 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3465 set X $ac_compile
3466 ac_compiler=$2
3467 for ac_option in --version -v -V -qversion; do
3468 { { ac_try="$ac_compiler $ac_option >&5"
3469 case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3476 ac_status=$?
3477 if test -s conftest.err; then
3478 sed '10a\
3479 ... rest of stderr output deleted ...
3480 10q' conftest.err >conftest.er1
3481 cat conftest.er1 >&5
3482 fi
3483 rm -f conftest.er1 conftest.err
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }
3486 done
3487
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 ac_clean_files_save=$ac_clean_files
3500 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3501 # Try to create an executable without -o first, disregard a.out.
3502 # It will help us diagnose broken compilers, and finding out an intuition
3503 # of exeext.
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3505 $as_echo_n "checking whether the C compiler works... " >&6; }
3506 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3507
3508 # The possible output files:
3509 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3510
3511 ac_rmfiles=
3512 for ac_file in $ac_files
3513 do
3514 case $ac_file in
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3516 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3517 esac
3518 done
3519 rm -f $ac_rmfiles
3520
3521 if { { ac_try="$ac_link_default"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_link_default") 2>&5
3529 ac_status=$?
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; then :
3532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3535 # so that the user can short-circuit this test for compilers unknown to
3536 # Autoconf.
3537 for ac_file in $ac_files ''
3538 do
3539 test -f "$ac_file" || continue
3540 case $ac_file in
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3542 ;;
3543 [ab].out )
3544 # We found the default executable, but exeext='' is most
3545 # certainly right.
3546 break;;
3547 *.* )
3548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3549 then :; else
3550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3551 fi
3552 # We set ac_cv_exeext here because the later test for it is not
3553 # safe: cross compilers may not add the suffix if given an `-o'
3554 # argument, so we may need to know it at that point already.
3555 # Even if this section looks crufty: it has the advantage of
3556 # actually working.
3557 break;;
3558 * )
3559 break;;
3560 esac
3561 done
3562 test "$ac_cv_exeext" = no && ac_cv_exeext=
3563
3564 else
3565 ac_file=''
3566 fi
3567 if test -z "$ac_file"; then :
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error 77 "C compiler cannot create executables
3576 See \`config.log' for more details" "$LINENO" 5; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3579 $as_echo "yes" >&6; }
3580 fi
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3582 $as_echo_n "checking for C compiler default output file name... " >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3584 $as_echo "$ac_file" >&6; }
3585 ac_exeext=$ac_cv_exeext
3586
3587 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3588 ac_clean_files=$ac_clean_files_save
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3590 $as_echo_n "checking for suffix of executables... " >&6; }
3591 if { { ac_try="$ac_link"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_link") 2>&5
3599 ac_status=$?
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; then :
3602 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3603 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3604 # work properly (i.e., refer to `conftest.exe'), while it won't with
3605 # `rm'.
3606 for ac_file in conftest.exe conftest conftest.*; do
3607 test -f "$ac_file" || continue
3608 case $ac_file in
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3611 break;;
3612 * ) break;;
3613 esac
3614 done
3615 else
3616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3619 See \`config.log' for more details" "$LINENO" 5; }
3620 fi
3621 rm -f conftest conftest$ac_cv_exeext
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3623 $as_echo "$ac_cv_exeext" >&6; }
3624
3625 rm -f conftest.$ac_ext
3626 EXEEXT=$ac_cv_exeext
3627 ac_exeext=$EXEEXT
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3630 #include <stdio.h>
3631 int
3632 main ()
3633 {
3634 FILE *f = fopen ("conftest.out", "w");
3635 return ferror (f) || fclose (f) != 0;
3636
3637 ;
3638 return 0;
3639 }
3640 _ACEOF
3641 ac_clean_files="$ac_clean_files conftest.out"
3642 # Check that the compiler produces executables we can run. If not, either
3643 # the compiler is broken, or we cross compile.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3645 $as_echo_n "checking whether we are cross compiling... " >&6; }
3646 if test "$cross_compiling" != yes; then
3647 { { ac_try="$ac_link"
3648 case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_link") 2>&5
3655 ac_status=$?
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }
3658 if { ac_try='./conftest$ac_cv_exeext'
3659 { { case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_try") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; }; then
3669 cross_compiling=no
3670 else
3671 if test "$cross_compiling" = maybe; then
3672 cross_compiling=yes
3673 else
3674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3676 as_fn_error $? "cannot run C compiled programs.
3677 If you meant to cross compile, use \`--host'.
3678 See \`config.log' for more details" "$LINENO" 5; }
3679 fi
3680 fi
3681 fi
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3683 $as_echo "$cross_compiling" >&6; }
3684
3685 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3686 ac_clean_files=$ac_clean_files_save
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3688 $as_echo_n "checking for suffix of object files... " >&6; }
3689 if ${ac_cv_objext+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694
3695 int
3696 main ()
3697 {
3698
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 rm -f conftest.o conftest.obj
3704 if { { ac_try="$ac_compile"
3705 case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710 $as_echo "$ac_try_echo"; } >&5
3711 (eval "$ac_compile") 2>&5
3712 ac_status=$?
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }; then :
3715 for ac_file in conftest.o conftest.obj conftest.*; do
3716 test -f "$ac_file" || continue;
3717 case $ac_file in
3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3719 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3720 break;;
3721 esac
3722 done
3723 else
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error $? "cannot compute suffix of object files: cannot compile
3730 See \`config.log' for more details" "$LINENO" 5; }
3731 fi
3732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3733 fi
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3735 $as_echo "$ac_cv_objext" >&6; }
3736 OBJEXT=$ac_cv_objext
3737 ac_objext=$OBJEXT
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3740 if ${ac_cv_c_compiler_gnu+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745
3746 int
3747 main ()
3748 {
3749 #ifndef __GNUC__
3750 choke me
3751 #endif
3752
3753 ;
3754 return 0;
3755 }
3756 _ACEOF
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758 ac_compiler_gnu=yes
3759 else
3760 ac_compiler_gnu=no
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3764
3765 fi
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3767 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3768 if test $ac_compiler_gnu = yes; then
3769 GCC=yes
3770 else
3771 GCC=
3772 fi
3773 ac_test_CFLAGS=${CFLAGS+set}
3774 ac_save_CFLAGS=$CFLAGS
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3776 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3777 if ${ac_cv_prog_cc_g+:} false; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 ac_save_c_werror_flag=$ac_c_werror_flag
3781 ac_c_werror_flag=yes
3782 ac_cv_prog_cc_g=no
3783 CFLAGS="-g"
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3786
3787 int
3788 main ()
3789 {
3790
3791 ;
3792 return 0;
3793 }
3794 _ACEOF
3795 if ac_fn_c_try_compile "$LINENO"; then :
3796 ac_cv_prog_cc_g=yes
3797 else
3798 CFLAGS=""
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3801
3802 int
3803 main ()
3804 {
3805
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811
3812 else
3813 ac_c_werror_flag=$ac_save_c_werror_flag
3814 CFLAGS="-g"
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_cv_prog_cc_g=yes
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 fi
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 ac_c_werror_flag=$ac_save_c_werror_flag
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3837 $as_echo "$ac_cv_prog_cc_g" >&6; }
3838 if test "$ac_test_CFLAGS" = set; then
3839 CFLAGS=$ac_save_CFLAGS
3840 elif test $ac_cv_prog_cc_g = yes; then
3841 if test "$GCC" = yes; then
3842 CFLAGS="-g -O2"
3843 else
3844 CFLAGS="-g"
3845 fi
3846 else
3847 if test "$GCC" = yes; then
3848 CFLAGS="-O2"
3849 else
3850 CFLAGS=
3851 fi
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3854 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3855 if ${ac_cv_prog_cc_c89+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 ac_cv_prog_cc_c89=no
3859 ac_save_CC=$CC
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #include <stdarg.h>
3863 #include <stdio.h>
3864 struct stat;
3865 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3866 struct buf { int x; };
3867 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3868 static char *e (p, i)
3869 char **p;
3870 int i;
3871 {
3872 return p[i];
3873 }
3874 static char *f (char * (*g) (char **, int), char **p, ...)
3875 {
3876 char *s;
3877 va_list v;
3878 va_start (v,p);
3879 s = g (p, va_arg (v,int));
3880 va_end (v);
3881 return s;
3882 }
3883
3884 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3885 function prototypes and stuff, but not '\xHH' hex character constants.
3886 These don't provoke an error unfortunately, instead are silently treated
3887 as 'x'. The following induces an error, until -std is added to get
3888 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3889 array size at least. It's necessary to write '\x00'==0 to get something
3890 that's true only with -std. */
3891 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3892
3893 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3894 inside strings and character constants. */
3895 #define FOO(x) 'x'
3896 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3897
3898 int test (int i, double x);
3899 struct s1 {int (*f) (int a);};
3900 struct s2 {int (*f) (double a);};
3901 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3902 int argc;
3903 char **argv;
3904 int
3905 main ()
3906 {
3907 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3908 ;
3909 return 0;
3910 }
3911 _ACEOF
3912 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3913 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3914 do
3915 CC="$ac_save_CC $ac_arg"
3916 if ac_fn_c_try_compile "$LINENO"; then :
3917 ac_cv_prog_cc_c89=$ac_arg
3918 fi
3919 rm -f core conftest.err conftest.$ac_objext
3920 test "x$ac_cv_prog_cc_c89" != "xno" && break
3921 done
3922 rm -f conftest.$ac_ext
3923 CC=$ac_save_CC
3924
3925 fi
3926 # AC_CACHE_VAL
3927 case "x$ac_cv_prog_cc_c89" in
3928 x)
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3930 $as_echo "none needed" >&6; } ;;
3931 xno)
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3933 $as_echo "unsupported" >&6; } ;;
3934 *)
3935 CC="$CC $ac_cv_prog_cc_c89"
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3937 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3938 esac
3939 if test "x$ac_cv_prog_cc_c89" != xno; then :
3940
3941 fi
3942
3943 ac_ext=c
3944 ac_cpp='$CPP $CPPFLAGS'
3945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3948
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3955 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3956 if ${am_cv_prog_cc_c_o+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961
3962 int
3963 main ()
3964 {
3965
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 # Make sure it works both with $CC and with simple cc.
3971 # Following AC_PROG_CC_C_O, we do the test twice because some
3972 # compilers refuse to overwrite an existing .o file with -o,
3973 # though they will create one.
3974 am_cv_prog_cc_c_o=yes
3975 for am_i in 1 2; do
3976 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3977 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3978 ac_status=$?
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } \
3981 && test -f conftest2.$ac_objext; then
3982 : OK
3983 else
3984 am_cv_prog_cc_c_o=no
3985 break
3986 fi
3987 done
3988 rm -f core conftest*
3989 unset am_i
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3992 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3993 if test "$am_cv_prog_cc_c_o" != yes; then
3994 # Losing compiler, so override with the script.
3995 # FIXME: It is wrong to rewrite CC.
3996 # But if we don't then we get into trouble of one sort or another.
3997 # A longer-term fix would be to have automake use am__CC in this case,
3998 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3999 CC="$am_aux_dir/compile $CC"
4000 fi
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
4007 DEPDIR="${am__leading_dot}deps"
4008
4009 ac_config_commands="$ac_config_commands depfiles"
4010
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4012 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4013 cat > confinc.mk << 'END'
4014 am__doit:
4015 @echo this is the am__doit target >confinc.out
4016 .PHONY: am__doit
4017 END
4018 am__include="#"
4019 am__quote=
4020 # BSD make does it like this.
4021 echo '.include "confinc.mk" # ignored' > confmf.BSD
4022 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4023 echo 'include confinc.mk # ignored' > confmf.GNU
4024 _am_result=no
4025 for s in GNU BSD; do
4026 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4027 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }
4031 case $?:`cat confinc.out 2>/dev/null` in #(
4032 '0:this is the am__doit target') :
4033 case $s in #(
4034 BSD) :
4035 am__include='.include' am__quote='"' ;; #(
4036 *) :
4037 am__include='include' am__quote='' ;;
4038 esac ;; #(
4039 *) :
4040 ;;
4041 esac
4042 if test "$am__include" != "#"; then
4043 _am_result="yes ($s style)"
4044 break
4045 fi
4046 done
4047 rm -f confinc.* confmf.*
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4049 $as_echo "${_am_result}" >&6; }
4050
4051 # Check whether --enable-dependency-tracking was given.
4052 if test "${enable_dependency_tracking+set}" = set; then :
4053 enableval=$enable_dependency_tracking;
4054 fi
4055
4056 if test "x$enable_dependency_tracking" != xno; then
4057 am_depcomp="$ac_aux_dir/depcomp"
4058 AMDEPBACKSLASH='\'
4059 am__nodep='_no'
4060 fi
4061 if test "x$enable_dependency_tracking" != xno; then
4062 AMDEP_TRUE=
4063 AMDEP_FALSE='#'
4064 else
4065 AMDEP_TRUE='#'
4066 AMDEP_FALSE=
4067 fi
4068
4069
4070
4071 depcc="$CC" am_compiler_list=
4072
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4074 $as_echo_n "checking dependency style of $depcc... " >&6; }
4075 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4079 # We make a subdir and do the tests there. Otherwise we can end up
4080 # making bogus files that we don't know about and never remove. For
4081 # instance it was reported that on HP-UX the gcc test will end up
4082 # making a dummy file named 'D' -- because '-MD' means "put the output
4083 # in D".
4084 rm -rf conftest.dir
4085 mkdir conftest.dir
4086 # Copy depcomp to subdir because otherwise we won't find it if we're
4087 # using a relative directory.
4088 cp "$am_depcomp" conftest.dir
4089 cd conftest.dir
4090 # We will build objects and dependencies in a subdirectory because
4091 # it helps to detect inapplicable dependency modes. For instance
4092 # both Tru64's cc and ICC support -MD to output dependencies as a
4093 # side effect of compilation, but ICC will put the dependencies in
4094 # the current directory while Tru64 will put them in the object
4095 # directory.
4096 mkdir sub
4097
4098 am_cv_CC_dependencies_compiler_type=none
4099 if test "$am_compiler_list" = ""; then
4100 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4101 fi
4102 am__universal=false
4103 case " $depcc " in #(
4104 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4105 esac
4106
4107 for depmode in $am_compiler_list; do
4108 # Setup a source with many dependencies, because some compilers
4109 # like to wrap large dependency lists on column 80 (with \), and
4110 # we should not choose a depcomp mode which is confused by this.
4111 #
4112 # We need to recreate these files for each test, as the compiler may
4113 # overwrite some of them when testing with obscure command lines.
4114 # This happens at least with the AIX C compiler.
4115 : > sub/conftest.c
4116 for i in 1 2 3 4 5 6; do
4117 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4118 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4119 # Solaris 10 /bin/sh.
4120 echo '/* dummy */' > sub/conftst$i.h
4121 done
4122 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4123
4124 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4125 # mode. It turns out that the SunPro C++ compiler does not properly
4126 # handle '-M -o', and we need to detect this. Also, some Intel
4127 # versions had trouble with output in subdirs.
4128 am__obj=sub/conftest.${OBJEXT-o}
4129 am__minus_obj="-o $am__obj"
4130 case $depmode in
4131 gcc)
4132 # This depmode causes a compiler race in universal mode.
4133 test "$am__universal" = false || continue
4134 ;;
4135 nosideeffect)
4136 # After this tag, mechanisms are not by side-effect, so they'll
4137 # only be used when explicitly requested.
4138 if test "x$enable_dependency_tracking" = xyes; then
4139 continue
4140 else
4141 break
4142 fi
4143 ;;
4144 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4145 # This compiler won't grok '-c -o', but also, the minuso test has
4146 # not run yet. These depmodes are late enough in the game, and
4147 # so weak that their functioning should not be impacted.
4148 am__obj=conftest.${OBJEXT-o}
4149 am__minus_obj=
4150 ;;
4151 none) break ;;
4152 esac
4153 if depmode=$depmode \
4154 source=sub/conftest.c object=$am__obj \
4155 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4156 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4157 >/dev/null 2>conftest.err &&
4158 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4159 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4160 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4161 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4162 # icc doesn't choke on unknown options, it will just issue warnings
4163 # or remarks (even with -Werror). So we grep stderr for any message
4164 # that says an option was ignored or not supported.
4165 # When given -MP, icc 7.0 and 7.1 complain thusly:
4166 # icc: Command line warning: ignoring option '-M'; no argument required
4167 # The diagnosis changed in icc 8.0:
4168 # icc: Command line remark: option '-MP' not supported
4169 if (grep 'ignoring option' conftest.err ||
4170 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4171 am_cv_CC_dependencies_compiler_type=$depmode
4172 break
4173 fi
4174 fi
4175 done
4176
4177 cd ..
4178 rm -rf conftest.dir
4179 else
4180 am_cv_CC_dependencies_compiler_type=none
4181 fi
4182
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4185 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4186 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4187
4188 if
4189 test "x$enable_dependency_tracking" != xno \
4190 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4191 am__fastdepCC_TRUE=
4192 am__fastdepCC_FALSE='#'
4193 else
4194 am__fastdepCC_TRUE='#'
4195 am__fastdepCC_FALSE=
4196 fi
4197
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4200 $as_echo_n "checking whether ln -s works... " >&6; }
4201 LN_S=$as_ln_s
4202 if test "$LN_S" = "ln -s"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4204 $as_echo "yes" >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4207 $as_echo "no, using $LN_S" >&6; }
4208 fi
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4211 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4212 set x ${MAKE-make}
4213 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4214 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 cat >conftest.make <<\_ACEOF
4218 SHELL = /bin/sh
4219 all:
4220 @echo '@@@%%%=$(MAKE)=@@@%%%'
4221 _ACEOF
4222 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4223 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4224 *@@@%%%=?*=@@@%%%*)
4225 eval ac_cv_prog_make_${ac_make}_set=yes;;
4226 *)
4227 eval ac_cv_prog_make_${ac_make}_set=no;;
4228 esac
4229 rm -f conftest.make
4230 fi
4231 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4233 $as_echo "yes" >&6; }
4234 SET_MAKE=
4235 else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4238 SET_MAKE="MAKE=${MAKE-make}"
4239 fi
4240
4241 case `pwd` in
4242 *\ * | *\ *)
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4244 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4245 esac
4246
4247
4248
4249 macro_version='2.4.6'
4250 macro_revision='2.4.6'
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264 ltmain=$ac_aux_dir/ltmain.sh
4265
4266 # Make sure we can run config.sub.
4267 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4268 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4271 $as_echo_n "checking build system type... " >&6; }
4272 if ${ac_cv_build+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 ac_build_alias=$build_alias
4276 test "x$ac_build_alias" = x &&
4277 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4278 test "x$ac_build_alias" = x &&
4279 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4280 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4281 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4282
4283 fi
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4285 $as_echo "$ac_cv_build" >&6; }
4286 case $ac_cv_build in
4287 *-*-*) ;;
4288 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4289 esac
4290 build=$ac_cv_build
4291 ac_save_IFS=$IFS; IFS='-'
4292 set x $ac_cv_build
4293 shift
4294 build_cpu=$1
4295 build_vendor=$2
4296 shift; shift
4297 # Remember, the first character of IFS is used to create $*,
4298 # except with old shells:
4299 build_os=$*
4300 IFS=$ac_save_IFS
4301 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4302
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4305 $as_echo_n "checking host system type... " >&6; }
4306 if ${ac_cv_host+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test "x$host_alias" = x; then
4310 ac_cv_host=$ac_cv_build
4311 else
4312 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4313 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4314 fi
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4318 $as_echo "$ac_cv_host" >&6; }
4319 case $ac_cv_host in
4320 *-*-*) ;;
4321 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4322 esac
4323 host=$ac_cv_host
4324 ac_save_IFS=$IFS; IFS='-'
4325 set x $ac_cv_host
4326 shift
4327 host_cpu=$1
4328 host_vendor=$2
4329 shift; shift
4330 # Remember, the first character of IFS is used to create $*,
4331 # except with old shells:
4332 host_os=$*
4333 IFS=$ac_save_IFS
4334 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4335
4336
4337 # Backslashify metacharacters that are still active within
4338 # double-quoted strings.
4339 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4340
4341 # Same as above, but do not quote variable references.
4342 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4343
4344 # Sed substitution to delay expansion of an escaped shell variable in a
4345 # double_quote_subst'ed string.
4346 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4347
4348 # Sed substitution to delay expansion of an escaped single quote.
4349 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4350
4351 # Sed substitution to avoid accidental globbing in evaled expressions
4352 no_glob_subst='s/\*/\\\*/g'
4353
4354 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4355 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4356 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4359 $as_echo_n "checking how to print strings... " >&6; }
4360 # Test print first, because it will be a builtin if present.
4361 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4362 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4363 ECHO='print -r --'
4364 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4365 ECHO='printf %s\n'
4366 else
4367 # Use this function as a fallback that always works.
4368 func_fallback_echo ()
4369 {
4370 eval 'cat <<_LTECHO_EOF
4371 $1
4372 _LTECHO_EOF'
4373 }
4374 ECHO='func_fallback_echo'
4375 fi
4376
4377 # func_echo_all arg...
4378 # Invoke $ECHO with all args, space-separated.
4379 func_echo_all ()
4380 {
4381 $ECHO ""
4382 }
4383
4384 case $ECHO in
4385 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4386 $as_echo "printf" >&6; } ;;
4387 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4388 $as_echo "print -r" >&6; } ;;
4389 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4390 $as_echo "cat" >&6; } ;;
4391 esac
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4407 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4408 if ${ac_cv_path_SED+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4412 for ac_i in 1 2 3 4 5 6 7; do
4413 ac_script="$ac_script$as_nl$ac_script"
4414 done
4415 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4416 { ac_script=; unset ac_script;}
4417 if test -z "$SED"; then
4418 ac_path_SED_found=false
4419 # Loop through the user's path and test for each of PROGNAME-LIST
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_prog in sed gsed; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4428 as_fn_executable_p "$ac_path_SED" || continue
4429 # Check for GNU ac_path_SED and select it if it is found.
4430 # Check for GNU $ac_path_SED
4431 case `"$ac_path_SED" --version 2>&1` in
4432 *GNU*)
4433 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4434 *)
4435 ac_count=0
4436 $as_echo_n 0123456789 >"conftest.in"
4437 while :
4438 do
4439 cat "conftest.in" "conftest.in" >"conftest.tmp"
4440 mv "conftest.tmp" "conftest.in"
4441 cp "conftest.in" "conftest.nl"
4442 $as_echo '' >> "conftest.nl"
4443 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445 as_fn_arith $ac_count + 1 && ac_count=$as_val
4446 if test $ac_count -gt ${ac_path_SED_max-0}; then
4447 # Best one so far, save it but keep looking for a better one
4448 ac_cv_path_SED="$ac_path_SED"
4449 ac_path_SED_max=$ac_count
4450 fi
4451 # 10*(2^10) chars as input seems more than enough
4452 test $ac_count -gt 10 && break
4453 done
4454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455 esac
4456
4457 $ac_path_SED_found && break 3
4458 done
4459 done
4460 done
4461 IFS=$as_save_IFS
4462 if test -z "$ac_cv_path_SED"; then
4463 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4464 fi
4465 else
4466 ac_cv_path_SED=$SED
4467 fi
4468
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4471 $as_echo "$ac_cv_path_SED" >&6; }
4472 SED="$ac_cv_path_SED"
4473 rm -f conftest.sed
4474
4475 test -z "$SED" && SED=sed
4476 Xsed="$SED -e 1s/^X//"
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4489 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4490 if ${ac_cv_path_GREP+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 if test -z "$GREP"; then
4494 ac_path_GREP_found=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498 do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_prog in grep ggrep; do
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504 as_fn_executable_p "$ac_path_GREP" || continue
4505 # Check for GNU ac_path_GREP and select it if it is found.
4506 # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4508 *GNU*)
4509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4510 *)
4511 ac_count=0
4512 $as_echo_n 0123456789 >"conftest.in"
4513 while :
4514 do
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 $as_echo 'GREP' >> "conftest.nl"
4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521 as_fn_arith $ac_count + 1 && ac_count=$as_val
4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_GREP="$ac_path_GREP"
4525 ac_path_GREP_max=$ac_count
4526 fi
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4529 done
4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 esac
4532
4533 $ac_path_GREP_found && break 3
4534 done
4535 done
4536 done
4537 IFS=$as_save_IFS
4538 if test -z "$ac_cv_path_GREP"; then
4539 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4540 fi
4541 else
4542 ac_cv_path_GREP=$GREP
4543 fi
4544
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4547 $as_echo "$ac_cv_path_GREP" >&6; }
4548 GREP="$ac_cv_path_GREP"
4549
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4552 $as_echo_n "checking for egrep... " >&6; }
4553 if ${ac_cv_path_EGREP+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557 then ac_cv_path_EGREP="$GREP -E"
4558 else
4559 if test -z "$EGREP"; then
4560 ac_path_EGREP_found=false
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_prog in egrep; do
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4570 as_fn_executable_p "$ac_path_EGREP" || continue
4571 # Check for GNU ac_path_EGREP and select it if it is found.
4572 # Check for GNU $ac_path_EGREP
4573 case `"$ac_path_EGREP" --version 2>&1` in
4574 *GNU*)
4575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4576 *)
4577 ac_count=0
4578 $as_echo_n 0123456789 >"conftest.in"
4579 while :
4580 do
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
4584 $as_echo 'EGREP' >> "conftest.nl"
4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587 as_fn_arith $ac_count + 1 && ac_count=$as_val
4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_EGREP="$ac_path_EGREP"
4591 ac_path_EGREP_max=$ac_count
4592 fi
4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4595 done
4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597 esac
4598
4599 $ac_path_EGREP_found && break 3
4600 done
4601 done
4602 done
4603 IFS=$as_save_IFS
4604 if test -z "$ac_cv_path_EGREP"; then
4605 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4606 fi
4607 else
4608 ac_cv_path_EGREP=$EGREP
4609 fi
4610
4611 fi
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4614 $as_echo "$ac_cv_path_EGREP" >&6; }
4615 EGREP="$ac_cv_path_EGREP"
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4619 $as_echo_n "checking for fgrep... " >&6; }
4620 if ${ac_cv_path_FGREP+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4624 then ac_cv_path_FGREP="$GREP -F"
4625 else
4626 if test -z "$FGREP"; then
4627 ac_path_FGREP_found=false
4628 # Loop through the user's path and test for each of PROGNAME-LIST
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_prog in fgrep; do
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4637 as_fn_executable_p "$ac_path_FGREP" || continue
4638 # Check for GNU ac_path_FGREP and select it if it is found.
4639 # Check for GNU $ac_path_FGREP
4640 case `"$ac_path_FGREP" --version 2>&1` in
4641 *GNU*)
4642 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4643 *)
4644 ac_count=0
4645 $as_echo_n 0123456789 >"conftest.in"
4646 while :
4647 do
4648 cat "conftest.in" "conftest.in" >"conftest.tmp"
4649 mv "conftest.tmp" "conftest.in"
4650 cp "conftest.in" "conftest.nl"
4651 $as_echo 'FGREP' >> "conftest.nl"
4652 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654 as_fn_arith $ac_count + 1 && ac_count=$as_val
4655 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4656 # Best one so far, save it but keep looking for a better one
4657 ac_cv_path_FGREP="$ac_path_FGREP"
4658 ac_path_FGREP_max=$ac_count
4659 fi
4660 # 10*(2^10) chars as input seems more than enough
4661 test $ac_count -gt 10 && break
4662 done
4663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4665
4666 $ac_path_FGREP_found && break 3
4667 done
4668 done
4669 done
4670 IFS=$as_save_IFS
4671 if test -z "$ac_cv_path_FGREP"; then
4672 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673 fi
4674 else
4675 ac_cv_path_FGREP=$FGREP
4676 fi
4677
4678 fi
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4681 $as_echo "$ac_cv_path_FGREP" >&6; }
4682 FGREP="$ac_cv_path_FGREP"
4683
4684
4685 test -z "$GREP" && GREP=grep
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705 # Check whether --with-gnu-ld was given.
4706 if test "${with_gnu_ld+set}" = set; then :
4707 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4708 else
4709 with_gnu_ld=no
4710 fi
4711
4712 ac_prog=ld
4713 if test yes = "$GCC"; then
4714 # Check if gcc -print-prog-name=ld gives a path.
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4716 $as_echo_n "checking for ld used by $CC... " >&6; }
4717 case $host in
4718 *-*-mingw*)
4719 # gcc leaves a trailing carriage return, which upsets mingw
4720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4721 *)
4722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4723 esac
4724 case $ac_prog in
4725 # Accept absolute paths.
4726 [\\/]* | ?:[\\/]*)
4727 re_direlt='/[^/][^/]*/\.\./'
4728 # Canonicalize the pathname of ld
4729 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4730 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4731 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4732 done
4733 test -z "$LD" && LD=$ac_prog
4734 ;;
4735 "")
4736 # If it fails, then pretend we aren't using GCC.
4737 ac_prog=ld
4738 ;;
4739 *)
4740 # If it is relative, then search for the first ld in PATH.
4741 with_gnu_ld=unknown
4742 ;;
4743 esac
4744 elif test yes = "$with_gnu_ld"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4746 $as_echo_n "checking for GNU ld... " >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4749 $as_echo_n "checking for non-GNU ld... " >&6; }
4750 fi
4751 if ${lt_cv_path_LD+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 if test -z "$LD"; then
4755 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4756 for ac_dir in $PATH; do
4757 IFS=$lt_save_ifs
4758 test -z "$ac_dir" && ac_dir=.
4759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4760 lt_cv_path_LD=$ac_dir/$ac_prog
4761 # Check to see if the program is GNU ld. I'd rather use --version,
4762 # but apparently some variants of GNU ld only accept -v.
4763 # Break only if it was the GNU/non-GNU ld that we prefer.
4764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4765 *GNU* | *'with BFD'*)
4766 test no != "$with_gnu_ld" && break
4767 ;;
4768 *)
4769 test yes != "$with_gnu_ld" && break
4770 ;;
4771 esac
4772 fi
4773 done
4774 IFS=$lt_save_ifs
4775 else
4776 lt_cv_path_LD=$LD # Let the user override the test with a path.
4777 fi
4778 fi
4779
4780 LD=$lt_cv_path_LD
4781 if test -n "$LD"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4783 $as_echo "$LD" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4787 fi
4788 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4790 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4791 if ${lt_cv_prog_gnu_ld+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4795 case `$LD -v 2>&1 </dev/null` in
4796 *GNU* | *'with BFD'*)
4797 lt_cv_prog_gnu_ld=yes
4798 ;;
4799 *)
4800 lt_cv_prog_gnu_ld=no
4801 ;;
4802 esac
4803 fi
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4805 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4806 with_gnu_ld=$lt_cv_prog_gnu_ld
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4817 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4818 if ${lt_cv_path_NM+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$NM"; then
4822 # Let the user override the test.
4823 lt_cv_path_NM=$NM
4824 else
4825 lt_nm_to_check=${ac_tool_prefix}nm
4826 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4827 lt_nm_to_check="$lt_nm_to_check nm"
4828 fi
4829 for lt_tmp_nm in $lt_nm_to_check; do
4830 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4831 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4832 IFS=$lt_save_ifs
4833 test -z "$ac_dir" && ac_dir=.
4834 tmp_nm=$ac_dir/$lt_tmp_nm
4835 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4836 # Check to see if the nm accepts a BSD-compat flag.
4837 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4838 # nm: unknown option "B" ignored
4839 # Tru64's nm complains that /dev/null is an invalid object file
4840 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4841 case $build_os in
4842 mingw*) lt_bad_file=conftest.nm/nofile ;;
4843 *) lt_bad_file=/dev/null ;;
4844 esac
4845 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4846 *$lt_bad_file* | *'Invalid file or object type'*)
4847 lt_cv_path_NM="$tmp_nm -B"
4848 break 2
4849 ;;
4850 *)
4851 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4852 */dev/null*)
4853 lt_cv_path_NM="$tmp_nm -p"
4854 break 2
4855 ;;
4856 *)
4857 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4858 continue # so that we can try to find one that supports BSD flags
4859 ;;
4860 esac
4861 ;;
4862 esac
4863 fi
4864 done
4865 IFS=$lt_save_ifs
4866 done
4867 : ${lt_cv_path_NM=no}
4868 fi
4869 fi
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4871 $as_echo "$lt_cv_path_NM" >&6; }
4872 if test no != "$lt_cv_path_NM"; then
4873 NM=$lt_cv_path_NM
4874 else
4875 # Didn't find any BSD compatible name lister, look for dumpbin.
4876 if test -n "$DUMPBIN"; then :
4877 # Let the user override the test.
4878 else
4879 if test -n "$ac_tool_prefix"; then
4880 for ac_prog in dumpbin "link -dump"
4881 do
4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if ${ac_cv_prog_DUMPBIN+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$DUMPBIN"; then
4890 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4902 fi
4903 done
4904 done
4905 IFS=$as_save_IFS
4906
4907 fi
4908 fi
4909 DUMPBIN=$ac_cv_prog_DUMPBIN
4910 if test -n "$DUMPBIN"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4912 $as_echo "$DUMPBIN" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4916 fi
4917
4918
4919 test -n "$DUMPBIN" && break
4920 done
4921 fi
4922 if test -z "$DUMPBIN"; then
4923 ac_ct_DUMPBIN=$DUMPBIN
4924 for ac_prog in dumpbin "link -dump"
4925 do
4926 # Extract the first word of "$ac_prog", so it can be a program name with args.
4927 set dummy $ac_prog; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$ac_ct_DUMPBIN"; then
4934 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4954 if test -n "$ac_ct_DUMPBIN"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4956 $as_echo "$ac_ct_DUMPBIN" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962
4963 test -n "$ac_ct_DUMPBIN" && break
4964 done
4965
4966 if test "x$ac_ct_DUMPBIN" = x; then
4967 DUMPBIN=":"
4968 else
4969 case $cross_compiling:$ac_tool_warned in
4970 yes:)
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973 ac_tool_warned=yes ;;
4974 esac
4975 DUMPBIN=$ac_ct_DUMPBIN
4976 fi
4977 fi
4978
4979 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4980 *COFF*)
4981 DUMPBIN="$DUMPBIN -symbols -headers"
4982 ;;
4983 *)
4984 DUMPBIN=:
4985 ;;
4986 esac
4987 fi
4988
4989 if test : != "$DUMPBIN"; then
4990 NM=$DUMPBIN
4991 fi
4992 fi
4993 test -z "$NM" && NM=nm
4994
4995
4996
4997
4998
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5001 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5002 if ${lt_cv_nm_interface+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 lt_cv_nm_interface="BSD nm"
5006 echo "int some_variable = 0;" > conftest.$ac_ext
5007 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5008 (eval "$ac_compile" 2>conftest.err)
5009 cat conftest.err >&5
5010 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5011 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5012 cat conftest.err >&5
5013 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5014 cat conftest.out >&5
5015 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5016 lt_cv_nm_interface="MS dumpbin"
5017 fi
5018 rm -f conftest*
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5021 $as_echo "$lt_cv_nm_interface" >&6; }
5022
5023 # find the maximum length of command line arguments
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5025 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5026 if ${lt_cv_sys_max_cmd_len+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 i=0
5030 teststring=ABCD
5031
5032 case $build_os in
5033 msdosdjgpp*)
5034 # On DJGPP, this test can blow up pretty badly due to problems in libc
5035 # (any single argument exceeding 2000 bytes causes a buffer overrun
5036 # during glob expansion). Even if it were fixed, the result of this
5037 # check would be larger than it should be.
5038 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5039 ;;
5040
5041 gnu*)
5042 # Under GNU Hurd, this test is not required because there is
5043 # no limit to the length of command line arguments.
5044 # Libtool will interpret -1 as no limit whatsoever
5045 lt_cv_sys_max_cmd_len=-1;
5046 ;;
5047
5048 cygwin* | mingw* | cegcc*)
5049 # On Win9x/ME, this test blows up -- it succeeds, but takes
5050 # about 5 minutes as the teststring grows exponentially.
5051 # Worse, since 9x/ME are not pre-emptively multitasking,
5052 # you end up with a "frozen" computer, even though with patience
5053 # the test eventually succeeds (with a max line length of 256k).
5054 # Instead, let's just punt: use the minimum linelength reported by
5055 # all of the supported platforms: 8192 (on NT/2K/XP).
5056 lt_cv_sys_max_cmd_len=8192;
5057 ;;
5058
5059 mint*)
5060 # On MiNT this can take a long time and run out of memory.
5061 lt_cv_sys_max_cmd_len=8192;
5062 ;;
5063
5064 amigaos*)
5065 # On AmigaOS with pdksh, this test takes hours, literally.
5066 # So we just punt and use a minimum line length of 8192.
5067 lt_cv_sys_max_cmd_len=8192;
5068 ;;
5069
5070 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5071 # This has been around since 386BSD, at least. Likely further.
5072 if test -x /sbin/sysctl; then
5073 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5074 elif test -x /usr/sbin/sysctl; then
5075 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5076 else
5077 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5078 fi
5079 # And add a safety zone
5080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5082 ;;
5083
5084 interix*)
5085 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5086 lt_cv_sys_max_cmd_len=196608
5087 ;;
5088
5089 os2*)
5090 # The test takes a long time on OS/2.
5091 lt_cv_sys_max_cmd_len=8192
5092 ;;
5093
5094 osf*)
5095 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5096 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5097 # nice to cause kernel panics so lets avoid the loop below.
5098 # First set a reasonable default.
5099 lt_cv_sys_max_cmd_len=16384
5100 #
5101 if test -x /sbin/sysconfig; then
5102 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5103 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5104 esac
5105 fi
5106 ;;
5107 sco3.2v5*)
5108 lt_cv_sys_max_cmd_len=102400
5109 ;;
5110 sysv5* | sco5v6* | sysv4.2uw2*)
5111 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5112 if test -n "$kargmax"; then
5113 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5114 else
5115 lt_cv_sys_max_cmd_len=32768
5116 fi
5117 ;;
5118 *)
5119 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5120 if test -n "$lt_cv_sys_max_cmd_len" && \
5121 test undefined != "$lt_cv_sys_max_cmd_len"; then
5122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5124 else
5125 # Make teststring a little bigger before we do anything with it.
5126 # a 1K string should be a reasonable start.
5127 for i in 1 2 3 4 5 6 7 8; do
5128 teststring=$teststring$teststring
5129 done
5130 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5131 # If test is not a shell built-in, we'll probably end up computing a
5132 # maximum length that is only half of the actual maximum length, but
5133 # we can't tell.
5134 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5135 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5136 test 17 != "$i" # 1/2 MB should be enough
5137 do
5138 i=`expr $i + 1`
5139 teststring=$teststring$teststring
5140 done
5141 # Only check the string length outside the loop.
5142 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5143 teststring=
5144 # Add a significant safety factor because C++ compilers can tack on
5145 # massive amounts of additional arguments before passing them to the
5146 # linker. It appears as though 1/2 is a usable value.
5147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5148 fi
5149 ;;
5150 esac
5151
5152 fi
5153
5154 if test -n "$lt_cv_sys_max_cmd_len"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5156 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5159 $as_echo "none" >&6; }
5160 fi
5161 max_cmd_len=$lt_cv_sys_max_cmd_len
5162
5163
5164
5165
5166
5167
5168 : ${CP="cp -f"}
5169 : ${MV="mv -f"}
5170 : ${RM="rm -f"}
5171
5172 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5173 lt_unset=unset
5174 else
5175 lt_unset=false
5176 fi
5177
5178
5179
5180
5181
5182 # test EBCDIC or ASCII
5183 case `echo X|tr X '\101'` in
5184 A) # ASCII based system
5185 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5186 lt_SP2NL='tr \040 \012'
5187 lt_NL2SP='tr \015\012 \040\040'
5188 ;;
5189 *) # EBCDIC based system
5190 lt_SP2NL='tr \100 \n'
5191 lt_NL2SP='tr \r\n \100\100'
5192 ;;
5193 esac
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5204 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5205 if ${lt_cv_to_host_file_cmd+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 case $host in
5209 *-*-mingw* )
5210 case $build in
5211 *-*-mingw* ) # actually msys
5212 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5213 ;;
5214 *-*-cygwin* )
5215 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5216 ;;
5217 * ) # otherwise, assume *nix
5218 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5219 ;;
5220 esac
5221 ;;
5222 *-*-cygwin* )
5223 case $build in
5224 *-*-mingw* ) # actually msys
5225 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5226 ;;
5227 *-*-cygwin* )
5228 lt_cv_to_host_file_cmd=func_convert_file_noop
5229 ;;
5230 * ) # otherwise, assume *nix
5231 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5232 ;;
5233 esac
5234 ;;
5235 * ) # unhandled hosts (and "normal" native builds)
5236 lt_cv_to_host_file_cmd=func_convert_file_noop
5237 ;;
5238 esac
5239
5240 fi
5241
5242 to_host_file_cmd=$lt_cv_to_host_file_cmd
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5244 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5245
5246
5247
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5251 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5252 if ${lt_cv_to_tool_file_cmd+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 #assume ordinary cross tools, or native build.
5256 lt_cv_to_tool_file_cmd=func_convert_file_noop
5257 case $host in
5258 *-*-mingw* )
5259 case $build in
5260 *-*-mingw* ) # actually msys
5261 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5262 ;;
5263 esac
5264 ;;
5265 esac
5266
5267 fi
5268
5269 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5271 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5272
5273
5274
5275
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5278 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5279 if ${lt_cv_ld_reload_flag+:} false; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 lt_cv_ld_reload_flag='-r'
5283 fi
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5285 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5286 reload_flag=$lt_cv_ld_reload_flag
5287 case $reload_flag in
5288 "" | " "*) ;;
5289 *) reload_flag=" $reload_flag" ;;
5290 esac
5291 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5292 case $host_os in
5293 cygwin* | mingw* | pw32* | cegcc*)
5294 if test yes != "$GCC"; then
5295 reload_cmds=false
5296 fi
5297 ;;
5298 darwin*)
5299 if test yes = "$GCC"; then
5300 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5301 else
5302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5303 fi
5304 ;;
5305 esac
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 if test -n "$ac_tool_prefix"; then
5316 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5317 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_prog_OBJDUMP+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$OBJDUMP"; then
5324 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5328 do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337 done
5338 done
5339 IFS=$as_save_IFS
5340
5341 fi
5342 fi
5343 OBJDUMP=$ac_cv_prog_OBJDUMP
5344 if test -n "$OBJDUMP"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5346 $as_echo "$OBJDUMP" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351
5352
5353 fi
5354 if test -z "$ac_cv_prog_OBJDUMP"; then
5355 ac_ct_OBJDUMP=$OBJDUMP
5356 # Extract the first word of "objdump", so it can be a program name with args.
5357 set dummy objdump; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$ac_ct_OBJDUMP"; then
5364 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5384 if test -n "$ac_ct_OBJDUMP"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5386 $as_echo "$ac_ct_OBJDUMP" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392 if test "x$ac_ct_OBJDUMP" = x; then
5393 OBJDUMP="false"
5394 else
5395 case $cross_compiling:$ac_tool_warned in
5396 yes:)
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5399 ac_tool_warned=yes ;;
5400 esac
5401 OBJDUMP=$ac_ct_OBJDUMP
5402 fi
5403 else
5404 OBJDUMP="$ac_cv_prog_OBJDUMP"
5405 fi
5406
5407 test -z "$OBJDUMP" && OBJDUMP=objdump
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5418 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5419 if ${lt_cv_deplibs_check_method+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 lt_cv_file_magic_cmd='$MAGIC_CMD'
5423 lt_cv_file_magic_test_file=
5424 lt_cv_deplibs_check_method='unknown'
5425 # Need to set the preceding variable on all platforms that support
5426 # interlibrary dependencies.
5427 # 'none' -- dependencies not supported.
5428 # 'unknown' -- same as none, but documents that we really don't know.
5429 # 'pass_all' -- all dependencies passed with no checks.
5430 # 'test_compile' -- check by making test program.
5431 # 'file_magic [[regex]]' -- check by looking for files in library path
5432 # that responds to the $file_magic_cmd with a given extended regex.
5433 # If you have 'file' or equivalent on your system and you're not sure
5434 # whether 'pass_all' will *always* work, you probably want this one.
5435
5436 case $host_os in
5437 aix[4-9]*)
5438 lt_cv_deplibs_check_method=pass_all
5439 ;;
5440
5441 beos*)
5442 lt_cv_deplibs_check_method=pass_all
5443 ;;
5444
5445 bsdi[45]*)
5446 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5447 lt_cv_file_magic_cmd='/usr/bin/file -L'
5448 lt_cv_file_magic_test_file=/shlib/libc.so
5449 ;;
5450
5451 cygwin*)
5452 # func_win32_libid is a shell function defined in ltmain.sh
5453 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5454 lt_cv_file_magic_cmd='func_win32_libid'
5455 ;;
5456
5457 mingw* | pw32*)
5458 # Base MSYS/MinGW do not provide the 'file' command needed by
5459 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5460 # unless we find 'file', for example because we are cross-compiling.
5461 if ( file / ) >/dev/null 2>&1; then
5462 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5463 lt_cv_file_magic_cmd='func_win32_libid'
5464 else
5465 # Keep this pattern in sync with the one in func_win32_libid.
5466 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5467 lt_cv_file_magic_cmd='$OBJDUMP -f'
5468 fi
5469 ;;
5470
5471 cegcc*)
5472 # use the weaker test based on 'objdump'. See mingw*.
5473 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5474 lt_cv_file_magic_cmd='$OBJDUMP -f'
5475 ;;
5476
5477 darwin* | rhapsody*)
5478 lt_cv_deplibs_check_method=pass_all
5479 ;;
5480
5481 freebsd* | dragonfly*)
5482 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5483 case $host_cpu in
5484 i*86 )
5485 # Not sure whether the presence of OpenBSD here was a mistake.
5486 # Let's accept both of them until this is cleared up.
5487 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5488 lt_cv_file_magic_cmd=/usr/bin/file
5489 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5490 ;;
5491 esac
5492 else
5493 lt_cv_deplibs_check_method=pass_all
5494 fi
5495 ;;
5496
5497 haiku*)
5498 lt_cv_deplibs_check_method=pass_all
5499 ;;
5500
5501 hpux10.20* | hpux11*)
5502 lt_cv_file_magic_cmd=/usr/bin/file
5503 case $host_cpu in
5504 ia64*)
5505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5506 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5507 ;;
5508 hppa*64*)
5509 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]'
5510 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5511 ;;
5512 *)
5513 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5514 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5515 ;;
5516 esac
5517 ;;
5518
5519 interix[3-9]*)
5520 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5522 ;;
5523
5524 irix5* | irix6* | nonstopux*)
5525 case $LD in
5526 *-32|*"-32 ") libmagic=32-bit;;
5527 *-n32|*"-n32 ") libmagic=N32;;
5528 *-64|*"-64 ") libmagic=64-bit;;
5529 *) libmagic=never-match;;
5530 esac
5531 lt_cv_deplibs_check_method=pass_all
5532 ;;
5533
5534 # This must be glibc/ELF.
5535 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5536 lt_cv_deplibs_check_method=pass_all
5537 ;;
5538
5539 netbsd*)
5540 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5542 else
5543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5544 fi
5545 ;;
5546
5547 newos6*)
5548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5549 lt_cv_file_magic_cmd=/usr/bin/file
5550 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5551 ;;
5552
5553 *nto* | *qnx*)
5554 lt_cv_deplibs_check_method=pass_all
5555 ;;
5556
5557 openbsd* | bitrig*)
5558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5560 else
5561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5562 fi
5563 ;;
5564
5565 osf3* | osf4* | osf5*)
5566 lt_cv_deplibs_check_method=pass_all
5567 ;;
5568
5569 rdos*)
5570 lt_cv_deplibs_check_method=pass_all
5571 ;;
5572
5573 solaris*)
5574 lt_cv_deplibs_check_method=pass_all
5575 ;;
5576
5577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5578 lt_cv_deplibs_check_method=pass_all
5579 ;;
5580
5581 sysv4 | sysv4.3*)
5582 case $host_vendor in
5583 motorola)
5584 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]'
5585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5586 ;;
5587 ncr)
5588 lt_cv_deplibs_check_method=pass_all
5589 ;;
5590 sequent)
5591 lt_cv_file_magic_cmd='/bin/file'
5592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5593 ;;
5594 sni)
5595 lt_cv_file_magic_cmd='/bin/file'
5596 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5597 lt_cv_file_magic_test_file=/lib/libc.so
5598 ;;
5599 siemens)
5600 lt_cv_deplibs_check_method=pass_all
5601 ;;
5602 pc)
5603 lt_cv_deplibs_check_method=pass_all
5604 ;;
5605 esac
5606 ;;
5607
5608 tpf*)
5609 lt_cv_deplibs_check_method=pass_all
5610 ;;
5611 os2*)
5612 lt_cv_deplibs_check_method=pass_all
5613 ;;
5614 esac
5615
5616 fi
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5618 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5619
5620 file_magic_glob=
5621 want_nocaseglob=no
5622 if test "$build" = "$host"; then
5623 case $host_os in
5624 mingw* | pw32*)
5625 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5626 want_nocaseglob=yes
5627 else
5628 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5629 fi
5630 ;;
5631 esac
5632 fi
5633
5634 file_magic_cmd=$lt_cv_file_magic_cmd
5635 deplibs_check_method=$lt_cv_deplibs_check_method
5636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659 if test -n "$ac_tool_prefix"; then
5660 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5661 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_DLLTOOL+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -n "$DLLTOOL"; then
5668 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5680 fi
5681 done
5682 done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 DLLTOOL=$ac_cv_prog_DLLTOOL
5688 if test -n "$DLLTOOL"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5690 $as_echo "$DLLTOOL" >&6; }
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5694 fi
5695
5696
5697 fi
5698 if test -z "$ac_cv_prog_DLLTOOL"; then
5699 ac_ct_DLLTOOL=$DLLTOOL
5700 # Extract the first word of "dlltool", so it can be a program name with args.
5701 set dummy dlltool; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$ac_ct_DLLTOOL"; then
5708 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5720 fi
5721 done
5722 done
5723 IFS=$as_save_IFS
5724
5725 fi
5726 fi
5727 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5728 if test -n "$ac_ct_DLLTOOL"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5730 $as_echo "$ac_ct_DLLTOOL" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736 if test "x$ac_ct_DLLTOOL" = x; then
5737 DLLTOOL="false"
5738 else
5739 case $cross_compiling:$ac_tool_warned in
5740 yes:)
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743 ac_tool_warned=yes ;;
5744 esac
5745 DLLTOOL=$ac_ct_DLLTOOL
5746 fi
5747 else
5748 DLLTOOL="$ac_cv_prog_DLLTOOL"
5749 fi
5750
5751 test -z "$DLLTOOL" && DLLTOOL=dlltool
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5763 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5764 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 lt_cv_sharedlib_from_linklib_cmd='unknown'
5768
5769 case $host_os in
5770 cygwin* | mingw* | pw32* | cegcc*)
5771 # two different shell functions defined in ltmain.sh;
5772 # decide which one to use based on capabilities of $DLLTOOL
5773 case `$DLLTOOL --help 2>&1` in
5774 *--identify-strict*)
5775 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5776 ;;
5777 *)
5778 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5779 ;;
5780 esac
5781 ;;
5782 *)
5783 # fallback: assume linklib IS sharedlib
5784 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5785 ;;
5786 esac
5787
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5790 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5791 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5792 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5793
5794
5795
5796
5797
5798
5799
5800
5801 if test -n "$ac_tool_prefix"; then
5802 for ac_prog in ar
5803 do
5804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_prog_AR+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 if test -n "$AR"; then
5812 ac_cv_prog_AR="$AR" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5824 fi
5825 done
5826 done
5827 IFS=$as_save_IFS
5828
5829 fi
5830 fi
5831 AR=$ac_cv_prog_AR
5832 if test -n "$AR"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5834 $as_echo "$AR" >&6; }
5835 else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5838 fi
5839
5840
5841 test -n "$AR" && break
5842 done
5843 fi
5844 if test -z "$AR"; then
5845 ac_ct_AR=$AR
5846 for ac_prog in ar
5847 do
5848 # Extract the first word of "$ac_prog", so it can be a program name with args.
5849 set dummy $ac_prog; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if test -n "$ac_ct_AR"; then
5856 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_ac_ct_AR="$ac_prog"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5868 fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5876 if test -n "$ac_ct_AR"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5878 $as_echo "$ac_ct_AR" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5882 fi
5883
5884
5885 test -n "$ac_ct_AR" && break
5886 done
5887
5888 if test "x$ac_ct_AR" = x; then
5889 AR="false"
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892 yes:)
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897 AR=$ac_ct_AR
5898 fi
5899 fi
5900
5901 : ${AR=ar}
5902 : ${AR_FLAGS=cru}
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5915 $as_echo_n "checking for archiver @FILE support... " >&6; }
5916 if ${lt_cv_ar_at_file+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 lt_cv_ar_at_file=no
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5922
5923 int
5924 main ()
5925 {
5926
5927 ;
5928 return 0;
5929 }
5930 _ACEOF
5931 if ac_fn_c_try_compile "$LINENO"; then :
5932 echo conftest.$ac_objext > conftest.lst
5933 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5935 (eval $lt_ar_try) 2>&5
5936 ac_status=$?
5937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5938 test $ac_status = 0; }
5939 if test 0 -eq "$ac_status"; then
5940 # Ensure the archiver fails upon bogus file names.
5941 rm -f conftest.$ac_objext libconftest.a
5942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5943 (eval $lt_ar_try) 2>&5
5944 ac_status=$?
5945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946 test $ac_status = 0; }
5947 if test 0 -ne "$ac_status"; then
5948 lt_cv_ar_at_file=@
5949 fi
5950 fi
5951 rm -f conftest.* libconftest.a
5952
5953 fi
5954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5958 $as_echo "$lt_cv_ar_at_file" >&6; }
5959
5960 if test no = "$lt_cv_ar_at_file"; then
5961 archiver_list_spec=
5962 else
5963 archiver_list_spec=$lt_cv_ar_at_file
5964 fi
5965
5966
5967
5968
5969
5970
5971
5972 if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}strip; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if ${ac_cv_prog_STRIP+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$STRIP"; then
5981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 STRIP=$ac_cv_prog_STRIP
6001 if test -n "$STRIP"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6003 $as_echo "$STRIP" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009
6010 fi
6011 if test -z "$ac_cv_prog_STRIP"; then
6012 ac_ct_STRIP=$STRIP
6013 # Extract the first word of "strip", so it can be a program name with args.
6014 set dummy strip; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$ac_ct_STRIP"; then
6021 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6030 ac_cv_prog_ac_ct_STRIP="strip"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6041 if test -n "$ac_ct_STRIP"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6043 $as_echo "$ac_ct_STRIP" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049 if test "x$ac_ct_STRIP" = x; then
6050 STRIP=":"
6051 else
6052 case $cross_compiling:$ac_tool_warned in
6053 yes:)
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056 ac_tool_warned=yes ;;
6057 esac
6058 STRIP=$ac_ct_STRIP
6059 fi
6060 else
6061 STRIP="$ac_cv_prog_STRIP"
6062 fi
6063
6064 test -z "$STRIP" && STRIP=:
6065
6066
6067
6068
6069
6070
6071 if test -n "$ac_tool_prefix"; then
6072 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6073 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_RANLIB+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if test -n "$RANLIB"; then
6080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093 done
6094 done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 RANLIB=$ac_cv_prog_RANLIB
6100 if test -n "$RANLIB"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6102 $as_echo "$RANLIB" >&6; }
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108
6109 fi
6110 if test -z "$ac_cv_prog_RANLIB"; then
6111 ac_ct_RANLIB=$RANLIB
6112 # Extract the first word of "ranlib", so it can be a program name with args.
6113 set dummy ranlib; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 if test -n "$ac_ct_RANLIB"; then
6120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6124 do
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_exec_ext in '' $ac_executable_extensions; do
6128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129 ac_cv_prog_ac_ct_RANLIB="ranlib"
6130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 break 2
6132 fi
6133 done
6134 done
6135 IFS=$as_save_IFS
6136
6137 fi
6138 fi
6139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6140 if test -n "$ac_ct_RANLIB"; then
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6142 $as_echo "$ac_ct_RANLIB" >&6; }
6143 else
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6146 fi
6147
6148 if test "x$ac_ct_RANLIB" = x; then
6149 RANLIB=":"
6150 else
6151 case $cross_compiling:$ac_tool_warned in
6152 yes:)
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6155 ac_tool_warned=yes ;;
6156 esac
6157 RANLIB=$ac_ct_RANLIB
6158 fi
6159 else
6160 RANLIB="$ac_cv_prog_RANLIB"
6161 fi
6162
6163 test -z "$RANLIB" && RANLIB=:
6164
6165
6166
6167
6168
6169
6170 # Determine commands to create old-style static archives.
6171 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6172 old_postinstall_cmds='chmod 644 $oldlib'
6173 old_postuninstall_cmds=
6174
6175 if test -n "$RANLIB"; then
6176 case $host_os in
6177 bitrig* | openbsd*)
6178 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6179 ;;
6180 *)
6181 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6182 ;;
6183 esac
6184 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6185 fi
6186
6187 case $host_os in
6188 darwin*)
6189 lock_old_archive_extraction=yes ;;
6190 *)
6191 lock_old_archive_extraction=no ;;
6192 esac
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232 # If no C compiler was specified, use CC.
6233 LTCC=${LTCC-"$CC"}
6234
6235 # If no C compiler flags were specified, use CFLAGS.
6236 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6237
6238 # Allow CC to be a program name with arguments.
6239 compiler=$CC
6240
6241
6242 # Check for command to grab the raw symbol name followed by C symbol from nm.
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6244 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6245 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248
6249 # These are sane defaults that work on at least a few old systems.
6250 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6251
6252 # Character class describing NM global symbol codes.
6253 symcode='[BCDEGRST]'
6254
6255 # Regexp to match symbols that can be accessed directly from C.
6256 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6257
6258 # Define system-specific variables.
6259 case $host_os in
6260 aix*)
6261 symcode='[BCDT]'
6262 ;;
6263 cygwin* | mingw* | pw32* | cegcc*)
6264 symcode='[ABCDGISTW]'
6265 ;;
6266 hpux*)
6267 if test ia64 = "$host_cpu"; then
6268 symcode='[ABCDEGRST]'
6269 fi
6270 ;;
6271 irix* | nonstopux*)
6272 symcode='[BCDEGRST]'
6273 ;;
6274 osf*)
6275 symcode='[BCDEGQRST]'
6276 ;;
6277 solaris*)
6278 symcode='[BDRT]'
6279 ;;
6280 sco3.2v5*)
6281 symcode='[DT]'
6282 ;;
6283 sysv4.2uw2*)
6284 symcode='[DT]'
6285 ;;
6286 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6287 symcode='[ABDT]'
6288 ;;
6289 sysv4)
6290 symcode='[DFNSTU]'
6291 ;;
6292 esac
6293
6294 # If we're using GNU nm, then use its standard symbol codes.
6295 case `$NM -V 2>&1` in
6296 *GNU* | *'with BFD'*)
6297 symcode='[ABCDGIRSTW]' ;;
6298 esac
6299
6300 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6301 # Gets list of data symbols to import.
6302 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6303 # Adjust the below global symbol transforms to fixup imported variables.
6304 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6305 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6306 lt_c_name_lib_hook="\
6307 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6308 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6309 else
6310 # Disable hooks by default.
6311 lt_cv_sys_global_symbol_to_import=
6312 lt_cdecl_hook=
6313 lt_c_name_hook=
6314 lt_c_name_lib_hook=
6315 fi
6316
6317 # Transform an extracted symbol line into a proper C declaration.
6318 # Some systems (esp. on ia64) link data and code symbols differently,
6319 # so use this general approach.
6320 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6321 $lt_cdecl_hook\
6322 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6323 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6324
6325 # Transform an extracted symbol line into symbol name and symbol address
6326 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6327 $lt_c_name_hook\
6328 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6329 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6330
6331 # Transform an extracted symbol line into symbol name with lib prefix and
6332 # symbol address.
6333 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6334 $lt_c_name_lib_hook\
6335 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6336 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6337 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6338
6339 # Handle CRLF in mingw tool chain
6340 opt_cr=
6341 case $build_os in
6342 mingw*)
6343 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6344 ;;
6345 esac
6346
6347 # Try without a prefix underscore, then with it.
6348 for ac_symprfx in "" "_"; do
6349
6350 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6351 symxfrm="\\1 $ac_symprfx\\2 \\2"
6352
6353 # Write the raw and C identifiers.
6354 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6355 # Fake it for dumpbin and say T for any non-static function,
6356 # D for any global variable and I for any imported variable.
6357 # Also find C++ and __fastcall symbols from MSVC++,
6358 # which start with @ or ?.
6359 lt_cv_sys_global_symbol_pipe="$AWK '"\
6360 " {last_section=section; section=\$ 3};"\
6361 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6362 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6363 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6364 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6365 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6366 " \$ 0!~/External *\|/{next};"\
6367 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6368 " {if(hide[section]) next};"\
6369 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6370 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6371 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6372 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6373 " ' prfx=^$ac_symprfx"
6374 else
6375 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6376 fi
6377 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6378
6379 # Check to see that the pipe works correctly.
6380 pipe_works=no
6381
6382 rm -f conftest*
6383 cat > conftest.$ac_ext <<_LT_EOF
6384 #ifdef __cplusplus
6385 extern "C" {
6386 #endif
6387 char nm_test_var;
6388 void nm_test_func(void);
6389 void nm_test_func(void){}
6390 #ifdef __cplusplus
6391 }
6392 #endif
6393 int main(){nm_test_var='a';nm_test_func();return(0);}
6394 _LT_EOF
6395
6396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6397 (eval $ac_compile) 2>&5
6398 ac_status=$?
6399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; }; then
6401 # Now try to grab the symbols.
6402 nlist=conftest.nm
6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6404 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; } && test -s "$nlist"; then
6408 # Try sorting and uniquifying the output.
6409 if sort "$nlist" | uniq > "$nlist"T; then
6410 mv -f "$nlist"T "$nlist"
6411 else
6412 rm -f "$nlist"T
6413 fi
6414
6415 # Make sure that we snagged all the symbols we need.
6416 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6417 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6418 cat <<_LT_EOF > conftest.$ac_ext
6419 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6420 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6421 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6422 relocations are performed -- see ld's documentation on pseudo-relocs. */
6423 # define LT_DLSYM_CONST
6424 #elif defined __osf__
6425 /* This system does not cope well with relocations in const data. */
6426 # define LT_DLSYM_CONST
6427 #else
6428 # define LT_DLSYM_CONST const
6429 #endif
6430
6431 #ifdef __cplusplus
6432 extern "C" {
6433 #endif
6434
6435 _LT_EOF
6436 # Now generate the symbol file.
6437 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6438
6439 cat <<_LT_EOF >> conftest.$ac_ext
6440
6441 /* The mapping between symbol names and symbols. */
6442 LT_DLSYM_CONST struct {
6443 const char *name;
6444 void *address;
6445 }
6446 lt__PROGRAM__LTX_preloaded_symbols[] =
6447 {
6448 { "@PROGRAM@", (void *) 0 },
6449 _LT_EOF
6450 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6451 cat <<\_LT_EOF >> conftest.$ac_ext
6452 {0, (void *) 0}
6453 };
6454
6455 /* This works around a problem in FreeBSD linker */
6456 #ifdef FREEBSD_WORKAROUND
6457 static const void *lt_preloaded_setup() {
6458 return lt__PROGRAM__LTX_preloaded_symbols;
6459 }
6460 #endif
6461
6462 #ifdef __cplusplus
6463 }
6464 #endif
6465 _LT_EOF
6466 # Now try linking the two files.
6467 mv conftest.$ac_objext conftstm.$ac_objext
6468 lt_globsym_save_LIBS=$LIBS
6469 lt_globsym_save_CFLAGS=$CFLAGS
6470 LIBS=conftstm.$ac_objext
6471 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6473 (eval $ac_link) 2>&5
6474 ac_status=$?
6475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6476 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6477 pipe_works=yes
6478 fi
6479 LIBS=$lt_globsym_save_LIBS
6480 CFLAGS=$lt_globsym_save_CFLAGS
6481 else
6482 echo "cannot find nm_test_func in $nlist" >&5
6483 fi
6484 else
6485 echo "cannot find nm_test_var in $nlist" >&5
6486 fi
6487 else
6488 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6489 fi
6490 else
6491 echo "$progname: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6493 fi
6494 rm -rf conftest* conftst*
6495
6496 # Do not use the global_symbol_pipe unless it works.
6497 if test yes = "$pipe_works"; then
6498 break
6499 else
6500 lt_cv_sys_global_symbol_pipe=
6501 fi
6502 done
6503
6504 fi
6505
6506 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6507 lt_cv_sys_global_symbol_to_cdecl=
6508 fi
6509 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6511 $as_echo "failed" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6514 $as_echo "ok" >&6; }
6515 fi
6516
6517 # Response file support.
6518 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6519 nm_file_list_spec='@'
6520 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6521 nm_file_list_spec='@'
6522 fi
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6561 $as_echo_n "checking for sysroot... " >&6; }
6562
6563 # Check whether --with-sysroot was given.
6564 if test "${with_sysroot+set}" = set; then :
6565 withval=$with_sysroot;
6566 else
6567 with_sysroot=no
6568 fi
6569
6570
6571 lt_sysroot=
6572 case $with_sysroot in #(
6573 yes)
6574 if test yes = "$GCC"; then
6575 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6576 fi
6577 ;; #(
6578 /*)
6579 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6580 ;; #(
6581 no|'')
6582 ;; #(
6583 *)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6585 $as_echo "$with_sysroot" >&6; }
6586 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6587 ;;
6588 esac
6589
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6591 $as_echo "${lt_sysroot:-no}" >&6; }
6592
6593
6594
6595
6596
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6598 $as_echo_n "checking for a working dd... " >&6; }
6599 if ${ac_cv_path_lt_DD+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 printf 0123456789abcdef0123456789abcdef >conftest.i
6603 cat conftest.i conftest.i >conftest2.i
6604 : ${lt_DD:=$DD}
6605 if test -z "$lt_DD"; then
6606 ac_path_lt_DD_found=false
6607 # Loop through the user's path and test for each of PROGNAME-LIST
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_prog in dd; do
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6616 as_fn_executable_p "$ac_path_lt_DD" || continue
6617 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6618 cmp -s conftest.i conftest.out \
6619 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6620 fi
6621 $ac_path_lt_DD_found && break 3
6622 done
6623 done
6624 done
6625 IFS=$as_save_IFS
6626 if test -z "$ac_cv_path_lt_DD"; then
6627 :
6628 fi
6629 else
6630 ac_cv_path_lt_DD=$lt_DD
6631 fi
6632
6633 rm -f conftest.i conftest2.i conftest.out
6634 fi
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6636 $as_echo "$ac_cv_path_lt_DD" >&6; }
6637
6638
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6640 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6641 if ${lt_cv_truncate_bin+:} false; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 printf 0123456789abcdef0123456789abcdef >conftest.i
6645 cat conftest.i conftest.i >conftest2.i
6646 lt_cv_truncate_bin=
6647 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6648 cmp -s conftest.i conftest.out \
6649 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6650 fi
6651 rm -f conftest.i conftest2.i conftest.out
6652 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6653 fi
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6655 $as_echo "$lt_cv_truncate_bin" >&6; }
6656
6657
6658
6659
6660
6661
6662
6663 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6664 func_cc_basename ()
6665 {
6666 for cc_temp in $*""; do
6667 case $cc_temp in
6668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6670 \-*) ;;
6671 *) break;;
6672 esac
6673 done
6674 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6675 }
6676
6677 # Check whether --enable-libtool-lock was given.
6678 if test "${enable_libtool_lock+set}" = set; then :
6679 enableval=$enable_libtool_lock;
6680 fi
6681
6682 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6683
6684 # Some flags need to be propagated to the compiler or linker for good
6685 # libtool support.
6686 case $host in
6687 ia64-*-hpux*)
6688 # Find out what ABI is being produced by ac_compile, and set mode
6689 # options accordingly.
6690 echo 'int i;' > conftest.$ac_ext
6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692 (eval $ac_compile) 2>&5
6693 ac_status=$?
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }; then
6696 case `/usr/bin/file conftest.$ac_objext` in
6697 *ELF-32*)
6698 HPUX_IA64_MODE=32
6699 ;;
6700 *ELF-64*)
6701 HPUX_IA64_MODE=64
6702 ;;
6703 esac
6704 fi
6705 rm -rf conftest*
6706 ;;
6707 *-*-irix6*)
6708 # Find out what ABI is being produced by ac_compile, and set linker
6709 # options accordingly.
6710 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6712 (eval $ac_compile) 2>&5
6713 ac_status=$?
6714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715 test $ac_status = 0; }; then
6716 if test yes = "$lt_cv_prog_gnu_ld"; then
6717 case `/usr/bin/file conftest.$ac_objext` in
6718 *32-bit*)
6719 LD="${LD-ld} -melf32bsmip"
6720 ;;
6721 *N32*)
6722 LD="${LD-ld} -melf32bmipn32"
6723 ;;
6724 *64-bit*)
6725 LD="${LD-ld} -melf64bmip"
6726 ;;
6727 esac
6728 else
6729 case `/usr/bin/file conftest.$ac_objext` in
6730 *32-bit*)
6731 LD="${LD-ld} -32"
6732 ;;
6733 *N32*)
6734 LD="${LD-ld} -n32"
6735 ;;
6736 *64-bit*)
6737 LD="${LD-ld} -64"
6738 ;;
6739 esac
6740 fi
6741 fi
6742 rm -rf conftest*
6743 ;;
6744
6745 mips64*-*linux*)
6746 # Find out what ABI is being produced by ac_compile, and set linker
6747 # options accordingly.
6748 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750 (eval $ac_compile) 2>&5
6751 ac_status=$?
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 emul=elf
6755 case `/usr/bin/file conftest.$ac_objext` in
6756 *32-bit*)
6757 emul="${emul}32"
6758 ;;
6759 *64-bit*)
6760 emul="${emul}64"
6761 ;;
6762 esac
6763 case `/usr/bin/file conftest.$ac_objext` in
6764 *MSB*)
6765 emul="${emul}btsmip"
6766 ;;
6767 *LSB*)
6768 emul="${emul}ltsmip"
6769 ;;
6770 esac
6771 case `/usr/bin/file conftest.$ac_objext` in
6772 *N32*)
6773 emul="${emul}n32"
6774 ;;
6775 esac
6776 LD="${LD-ld} -m $emul"
6777 fi
6778 rm -rf conftest*
6779 ;;
6780
6781 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6782 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6783 # Find out what ABI is being produced by ac_compile, and set linker
6784 # options accordingly. Note that the listed cases only cover the
6785 # situations where additional linker options are needed (such as when
6786 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6787 # vice versa); the common cases where no linker options are needed do
6788 # not appear in the list.
6789 echo 'int i;' > conftest.$ac_ext
6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791 (eval $ac_compile) 2>&5
6792 ac_status=$?
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; then
6795 case `/usr/bin/file conftest.o` in
6796 *32-bit*)
6797 case $host in
6798 x86_64-*kfreebsd*-gnu)
6799 LD="${LD-ld} -m elf_i386_fbsd"
6800 ;;
6801 x86_64-*linux*)
6802 case `/usr/bin/file conftest.o` in
6803 *x86-64*)
6804 LD="${LD-ld} -m elf32_x86_64"
6805 ;;
6806 *)
6807 LD="${LD-ld} -m elf_i386"
6808 ;;
6809 esac
6810 ;;
6811 powerpc64le-*linux*)
6812 LD="${LD-ld} -m elf32lppclinux"
6813 ;;
6814 powerpc64-*linux*)
6815 LD="${LD-ld} -m elf32ppclinux"
6816 ;;
6817 s390x-*linux*)
6818 LD="${LD-ld} -m elf_s390"
6819 ;;
6820 sparc64-*linux*)
6821 LD="${LD-ld} -m elf32_sparc"
6822 ;;
6823 esac
6824 ;;
6825 *64-bit*)
6826 case $host in
6827 x86_64-*kfreebsd*-gnu)
6828 LD="${LD-ld} -m elf_x86_64_fbsd"
6829 ;;
6830 x86_64-*linux*)
6831 LD="${LD-ld} -m elf_x86_64"
6832 ;;
6833 powerpcle-*linux*)
6834 LD="${LD-ld} -m elf64lppc"
6835 ;;
6836 powerpc-*linux*)
6837 LD="${LD-ld} -m elf64ppc"
6838 ;;
6839 s390*-*linux*|s390*-*tpf*)
6840 LD="${LD-ld} -m elf64_s390"
6841 ;;
6842 sparc*-*linux*)
6843 LD="${LD-ld} -m elf64_sparc"
6844 ;;
6845 esac
6846 ;;
6847 esac
6848 fi
6849 rm -rf conftest*
6850 ;;
6851
6852 *-*-sco3.2v5*)
6853 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6854 SAVE_CFLAGS=$CFLAGS
6855 CFLAGS="$CFLAGS -belf"
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6857 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6858 if ${lt_cv_cc_needs_belf+:} false; then :
6859 $as_echo_n "(cached) " >&6
6860 else
6861 ac_ext=c
6862 ac_cpp='$CPP $CPPFLAGS'
6863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6866
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869
6870 int
6871 main ()
6872 {
6873
6874 ;
6875 return 0;
6876 }
6877 _ACEOF
6878 if ac_fn_c_try_link "$LINENO"; then :
6879 lt_cv_cc_needs_belf=yes
6880 else
6881 lt_cv_cc_needs_belf=no
6882 fi
6883 rm -f core conftest.err conftest.$ac_objext \
6884 conftest$ac_exeext conftest.$ac_ext
6885 ac_ext=c
6886 ac_cpp='$CPP $CPPFLAGS'
6887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6890
6891 fi
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6893 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6894 if test yes != "$lt_cv_cc_needs_belf"; then
6895 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6896 CFLAGS=$SAVE_CFLAGS
6897 fi
6898 ;;
6899 *-*solaris*)
6900 # Find out what ABI is being produced by ac_compile, and set linker
6901 # options accordingly.
6902 echo 'int i;' > conftest.$ac_ext
6903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6904 (eval $ac_compile) 2>&5
6905 ac_status=$?
6906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6907 test $ac_status = 0; }; then
6908 case `/usr/bin/file conftest.o` in
6909 *64-bit*)
6910 case $lt_cv_prog_gnu_ld in
6911 yes*)
6912 case $host in
6913 i?86-*-solaris*|x86_64-*-solaris*)
6914 LD="${LD-ld} -m elf_x86_64"
6915 ;;
6916 sparc*-*-solaris*)
6917 LD="${LD-ld} -m elf64_sparc"
6918 ;;
6919 esac
6920 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6921 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6922 LD=${LD-ld}_sol2
6923 fi
6924 ;;
6925 *)
6926 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6927 LD="${LD-ld} -64"
6928 fi
6929 ;;
6930 esac
6931 ;;
6932 esac
6933 fi
6934 rm -rf conftest*
6935 ;;
6936 esac
6937
6938 need_locks=$enable_libtool_lock
6939
6940 if test -n "$ac_tool_prefix"; then
6941 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6942 set dummy ${ac_tool_prefix}mt; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$MANIFEST_TOOL"; then
6949 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6961 fi
6962 done
6963 done
6964 IFS=$as_save_IFS
6965
6966 fi
6967 fi
6968 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6969 if test -n "$MANIFEST_TOOL"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6971 $as_echo "$MANIFEST_TOOL" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 fi
6976
6977
6978 fi
6979 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6980 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6981 # Extract the first word of "mt", so it can be a program name with args.
6982 set dummy mt; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$ac_ct_MANIFEST_TOOL"; then
6989 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002 done
7003 done
7004 IFS=$as_save_IFS
7005
7006 fi
7007 fi
7008 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7009 if test -n "$ac_ct_MANIFEST_TOOL"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7011 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7015 fi
7016
7017 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7018 MANIFEST_TOOL=":"
7019 else
7020 case $cross_compiling:$ac_tool_warned in
7021 yes:)
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024 ac_tool_warned=yes ;;
7025 esac
7026 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7027 fi
7028 else
7029 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7030 fi
7031
7032 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7034 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7035 if ${lt_cv_path_mainfest_tool+:} false; then :
7036 $as_echo_n "(cached) " >&6
7037 else
7038 lt_cv_path_mainfest_tool=no
7039 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7040 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7041 cat conftest.err >&5
7042 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7043 lt_cv_path_mainfest_tool=yes
7044 fi
7045 rm -f conftest*
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7048 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7049 if test yes != "$lt_cv_path_mainfest_tool"; then
7050 MANIFEST_TOOL=:
7051 fi
7052
7053
7054
7055
7056
7057
7058 case $host_os in
7059 rhapsody* | darwin*)
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 if test -n "$DSYMUTIL"; then
7069 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7089 if test -n "$DSYMUTIL"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7091 $as_echo "$DSYMUTIL" >&6; }
7092 else
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096
7097
7098 fi
7099 if test -z "$ac_cv_prog_DSYMUTIL"; then
7100 ac_ct_DSYMUTIL=$DSYMUTIL
7101 # Extract the first word of "dsymutil", so it can be a program name with args.
7102 set dummy dsymutil; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 if test -n "$ac_ct_DSYMUTIL"; then
7109 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7121 fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126 fi
7127 fi
7128 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7129 if test -n "$ac_ct_DSYMUTIL"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7131 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7132 else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7135 fi
7136
7137 if test "x$ac_ct_DSYMUTIL" = x; then
7138 DSYMUTIL=":"
7139 else
7140 case $cross_compiling:$ac_tool_warned in
7141 yes:)
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7144 ac_tool_warned=yes ;;
7145 esac
7146 DSYMUTIL=$ac_ct_DSYMUTIL
7147 fi
7148 else
7149 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7150 fi
7151
7152 if test -n "$ac_tool_prefix"; then
7153 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7154 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_NMEDIT+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 if test -n "$NMEDIT"; then
7161 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7173 fi
7174 done
7175 done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 NMEDIT=$ac_cv_prog_NMEDIT
7181 if test -n "$NMEDIT"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7183 $as_echo "$NMEDIT" >&6; }
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189
7190 fi
7191 if test -z "$ac_cv_prog_NMEDIT"; then
7192 ac_ct_NMEDIT=$NMEDIT
7193 # Extract the first word of "nmedit", so it can be a program name with args.
7194 set dummy nmedit; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 if test -n "$ac_ct_NMEDIT"; then
7201 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7202 else
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 break 2
7213 fi
7214 done
7215 done
7216 IFS=$as_save_IFS
7217
7218 fi
7219 fi
7220 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7221 if test -n "$ac_ct_NMEDIT"; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7223 $as_echo "$ac_ct_NMEDIT" >&6; }
7224 else
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7227 fi
7228
7229 if test "x$ac_ct_NMEDIT" = x; then
7230 NMEDIT=":"
7231 else
7232 case $cross_compiling:$ac_tool_warned in
7233 yes:)
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236 ac_tool_warned=yes ;;
7237 esac
7238 NMEDIT=$ac_ct_NMEDIT
7239 fi
7240 else
7241 NMEDIT="$ac_cv_prog_NMEDIT"
7242 fi
7243
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_LIPO+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$LIPO"; then
7253 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 LIPO=$ac_cv_prog_LIPO
7273 if test -n "$LIPO"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7275 $as_echo "$LIPO" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281
7282 fi
7283 if test -z "$ac_cv_prog_LIPO"; then
7284 ac_ct_LIPO=$LIPO
7285 # Extract the first word of "lipo", so it can be a program name with args.
7286 set dummy lipo; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 if test -n "$ac_ct_LIPO"; then
7293 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_ac_ct_LIPO="lipo"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7305 fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7313 if test -n "$ac_ct_LIPO"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7315 $as_echo "$ac_ct_LIPO" >&6; }
7316 else
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321 if test "x$ac_ct_LIPO" = x; then
7322 LIPO=":"
7323 else
7324 case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330 LIPO=$ac_ct_LIPO
7331 fi
7332 else
7333 LIPO="$ac_cv_prog_LIPO"
7334 fi
7335
7336 if test -n "$ac_tool_prefix"; then
7337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7338 set dummy ${ac_tool_prefix}otool; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_prog_OTOOL+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 if test -n "$OTOOL"; then
7345 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358 done
7359 done
7360 IFS=$as_save_IFS
7361
7362 fi
7363 fi
7364 OTOOL=$ac_cv_prog_OTOOL
7365 if test -n "$OTOOL"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7367 $as_echo "$OTOOL" >&6; }
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 fi
7372
7373
7374 fi
7375 if test -z "$ac_cv_prog_OTOOL"; then
7376 ac_ct_OTOOL=$OTOOL
7377 # Extract the first word of "otool", so it can be a program name with args.
7378 set dummy otool; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 if test -n "$ac_ct_OTOOL"; then
7385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_ac_ct_OTOOL="otool"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7405 if test -n "$ac_ct_OTOOL"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7407 $as_echo "$ac_ct_OTOOL" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413 if test "x$ac_ct_OTOOL" = x; then
7414 OTOOL=":"
7415 else
7416 case $cross_compiling:$ac_tool_warned in
7417 yes:)
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420 ac_tool_warned=yes ;;
7421 esac
7422 OTOOL=$ac_ct_OTOOL
7423 fi
7424 else
7425 OTOOL="$ac_cv_prog_OTOOL"
7426 fi
7427
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_OTOOL64+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 if test -n "$OTOOL64"; then
7437 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7449 fi
7450 done
7451 done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 OTOOL64=$ac_cv_prog_OTOOL64
7457 if test -n "$OTOOL64"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7459 $as_echo "$OTOOL64" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465
7466 fi
7467 if test -z "$ac_cv_prog_OTOOL64"; then
7468 ac_ct_OTOOL64=$OTOOL64
7469 # Extract the first word of "otool64", so it can be a program name with args.
7470 set dummy otool64; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 if test -n "$ac_ct_OTOOL64"; then
7477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_ac_ct_OTOOL64="otool64"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7489 fi
7490 done
7491 done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7497 if test -n "$ac_ct_OTOOL64"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7499 $as_echo "$ac_ct_OTOOL64" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505 if test "x$ac_ct_OTOOL64" = x; then
7506 OTOOL64=":"
7507 else
7508 case $cross_compiling:$ac_tool_warned in
7509 yes:)
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned=yes ;;
7513 esac
7514 OTOOL64=$ac_ct_OTOOL64
7515 fi
7516 else
7517 OTOOL64="$ac_cv_prog_OTOOL64"
7518 fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7547 $as_echo_n "checking for -single_module linker flag... " >&6; }
7548 if ${lt_cv_apple_cc_single_mod+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 lt_cv_apple_cc_single_mod=no
7552 if test -z "$LT_MULTI_MODULE"; then
7553 # By default we will add the -single_module flag. You can override
7554 # by either setting the environment variable LT_MULTI_MODULE
7555 # non-empty at configure time, or by adding -multi_module to the
7556 # link flags.
7557 rm -rf libconftest.dylib*
7558 echo "int foo(void){return 1;}" > conftest.c
7559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7560 -dynamiclib -Wl,-single_module conftest.c" >&5
7561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7562 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7563 _lt_result=$?
7564 # If there is a non-empty error log, and "single_module"
7565 # appears in it, assume the flag caused a linker warning
7566 if test -s conftest.err && $GREP single_module conftest.err; then
7567 cat conftest.err >&5
7568 # Otherwise, if the output was created with a 0 exit code from
7569 # the compiler, it worked.
7570 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7571 lt_cv_apple_cc_single_mod=yes
7572 else
7573 cat conftest.err >&5
7574 fi
7575 rm -rf libconftest.dylib*
7576 rm -f conftest.*
7577 fi
7578 fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7580 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7581
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7583 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7584 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 lt_cv_ld_exported_symbols_list=no
7588 save_LDFLAGS=$LDFLAGS
7589 echo "_main" > conftest.sym
7590 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593
7594 int
7595 main ()
7596 {
7597
7598 ;
7599 return 0;
7600 }
7601 _ACEOF
7602 if ac_fn_c_try_link "$LINENO"; then :
7603 lt_cv_ld_exported_symbols_list=yes
7604 else
7605 lt_cv_ld_exported_symbols_list=no
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext \
7608 conftest$ac_exeext conftest.$ac_ext
7609 LDFLAGS=$save_LDFLAGS
7610
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7613 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7614
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7616 $as_echo_n "checking for -force_load linker flag... " >&6; }
7617 if ${lt_cv_ld_force_load+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 lt_cv_ld_force_load=no
7621 cat > conftest.c << _LT_EOF
7622 int forced_loaded() { return 2;}
7623 _LT_EOF
7624 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7625 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7626 echo "$AR cru libconftest.a conftest.o" >&5
7627 $AR cru libconftest.a conftest.o 2>&5
7628 echo "$RANLIB libconftest.a" >&5
7629 $RANLIB libconftest.a 2>&5
7630 cat > conftest.c << _LT_EOF
7631 int main() { return 0;}
7632 _LT_EOF
7633 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7634 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7635 _lt_result=$?
7636 if test -s conftest.err && $GREP force_load conftest.err; then
7637 cat conftest.err >&5
7638 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7639 lt_cv_ld_force_load=yes
7640 else
7641 cat conftest.err >&5
7642 fi
7643 rm -f conftest.err libconftest.a conftest conftest.c
7644 rm -rf conftest.dSYM
7645
7646 fi
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7648 $as_echo "$lt_cv_ld_force_load" >&6; }
7649 case $host_os in
7650 rhapsody* | darwin1.[012])
7651 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7652 darwin1.*)
7653 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7654 darwin*) # darwin 5.x on
7655 # if running on 10.5 or later, the deployment target defaults
7656 # to the OS version, if on x86, and 10.4, the deployment
7657 # target defaults to 10.4. Don't you love it?
7658 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7659 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7660 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7661 10.[012][,.]*)
7662 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7663 10.*)
7664 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7665 esac
7666 ;;
7667 esac
7668 if test yes = "$lt_cv_apple_cc_single_mod"; then
7669 _lt_dar_single_mod='$single_module'
7670 fi
7671 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7672 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7673 else
7674 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7675 fi
7676 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7677 _lt_dsymutil='~$DSYMUTIL $lib || :'
7678 else
7679 _lt_dsymutil=
7680 fi
7681 ;;
7682 esac
7683
7684 # func_munge_path_list VARIABLE PATH
7685 # -----------------------------------
7686 # VARIABLE is name of variable containing _space_ separated list of
7687 # directories to be munged by the contents of PATH, which is string
7688 # having a format:
7689 # "DIR[:DIR]:"
7690 # string "DIR[ DIR]" will be prepended to VARIABLE
7691 # ":DIR[:DIR]"
7692 # string "DIR[ DIR]" will be appended to VARIABLE
7693 # "DIRP[:DIRP]::[DIRA:]DIRA"
7694 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7695 # "DIRA[ DIRA]" will be appended to VARIABLE
7696 # "DIR[:DIR]"
7697 # VARIABLE will be replaced by "DIR[ DIR]"
7698 func_munge_path_list ()
7699 {
7700 case x$2 in
7701 x)
7702 ;;
7703 *:)
7704 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7705 ;;
7706 x:*)
7707 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7708 ;;
7709 *::*)
7710 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7711 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7712 ;;
7713 *)
7714 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7715 ;;
7716 esac
7717 }
7718
7719 ac_ext=c
7720 ac_cpp='$CPP $CPPFLAGS'
7721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7725 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7726 # On Suns, sometimes $CPP names a directory.
7727 if test -n "$CPP" && test -d "$CPP"; then
7728 CPP=
7729 fi
7730 if test -z "$CPP"; then
7731 if ${ac_cv_prog_CPP+:} false; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 # Double quotes because CPP needs to be expanded
7735 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7736 do
7737 ac_preproc_ok=false
7738 for ac_c_preproc_warn_flag in '' yes
7739 do
7740 # Use a header file that comes with gcc, so configuring glibc
7741 # with a fresh cross-compiler works.
7742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7743 # <limits.h> exists even on freestanding compilers.
7744 # On the NeXT, cc -E runs the code through the compiler's parser,
7745 # not just through cpp. "Syntax error" is here to catch this case.
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #ifdef __STDC__
7749 # include <limits.h>
7750 #else
7751 # include <assert.h>
7752 #endif
7753 Syntax error
7754 _ACEOF
7755 if ac_fn_c_try_cpp "$LINENO"; then :
7756
7757 else
7758 # Broken: fails on valid input.
7759 continue
7760 fi
7761 rm -f conftest.err conftest.i conftest.$ac_ext
7762
7763 # OK, works on sane cases. Now check whether nonexistent headers
7764 # can be detected and how.
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 #include <ac_nonexistent.h>
7768 _ACEOF
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7770 # Broken: success on invalid input.
7771 continue
7772 else
7773 # Passes both tests.
7774 ac_preproc_ok=:
7775 break
7776 fi
7777 rm -f conftest.err conftest.i conftest.$ac_ext
7778
7779 done
7780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7781 rm -f conftest.i conftest.err conftest.$ac_ext
7782 if $ac_preproc_ok; then :
7783 break
7784 fi
7785
7786 done
7787 ac_cv_prog_CPP=$CPP
7788
7789 fi
7790 CPP=$ac_cv_prog_CPP
7791 else
7792 ac_cv_prog_CPP=$CPP
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7795 $as_echo "$CPP" >&6; }
7796 ac_preproc_ok=false
7797 for ac_c_preproc_warn_flag in '' yes
7798 do
7799 # Use a header file that comes with gcc, so configuring glibc
7800 # with a fresh cross-compiler works.
7801 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802 # <limits.h> exists even on freestanding compilers.
7803 # On the NeXT, cc -E runs the code through the compiler's parser,
7804 # not just through cpp. "Syntax error" is here to catch this case.
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7807 #ifdef __STDC__
7808 # include <limits.h>
7809 #else
7810 # include <assert.h>
7811 #endif
7812 Syntax error
7813 _ACEOF
7814 if ac_fn_c_try_cpp "$LINENO"; then :
7815
7816 else
7817 # Broken: fails on valid input.
7818 continue
7819 fi
7820 rm -f conftest.err conftest.i conftest.$ac_ext
7821
7822 # OK, works on sane cases. Now check whether nonexistent headers
7823 # can be detected and how.
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <ac_nonexistent.h>
7827 _ACEOF
7828 if ac_fn_c_try_cpp "$LINENO"; then :
7829 # Broken: success on invalid input.
7830 continue
7831 else
7832 # Passes both tests.
7833 ac_preproc_ok=:
7834 break
7835 fi
7836 rm -f conftest.err conftest.i conftest.$ac_ext
7837
7838 done
7839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7840 rm -f conftest.i conftest.err conftest.$ac_ext
7841 if $ac_preproc_ok; then :
7842
7843 else
7844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7846 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7847 See \`config.log' for more details" "$LINENO" 5; }
7848 fi
7849
7850 ac_ext=c
7851 ac_cpp='$CPP $CPPFLAGS'
7852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855
7856
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7858 $as_echo_n "checking for ANSI C header files... " >&6; }
7859 if ${ac_cv_header_stdc+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 #include <stdlib.h>
7865 #include <stdarg.h>
7866 #include <string.h>
7867 #include <float.h>
7868
7869 int
7870 main ()
7871 {
7872
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_compile "$LINENO"; then :
7878 ac_cv_header_stdc=yes
7879 else
7880 ac_cv_header_stdc=no
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883
7884 if test $ac_cv_header_stdc = yes; then
7885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #include <string.h>
7889
7890 _ACEOF
7891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7892 $EGREP "memchr" >/dev/null 2>&1; then :
7893
7894 else
7895 ac_cv_header_stdc=no
7896 fi
7897 rm -f conftest*
7898
7899 fi
7900
7901 if test $ac_cv_header_stdc = yes; then
7902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7905 #include <stdlib.h>
7906
7907 _ACEOF
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909 $EGREP "free" >/dev/null 2>&1; then :
7910
7911 else
7912 ac_cv_header_stdc=no
7913 fi
7914 rm -f conftest*
7915
7916 fi
7917
7918 if test $ac_cv_header_stdc = yes; then
7919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7920 if test "$cross_compiling" = yes; then :
7921 :
7922 else
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 #include <ctype.h>
7926 #include <stdlib.h>
7927 #if ((' ' & 0x0FF) == 0x020)
7928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7930 #else
7931 # define ISLOWER(c) \
7932 (('a' <= (c) && (c) <= 'i') \
7933 || ('j' <= (c) && (c) <= 'r') \
7934 || ('s' <= (c) && (c) <= 'z'))
7935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7936 #endif
7937
7938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7939 int
7940 main ()
7941 {
7942 int i;
7943 for (i = 0; i < 256; i++)
7944 if (XOR (islower (i), ISLOWER (i))
7945 || toupper (i) != TOUPPER (i))
7946 return 2;
7947 return 0;
7948 }
7949 _ACEOF
7950 if ac_fn_c_try_run "$LINENO"; then :
7951
7952 else
7953 ac_cv_header_stdc=no
7954 fi
7955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7956 conftest.$ac_objext conftest.beam conftest.$ac_ext
7957 fi
7958
7959 fi
7960 fi
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7962 $as_echo "$ac_cv_header_stdc" >&6; }
7963 if test $ac_cv_header_stdc = yes; then
7964
7965 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7966
7967 fi
7968
7969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7970 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7971 inttypes.h stdint.h unistd.h
7972 do :
7973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7975 "
7976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7977 cat >>confdefs.h <<_ACEOF
7978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7979 _ACEOF
7980
7981 fi
7982
7983 done
7984
7985
7986 for ac_header in dlfcn.h
7987 do :
7988 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7989 "
7990 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7991 cat >>confdefs.h <<_ACEOF
7992 #define HAVE_DLFCN_H 1
7993 _ACEOF
7994
7995 fi
7996
7997 done
7998
7999
8000
8001
8002
8003 # Set options
8004
8005
8006
8007 enable_dlopen=no
8008
8009
8010 enable_win32_dll=no
8011
8012
8013 # Check whether --enable-shared was given.
8014 if test "${enable_shared+set}" = set; then :
8015 enableval=$enable_shared; p=${PACKAGE-default}
8016 case $enableval in
8017 yes) enable_shared=yes ;;
8018 no) enable_shared=no ;;
8019 *)
8020 enable_shared=no
8021 # Look at the argument we got. We use all the common list separators.
8022 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8023 for pkg in $enableval; do
8024 IFS=$lt_save_ifs
8025 if test "X$pkg" = "X$p"; then
8026 enable_shared=yes
8027 fi
8028 done
8029 IFS=$lt_save_ifs
8030 ;;
8031 esac
8032 else
8033 enable_shared=yes
8034 fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044 # Check whether --enable-static was given.
8045 if test "${enable_static+set}" = set; then :
8046 enableval=$enable_static; p=${PACKAGE-default}
8047 case $enableval in
8048 yes) enable_static=yes ;;
8049 no) enable_static=no ;;
8050 *)
8051 enable_static=no
8052 # Look at the argument we got. We use all the common list separators.
8053 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8054 for pkg in $enableval; do
8055 IFS=$lt_save_ifs
8056 if test "X$pkg" = "X$p"; then
8057 enable_static=yes
8058 fi
8059 done
8060 IFS=$lt_save_ifs
8061 ;;
8062 esac
8063 else
8064 enable_static=yes
8065 fi
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076 # Check whether --with-pic was given.
8077 if test "${with_pic+set}" = set; then :
8078 withval=$with_pic; lt_p=${PACKAGE-default}
8079 case $withval in
8080 yes|no) pic_mode=$withval ;;
8081 *)
8082 pic_mode=default
8083 # Look at the argument we got. We use all the common list separators.
8084 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8085 for lt_pkg in $withval; do
8086 IFS=$lt_save_ifs
8087 if test "X$lt_pkg" = "X$lt_p"; then
8088 pic_mode=yes
8089 fi
8090 done
8091 IFS=$lt_save_ifs
8092 ;;
8093 esac
8094 else
8095 pic_mode=default
8096 fi
8097
8098
8099
8100
8101
8102
8103
8104
8105 # Check whether --enable-fast-install was given.
8106 if test "${enable_fast_install+set}" = set; then :
8107 enableval=$enable_fast_install; p=${PACKAGE-default}
8108 case $enableval in
8109 yes) enable_fast_install=yes ;;
8110 no) enable_fast_install=no ;;
8111 *)
8112 enable_fast_install=no
8113 # Look at the argument we got. We use all the common list separators.
8114 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8115 for pkg in $enableval; do
8116 IFS=$lt_save_ifs
8117 if test "X$pkg" = "X$p"; then
8118 enable_fast_install=yes
8119 fi
8120 done
8121 IFS=$lt_save_ifs
8122 ;;
8123 esac
8124 else
8125 enable_fast_install=yes
8126 fi
8127
8128
8129
8130
8131
8132
8133
8134
8135 shared_archive_member_spec=
8136 case $host,$enable_shared in
8137 power*-*-aix[5-9]*,yes)
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8139 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8140
8141 # Check whether --with-aix-soname was given.
8142 if test "${with_aix_soname+set}" = set; then :
8143 withval=$with_aix_soname; case $withval in
8144 aix|svr4|both)
8145 ;;
8146 *)
8147 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8148 ;;
8149 esac
8150 lt_cv_with_aix_soname=$with_aix_soname
8151 else
8152 if ${lt_cv_with_aix_soname+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 lt_cv_with_aix_soname=aix
8156 fi
8157
8158 with_aix_soname=$lt_cv_with_aix_soname
8159 fi
8160
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8162 $as_echo "$with_aix_soname" >&6; }
8163 if test aix != "$with_aix_soname"; then
8164 # For the AIX way of multilib, we name the shared archive member
8165 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8166 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8167 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8168 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8169 if test 64 = "${OBJECT_MODE-32}"; then
8170 shared_archive_member_spec=shr_64
8171 else
8172 shared_archive_member_spec=shr
8173 fi
8174 fi
8175 ;;
8176 *)
8177 with_aix_soname=aix
8178 ;;
8179 esac
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190 # This can be used to rebuild libtool when needed
8191 LIBTOOL_DEPS=$ltmain
8192
8193 # Always use our own libtool.
8194 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 test -z "$LN_S" && LN_S="ln -s"
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240 if test -n "${ZSH_VERSION+set}"; then
8241 setopt NO_GLOB_SUBST
8242 fi
8243
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8245 $as_echo_n "checking for objdir... " >&6; }
8246 if ${lt_cv_objdir+:} false; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 rm -f .libs 2>/dev/null
8250 mkdir .libs 2>/dev/null
8251 if test -d .libs; then
8252 lt_cv_objdir=.libs
8253 else
8254 # MS-DOS does not allow filenames that begin with a dot.
8255 lt_cv_objdir=_libs
8256 fi
8257 rmdir .libs 2>/dev/null
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8260 $as_echo "$lt_cv_objdir" >&6; }
8261 objdir=$lt_cv_objdir
8262
8263
8264
8265
8266
8267 cat >>confdefs.h <<_ACEOF
8268 #define LT_OBJDIR "$lt_cv_objdir/"
8269 _ACEOF
8270
8271
8272
8273
8274 case $host_os in
8275 aix3*)
8276 # AIX sometimes has problems with the GCC collect2 program. For some
8277 # reason, if we set the COLLECT_NAMES environment variable, the problems
8278 # vanish in a puff of smoke.
8279 if test set != "${COLLECT_NAMES+set}"; then
8280 COLLECT_NAMES=
8281 export COLLECT_NAMES
8282 fi
8283 ;;
8284 esac
8285
8286 # Global variables:
8287 ofile=libtool
8288 can_build_shared=yes
8289
8290 # All known linkers require a '.a' archive for static linking (except MSVC,
8291 # which needs '.lib').
8292 libext=a
8293
8294 with_gnu_ld=$lt_cv_prog_gnu_ld
8295
8296 old_CC=$CC
8297 old_CFLAGS=$CFLAGS
8298
8299 # Set sane defaults for various variables
8300 test -z "$CC" && CC=cc
8301 test -z "$LTCC" && LTCC=$CC
8302 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8303 test -z "$LD" && LD=ld
8304 test -z "$ac_objext" && ac_objext=o
8305
8306 func_cc_basename $compiler
8307 cc_basename=$func_cc_basename_result
8308
8309
8310 # Only perform the check for file, if the check method requires it
8311 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8312 case $deplibs_check_method in
8313 file_magic*)
8314 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8316 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8317 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 case $MAGIC_CMD in
8321 [\\/*] | ?:[\\/]*)
8322 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8323 ;;
8324 *)
8325 lt_save_MAGIC_CMD=$MAGIC_CMD
8326 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8327 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8328 for ac_dir in $ac_dummy; do
8329 IFS=$lt_save_ifs
8330 test -z "$ac_dir" && ac_dir=.
8331 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8332 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8333 if test -n "$file_magic_test_file"; then
8334 case $deplibs_check_method in
8335 "file_magic "*)
8336 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8337 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8338 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8339 $EGREP "$file_magic_regex" > /dev/null; then
8340 :
8341 else
8342 cat <<_LT_EOF 1>&2
8343
8344 *** Warning: the command libtool uses to detect shared libraries,
8345 *** $file_magic_cmd, produces output that libtool cannot recognize.
8346 *** The result is that libtool may fail to recognize shared libraries
8347 *** as such. This will affect the creation of libtool libraries that
8348 *** depend on shared libraries, but programs linked with such libtool
8349 *** libraries will work regardless of this problem. Nevertheless, you
8350 *** may want to report the problem to your system manager and/or to
8351 *** [email protected]
8352
8353 _LT_EOF
8354 fi ;;
8355 esac
8356 fi
8357 break
8358 fi
8359 done
8360 IFS=$lt_save_ifs
8361 MAGIC_CMD=$lt_save_MAGIC_CMD
8362 ;;
8363 esac
8364 fi
8365
8366 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8367 if test -n "$MAGIC_CMD"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8369 $as_echo "$MAGIC_CMD" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8373 fi
8374
8375
8376
8377
8378
8379 if test -z "$lt_cv_path_MAGIC_CMD"; then
8380 if test -n "$ac_tool_prefix"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8382 $as_echo_n "checking for file... " >&6; }
8383 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $MAGIC_CMD in
8387 [\\/*] | ?:[\\/]*)
8388 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8389 ;;
8390 *)
8391 lt_save_MAGIC_CMD=$MAGIC_CMD
8392 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8393 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8394 for ac_dir in $ac_dummy; do
8395 IFS=$lt_save_ifs
8396 test -z "$ac_dir" && ac_dir=.
8397 if test -f "$ac_dir/file"; then
8398 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8399 if test -n "$file_magic_test_file"; then
8400 case $deplibs_check_method in
8401 "file_magic "*)
8402 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8403 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8404 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8405 $EGREP "$file_magic_regex" > /dev/null; then
8406 :
8407 else
8408 cat <<_LT_EOF 1>&2
8409
8410 *** Warning: the command libtool uses to detect shared libraries,
8411 *** $file_magic_cmd, produces output that libtool cannot recognize.
8412 *** The result is that libtool may fail to recognize shared libraries
8413 *** as such. This will affect the creation of libtool libraries that
8414 *** depend on shared libraries, but programs linked with such libtool
8415 *** libraries will work regardless of this problem. Nevertheless, you
8416 *** may want to report the problem to your system manager and/or to
8417 *** [email protected]
8418
8419 _LT_EOF
8420 fi ;;
8421 esac
8422 fi
8423 break
8424 fi
8425 done
8426 IFS=$lt_save_ifs
8427 MAGIC_CMD=$lt_save_MAGIC_CMD
8428 ;;
8429 esac
8430 fi
8431
8432 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8433 if test -n "$MAGIC_CMD"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8435 $as_echo "$MAGIC_CMD" >&6; }
8436 else
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8439 fi
8440
8441
8442 else
8443 MAGIC_CMD=:
8444 fi
8445 fi
8446
8447 fi
8448 ;;
8449 esac
8450
8451 # Use C for the default configuration in the libtool script
8452
8453 lt_save_CC=$CC
8454 ac_ext=c
8455 ac_cpp='$CPP $CPPFLAGS'
8456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8459
8460
8461 # Source file extension for C test sources.
8462 ac_ext=c
8463
8464 # Object file extension for compiled C test sources.
8465 objext=o
8466 objext=$objext
8467
8468 # Code to be used in simple compile tests
8469 lt_simple_compile_test_code="int some_variable = 0;"
8470
8471 # Code to be used in simple link tests
8472 lt_simple_link_test_code='int main(){return(0);}'
8473
8474
8475
8476
8477
8478
8479
8480 # If no C compiler was specified, use CC.
8481 LTCC=${LTCC-"$CC"}
8482
8483 # If no C compiler flags were specified, use CFLAGS.
8484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8485
8486 # Allow CC to be a program name with arguments.
8487 compiler=$CC
8488
8489 # Save the default compiler, since it gets overwritten when the other
8490 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8491 compiler_DEFAULT=$CC
8492
8493 # save warnings/boilerplate of simple test code
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8496 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8497 _lt_compiler_boilerplate=`cat conftest.err`
8498 $RM conftest*
8499
8500 ac_outfile=conftest.$ac_objext
8501 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8502 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8503 _lt_linker_boilerplate=`cat conftest.err`
8504 $RM -r conftest*
8505
8506
8507 ## CAVEAT EMPTOR:
8508 ## There is no encapsulation within the following macros, do not change
8509 ## the running order or otherwise move them around unless you know exactly
8510 ## what you are doing...
8511 if test -n "$compiler"; then
8512
8513 lt_prog_compiler_no_builtin_flag=
8514
8515 if test yes = "$GCC"; then
8516 case $cc_basename in
8517 nvcc*)
8518 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8519 *)
8520 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8521 esac
8522
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8524 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8525 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 lt_cv_prog_compiler_rtti_exceptions=no
8529 ac_outfile=conftest.$ac_objext
8530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8531 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8532 # Insert the option either (1) after the last *FLAGS variable, or
8533 # (2) before a word containing "conftest.", or (3) at the end.
8534 # Note that $ac_compile itself does not contain backslashes and begins
8535 # with a dollar sign (not a hyphen), so the echo should work correctly.
8536 # The option is referenced via a variable to avoid confusing sed.
8537 lt_compile=`echo "$ac_compile" | $SED \
8538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8540 -e 's:$: $lt_compiler_flag:'`
8541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8542 (eval "$lt_compile" 2>conftest.err)
8543 ac_status=$?
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 if (exit $ac_status) && test -s "$ac_outfile"; then
8547 # The compiler can only warn and ignore the option if not recognized
8548 # So say no if there are warnings other than the usual output.
8549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8552 lt_cv_prog_compiler_rtti_exceptions=yes
8553 fi
8554 fi
8555 $RM conftest*
8556
8557 fi
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8559 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8560
8561 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8562 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8563 else
8564 :
8565 fi
8566
8567 fi
8568
8569
8570
8571
8572
8573
8574 lt_prog_compiler_wl=
8575 lt_prog_compiler_pic=
8576 lt_prog_compiler_static=
8577
8578
8579 if test yes = "$GCC"; then
8580 lt_prog_compiler_wl='-Wl,'
8581 lt_prog_compiler_static='-static'
8582
8583 case $host_os in
8584 aix*)
8585 # All AIX code is PIC.
8586 if test ia64 = "$host_cpu"; then
8587 # AIX 5 now supports IA64 processor
8588 lt_prog_compiler_static='-Bstatic'
8589 fi
8590 lt_prog_compiler_pic='-fPIC'
8591 ;;
8592
8593 amigaos*)
8594 case $host_cpu in
8595 powerpc)
8596 # see comment about AmigaOS4 .so support
8597 lt_prog_compiler_pic='-fPIC'
8598 ;;
8599 m68k)
8600 # FIXME: we need at least 68020 code to build shared libraries, but
8601 # adding the '-m68020' flag to GCC prevents building anything better,
8602 # like '-m68040'.
8603 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8604 ;;
8605 esac
8606 ;;
8607
8608 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8609 # PIC is the default for these OSes.
8610 ;;
8611
8612 mingw* | cygwin* | pw32* | os2* | cegcc*)
8613 # This hack is so that the source file can tell whether it is being
8614 # built for inclusion in a dll (and should export symbols for example).
8615 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8616 # (--disable-auto-import) libraries
8617 lt_prog_compiler_pic='-DDLL_EXPORT'
8618 case $host_os in
8619 os2*)
8620 lt_prog_compiler_static='$wl-static'
8621 ;;
8622 esac
8623 ;;
8624
8625 darwin* | rhapsody*)
8626 # PIC is the default on this platform
8627 # Common symbols not allowed in MH_DYLIB files
8628 lt_prog_compiler_pic='-fno-common'
8629 ;;
8630
8631 haiku*)
8632 # PIC is the default for Haiku.
8633 # The "-static" flag exists, but is broken.
8634 lt_prog_compiler_static=
8635 ;;
8636
8637 hpux*)
8638 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8639 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8640 # sets the default TLS model and affects inlining.
8641 case $host_cpu in
8642 hppa*64*)
8643 # +Z the default
8644 ;;
8645 *)
8646 lt_prog_compiler_pic='-fPIC'
8647 ;;
8648 esac
8649 ;;
8650
8651 interix[3-9]*)
8652 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8653 # Instead, we relocate shared libraries at runtime.
8654 ;;
8655
8656 msdosdjgpp*)
8657 # Just because we use GCC doesn't mean we suddenly get shared libraries
8658 # on systems that don't support them.
8659 lt_prog_compiler_can_build_shared=no
8660 enable_shared=no
8661 ;;
8662
8663 *nto* | *qnx*)
8664 # QNX uses GNU C++, but need to define -shared option too, otherwise
8665 # it will coredump.
8666 lt_prog_compiler_pic='-fPIC -shared'
8667 ;;
8668
8669 sysv4*MP*)
8670 if test -d /usr/nec; then
8671 lt_prog_compiler_pic=-Kconform_pic
8672 fi
8673 ;;
8674
8675 *)
8676 lt_prog_compiler_pic='-fPIC'
8677 ;;
8678 esac
8679
8680 case $cc_basename in
8681 nvcc*) # Cuda Compiler Driver 2.2
8682 lt_prog_compiler_wl='-Xlinker '
8683 if test -n "$lt_prog_compiler_pic"; then
8684 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8685 fi
8686 ;;
8687 esac
8688 else
8689 # PORTME Check for flag to pass linker flags through the system compiler.
8690 case $host_os in
8691 aix*)
8692 lt_prog_compiler_wl='-Wl,'
8693 if test ia64 = "$host_cpu"; then
8694 # AIX 5 now supports IA64 processor
8695 lt_prog_compiler_static='-Bstatic'
8696 else
8697 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8698 fi
8699 ;;
8700
8701 darwin* | rhapsody*)
8702 # PIC is the default on this platform
8703 # Common symbols not allowed in MH_DYLIB files
8704 lt_prog_compiler_pic='-fno-common'
8705 case $cc_basename in
8706 nagfor*)
8707 # NAG Fortran compiler
8708 lt_prog_compiler_wl='-Wl,-Wl,,'
8709 lt_prog_compiler_pic='-PIC'
8710 lt_prog_compiler_static='-Bstatic'
8711 ;;
8712 esac
8713 ;;
8714
8715 mingw* | cygwin* | pw32* | os2* | cegcc*)
8716 # This hack is so that the source file can tell whether it is being
8717 # built for inclusion in a dll (and should export symbols for example).
8718 lt_prog_compiler_pic='-DDLL_EXPORT'
8719 case $host_os in
8720 os2*)
8721 lt_prog_compiler_static='$wl-static'
8722 ;;
8723 esac
8724 ;;
8725
8726 hpux9* | hpux10* | hpux11*)
8727 lt_prog_compiler_wl='-Wl,'
8728 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8729 # not for PA HP-UX.
8730 case $host_cpu in
8731 hppa*64*|ia64*)
8732 # +Z the default
8733 ;;
8734 *)
8735 lt_prog_compiler_pic='+Z'
8736 ;;
8737 esac
8738 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8739 lt_prog_compiler_static='$wl-a ${wl}archive'
8740 ;;
8741
8742 irix5* | irix6* | nonstopux*)
8743 lt_prog_compiler_wl='-Wl,'
8744 # PIC (with -KPIC) is the default.
8745 lt_prog_compiler_static='-non_shared'
8746 ;;
8747
8748 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8749 case $cc_basename in
8750 # old Intel for x86_64, which still supported -KPIC.
8751 ecc*)
8752 lt_prog_compiler_wl='-Wl,'
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-static'
8755 ;;
8756 # icc used to be incompatible with GCC.
8757 # ICC 10 doesn't accept -KPIC any more.
8758 icc* | ifort*)
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='-fPIC'
8761 lt_prog_compiler_static='-static'
8762 ;;
8763 # Lahey Fortran 8.1.
8764 lf95*)
8765 lt_prog_compiler_wl='-Wl,'
8766 lt_prog_compiler_pic='--shared'
8767 lt_prog_compiler_static='--static'
8768 ;;
8769 nagfor*)
8770 # NAG Fortran compiler
8771 lt_prog_compiler_wl='-Wl,-Wl,,'
8772 lt_prog_compiler_pic='-PIC'
8773 lt_prog_compiler_static='-Bstatic'
8774 ;;
8775 tcc*)
8776 # Fabrice Bellard et al's Tiny C Compiler
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-fPIC'
8779 lt_prog_compiler_static='-static'
8780 ;;
8781 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8782 # Portland Group compilers (*not* the Pentium gcc compiler,
8783 # which looks to be a dead project)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='-fpic'
8786 lt_prog_compiler_static='-Bstatic'
8787 ;;
8788 ccc*)
8789 lt_prog_compiler_wl='-Wl,'
8790 # All Alpha code is PIC.
8791 lt_prog_compiler_static='-non_shared'
8792 ;;
8793 xl* | bgxl* | bgf* | mpixl*)
8794 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8795 lt_prog_compiler_wl='-Wl,'
8796 lt_prog_compiler_pic='-qpic'
8797 lt_prog_compiler_static='-qstaticlink'
8798 ;;
8799 *)
8800 case `$CC -V 2>&1 | sed 5q` in
8801 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8802 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8803 lt_prog_compiler_pic='-KPIC'
8804 lt_prog_compiler_static='-Bstatic'
8805 lt_prog_compiler_wl=''
8806 ;;
8807 *Sun\ F* | *Sun*Fortran*)
8808 lt_prog_compiler_pic='-KPIC'
8809 lt_prog_compiler_static='-Bstatic'
8810 lt_prog_compiler_wl='-Qoption ld '
8811 ;;
8812 *Sun\ C*)
8813 # Sun C 5.9
8814 lt_prog_compiler_pic='-KPIC'
8815 lt_prog_compiler_static='-Bstatic'
8816 lt_prog_compiler_wl='-Wl,'
8817 ;;
8818 *Intel*\ [CF]*Compiler*)
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_pic='-fPIC'
8821 lt_prog_compiler_static='-static'
8822 ;;
8823 *Portland\ Group*)
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_pic='-fpic'
8826 lt_prog_compiler_static='-Bstatic'
8827 ;;
8828 esac
8829 ;;
8830 esac
8831 ;;
8832
8833 newsos6)
8834 lt_prog_compiler_pic='-KPIC'
8835 lt_prog_compiler_static='-Bstatic'
8836 ;;
8837
8838 *nto* | *qnx*)
8839 # QNX uses GNU C++, but need to define -shared option too, otherwise
8840 # it will coredump.
8841 lt_prog_compiler_pic='-fPIC -shared'
8842 ;;
8843
8844 osf3* | osf4* | osf5*)
8845 lt_prog_compiler_wl='-Wl,'
8846 # All OSF/1 code is PIC.
8847 lt_prog_compiler_static='-non_shared'
8848 ;;
8849
8850 rdos*)
8851 lt_prog_compiler_static='-non_shared'
8852 ;;
8853
8854 solaris*)
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8857 case $cc_basename in
8858 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8859 lt_prog_compiler_wl='-Qoption ld ';;
8860 *)
8861 lt_prog_compiler_wl='-Wl,';;
8862 esac
8863 ;;
8864
8865 sunos4*)
8866 lt_prog_compiler_wl='-Qoption ld '
8867 lt_prog_compiler_pic='-PIC'
8868 lt_prog_compiler_static='-Bstatic'
8869 ;;
8870
8871 sysv4 | sysv4.2uw2* | sysv4.3*)
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-Bstatic'
8875 ;;
8876
8877 sysv4*MP*)
8878 if test -d /usr/nec; then
8879 lt_prog_compiler_pic='-Kconform_pic'
8880 lt_prog_compiler_static='-Bstatic'
8881 fi
8882 ;;
8883
8884 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8885 lt_prog_compiler_wl='-Wl,'
8886 lt_prog_compiler_pic='-KPIC'
8887 lt_prog_compiler_static='-Bstatic'
8888 ;;
8889
8890 unicos*)
8891 lt_prog_compiler_wl='-Wl,'
8892 lt_prog_compiler_can_build_shared=no
8893 ;;
8894
8895 uts4*)
8896 lt_prog_compiler_pic='-pic'
8897 lt_prog_compiler_static='-Bstatic'
8898 ;;
8899
8900 *)
8901 lt_prog_compiler_can_build_shared=no
8902 ;;
8903 esac
8904 fi
8905
8906 case $host_os in
8907 # For platforms that do not support PIC, -DPIC is meaningless:
8908 *djgpp*)
8909 lt_prog_compiler_pic=
8910 ;;
8911 *)
8912 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8913 ;;
8914 esac
8915
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8917 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8918 if ${lt_cv_prog_compiler_pic+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8924 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8925 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8926
8927 #
8928 # Check to make sure the PIC flag actually works.
8929 #
8930 if test -n "$lt_prog_compiler_pic"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8932 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8933 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 lt_cv_prog_compiler_pic_works=no
8937 ac_outfile=conftest.$ac_objext
8938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8940 # Insert the option either (1) after the last *FLAGS variable, or
8941 # (2) before a word containing "conftest.", or (3) at the end.
8942 # Note that $ac_compile itself does not contain backslashes and begins
8943 # with a dollar sign (not a hyphen), so the echo should work correctly.
8944 # The option is referenced via a variable to avoid confusing sed.
8945 lt_compile=`echo "$ac_compile" | $SED \
8946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948 -e 's:$: $lt_compiler_flag:'`
8949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8950 (eval "$lt_compile" 2>conftest.err)
8951 ac_status=$?
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 if (exit $ac_status) && test -s "$ac_outfile"; then
8955 # The compiler can only warn and ignore the option if not recognized
8956 # So say no if there are warnings other than the usual output.
8957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8959 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8960 lt_cv_prog_compiler_pic_works=yes
8961 fi
8962 fi
8963 $RM conftest*
8964
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8967 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8968
8969 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8970 case $lt_prog_compiler_pic in
8971 "" | " "*) ;;
8972 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8973 esac
8974 else
8975 lt_prog_compiler_pic=
8976 lt_prog_compiler_can_build_shared=no
8977 fi
8978
8979 fi
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991 #
8992 # Check to make sure the static flag actually works.
8993 #
8994 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8996 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8997 if ${lt_cv_prog_compiler_static_works+:} false; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 lt_cv_prog_compiler_static_works=no
9001 save_LDFLAGS=$LDFLAGS
9002 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9003 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9004 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9005 # The linker can only warn and ignore the option if not recognized
9006 # So say no if there are warnings
9007 if test -s conftest.err; then
9008 # Append any errors to the config.log.
9009 cat conftest.err 1>&5
9010 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9012 if diff conftest.exp conftest.er2 >/dev/null; then
9013 lt_cv_prog_compiler_static_works=yes
9014 fi
9015 else
9016 lt_cv_prog_compiler_static_works=yes
9017 fi
9018 fi
9019 $RM -r conftest*
9020 LDFLAGS=$save_LDFLAGS
9021
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9024 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9025
9026 if test yes = "$lt_cv_prog_compiler_static_works"; then
9027 :
9028 else
9029 lt_prog_compiler_static=
9030 fi
9031
9032
9033
9034
9035
9036
9037
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9040 if ${lt_cv_prog_compiler_c_o+:} false; then :
9041 $as_echo_n "(cached) " >&6
9042 else
9043 lt_cv_prog_compiler_c_o=no
9044 $RM -r conftest 2>/dev/null
9045 mkdir conftest
9046 cd conftest
9047 mkdir out
9048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9049
9050 lt_compiler_flag="-o out/conftest2.$ac_objext"
9051 # Insert the option either (1) after the last *FLAGS variable, or
9052 # (2) before a word containing "conftest.", or (3) at the end.
9053 # Note that $ac_compile itself does not contain backslashes and begins
9054 # with a dollar sign (not a hyphen), so the echo should work correctly.
9055 lt_compile=`echo "$ac_compile" | $SED \
9056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9058 -e 's:$: $lt_compiler_flag:'`
9059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9060 (eval "$lt_compile" 2>out/conftest.err)
9061 ac_status=$?
9062 cat out/conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9065 then
9066 # The compiler can only warn and ignore the option if not recognized
9067 # So say no if there are warnings
9068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9071 lt_cv_prog_compiler_c_o=yes
9072 fi
9073 fi
9074 chmod u+w . 2>&5
9075 $RM conftest*
9076 # SGI C++ compiler will create directory out/ii_files/ for
9077 # template instantiation
9078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9079 $RM out/* && rmdir out
9080 cd ..
9081 $RM -r conftest
9082 $RM conftest*
9083
9084 fi
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9086 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9087
9088
9089
9090
9091
9092
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9094 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9095 if ${lt_cv_prog_compiler_c_o+:} false; then :
9096 $as_echo_n "(cached) " >&6
9097 else
9098 lt_cv_prog_compiler_c_o=no
9099 $RM -r conftest 2>/dev/null
9100 mkdir conftest
9101 cd conftest
9102 mkdir out
9103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9104
9105 lt_compiler_flag="-o out/conftest2.$ac_objext"
9106 # Insert the option either (1) after the last *FLAGS variable, or
9107 # (2) before a word containing "conftest.", or (3) at the end.
9108 # Note that $ac_compile itself does not contain backslashes and begins
9109 # with a dollar sign (not a hyphen), so the echo should work correctly.
9110 lt_compile=`echo "$ac_compile" | $SED \
9111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9113 -e 's:$: $lt_compiler_flag:'`
9114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9115 (eval "$lt_compile" 2>out/conftest.err)
9116 ac_status=$?
9117 cat out/conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9120 then
9121 # The compiler can only warn and ignore the option if not recognized
9122 # So say no if there are warnings
9123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9124 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9125 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9126 lt_cv_prog_compiler_c_o=yes
9127 fi
9128 fi
9129 chmod u+w . 2>&5
9130 $RM conftest*
9131 # SGI C++ compiler will create directory out/ii_files/ for
9132 # template instantiation
9133 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9134 $RM out/* && rmdir out
9135 cd ..
9136 $RM -r conftest
9137 $RM conftest*
9138
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9141 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9142
9143
9144
9145
9146 hard_links=nottested
9147 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9148 # do not overwrite the value of need_locks provided by the user
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9150 $as_echo_n "checking if we can lock with hard links... " >&6; }
9151 hard_links=yes
9152 $RM conftest*
9153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9154 touch conftest.a
9155 ln conftest.a conftest.b 2>&5 || hard_links=no
9156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9158 $as_echo "$hard_links" >&6; }
9159 if test no = "$hard_links"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9161 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9162 need_locks=warn
9163 fi
9164 else
9165 need_locks=no
9166 fi
9167
9168
9169
9170
9171
9172
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9174 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9175
9176 runpath_var=
9177 allow_undefined_flag=
9178 always_export_symbols=no
9179 archive_cmds=
9180 archive_expsym_cmds=
9181 compiler_needs_object=no
9182 enable_shared_with_static_runtimes=no
9183 export_dynamic_flag_spec=
9184 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9185 hardcode_automatic=no
9186 hardcode_direct=no
9187 hardcode_direct_absolute=no
9188 hardcode_libdir_flag_spec=
9189 hardcode_libdir_separator=
9190 hardcode_minus_L=no
9191 hardcode_shlibpath_var=unsupported
9192 inherit_rpath=no
9193 link_all_deplibs=unknown
9194 module_cmds=
9195 module_expsym_cmds=
9196 old_archive_from_new_cmds=
9197 old_archive_from_expsyms_cmds=
9198 thread_safe_flag_spec=
9199 whole_archive_flag_spec=
9200 # include_expsyms should be a list of space-separated symbols to be *always*
9201 # included in the symbol list
9202 include_expsyms=
9203 # exclude_expsyms can be an extended regexp of symbols to exclude
9204 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9205 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9206 # as well as any symbol that contains 'd'.
9207 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9208 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9209 # platforms (ab)use it in PIC code, but their linkers get confused if
9210 # the symbol is explicitly referenced. Since portable code cannot
9211 # rely on this symbol name, it's probably fine to never include it in
9212 # preloaded symbol tables.
9213 # Exclude shared library initialization/finalization symbols.
9214 extract_expsyms_cmds=
9215
9216 case $host_os in
9217 cygwin* | mingw* | pw32* | cegcc*)
9218 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9219 # When not using gcc, we currently assume that we are using
9220 # Microsoft Visual C++.
9221 if test yes != "$GCC"; then
9222 with_gnu_ld=no
9223 fi
9224 ;;
9225 interix*)
9226 # we just hope/assume this is gcc and not c89 (= MSVC++)
9227 with_gnu_ld=yes
9228 ;;
9229 openbsd* | bitrig*)
9230 with_gnu_ld=no
9231 ;;
9232 esac
9233
9234 ld_shlibs=yes
9235
9236 # On some targets, GNU ld is compatible enough with the native linker
9237 # that we're better off using the native interface for both.
9238 lt_use_gnu_ld_interface=no
9239 if test yes = "$with_gnu_ld"; then
9240 case $host_os in
9241 aix*)
9242 # The AIX port of GNU ld has always aspired to compatibility
9243 # with the native linker. However, as the warning in the GNU ld
9244 # block says, versions before 2.19.5* couldn't really create working
9245 # shared libraries, regardless of the interface used.
9246 case `$LD -v 2>&1` in
9247 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9248 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9249 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9250 *)
9251 lt_use_gnu_ld_interface=yes
9252 ;;
9253 esac
9254 ;;
9255 *)
9256 lt_use_gnu_ld_interface=yes
9257 ;;
9258 esac
9259 fi
9260
9261 if test yes = "$lt_use_gnu_ld_interface"; then
9262 # If archive_cmds runs LD, not CC, wlarc should be empty
9263 wlarc='$wl'
9264
9265 # Set some defaults for GNU ld with shared library support. These
9266 # are reset later if shared libraries are not supported. Putting them
9267 # here allows them to be overridden if necessary.
9268 runpath_var=LD_RUN_PATH
9269 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9270 export_dynamic_flag_spec='$wl--export-dynamic'
9271 # ancient GNU ld didn't support --whole-archive et. al.
9272 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9273 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9274 else
9275 whole_archive_flag_spec=
9276 fi
9277 supports_anon_versioning=no
9278 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9279 *GNU\ gold*) supports_anon_versioning=yes ;;
9280 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9281 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9282 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9283 *\ 2.11.*) ;; # other 2.11 versions
9284 *) supports_anon_versioning=yes ;;
9285 esac
9286
9287 # See if GNU ld supports shared libraries.
9288 case $host_os in
9289 aix[3-9]*)
9290 # On AIX/PPC, the GNU linker is very broken
9291 if test ia64 != "$host_cpu"; then
9292 ld_shlibs=no
9293 cat <<_LT_EOF 1>&2
9294
9295 *** Warning: the GNU linker, at least up to release 2.19, is reported
9296 *** to be unable to reliably create shared libraries on AIX.
9297 *** Therefore, libtool is disabling shared libraries support. If you
9298 *** really care for shared libraries, you may want to install binutils
9299 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9300 *** You will then need to restart the configuration process.
9301
9302 _LT_EOF
9303 fi
9304 ;;
9305
9306 amigaos*)
9307 case $host_cpu in
9308 powerpc)
9309 # see comment about AmigaOS4 .so support
9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9311 archive_expsym_cmds=''
9312 ;;
9313 m68k)
9314 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)'
9315 hardcode_libdir_flag_spec='-L$libdir'
9316 hardcode_minus_L=yes
9317 ;;
9318 esac
9319 ;;
9320
9321 beos*)
9322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323 allow_undefined_flag=unsupported
9324 # Joseph Beckenbach <[email protected]> says some releases of gcc
9325 # support --undefined. This deserves some investigation. FIXME
9326 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9327 else
9328 ld_shlibs=no
9329 fi
9330 ;;
9331
9332 cygwin* | mingw* | pw32* | cegcc*)
9333 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9334 # as there is no search path for DLLs.
9335 hardcode_libdir_flag_spec='-L$libdir'
9336 export_dynamic_flag_spec='$wl--export-all-symbols'
9337 allow_undefined_flag=unsupported
9338 always_export_symbols=no
9339 enable_shared_with_static_runtimes=yes
9340 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'
9341 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9342
9343 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9345 # If the export-symbols file already is a .def file, use it as
9346 # is; otherwise, prepend EXPORTS...
9347 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9348 cp $export_symbols $output_objdir/$soname.def;
9349 else
9350 echo EXPORTS > $output_objdir/$soname.def;
9351 cat $export_symbols >> $output_objdir/$soname.def;
9352 fi~
9353 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9354 else
9355 ld_shlibs=no
9356 fi
9357 ;;
9358
9359 haiku*)
9360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9361 link_all_deplibs=yes
9362 ;;
9363
9364 os2*)
9365 hardcode_libdir_flag_spec='-L$libdir'
9366 hardcode_minus_L=yes
9367 allow_undefined_flag=unsupported
9368 shrext_cmds=.dll
9369 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9370 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9371 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9372 $ECHO EXPORTS >> $output_objdir/$libname.def~
9373 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9374 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9375 emximp -o $lib $output_objdir/$libname.def'
9376 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9377 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9378 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9379 $ECHO EXPORTS >> $output_objdir/$libname.def~
9380 prefix_cmds="$SED"~
9381 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9382 prefix_cmds="$prefix_cmds -e 1d";
9383 fi~
9384 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9385 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9386 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9387 emximp -o $lib $output_objdir/$libname.def'
9388 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9389 enable_shared_with_static_runtimes=yes
9390 ;;
9391
9392 interix[3-9]*)
9393 hardcode_direct=no
9394 hardcode_shlibpath_var=no
9395 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9396 export_dynamic_flag_spec='$wl-E'
9397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9398 # Instead, shared libraries are loaded at an image base (0x10000000 by
9399 # default) and relocated if they conflict, which is a slow very memory
9400 # consuming and fragmenting process. To avoid this, we pick a random,
9401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9402 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9404 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'
9405 ;;
9406
9407 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9408 tmp_diet=no
9409 if test linux-dietlibc = "$host_os"; then
9410 case $cc_basename in
9411 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9412 esac
9413 fi
9414 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9415 && test no = "$tmp_diet"
9416 then
9417 tmp_addflag=' $pic_flag'
9418 tmp_sharedflag='-shared'
9419 case $cc_basename,$host_cpu in
9420 pgcc*) # Portland Group C compiler
9421 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'
9422 tmp_addflag=' $pic_flag'
9423 ;;
9424 pgf77* | pgf90* | pgf95* | pgfortran*)
9425 # Portland Group f77 and f90 compilers
9426 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'
9427 tmp_addflag=' $pic_flag -Mnomain' ;;
9428 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9429 tmp_addflag=' -i_dynamic' ;;
9430 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9431 tmp_addflag=' -i_dynamic -nofor_main' ;;
9432 ifc* | ifort*) # Intel Fortran compiler
9433 tmp_addflag=' -nofor_main' ;;
9434 lf95*) # Lahey Fortran 8.1
9435 whole_archive_flag_spec=
9436 tmp_sharedflag='--shared' ;;
9437 nagfor*) # NAGFOR 5.3
9438 tmp_sharedflag='-Wl,-shared' ;;
9439 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9440 tmp_sharedflag='-qmkshrobj'
9441 tmp_addflag= ;;
9442 nvcc*) # Cuda Compiler Driver 2.2
9443 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'
9444 compiler_needs_object=yes
9445 ;;
9446 esac
9447 case `$CC -V 2>&1 | sed 5q` in
9448 *Sun\ C*) # Sun C 5.9
9449 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'
9450 compiler_needs_object=yes
9451 tmp_sharedflag='-G' ;;
9452 *Sun\ F*) # Sun Fortran 8.3
9453 tmp_sharedflag='-G' ;;
9454 esac
9455 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9456
9457 if test yes = "$supports_anon_versioning"; then
9458 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9459 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9460 echo "local: *; };" >> $output_objdir/$libname.ver~
9461 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9462 fi
9463
9464 case $cc_basename in
9465 tcc*)
9466 export_dynamic_flag_spec='-rdynamic'
9467 ;;
9468 xlf* | bgf* | bgxlf* | mpixlf*)
9469 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9470 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9471 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9472 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9473 if test yes = "$supports_anon_versioning"; then
9474 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9476 echo "local: *; };" >> $output_objdir/$libname.ver~
9477 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9478 fi
9479 ;;
9480 esac
9481 else
9482 ld_shlibs=no
9483 fi
9484 ;;
9485
9486 netbsd*)
9487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9488 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9489 wlarc=
9490 else
9491 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9492 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9493 fi
9494 ;;
9495
9496 solaris*)
9497 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9498 ld_shlibs=no
9499 cat <<_LT_EOF 1>&2
9500
9501 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9502 *** create shared libraries on Solaris systems. Therefore, libtool
9503 *** is disabling shared libraries support. We urge you to upgrade GNU
9504 *** binutils to release 2.9.1 or newer. Another option is to modify
9505 *** your PATH or compiler configuration so that the native linker is
9506 *** used, and then restart.
9507
9508 _LT_EOF
9509 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9510 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9511 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9512 else
9513 ld_shlibs=no
9514 fi
9515 ;;
9516
9517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9518 case `$LD -v 2>&1` in
9519 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9520 ld_shlibs=no
9521 cat <<_LT_EOF 1>&2
9522
9523 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9524 *** reliably create shared libraries on SCO systems. Therefore, libtool
9525 *** is disabling shared libraries support. We urge you to upgrade GNU
9526 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9527 *** your PATH or compiler configuration so that the native linker is
9528 *** used, and then restart.
9529
9530 _LT_EOF
9531 ;;
9532 *)
9533 # For security reasons, it is highly recommended that you always
9534 # use absolute paths for naming shared libraries, and exclude the
9535 # DT_RUNPATH tag from executables and libraries. But doing so
9536 # requires that you compile everything twice, which is a pain.
9537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9538 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9540 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9541 else
9542 ld_shlibs=no
9543 fi
9544 ;;
9545 esac
9546 ;;
9547
9548 sunos4*)
9549 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9550 wlarc=
9551 hardcode_direct=yes
9552 hardcode_shlibpath_var=no
9553 ;;
9554
9555 *)
9556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9557 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9558 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9559 else
9560 ld_shlibs=no
9561 fi
9562 ;;
9563 esac
9564
9565 if test no = "$ld_shlibs"; then
9566 runpath_var=
9567 hardcode_libdir_flag_spec=
9568 export_dynamic_flag_spec=
9569 whole_archive_flag_spec=
9570 fi
9571 else
9572 # PORTME fill in a description of your system's linker (not GNU ld)
9573 case $host_os in
9574 aix3*)
9575 allow_undefined_flag=unsupported
9576 always_export_symbols=yes
9577 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'
9578 # Note: this linker hardcodes the directories in LIBPATH if there
9579 # are no directories specified by -L.
9580 hardcode_minus_L=yes
9581 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9582 # Neither direct hardcoding nor static linking is supported with a
9583 # broken collect2.
9584 hardcode_direct=unsupported
9585 fi
9586 ;;
9587
9588 aix[4-9]*)
9589 if test ia64 = "$host_cpu"; then
9590 # On IA64, the linker does run time linking by default, so we don't
9591 # have to do anything special.
9592 aix_use_runtimelinking=no
9593 exp_sym_flag='-Bexport'
9594 no_entry_flag=
9595 else
9596 # If we're using GNU nm, then we don't want the "-C" option.
9597 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9598 # Without the "-l" option, or with the "-B" option, AIX nm treats
9599 # weak defined symbols like other global defined symbols, whereas
9600 # GNU nm marks them as "W".
9601 # While the 'weak' keyword is ignored in the Export File, we need
9602 # it in the Import File for the 'aix-soname' feature, so we have
9603 # to replace the "-B" option with "-P" for AIX nm.
9604 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9605 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'
9606 else
9607 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 == "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'
9608 fi
9609 aix_use_runtimelinking=no
9610
9611 # Test if we are trying to use run time linking or normal
9612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9613 # have runtime linking enabled, and use it for executables.
9614 # For shared libraries, we enable/disable runtime linking
9615 # depending on the kind of the shared library created -
9616 # when "with_aix_soname,aix_use_runtimelinking" is:
9617 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9618 # "aix,yes" lib.so shared, rtl:yes, for executables
9619 # lib.a static archive
9620 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9621 # lib.a(lib.so.V) shared, rtl:no, for executables
9622 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9623 # lib.a(lib.so.V) shared, rtl:no
9624 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9625 # lib.a static archive
9626 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9627 for ld_flag in $LDFLAGS; do
9628 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9629 aix_use_runtimelinking=yes
9630 break
9631 fi
9632 done
9633 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9634 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9635 # so we don't have lib.a shared libs to link our executables.
9636 # We have to force runtime linking in this case.
9637 aix_use_runtimelinking=yes
9638 LDFLAGS="$LDFLAGS -Wl,-brtl"
9639 fi
9640 ;;
9641 esac
9642
9643 exp_sym_flag='-bexport'
9644 no_entry_flag='-bnoentry'
9645 fi
9646
9647 # When large executables or shared objects are built, AIX ld can
9648 # have problems creating the table of contents. If linking a library
9649 # or program results in "error TOC overflow" add -mminimal-toc to
9650 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9651 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9652
9653 archive_cmds=''
9654 hardcode_direct=yes
9655 hardcode_direct_absolute=yes
9656 hardcode_libdir_separator=':'
9657 link_all_deplibs=yes
9658 file_list_spec='$wl-f,'
9659 case $with_aix_soname,$aix_use_runtimelinking in
9660 aix,*) ;; # traditional, no import file
9661 svr4,* | *,yes) # use import file
9662 # The Import File defines what to hardcode.
9663 hardcode_direct=no
9664 hardcode_direct_absolute=no
9665 ;;
9666 esac
9667
9668 if test yes = "$GCC"; then
9669 case $host_os in aix4.[012]|aix4.[012].*)
9670 # We only want to do this on AIX 4.2 and lower, the check
9671 # below for broken collect2 doesn't work under 4.3+
9672 collect2name=`$CC -print-prog-name=collect2`
9673 if test -f "$collect2name" &&
9674 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9675 then
9676 # We have reworked collect2
9677 :
9678 else
9679 # We have old collect2
9680 hardcode_direct=unsupported
9681 # It fails to find uninstalled libraries when the uninstalled
9682 # path is not listed in the libpath. Setting hardcode_minus_L
9683 # to unsupported forces relinking
9684 hardcode_minus_L=yes
9685 hardcode_libdir_flag_spec='-L$libdir'
9686 hardcode_libdir_separator=
9687 fi
9688 ;;
9689 esac
9690 shared_flag='-shared'
9691 if test yes = "$aix_use_runtimelinking"; then
9692 shared_flag="$shared_flag "'$wl-G'
9693 fi
9694 # Need to ensure runtime linking is disabled for the traditional
9695 # shared library, or the linker may eventually find shared libraries
9696 # /with/ Import File - we do not want to mix them.
9697 shared_flag_aix='-shared'
9698 shared_flag_svr4='-shared $wl-G'
9699 else
9700 # not using gcc
9701 if test ia64 = "$host_cpu"; then
9702 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9703 # chokes on -Wl,-G. The following line is correct:
9704 shared_flag='-G'
9705 else
9706 if test yes = "$aix_use_runtimelinking"; then
9707 shared_flag='$wl-G'
9708 else
9709 shared_flag='$wl-bM:SRE'
9710 fi
9711 shared_flag_aix='$wl-bM:SRE'
9712 shared_flag_svr4='$wl-G'
9713 fi
9714 fi
9715
9716 export_dynamic_flag_spec='$wl-bexpall'
9717 # It seems that -bexpall does not export symbols beginning with
9718 # underscore (_), so it is better to generate a list of symbols to export.
9719 always_export_symbols=yes
9720 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9721 # Warning - without using the other runtime loading flags (-brtl),
9722 # -berok will link without error, but may produce a broken library.
9723 allow_undefined_flag='-berok'
9724 # Determine the default libpath from the value encoded in an
9725 # empty executable.
9726 if test set = "${lt_cv_aix_libpath+set}"; then
9727 aix_libpath=$lt_cv_aix_libpath
9728 else
9729 if ${lt_cv_aix_libpath_+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9734
9735 int
9736 main ()
9737 {
9738
9739 ;
9740 return 0;
9741 }
9742 _ACEOF
9743 if ac_fn_c_try_link "$LINENO"; then :
9744
9745 lt_aix_libpath_sed='
9746 /Import File Strings/,/^$/ {
9747 /^0/ {
9748 s/^0 *\([^ ]*\) *$/\1/
9749 p
9750 }
9751 }'
9752 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9753 # Check for a 64-bit object if we didn't find anything.
9754 if test -z "$lt_cv_aix_libpath_"; then
9755 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756 fi
9757 fi
9758 rm -f core conftest.err conftest.$ac_objext \
9759 conftest$ac_exeext conftest.$ac_ext
9760 if test -z "$lt_cv_aix_libpath_"; then
9761 lt_cv_aix_libpath_=/usr/lib:/lib
9762 fi
9763
9764 fi
9765
9766 aix_libpath=$lt_cv_aix_libpath_
9767 fi
9768
9769 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9770 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
9771 else
9772 if test ia64 = "$host_cpu"; then
9773 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9774 allow_undefined_flag="-z nodefs"
9775 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"
9776 else
9777 # Determine the default libpath from the value encoded in an
9778 # empty executable.
9779 if test set = "${lt_cv_aix_libpath+set}"; then
9780 aix_libpath=$lt_cv_aix_libpath
9781 else
9782 if ${lt_cv_aix_libpath_+:} false; then :
9783 $as_echo_n "(cached) " >&6
9784 else
9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h. */
9787
9788 int
9789 main ()
9790 {
9791
9792 ;
9793 return 0;
9794 }
9795 _ACEOF
9796 if ac_fn_c_try_link "$LINENO"; then :
9797
9798 lt_aix_libpath_sed='
9799 /Import File Strings/,/^$/ {
9800 /^0/ {
9801 s/^0 *\([^ ]*\) *$/\1/
9802 p
9803 }
9804 }'
9805 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9806 # Check for a 64-bit object if we didn't find anything.
9807 if test -z "$lt_cv_aix_libpath_"; then
9808 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9809 fi
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813 if test -z "$lt_cv_aix_libpath_"; then
9814 lt_cv_aix_libpath_=/usr/lib:/lib
9815 fi
9816
9817 fi
9818
9819 aix_libpath=$lt_cv_aix_libpath_
9820 fi
9821
9822 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9823 # Warning - without using the other run time loading flags,
9824 # -berok will link without error, but may produce a broken library.
9825 no_undefined_flag=' $wl-bernotok'
9826 allow_undefined_flag=' $wl-berok'
9827 if test yes = "$with_gnu_ld"; then
9828 # We only use this code for GNU lds that support --whole-archive.
9829 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9830 else
9831 # Exported symbols can be pulled into shared objects from archives
9832 whole_archive_flag_spec='$convenience'
9833 fi
9834 archive_cmds_need_lc=yes
9835 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9836 # -brtl affects multiple linker settings, -berok does not and is overridden later
9837 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9838 if test svr4 != "$with_aix_soname"; then
9839 # This is similar to how AIX traditionally builds its shared libraries.
9840 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'
9841 fi
9842 if test aix != "$with_aix_soname"; then
9843 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'
9844 else
9845 # used by -dlpreopen to get the symbols
9846 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9847 fi
9848 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9849 fi
9850 fi
9851 ;;
9852
9853 amigaos*)
9854 case $host_cpu in
9855 powerpc)
9856 # see comment about AmigaOS4 .so support
9857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9858 archive_expsym_cmds=''
9859 ;;
9860 m68k)
9861 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)'
9862 hardcode_libdir_flag_spec='-L$libdir'
9863 hardcode_minus_L=yes
9864 ;;
9865 esac
9866 ;;
9867
9868 bsdi[45]*)
9869 export_dynamic_flag_spec=-rdynamic
9870 ;;
9871
9872 cygwin* | mingw* | pw32* | cegcc*)
9873 # When not using gcc, we currently assume that we are using
9874 # Microsoft Visual C++.
9875 # hardcode_libdir_flag_spec is actually meaningless, as there is
9876 # no search path for DLLs.
9877 case $cc_basename in
9878 cl*)
9879 # Native MSVC
9880 hardcode_libdir_flag_spec=' '
9881 allow_undefined_flag=unsupported
9882 always_export_symbols=yes
9883 file_list_spec='@'
9884 # Tell ltmain to make .lib files, not .a files.
9885 libext=lib
9886 # Tell ltmain to make .dll files, not .so files.
9887 shrext_cmds=.dll
9888 # FIXME: Setting linknames here is a bad hack.
9889 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9890 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9891 cp "$export_symbols" "$output_objdir/$soname.def";
9892 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9893 else
9894 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9895 fi~
9896 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9897 linknames='
9898 # The linker will not automatically build a static lib if we build a DLL.
9899 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9900 enable_shared_with_static_runtimes=yes
9901 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9903 # Don't use ranlib
9904 old_postinstall_cmds='chmod 644 $oldlib'
9905 postlink_cmds='lt_outputfile="@OUTPUT@"~
9906 lt_tool_outputfile="@TOOL_OUTPUT@"~
9907 case $lt_outputfile in
9908 *.exe|*.EXE) ;;
9909 *)
9910 lt_outputfile=$lt_outputfile.exe
9911 lt_tool_outputfile=$lt_tool_outputfile.exe
9912 ;;
9913 esac~
9914 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9915 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9916 $RM "$lt_outputfile.manifest";
9917 fi'
9918 ;;
9919 *)
9920 # Assume MSVC wrapper
9921 hardcode_libdir_flag_spec=' '
9922 allow_undefined_flag=unsupported
9923 # Tell ltmain to make .lib files, not .a files.
9924 libext=lib
9925 # Tell ltmain to make .dll files, not .so files.
9926 shrext_cmds=.dll
9927 # FIXME: Setting linknames here is a bad hack.
9928 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9929 # The linker will automatically build a .lib file if we build a DLL.
9930 old_archive_from_new_cmds='true'
9931 # FIXME: Should let the user specify the lib program.
9932 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9933 enable_shared_with_static_runtimes=yes
9934 ;;
9935 esac
9936 ;;
9937
9938 darwin* | rhapsody*)
9939
9940
9941 archive_cmds_need_lc=no
9942 hardcode_direct=no
9943 hardcode_automatic=yes
9944 hardcode_shlibpath_var=unsupported
9945 if test yes = "$lt_cv_ld_force_load"; then
9946 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\"`'
9947
9948 else
9949 whole_archive_flag_spec=''
9950 fi
9951 link_all_deplibs=yes
9952 allow_undefined_flag=$_lt_dar_allow_undefined
9953 case $cc_basename in
9954 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9955 *) _lt_dar_can_shared=$GCC ;;
9956 esac
9957 if test yes = "$_lt_dar_can_shared"; then
9958 output_verbose_link_cmd=func_echo_all
9959 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9960 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9961 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"
9962 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"
9963
9964 else
9965 ld_shlibs=no
9966 fi
9967
9968 ;;
9969
9970 dgux*)
9971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_libdir_flag_spec='-L$libdir'
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9977 # support. Future versions do this automatically, but an explicit c++rt0.o
9978 # does not break anything, and helps significantly (at the cost of a little
9979 # extra space).
9980 freebsd2.2*)
9981 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9982 hardcode_libdir_flag_spec='-R$libdir'
9983 hardcode_direct=yes
9984 hardcode_shlibpath_var=no
9985 ;;
9986
9987 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9988 freebsd2.*)
9989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_direct=yes
9991 hardcode_minus_L=yes
9992 hardcode_shlibpath_var=no
9993 ;;
9994
9995 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9996 freebsd* | dragonfly*)
9997 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9998 hardcode_libdir_flag_spec='-R$libdir'
9999 hardcode_direct=yes
10000 hardcode_shlibpath_var=no
10001 ;;
10002
10003 hpux9*)
10004 if test yes = "$GCC"; then
10005 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'
10006 else
10007 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'
10008 fi
10009 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10010 hardcode_libdir_separator=:
10011 hardcode_direct=yes
10012
10013 # hardcode_minus_L: Not really in the search PATH,
10014 # but as the default location of the library.
10015 hardcode_minus_L=yes
10016 export_dynamic_flag_spec='$wl-E'
10017 ;;
10018
10019 hpux10*)
10020 if test yes,no = "$GCC,$with_gnu_ld"; then
10021 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10022 else
10023 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10024 fi
10025 if test no = "$with_gnu_ld"; then
10026 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10027 hardcode_libdir_separator=:
10028 hardcode_direct=yes
10029 hardcode_direct_absolute=yes
10030 export_dynamic_flag_spec='$wl-E'
10031 # hardcode_minus_L: Not really in the search PATH,
10032 # but as the default location of the library.
10033 hardcode_minus_L=yes
10034 fi
10035 ;;
10036
10037 hpux11*)
10038 if test yes,no = "$GCC,$with_gnu_ld"; then
10039 case $host_cpu in
10040 hppa*64*)
10041 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 ;;
10043 ia64*)
10044 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10045 ;;
10046 *)
10047 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10048 ;;
10049 esac
10050 else
10051 case $host_cpu in
10052 hppa*64*)
10053 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 ;;
10055 ia64*)
10056 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10057 ;;
10058 *)
10059
10060 # Older versions of the 11.00 compiler do not understand -b yet
10061 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10063 $as_echo_n "checking if $CC understands -b... " >&6; }
10064 if ${lt_cv_prog_compiler__b+:} false; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 lt_cv_prog_compiler__b=no
10068 save_LDFLAGS=$LDFLAGS
10069 LDFLAGS="$LDFLAGS -b"
10070 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10072 # The linker can only warn and ignore the option if not recognized
10073 # So say no if there are warnings
10074 if test -s conftest.err; then
10075 # Append any errors to the config.log.
10076 cat conftest.err 1>&5
10077 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10079 if diff conftest.exp conftest.er2 >/dev/null; then
10080 lt_cv_prog_compiler__b=yes
10081 fi
10082 else
10083 lt_cv_prog_compiler__b=yes
10084 fi
10085 fi
10086 $RM -r conftest*
10087 LDFLAGS=$save_LDFLAGS
10088
10089 fi
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10091 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10092
10093 if test yes = "$lt_cv_prog_compiler__b"; then
10094 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10095 else
10096 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10097 fi
10098
10099 ;;
10100 esac
10101 fi
10102 if test no = "$with_gnu_ld"; then
10103 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10104 hardcode_libdir_separator=:
10105
10106 case $host_cpu in
10107 hppa*64*|ia64*)
10108 hardcode_direct=no
10109 hardcode_shlibpath_var=no
10110 ;;
10111 *)
10112 hardcode_direct=yes
10113 hardcode_direct_absolute=yes
10114 export_dynamic_flag_spec='$wl-E'
10115
10116 # hardcode_minus_L: Not really in the search PATH,
10117 # but as the default location of the library.
10118 hardcode_minus_L=yes
10119 ;;
10120 esac
10121 fi
10122 ;;
10123
10124 irix5* | irix6* | nonstopux*)
10125 if test yes = "$GCC"; then
10126 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'
10127 # Try to use the -exported_symbol ld option, if it does not
10128 # work, assume that -exports_file does not work either and
10129 # implicitly export all symbols.
10130 # This should be the same for all languages, so no per-tag cache variable.
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10132 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10133 if ${lt_cv_irix_exported_symbol+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 save_LDFLAGS=$LDFLAGS
10137 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h. */
10140 int foo (void) { return 0; }
10141 _ACEOF
10142 if ac_fn_c_try_link "$LINENO"; then :
10143 lt_cv_irix_exported_symbol=yes
10144 else
10145 lt_cv_irix_exported_symbol=no
10146 fi
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 LDFLAGS=$save_LDFLAGS
10150 fi
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10152 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10153 if test yes = "$lt_cv_irix_exported_symbol"; then
10154 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'
10155 fi
10156 else
10157 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'
10158 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'
10159 fi
10160 archive_cmds_need_lc='no'
10161 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10162 hardcode_libdir_separator=:
10163 inherit_rpath=yes
10164 link_all_deplibs=yes
10165 ;;
10166
10167 linux*)
10168 case $cc_basename in
10169 tcc*)
10170 # Fabrice Bellard et al's Tiny C Compiler
10171 ld_shlibs=yes
10172 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10173 ;;
10174 esac
10175 ;;
10176
10177 netbsd*)
10178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10180 else
10181 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10182 fi
10183 hardcode_libdir_flag_spec='-R$libdir'
10184 hardcode_direct=yes
10185 hardcode_shlibpath_var=no
10186 ;;
10187
10188 newsos6)
10189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190 hardcode_direct=yes
10191 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10192 hardcode_libdir_separator=:
10193 hardcode_shlibpath_var=no
10194 ;;
10195
10196 *nto* | *qnx*)
10197 ;;
10198
10199 openbsd* | bitrig*)
10200 if test -f /usr/libexec/ld.so; then
10201 hardcode_direct=yes
10202 hardcode_shlibpath_var=no
10203 hardcode_direct_absolute=yes
10204 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10205 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10206 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10207 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10208 export_dynamic_flag_spec='$wl-E'
10209 else
10210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10211 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10212 fi
10213 else
10214 ld_shlibs=no
10215 fi
10216 ;;
10217
10218 os2*)
10219 hardcode_libdir_flag_spec='-L$libdir'
10220 hardcode_minus_L=yes
10221 allow_undefined_flag=unsupported
10222 shrext_cmds=.dll
10223 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10224 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10225 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10226 $ECHO EXPORTS >> $output_objdir/$libname.def~
10227 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10228 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10229 emximp -o $lib $output_objdir/$libname.def'
10230 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10231 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10232 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10233 $ECHO EXPORTS >> $output_objdir/$libname.def~
10234 prefix_cmds="$SED"~
10235 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10236 prefix_cmds="$prefix_cmds -e 1d";
10237 fi~
10238 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10239 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10240 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10241 emximp -o $lib $output_objdir/$libname.def'
10242 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10243 enable_shared_with_static_runtimes=yes
10244 ;;
10245
10246 osf3*)
10247 if test yes = "$GCC"; then
10248 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10249 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'
10250 else
10251 allow_undefined_flag=' -expect_unresolved \*'
10252 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'
10253 fi
10254 archive_cmds_need_lc='no'
10255 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10256 hardcode_libdir_separator=:
10257 ;;
10258
10259 osf4* | osf5*) # as osf3* with the addition of -msym flag
10260 if test yes = "$GCC"; then
10261 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10262 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'
10263 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10264 else
10265 allow_undefined_flag=' -expect_unresolved \*'
10266 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'
10267 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~
10268 $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'
10269
10270 # Both c and cxx compiler support -rpath directly
10271 hardcode_libdir_flag_spec='-rpath $libdir'
10272 fi
10273 archive_cmds_need_lc='no'
10274 hardcode_libdir_separator=:
10275 ;;
10276
10277 solaris*)
10278 no_undefined_flag=' -z defs'
10279 if test yes = "$GCC"; then
10280 wlarc='$wl'
10281 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10282 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10283 $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'
10284 else
10285 case `$CC -V 2>&1` in
10286 *"Compilers 5.0"*)
10287 wlarc=''
10288 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10290 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10291 ;;
10292 *)
10293 wlarc='$wl'
10294 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10297 ;;
10298 esac
10299 fi
10300 hardcode_libdir_flag_spec='-R$libdir'
10301 hardcode_shlibpath_var=no
10302 case $host_os in
10303 solaris2.[0-5] | solaris2.[0-5].*) ;;
10304 *)
10305 # The compiler driver will combine and reorder linker options,
10306 # but understands '-z linker_flag'. GCC discards it without '$wl',
10307 # but is careful enough not to reorder.
10308 # Supported since Solaris 2.6 (maybe 2.5.1?)
10309 if test yes = "$GCC"; then
10310 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10311 else
10312 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10313 fi
10314 ;;
10315 esac
10316 link_all_deplibs=yes
10317 ;;
10318
10319 sunos4*)
10320 if test sequent = "$host_vendor"; then
10321 # Use $CC to link under sequent, because it throws in some extra .o
10322 # files that make .init and .fini sections work.
10323 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10324 else
10325 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10326 fi
10327 hardcode_libdir_flag_spec='-L$libdir'
10328 hardcode_direct=yes
10329 hardcode_minus_L=yes
10330 hardcode_shlibpath_var=no
10331 ;;
10332
10333 sysv4)
10334 case $host_vendor in
10335 sni)
10336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337 hardcode_direct=yes # is this really true???
10338 ;;
10339 siemens)
10340 ## LD is ld it makes a PLAMLIB
10341 ## CC just makes a GrossModule.
10342 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10343 reload_cmds='$CC -r -o $output$reload_objs'
10344 hardcode_direct=no
10345 ;;
10346 motorola)
10347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10348 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10349 ;;
10350 esac
10351 runpath_var='LD_RUN_PATH'
10352 hardcode_shlibpath_var=no
10353 ;;
10354
10355 sysv4.3*)
10356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357 hardcode_shlibpath_var=no
10358 export_dynamic_flag_spec='-Bexport'
10359 ;;
10360
10361 sysv4*MP*)
10362 if test -d /usr/nec; then
10363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364 hardcode_shlibpath_var=no
10365 runpath_var=LD_RUN_PATH
10366 hardcode_runpath_var=yes
10367 ld_shlibs=yes
10368 fi
10369 ;;
10370
10371 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10372 no_undefined_flag='$wl-z,text'
10373 archive_cmds_need_lc=no
10374 hardcode_shlibpath_var=no
10375 runpath_var='LD_RUN_PATH'
10376
10377 if test yes = "$GCC"; then
10378 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10379 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 else
10381 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10382 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10383 fi
10384 ;;
10385
10386 sysv5* | sco3.2v5* | sco5v6*)
10387 # Note: We CANNOT use -z defs as we might desire, because we do not
10388 # link with -lc, and that would cause any symbols used from libc to
10389 # always be unresolved, which means just about no library would
10390 # ever link correctly. If we're not using GNU ld we use -z text
10391 # though, which does catch some bad symbols but isn't as heavy-handed
10392 # as -z defs.
10393 no_undefined_flag='$wl-z,text'
10394 allow_undefined_flag='$wl-z,nodefs'
10395 archive_cmds_need_lc=no
10396 hardcode_shlibpath_var=no
10397 hardcode_libdir_flag_spec='$wl-R,$libdir'
10398 hardcode_libdir_separator=':'
10399 link_all_deplibs=yes
10400 export_dynamic_flag_spec='$wl-Bexport'
10401 runpath_var='LD_RUN_PATH'
10402
10403 if test yes = "$GCC"; then
10404 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10405 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406 else
10407 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10408 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10409 fi
10410 ;;
10411
10412 uts4*)
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_libdir_flag_spec='-L$libdir'
10415 hardcode_shlibpath_var=no
10416 ;;
10417
10418 *)
10419 ld_shlibs=no
10420 ;;
10421 esac
10422
10423 if test sni = "$host_vendor"; then
10424 case $host in
10425 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10426 export_dynamic_flag_spec='$wl-Blargedynsym'
10427 ;;
10428 esac
10429 fi
10430 fi
10431
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10433 $as_echo "$ld_shlibs" >&6; }
10434 test no = "$ld_shlibs" && can_build_shared=no
10435
10436 with_gnu_ld=$with_gnu_ld
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452 #
10453 # Do we need to explicitly link libc?
10454 #
10455 case "x$archive_cmds_need_lc" in
10456 x|xyes)
10457 # Assume -lc should be added
10458 archive_cmds_need_lc=yes
10459
10460 if test yes,yes = "$GCC,$enable_shared"; then
10461 case $archive_cmds in
10462 *'~'*)
10463 # FIXME: we may have to deal with multi-command sequences.
10464 ;;
10465 '$CC '*)
10466 # Test whether the compiler implicitly links with -lc since on some
10467 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10468 # to ld, don't add -lc before -lgcc.
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10470 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10471 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 $RM conftest*
10475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10476
10477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10478 (eval $ac_compile) 2>&5
10479 ac_status=$?
10480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10481 test $ac_status = 0; } 2>conftest.err; then
10482 soname=conftest
10483 lib=conftest
10484 libobjs=conftest.$ac_objext
10485 deplibs=
10486 wl=$lt_prog_compiler_wl
10487 pic_flag=$lt_prog_compiler_pic
10488 compiler_flags=-v
10489 linker_flags=-v
10490 verstring=
10491 output_objdir=.
10492 libname=conftest
10493 lt_save_allow_undefined_flag=$allow_undefined_flag
10494 allow_undefined_flag=
10495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10496 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10497 ac_status=$?
10498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10499 test $ac_status = 0; }
10500 then
10501 lt_cv_archive_cmds_need_lc=no
10502 else
10503 lt_cv_archive_cmds_need_lc=yes
10504 fi
10505 allow_undefined_flag=$lt_save_allow_undefined_flag
10506 else
10507 cat conftest.err 1>&5
10508 fi
10509 $RM conftest*
10510
10511 fi
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10513 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10514 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10515 ;;
10516 esac
10517 fi
10518 ;;
10519 esac
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10673 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10674
10675 if test yes = "$GCC"; then
10676 case $host_os in
10677 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10678 *) lt_awk_arg='/^libraries:/' ;;
10679 esac
10680 case $host_os in
10681 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10682 *) lt_sed_strip_eq='s|=/|/|g' ;;
10683 esac
10684 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10685 case $lt_search_path_spec in
10686 *\;*)
10687 # if the path contains ";" then we assume it to be the separator
10688 # otherwise default to the standard path separator (i.e. ":") - it is
10689 # assumed that no part of a normal pathname contains ";" but that should
10690 # okay in the real world where ";" in dirpaths is itself problematic.
10691 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10692 ;;
10693 *)
10694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10695 ;;
10696 esac
10697 # Ok, now we have the path, separated by spaces, we can step through it
10698 # and add multilib dir if necessary...
10699 lt_tmp_lt_search_path_spec=
10700 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10701 # ...but if some path component already ends with the multilib dir we assume
10702 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10703 case "$lt_multi_os_dir; $lt_search_path_spec " in
10704 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10705 lt_multi_os_dir=
10706 ;;
10707 esac
10708 for lt_sys_path in $lt_search_path_spec; do
10709 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10711 elif test -n "$lt_multi_os_dir"; then
10712 test -d "$lt_sys_path" && \
10713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10714 fi
10715 done
10716 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10717 BEGIN {RS = " "; FS = "/|\n";} {
10718 lt_foo = "";
10719 lt_count = 0;
10720 for (lt_i = NF; lt_i > 0; lt_i--) {
10721 if ($lt_i != "" && $lt_i != ".") {
10722 if ($lt_i == "..") {
10723 lt_count++;
10724 } else {
10725 if (lt_count == 0) {
10726 lt_foo = "/" $lt_i lt_foo;
10727 } else {
10728 lt_count--;
10729 }
10730 }
10731 }
10732 }
10733 if (lt_foo != "") { lt_freq[lt_foo]++; }
10734 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10735 }'`
10736 # AWK program above erroneously prepends '/' to C:/dos/paths
10737 # for these hosts.
10738 case $host_os in
10739 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10740 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10741 esac
10742 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10743 else
10744 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10745 fi
10746 library_names_spec=
10747 libname_spec='lib$name'
10748 soname_spec=
10749 shrext_cmds=.so
10750 postinstall_cmds=
10751 postuninstall_cmds=
10752 finish_cmds=
10753 finish_eval=
10754 shlibpath_var=
10755 shlibpath_overrides_runpath=unknown
10756 version_type=none
10757 dynamic_linker="$host_os ld.so"
10758 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10759 need_lib_prefix=unknown
10760 hardcode_into_libs=no
10761
10762 # when you set need_version to no, make sure it does not cause -set_version
10763 # flags to be left without arguments
10764 need_version=unknown
10765
10766
10767
10768 case $host_os in
10769 aix3*)
10770 version_type=linux # correct to gnu/linux during the next big refactor
10771 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10772 shlibpath_var=LIBPATH
10773
10774 # AIX 3 has no versioning support, so we append a major version to the name.
10775 soname_spec='$libname$release$shared_ext$major'
10776 ;;
10777
10778 aix[4-9]*)
10779 version_type=linux # correct to gnu/linux during the next big refactor
10780 need_lib_prefix=no
10781 need_version=no
10782 hardcode_into_libs=yes
10783 if test ia64 = "$host_cpu"; then
10784 # AIX 5 supports IA64
10785 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10786 shlibpath_var=LD_LIBRARY_PATH
10787 else
10788 # With GCC up to 2.95.x, collect2 would create an import file
10789 # for dependence libraries. The import file would start with
10790 # the line '#! .'. This would cause the generated library to
10791 # depend on '.', always an invalid library. This was fixed in
10792 # development snapshots of GCC prior to 3.0.
10793 case $host_os in
10794 aix4 | aix4.[01] | aix4.[01].*)
10795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10796 echo ' yes '
10797 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10798 :
10799 else
10800 can_build_shared=no
10801 fi
10802 ;;
10803 esac
10804 # Using Import Files as archive members, it is possible to support
10805 # filename-based versioning of shared library archives on AIX. While
10806 # this would work for both with and without runtime linking, it will
10807 # prevent static linking of such archives. So we do filename-based
10808 # shared library versioning with .so extension only, which is used
10809 # when both runtime linking and shared linking is enabled.
10810 # Unfortunately, runtime linking may impact performance, so we do
10811 # not want this to be the default eventually. Also, we use the
10812 # versioned .so libs for executables only if there is the -brtl
10813 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10814 # To allow for filename-based versioning support, we need to create
10815 # libNAME.so.V as an archive file, containing:
10816 # *) an Import File, referring to the versioned filename of the
10817 # archive as well as the shared archive member, telling the
10818 # bitwidth (32 or 64) of that shared object, and providing the
10819 # list of exported symbols of that shared object, eventually
10820 # decorated with the 'weak' keyword
10821 # *) the shared object with the F_LOADONLY flag set, to really avoid
10822 # it being seen by the linker.
10823 # At run time we better use the real file rather than another symlink,
10824 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10825
10826 case $with_aix_soname,$aix_use_runtimelinking in
10827 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10828 # soname into executable. Probably we can add versioning support to
10829 # collect2, so additional links can be useful in future.
10830 aix,yes) # traditional libtool
10831 dynamic_linker='AIX unversionable lib.so'
10832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10833 # instead of lib<name>.a to let people know that these are not
10834 # typical AIX shared libraries.
10835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10836 ;;
10837 aix,no) # traditional AIX only
10838 dynamic_linker='AIX lib.a(lib.so.V)'
10839 # We preserve .a as extension for shared libraries through AIX4.2
10840 # and later when we are not doing run time linking.
10841 library_names_spec='$libname$release.a $libname.a'
10842 soname_spec='$libname$release$shared_ext$major'
10843 ;;
10844 svr4,*) # full svr4 only
10845 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10846 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10847 # We do not specify a path in Import Files, so LIBPATH fires.
10848 shlibpath_overrides_runpath=yes
10849 ;;
10850 *,yes) # both, prefer svr4
10851 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10852 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10853 # unpreferred sharedlib libNAME.a needs extra handling
10854 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"'
10855 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"'
10856 # We do not specify a path in Import Files, so LIBPATH fires.
10857 shlibpath_overrides_runpath=yes
10858 ;;
10859 *,no) # both, prefer aix
10860 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10861 library_names_spec='$libname$release.a $libname.a'
10862 soname_spec='$libname$release$shared_ext$major'
10863 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10864 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)'
10865 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"'
10866 ;;
10867 esac
10868 shlibpath_var=LIBPATH
10869 fi
10870 ;;
10871
10872 amigaos*)
10873 case $host_cpu in
10874 powerpc)
10875 # Since July 2007 AmigaOS4 officially supports .so libraries.
10876 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10878 ;;
10879 m68k)
10880 library_names_spec='$libname.ixlibrary $libname.a'
10881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10882 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'
10883 ;;
10884 esac
10885 ;;
10886
10887 beos*)
10888 library_names_spec='$libname$shared_ext'
10889 dynamic_linker="$host_os ld.so"
10890 shlibpath_var=LIBRARY_PATH
10891 ;;
10892
10893 bsdi[45]*)
10894 version_type=linux # correct to gnu/linux during the next big refactor
10895 need_version=no
10896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10897 soname_spec='$libname$release$shared_ext$major'
10898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10902 # the default ld.so.conf also contains /usr/contrib/lib and
10903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10904 # libtool to hard-code these into programs
10905 ;;
10906
10907 cygwin* | mingw* | pw32* | cegcc*)
10908 version_type=windows
10909 shrext_cmds=.dll
10910 need_version=no
10911 need_lib_prefix=no
10912
10913 case $GCC,$cc_basename in
10914 yes,*)
10915 # gcc
10916 library_names_spec='$libname.dll.a'
10917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10918 postinstall_cmds='base_file=`basename \$file`~
10919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10920 dldir=$destdir/`dirname \$dlpath`~
10921 test -d \$dldir || mkdir -p \$dldir~
10922 $install_prog $dir/$dlname \$dldir/$dlname~
10923 chmod a+x \$dldir/$dlname~
10924 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10925 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10926 fi'
10927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10928 dlpath=$dir/\$dldll~
10929 $RM \$dlpath'
10930 shlibpath_overrides_runpath=yes
10931
10932 case $host_os in
10933 cygwin*)
10934 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10935 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10936
10937 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10938 ;;
10939 mingw* | cegcc*)
10940 # MinGW DLLs use traditional 'lib' prefix
10941 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10942 ;;
10943 pw32*)
10944 # pw32 DLLs use 'pw' prefix rather than 'lib'
10945 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10946 ;;
10947 esac
10948 dynamic_linker='Win32 ld.exe'
10949 ;;
10950
10951 *,cl*)
10952 # Native MSVC
10953 libname_spec='$name'
10954 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10955 library_names_spec='$libname.dll.lib'
10956
10957 case $build_os in
10958 mingw*)
10959 sys_lib_search_path_spec=
10960 lt_save_ifs=$IFS
10961 IFS=';'
10962 for lt_path in $LIB
10963 do
10964 IFS=$lt_save_ifs
10965 # Let DOS variable expansion print the short 8.3 style file name.
10966 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10967 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10968 done
10969 IFS=$lt_save_ifs
10970 # Convert to MSYS style.
10971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10972 ;;
10973 cygwin*)
10974 # Convert to unix form, then to dos form, then back to unix form
10975 # but this time dos style (no spaces!) so that the unix form looks
10976 # like /cygdrive/c/PROGRA~1:/cygdr...
10977 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10978 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10979 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10980 ;;
10981 *)
10982 sys_lib_search_path_spec=$LIB
10983 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10984 # It is most probably a Windows format PATH.
10985 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10986 else
10987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10988 fi
10989 # FIXME: find the short name or the path components, as spaces are
10990 # common. (e.g. "Program Files" -> "PROGRA~1")
10991 ;;
10992 esac
10993
10994 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10995 postinstall_cmds='base_file=`basename \$file`~
10996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10997 dldir=$destdir/`dirname \$dlpath`~
10998 test -d \$dldir || mkdir -p \$dldir~
10999 $install_prog $dir/$dlname \$dldir/$dlname'
11000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11001 dlpath=$dir/\$dldll~
11002 $RM \$dlpath'
11003 shlibpath_overrides_runpath=yes
11004 dynamic_linker='Win32 link.exe'
11005 ;;
11006
11007 *)
11008 # Assume MSVC wrapper
11009 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11010 dynamic_linker='Win32 ld.exe'
11011 ;;
11012 esac
11013 # FIXME: first we should search . and the directory the executable is in
11014 shlibpath_var=PATH
11015 ;;
11016
11017 darwin* | rhapsody*)
11018 dynamic_linker="$host_os dyld"
11019 version_type=darwin
11020 need_lib_prefix=no
11021 need_version=no
11022 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11023 soname_spec='$libname$release$major$shared_ext'
11024 shlibpath_overrides_runpath=yes
11025 shlibpath_var=DYLD_LIBRARY_PATH
11026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11027
11028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11029 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11030 ;;
11031
11032 dgux*)
11033 version_type=linux # correct to gnu/linux during the next big refactor
11034 need_lib_prefix=no
11035 need_version=no
11036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11037 soname_spec='$libname$release$shared_ext$major'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 ;;
11040
11041 freebsd* | dragonfly*)
11042 # DragonFly does not have aout. When/if they implement a new
11043 # versioning mechanism, adjust this.
11044 if test -x /usr/bin/objformat; then
11045 objformat=`/usr/bin/objformat`
11046 else
11047 case $host_os in
11048 freebsd[23].*) objformat=aout ;;
11049 *) objformat=elf ;;
11050 esac
11051 fi
11052 version_type=freebsd-$objformat
11053 case $version_type in
11054 freebsd-elf*)
11055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11056 soname_spec='$libname$release$shared_ext$major'
11057 need_version=no
11058 need_lib_prefix=no
11059 ;;
11060 freebsd-*)
11061 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11062 need_version=yes
11063 ;;
11064 esac
11065 shlibpath_var=LD_LIBRARY_PATH
11066 case $host_os in
11067 freebsd2.*)
11068 shlibpath_overrides_runpath=yes
11069 ;;
11070 freebsd3.[01]* | freebsdelf3.[01]*)
11071 shlibpath_overrides_runpath=yes
11072 hardcode_into_libs=yes
11073 ;;
11074 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11075 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11076 shlibpath_overrides_runpath=no
11077 hardcode_into_libs=yes
11078 ;;
11079 *) # from 4.6 on, and DragonFly
11080 shlibpath_overrides_runpath=yes
11081 hardcode_into_libs=yes
11082 ;;
11083 esac
11084 ;;
11085
11086 haiku*)
11087 version_type=linux # correct to gnu/linux during the next big refactor
11088 need_lib_prefix=no
11089 need_version=no
11090 dynamic_linker="$host_os runtime_loader"
11091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11092 soname_spec='$libname$release$shared_ext$major'
11093 shlibpath_var=LIBRARY_PATH
11094 shlibpath_overrides_runpath=no
11095 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11096 hardcode_into_libs=yes
11097 ;;
11098
11099 hpux9* | hpux10* | hpux11*)
11100 # Give a soname corresponding to the major version so that dld.sl refuses to
11101 # link against other versions.
11102 version_type=sunos
11103 need_lib_prefix=no
11104 need_version=no
11105 case $host_cpu in
11106 ia64*)
11107 shrext_cmds='.so'
11108 hardcode_into_libs=yes
11109 dynamic_linker="$host_os dld.so"
11110 shlibpath_var=LD_LIBRARY_PATH
11111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113 soname_spec='$libname$release$shared_ext$major'
11114 if test 32 = "$HPUX_IA64_MODE"; then
11115 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11116 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11117 else
11118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11119 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11120 fi
11121 ;;
11122 hppa*64*)
11123 shrext_cmds='.sl'
11124 hardcode_into_libs=yes
11125 dynamic_linker="$host_os dld.sl"
11126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11129 soname_spec='$libname$release$shared_ext$major'
11130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11132 ;;
11133 *)
11134 shrext_cmds='.sl'
11135 dynamic_linker="$host_os dld.sl"
11136 shlibpath_var=SHLIB_PATH
11137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139 soname_spec='$libname$release$shared_ext$major'
11140 ;;
11141 esac
11142 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11143 postinstall_cmds='chmod 555 $lib'
11144 # or fails outright, so override atomically:
11145 install_override_mode=555
11146 ;;
11147
11148 interix[3-9]*)
11149 version_type=linux # correct to gnu/linux during the next big refactor
11150 need_lib_prefix=no
11151 need_version=no
11152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153 soname_spec='$libname$release$shared_ext$major'
11154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=no
11157 hardcode_into_libs=yes
11158 ;;
11159
11160 irix5* | irix6* | nonstopux*)
11161 case $host_os in
11162 nonstopux*) version_type=nonstopux ;;
11163 *)
11164 if test yes = "$lt_cv_prog_gnu_ld"; then
11165 version_type=linux # correct to gnu/linux during the next big refactor
11166 else
11167 version_type=irix
11168 fi ;;
11169 esac
11170 need_lib_prefix=no
11171 need_version=no
11172 soname_spec='$libname$release$shared_ext$major'
11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11174 case $host_os in
11175 irix5* | nonstopux*)
11176 libsuff= shlibsuff=
11177 ;;
11178 *)
11179 case $LD in # libtool.m4 will add one of these switches to LD
11180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11181 libsuff= shlibsuff= libmagic=32-bit;;
11182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11183 libsuff=32 shlibsuff=N32 libmagic=N32;;
11184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11186 *) libsuff= shlibsuff= libmagic=never-match;;
11187 esac
11188 ;;
11189 esac
11190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11191 shlibpath_overrides_runpath=no
11192 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11193 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11194 hardcode_into_libs=yes
11195 ;;
11196
11197 # No shared lib support for Linux oldld, aout, or coff.
11198 linux*oldld* | linux*aout* | linux*coff*)
11199 dynamic_linker=no
11200 ;;
11201
11202 linux*android*)
11203 version_type=none # Android doesn't support versioned libraries.
11204 need_lib_prefix=no
11205 need_version=no
11206 library_names_spec='$libname$release$shared_ext'
11207 soname_spec='$libname$release$shared_ext'
11208 finish_cmds=
11209 shlibpath_var=LD_LIBRARY_PATH
11210 shlibpath_overrides_runpath=yes
11211
11212 # This implies no fast_install, which is unacceptable.
11213 # Some rework will be needed to allow for fast_install
11214 # before this can be enabled.
11215 hardcode_into_libs=yes
11216
11217 dynamic_linker='Android linker'
11218 # Don't embed -rpath directories since the linker doesn't support them.
11219 hardcode_libdir_flag_spec='-L$libdir'
11220 ;;
11221
11222 # This must be glibc/ELF.
11223 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11224 version_type=linux # correct to gnu/linux during the next big refactor
11225 need_lib_prefix=no
11226 need_version=no
11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11228 soname_spec='$libname$release$shared_ext$major'
11229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11230 shlibpath_var=LD_LIBRARY_PATH
11231 shlibpath_overrides_runpath=no
11232
11233 # Some binutils ld are patched to set DT_RUNPATH
11234 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11235 $as_echo_n "(cached) " >&6
11236 else
11237 lt_cv_shlibpath_overrides_runpath=no
11238 save_LDFLAGS=$LDFLAGS
11239 save_libdir=$libdir
11240 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11241 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11244
11245 int
11246 main ()
11247 {
11248
11249 ;
11250 return 0;
11251 }
11252 _ACEOF
11253 if ac_fn_c_try_link "$LINENO"; then :
11254 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11255 lt_cv_shlibpath_overrides_runpath=yes
11256 fi
11257 fi
11258 rm -f core conftest.err conftest.$ac_objext \
11259 conftest$ac_exeext conftest.$ac_ext
11260 LDFLAGS=$save_LDFLAGS
11261 libdir=$save_libdir
11262
11263 fi
11264
11265 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11266
11267 # This implies no fast_install, which is unacceptable.
11268 # Some rework will be needed to allow for fast_install
11269 # before this can be enabled.
11270 hardcode_into_libs=yes
11271
11272 # Add ABI-specific directories to the system library path.
11273 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11274
11275 # Ideally, we could use ldconfig to report *all* directores which are
11276 # searched for libraries, however this is still not possible. Aside from not
11277 # being certain /sbin/ldconfig is available, command
11278 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11279 # even though it is searched at run-time. Try to do the best guess by
11280 # appending ld.so.conf contents (and includes) to the search path.
11281 if test -f /etc/ld.so.conf; then
11282 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' ' '`
11283 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11284 fi
11285
11286 # We used to test for /lib/ld.so.1 and disable shared libraries on
11287 # powerpc, because MkLinux only supported shared libraries with the
11288 # GNU dynamic linker. Since this was broken with cross compilers,
11289 # most powerpc-linux boxes support dynamic linking these days and
11290 # people can always --disable-shared, the test was removed, and we
11291 # assume the GNU/Linux dynamic linker is in use.
11292 dynamic_linker='GNU/Linux ld.so'
11293 ;;
11294
11295 netbsd*)
11296 version_type=sunos
11297 need_lib_prefix=no
11298 need_version=no
11299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11300 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11302 dynamic_linker='NetBSD (a.out) ld.so'
11303 else
11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11305 soname_spec='$libname$release$shared_ext$major'
11306 dynamic_linker='NetBSD ld.elf_so'
11307 fi
11308 shlibpath_var=LD_LIBRARY_PATH
11309 shlibpath_overrides_runpath=yes
11310 hardcode_into_libs=yes
11311 ;;
11312
11313 newsos6)
11314 version_type=linux # correct to gnu/linux during the next big refactor
11315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11316 shlibpath_var=LD_LIBRARY_PATH
11317 shlibpath_overrides_runpath=yes
11318 ;;
11319
11320 *nto* | *qnx*)
11321 version_type=qnx
11322 need_lib_prefix=no
11323 need_version=no
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11325 soname_spec='$libname$release$shared_ext$major'
11326 shlibpath_var=LD_LIBRARY_PATH
11327 shlibpath_overrides_runpath=no
11328 hardcode_into_libs=yes
11329 dynamic_linker='ldqnx.so'
11330 ;;
11331
11332 openbsd* | bitrig*)
11333 version_type=sunos
11334 sys_lib_dlsearch_path_spec=/usr/lib
11335 need_lib_prefix=no
11336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11337 need_version=no
11338 else
11339 need_version=yes
11340 fi
11341 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath=yes
11345 ;;
11346
11347 os2*)
11348 libname_spec='$name'
11349 version_type=windows
11350 shrext_cmds=.dll
11351 need_version=no
11352 need_lib_prefix=no
11353 # OS/2 can only load a DLL with a base name of 8 characters or less.
11354 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11355 v=$($ECHO $release$versuffix | tr -d .-);
11356 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11357 $ECHO $n$v`$shared_ext'
11358 library_names_spec='${libname}_dll.$libext'
11359 dynamic_linker='OS/2 ld.exe'
11360 shlibpath_var=BEGINLIBPATH
11361 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11363 postinstall_cmds='base_file=`basename \$file`~
11364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11365 dldir=$destdir/`dirname \$dlpath`~
11366 test -d \$dldir || mkdir -p \$dldir~
11367 $install_prog $dir/$dlname \$dldir/$dlname~
11368 chmod a+x \$dldir/$dlname~
11369 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11370 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11371 fi'
11372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11373 dlpath=$dir/\$dldll~
11374 $RM \$dlpath'
11375 ;;
11376
11377 osf3* | osf4* | osf5*)
11378 version_type=osf
11379 need_lib_prefix=no
11380 need_version=no
11381 soname_spec='$libname$release$shared_ext$major'
11382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11383 shlibpath_var=LD_LIBRARY_PATH
11384 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11386 ;;
11387
11388 rdos*)
11389 dynamic_linker=no
11390 ;;
11391
11392 solaris*)
11393 version_type=linux # correct to gnu/linux during the next big refactor
11394 need_lib_prefix=no
11395 need_version=no
11396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11397 soname_spec='$libname$release$shared_ext$major'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=yes
11400 hardcode_into_libs=yes
11401 # ldd complains unless libraries are executable
11402 postinstall_cmds='chmod +x $lib'
11403 ;;
11404
11405 sunos4*)
11406 version_type=sunos
11407 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11408 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11409 shlibpath_var=LD_LIBRARY_PATH
11410 shlibpath_overrides_runpath=yes
11411 if test yes = "$with_gnu_ld"; then
11412 need_lib_prefix=no
11413 fi
11414 need_version=yes
11415 ;;
11416
11417 sysv4 | sysv4.3*)
11418 version_type=linux # correct to gnu/linux during the next big refactor
11419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11420 soname_spec='$libname$release$shared_ext$major'
11421 shlibpath_var=LD_LIBRARY_PATH
11422 case $host_vendor in
11423 sni)
11424 shlibpath_overrides_runpath=no
11425 need_lib_prefix=no
11426 runpath_var=LD_RUN_PATH
11427 ;;
11428 siemens)
11429 need_lib_prefix=no
11430 ;;
11431 motorola)
11432 need_lib_prefix=no
11433 need_version=no
11434 shlibpath_overrides_runpath=no
11435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11436 ;;
11437 esac
11438 ;;
11439
11440 sysv4*MP*)
11441 if test -d /usr/nec; then
11442 version_type=linux # correct to gnu/linux during the next big refactor
11443 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11444 soname_spec='$libname$shared_ext.$major'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 fi
11447 ;;
11448
11449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11450 version_type=sco
11451 need_lib_prefix=no
11452 need_version=no
11453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11454 soname_spec='$libname$release$shared_ext$major'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11457 hardcode_into_libs=yes
11458 if test yes = "$with_gnu_ld"; then
11459 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11460 else
11461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11462 case $host_os in
11463 sco3.2v5*)
11464 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11465 ;;
11466 esac
11467 fi
11468 sys_lib_dlsearch_path_spec='/usr/lib'
11469 ;;
11470
11471 tpf*)
11472 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11473 version_type=linux # correct to gnu/linux during the next big refactor
11474 need_lib_prefix=no
11475 need_version=no
11476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath=no
11479 hardcode_into_libs=yes
11480 ;;
11481
11482 uts4*)
11483 version_type=linux # correct to gnu/linux during the next big refactor
11484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11485 soname_spec='$libname$release$shared_ext$major'
11486 shlibpath_var=LD_LIBRARY_PATH
11487 ;;
11488
11489 *)
11490 dynamic_linker=no
11491 ;;
11492 esac
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11494 $as_echo "$dynamic_linker" >&6; }
11495 test no = "$dynamic_linker" && can_build_shared=no
11496
11497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11498 if test yes = "$GCC"; then
11499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11500 fi
11501
11502 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11503 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11504 fi
11505
11506 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11507 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11508 fi
11509
11510 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11511 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11512
11513 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11514 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11515
11516 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11517 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11616 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11617 hardcode_action=
11618 if test -n "$hardcode_libdir_flag_spec" ||
11619 test -n "$runpath_var" ||
11620 test yes = "$hardcode_automatic"; then
11621
11622 # We can hardcode non-existent directories.
11623 if test no != "$hardcode_direct" &&
11624 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11625 # have to relink, otherwise we might link with an installed library
11626 # when we should be linking with a yet-to-be-installed one
11627 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11628 test no != "$hardcode_minus_L"; then
11629 # Linking always hardcodes the temporary library directory.
11630 hardcode_action=relink
11631 else
11632 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11633 hardcode_action=immediate
11634 fi
11635 else
11636 # We cannot hardcode anything, or else we can only hardcode existing
11637 # directories.
11638 hardcode_action=unsupported
11639 fi
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11641 $as_echo "$hardcode_action" >&6; }
11642
11643 if test relink = "$hardcode_action" ||
11644 test yes = "$inherit_rpath"; then
11645 # Fast installation is not supported
11646 enable_fast_install=no
11647 elif test yes = "$shlibpath_overrides_runpath" ||
11648 test no = "$enable_shared"; then
11649 # Fast installation is not necessary
11650 enable_fast_install=needless
11651 fi
11652
11653
11654
11655
11656
11657
11658 if test yes != "$enable_dlopen"; then
11659 enable_dlopen=unknown
11660 enable_dlopen_self=unknown
11661 enable_dlopen_self_static=unknown
11662 else
11663 lt_cv_dlopen=no
11664 lt_cv_dlopen_libs=
11665
11666 case $host_os in
11667 beos*)
11668 lt_cv_dlopen=load_add_on
11669 lt_cv_dlopen_libs=
11670 lt_cv_dlopen_self=yes
11671 ;;
11672
11673 mingw* | pw32* | cegcc*)
11674 lt_cv_dlopen=LoadLibrary
11675 lt_cv_dlopen_libs=
11676 ;;
11677
11678 cygwin*)
11679 lt_cv_dlopen=dlopen
11680 lt_cv_dlopen_libs=
11681 ;;
11682
11683 darwin*)
11684 # if libdl is installed we need to link against it
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11686 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11687 if ${ac_cv_lib_dl_dlopen+:} false; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 ac_check_lib_save_LIBS=$LIBS
11691 LIBS="-ldl $LIBS"
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11694
11695 /* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11698 #ifdef __cplusplus
11699 extern "C"
11700 #endif
11701 char dlopen ();
11702 int
11703 main ()
11704 {
11705 return dlopen ();
11706 ;
11707 return 0;
11708 }
11709 _ACEOF
11710 if ac_fn_c_try_link "$LINENO"; then :
11711 ac_cv_lib_dl_dlopen=yes
11712 else
11713 ac_cv_lib_dl_dlopen=no
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717 LIBS=$ac_check_lib_save_LIBS
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11720 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11721 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11722 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11723 else
11724
11725 lt_cv_dlopen=dyld
11726 lt_cv_dlopen_libs=
11727 lt_cv_dlopen_self=yes
11728
11729 fi
11730
11731 ;;
11732
11733 tpf*)
11734 # Don't try to run any link tests for TPF. We know it's impossible
11735 # because TPF is a cross-compiler, and we know how we open DSOs.
11736 lt_cv_dlopen=dlopen
11737 lt_cv_dlopen_libs=
11738 lt_cv_dlopen_self=no
11739 ;;
11740
11741 *)
11742 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11743 if test "x$ac_cv_func_shl_load" = xyes; then :
11744 lt_cv_dlopen=shl_load
11745 else
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11747 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11748 if ${ac_cv_lib_dld_shl_load+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 ac_check_lib_save_LIBS=$LIBS
11752 LIBS="-ldld $LIBS"
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11755
11756 /* Override any GCC internal prototype to avoid an error.
11757 Use char because int might match the return type of a GCC
11758 builtin and then its argument prototype would still apply. */
11759 #ifdef __cplusplus
11760 extern "C"
11761 #endif
11762 char shl_load ();
11763 int
11764 main ()
11765 {
11766 return shl_load ();
11767 ;
11768 return 0;
11769 }
11770 _ACEOF
11771 if ac_fn_c_try_link "$LINENO"; then :
11772 ac_cv_lib_dld_shl_load=yes
11773 else
11774 ac_cv_lib_dld_shl_load=no
11775 fi
11776 rm -f core conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11778 LIBS=$ac_check_lib_save_LIBS
11779 fi
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11781 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11782 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11783 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11784 else
11785 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11786 if test "x$ac_cv_func_dlopen" = xyes; then :
11787 lt_cv_dlopen=dlopen
11788 else
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11790 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11791 if ${ac_cv_lib_dl_dlopen+:} false; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 ac_check_lib_save_LIBS=$LIBS
11795 LIBS="-ldl $LIBS"
11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11798
11799 /* Override any GCC internal prototype to avoid an error.
11800 Use char because int might match the return type of a GCC
11801 builtin and then its argument prototype would still apply. */
11802 #ifdef __cplusplus
11803 extern "C"
11804 #endif
11805 char dlopen ();
11806 int
11807 main ()
11808 {
11809 return dlopen ();
11810 ;
11811 return 0;
11812 }
11813 _ACEOF
11814 if ac_fn_c_try_link "$LINENO"; then :
11815 ac_cv_lib_dl_dlopen=yes
11816 else
11817 ac_cv_lib_dl_dlopen=no
11818 fi
11819 rm -f core conftest.err conftest.$ac_objext \
11820 conftest$ac_exeext conftest.$ac_ext
11821 LIBS=$ac_check_lib_save_LIBS
11822 fi
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11824 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11825 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11826 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11829 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11830 if ${ac_cv_lib_svld_dlopen+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 ac_check_lib_save_LIBS=$LIBS
11834 LIBS="-lsvld $LIBS"
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11837
11838 /* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11841 #ifdef __cplusplus
11842 extern "C"
11843 #endif
11844 char dlopen ();
11845 int
11846 main ()
11847 {
11848 return dlopen ();
11849 ;
11850 return 0;
11851 }
11852 _ACEOF
11853 if ac_fn_c_try_link "$LINENO"; then :
11854 ac_cv_lib_svld_dlopen=yes
11855 else
11856 ac_cv_lib_svld_dlopen=no
11857 fi
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11861 fi
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11863 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11864 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11865 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11868 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11869 if ${ac_cv_lib_dld_dld_link+:} false; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872 ac_check_lib_save_LIBS=$LIBS
11873 LIBS="-ldld $LIBS"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 char dld_link ();
11884 int
11885 main ()
11886 {
11887 return dld_link ();
11888 ;
11889 return 0;
11890 }
11891 _ACEOF
11892 if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_lib_dld_dld_link=yes
11894 else
11895 ac_cv_lib_dld_dld_link=no
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext \
11898 conftest$ac_exeext conftest.$ac_ext
11899 LIBS=$ac_check_lib_save_LIBS
11900 fi
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11902 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11903 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11904 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11905 fi
11906
11907
11908 fi
11909
11910
11911 fi
11912
11913
11914 fi
11915
11916
11917 fi
11918
11919
11920 fi
11921
11922 ;;
11923 esac
11924
11925 if test no = "$lt_cv_dlopen"; then
11926 enable_dlopen=no
11927 else
11928 enable_dlopen=yes
11929 fi
11930
11931 case $lt_cv_dlopen in
11932 dlopen)
11933 save_CPPFLAGS=$CPPFLAGS
11934 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11935
11936 save_LDFLAGS=$LDFLAGS
11937 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11938
11939 save_LIBS=$LIBS
11940 LIBS="$lt_cv_dlopen_libs $LIBS"
11941
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11943 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11944 if ${lt_cv_dlopen_self+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 if test yes = "$cross_compiling"; then :
11948 lt_cv_dlopen_self=cross
11949 else
11950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11951 lt_status=$lt_dlunknown
11952 cat > conftest.$ac_ext <<_LT_EOF
11953 #line $LINENO "configure"
11954 #include "confdefs.h"
11955
11956 #if HAVE_DLFCN_H
11957 #include <dlfcn.h>
11958 #endif
11959
11960 #include <stdio.h>
11961
11962 #ifdef RTLD_GLOBAL
11963 # define LT_DLGLOBAL RTLD_GLOBAL
11964 #else
11965 # ifdef DL_GLOBAL
11966 # define LT_DLGLOBAL DL_GLOBAL
11967 # else
11968 # define LT_DLGLOBAL 0
11969 # endif
11970 #endif
11971
11972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11973 find out it does not work in some platform. */
11974 #ifndef LT_DLLAZY_OR_NOW
11975 # ifdef RTLD_LAZY
11976 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11977 # else
11978 # ifdef DL_LAZY
11979 # define LT_DLLAZY_OR_NOW DL_LAZY
11980 # else
11981 # ifdef RTLD_NOW
11982 # define LT_DLLAZY_OR_NOW RTLD_NOW
11983 # else
11984 # ifdef DL_NOW
11985 # define LT_DLLAZY_OR_NOW DL_NOW
11986 # else
11987 # define LT_DLLAZY_OR_NOW 0
11988 # endif
11989 # endif
11990 # endif
11991 # endif
11992 #endif
11993
11994 /* When -fvisibility=hidden is used, assume the code has been annotated
11995 correspondingly for the symbols needed. */
11996 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11997 int fnord () __attribute__((visibility("default")));
11998 #endif
11999
12000 int fnord () { return 42; }
12001 int main ()
12002 {
12003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12004 int status = $lt_dlunknown;
12005
12006 if (self)
12007 {
12008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12009 else
12010 {
12011 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12012 else puts (dlerror ());
12013 }
12014 /* dlclose (self); */
12015 }
12016 else
12017 puts (dlerror ());
12018
12019 return status;
12020 }
12021 _LT_EOF
12022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12023 (eval $ac_link) 2>&5
12024 ac_status=$?
12025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12026 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12027 (./conftest; exit; ) >&5 2>/dev/null
12028 lt_status=$?
12029 case x$lt_status in
12030 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12031 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12032 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12033 esac
12034 else :
12035 # compilation failed
12036 lt_cv_dlopen_self=no
12037 fi
12038 fi
12039 rm -fr conftest*
12040
12041
12042 fi
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12044 $as_echo "$lt_cv_dlopen_self" >&6; }
12045
12046 if test yes = "$lt_cv_dlopen_self"; then
12047 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12049 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12050 if ${lt_cv_dlopen_self_static+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 if test yes = "$cross_compiling"; then :
12054 lt_cv_dlopen_self_static=cross
12055 else
12056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12057 lt_status=$lt_dlunknown
12058 cat > conftest.$ac_ext <<_LT_EOF
12059 #line $LINENO "configure"
12060 #include "confdefs.h"
12061
12062 #if HAVE_DLFCN_H
12063 #include <dlfcn.h>
12064 #endif
12065
12066 #include <stdio.h>
12067
12068 #ifdef RTLD_GLOBAL
12069 # define LT_DLGLOBAL RTLD_GLOBAL
12070 #else
12071 # ifdef DL_GLOBAL
12072 # define LT_DLGLOBAL DL_GLOBAL
12073 # else
12074 # define LT_DLGLOBAL 0
12075 # endif
12076 #endif
12077
12078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12079 find out it does not work in some platform. */
12080 #ifndef LT_DLLAZY_OR_NOW
12081 # ifdef RTLD_LAZY
12082 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12083 # else
12084 # ifdef DL_LAZY
12085 # define LT_DLLAZY_OR_NOW DL_LAZY
12086 # else
12087 # ifdef RTLD_NOW
12088 # define LT_DLLAZY_OR_NOW RTLD_NOW
12089 # else
12090 # ifdef DL_NOW
12091 # define LT_DLLAZY_OR_NOW DL_NOW
12092 # else
12093 # define LT_DLLAZY_OR_NOW 0
12094 # endif
12095 # endif
12096 # endif
12097 # endif
12098 #endif
12099
12100 /* When -fvisibility=hidden is used, assume the code has been annotated
12101 correspondingly for the symbols needed. */
12102 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12103 int fnord () __attribute__((visibility("default")));
12104 #endif
12105
12106 int fnord () { return 42; }
12107 int main ()
12108 {
12109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12110 int status = $lt_dlunknown;
12111
12112 if (self)
12113 {
12114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12115 else
12116 {
12117 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12118 else puts (dlerror ());
12119 }
12120 /* dlclose (self); */
12121 }
12122 else
12123 puts (dlerror ());
12124
12125 return status;
12126 }
12127 _LT_EOF
12128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12129 (eval $ac_link) 2>&5
12130 ac_status=$?
12131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12132 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12133 (./conftest; exit; ) >&5 2>/dev/null
12134 lt_status=$?
12135 case x$lt_status in
12136 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12137 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12138 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12139 esac
12140 else :
12141 # compilation failed
12142 lt_cv_dlopen_self_static=no
12143 fi
12144 fi
12145 rm -fr conftest*
12146
12147
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12150 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12151 fi
12152
12153 CPPFLAGS=$save_CPPFLAGS
12154 LDFLAGS=$save_LDFLAGS
12155 LIBS=$save_LIBS
12156 ;;
12157 esac
12158
12159 case $lt_cv_dlopen_self in
12160 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12161 *) enable_dlopen_self=unknown ;;
12162 esac
12163
12164 case $lt_cv_dlopen_self_static in
12165 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12166 *) enable_dlopen_self_static=unknown ;;
12167 esac
12168 fi
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186 striplib=
12187 old_striplib=
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12189 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12190 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12191 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12192 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12194 $as_echo "yes" >&6; }
12195 else
12196 # FIXME - insert some real tests, host_os isn't really good enough
12197 case $host_os in
12198 darwin*)
12199 if test -n "$STRIP"; then
12200 striplib="$STRIP -x"
12201 old_striplib="$STRIP -S"
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12203 $as_echo "yes" >&6; }
12204 else
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12207 fi
12208 ;;
12209 *)
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12212 ;;
12213 esac
12214 fi
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227 # Report what library types will actually be built
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12229 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12231 $as_echo "$can_build_shared" >&6; }
12232
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12234 $as_echo_n "checking whether to build shared libraries... " >&6; }
12235 test no = "$can_build_shared" && enable_shared=no
12236
12237 # On AIX, shared libraries and static libraries use the same namespace, and
12238 # are all built from PIC.
12239 case $host_os in
12240 aix3*)
12241 test yes = "$enable_shared" && enable_static=no
12242 if test -n "$RANLIB"; then
12243 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12244 postinstall_cmds='$RANLIB $lib'
12245 fi
12246 ;;
12247
12248 aix[4-9]*)
12249 if test ia64 != "$host_cpu"; then
12250 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12251 yes,aix,yes) ;; # shared object as lib.so file only
12252 yes,svr4,*) ;; # shared object as lib.so archive member only
12253 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12254 esac
12255 fi
12256 ;;
12257 esac
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12259 $as_echo "$enable_shared" >&6; }
12260
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12262 $as_echo_n "checking whether to build static libraries... " >&6; }
12263 # Make sure either enable_shared or enable_static is yes.
12264 test yes = "$enable_shared" || enable_static=yes
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12266 $as_echo "$enable_static" >&6; }
12267
12268
12269
12270
12271 fi
12272 ac_ext=c
12273 ac_cpp='$CPP $CPPFLAGS'
12274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12277
12278 CC=$lt_save_CC
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294 ac_config_commands="$ac_config_commands libtool"
12295
12296
12297
12298
12299 # Only expand once:
12300
12301
12302
12303
12304 # Checks for libraries.
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12306 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12307 if ${ac_cv_lib_dl_dlopen+:} false; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-ldl $LIBS"
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 char dlopen ();
12322 int
12323 main ()
12324 {
12325 return dlopen ();
12326 ;
12327 return 0;
12328 }
12329 _ACEOF
12330 if ac_fn_c_try_link "$LINENO"; then :
12331 ac_cv_lib_dl_dlopen=yes
12332 else
12333 ac_cv_lib_dl_dlopen=no
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_check_lib_save_LIBS
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12340 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12341 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12342 cat >>confdefs.h <<_ACEOF
12343 #define HAVE_LIBDL 1
12344 _ACEOF
12345
12346 LIBS="-ldl $LIBS"
12347
12348 fi
12349
12350
12351 # Checks for header files.
12352 for ac_header in dlfcn.h stdlib.h string.h syslog.h unistd.h
12353 do :
12354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12355 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12357 cat >>confdefs.h <<_ACEOF
12358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12359 _ACEOF
12360
12361 fi
12362
12363 done
12364
12365
12366 # Checks for typedefs, structures, and compiler characteristics.
12367 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12368 if test "x$ac_cv_type_size_t" = xyes; then :
12369
12370 else
12371
12372 cat >>confdefs.h <<_ACEOF
12373 #define size_t unsigned int
12374 _ACEOF
12375
12376 fi
12377
12378
12379 # Checks for library functions.
12380 for ac_header in stdlib.h
12381 do :
12382 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12383 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12384 cat >>confdefs.h <<_ACEOF
12385 #define HAVE_STDLIB_H 1
12386 _ACEOF
12387
12388 fi
12389
12390 done
12391
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12393 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12394 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 if test "$cross_compiling" = yes; then :
12398 ac_cv_func_malloc_0_nonnull=no
12399 else
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12402 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12403 # include <stdlib.h>
12404 #else
12405 char *malloc ();
12406 #endif
12407
12408 int
12409 main ()
12410 {
12411 return ! malloc (0);
12412 ;
12413 return 0;
12414 }
12415 _ACEOF
12416 if ac_fn_c_try_run "$LINENO"; then :
12417 ac_cv_func_malloc_0_nonnull=yes
12418 else
12419 ac_cv_func_malloc_0_nonnull=no
12420 fi
12421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12422 conftest.$ac_objext conftest.beam conftest.$ac_ext
12423 fi
12424
12425 fi
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12427 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12428 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12429
12430 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12431
12432 else
12433 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12434
12435 case " $LIBOBJS " in
12436 *" malloc.$ac_objext "* ) ;;
12437 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12438 ;;
12439 esac
12440
12441
12442 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12443
12444 fi
12445
12446
12447 for ac_func in setenv strchr strdup strerror
12448 do :
12449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12451 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12452 cat >>confdefs.h <<_ACEOF
12453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12454 _ACEOF
12455
12456 fi
12457 done
12458
12459
12460 # Check globus modules
12461
12462
12463 # Check whether --with-globus_prefix was given.
12464 if test "${with_globus_prefix+set}" = set; then :
12465 withval=$with_globus_prefix; ac_globus_prefix=$with_globus_prefix
12466 else
12467 ac_globus_prefix=${GLOBUS_LOCATION:-}
12468 fi
12469
12470
12471
12472 # Check whether --with-globus_libdir was given.
12473 if test "${with_globus_libdir+set}" = set; then :
12474 withval=$with_globus_libdir; ac_globus_libdir=$with_globus_libdir
12475 fi
12476
12477
12478
12479 # Check whether --with-globus_flavor was given.
12480 if test "${with_globus_flavor+set}" = set; then :
12481 withval=$with_globus_flavor;
12482 else
12483 with_globus_flavor=${GLOBUS_FLAVOR:-}
12484 fi
12485
12486
12487
12488 # Check whether --with-globus_thr_flavor was given.
12489 if test "${with_globus_thr_flavor+set}" = set; then :
12490 withval=$with_globus_thr_flavor;
12491 else
12492 with_globus_thr_flavor=${GLOBUS_FLAVOR:-}
12493 fi
12494
12495
12496
12497 # Check whether --with-globus_nothr_flavor was given.
12498 if test "${with_globus_nothr_flavor+set}" = set; then :
12499 withval=$with_globus_nothr_flavor;
12500 else
12501 with_globus_nothr_flavor=${GLOBUS_FLAVOR:-}
12502 fi
12503
12504
12505
12506 # Check whether --with-globus_flavorincdir was given.
12507 if test "${with_globus_flavorincdir+set}" = set; then :
12508 withval=$with_globus_flavorincdir; ac_globus_flavorincdir=$with_globus_flavorincdir
12509 else
12510 with_globus_flavorincdir=${GLOBUS_FLAVOR:-}
12511 fi
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12629 if test -n "$ac_tool_prefix"; then
12630 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12631 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633 $as_echo_n "checking for $ac_word... " >&6; }
12634 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 case $PKG_CONFIG in
12638 [\\/]* | ?:[\\/]*)
12639 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12640 ;;
12641 *)
12642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643 for as_dir in $PATH
12644 do
12645 IFS=$as_save_IFS
12646 test -z "$as_dir" && as_dir=.
12647 for ac_exec_ext in '' $ac_executable_extensions; do
12648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12649 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12651 break 2
12652 fi
12653 done
12654 done
12655 IFS=$as_save_IFS
12656
12657 ;;
12658 esac
12659 fi
12660 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12661 if test -n "$PKG_CONFIG"; then
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12663 $as_echo "$PKG_CONFIG" >&6; }
12664 else
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666 $as_echo "no" >&6; }
12667 fi
12668
12669
12670 fi
12671 if test -z "$ac_cv_path_PKG_CONFIG"; then
12672 ac_pt_PKG_CONFIG=$PKG_CONFIG
12673 # Extract the first word of "pkg-config", so it can be a program name with args.
12674 set dummy pkg-config; ac_word=$2
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12676 $as_echo_n "checking for $ac_word... " >&6; }
12677 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 case $ac_pt_PKG_CONFIG in
12681 [\\/]* | ?:[\\/]*)
12682 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12683 ;;
12684 *)
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12687 do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12692 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12695 fi
12696 done
12697 done
12698 IFS=$as_save_IFS
12699
12700 ;;
12701 esac
12702 fi
12703 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12704 if test -n "$ac_pt_PKG_CONFIG"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12706 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12707 else
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12709 $as_echo "no" >&6; }
12710 fi
12711
12712 if test "x$ac_pt_PKG_CONFIG" = x; then
12713 PKG_CONFIG=""
12714 else
12715 case $cross_compiling:$ac_tool_warned in
12716 yes:)
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12719 ac_tool_warned=yes ;;
12720 esac
12721 PKG_CONFIG=$ac_pt_PKG_CONFIG
12722 fi
12723 else
12724 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12725 fi
12726
12727 fi
12728 if test -n "$PKG_CONFIG"; then
12729 _pkg_min_version=0.9.0
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12731 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12732 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12734 $as_echo "yes" >&6; }
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12738 PKG_CONFIG=""
12739 fi
12740 fi
12741
12742
12743
12744
12745
12746 if test "x$globus_tested" = "x"; then :
12747
12748 globus_tested="yes"
12749
12750 if test "x$with_globus_thr_flavor" != "x" ; then
12751 if test "x$with_globus_nothr_flavor" != "x" -o
12752 test "x$with_globus_flavor" != "x" ; then
12753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12755 as_fn_error $? "Cannot build against multiple flavor types
12756 See \`config.log' for more details" "$LINENO" 5; }
12757 fi
12758 ac_globus_flavor=$with_globus_thr_flavor
12759 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
12760 elif test "x$with_globus_nothr_flavor" != "x" ; then
12761 if test "x$with_globus_flavor" != "x" ; then
12762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12764 as_fn_error $? "Cannot build against multiple flavor types
12765 See \`config.log' for more details" "$LINENO" 5; }
12766 fi
12767 ac_globus_flavor=$with_globus_nothr_flavor
12768 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
12769 elif test "x$with_globus_flavor" != "x" ; then
12770 ac_globus_flavor=$with_globus_flavor
12771 GLOBUS_FLAVOR=$with_globus_flavor
12772 fi
12773
12774
12775
12776
12777 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
12778 ac_globus_prefix=/usr
12779 fi
12780
12781 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
12782 ac_globus_prefix=/opt/globus
12783 fi
12784
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
12786 $as_echo_n "checking for globus version... " >&6; }
12787 if test "x$ac_globus_prefix" = "x" ; then
12788 ac_globus_version_script=`which globus-version 2> /dev/null`
12789 else
12790 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
12791 fi
12792 if test "x$ac_globus_version_script" != "x" ; then
12793 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
12794 fi
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
12796 $as_echo "$ac_globus_version" >&6; }
12797
12798 if test "x$ac_globus_version" != "x" ; then
12799 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
12800 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
12801 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
12802 fi
12803
12804 if test "x$ac_globus_prefix" != "x" ; then
12805 if test "x$ac_globus_libdir" = "x" ; then
12806 if test "x$host_cpu" = "xx86_64" \
12807 -a -e $ac_globus_prefix/lib64 \
12808 -a ! -h $ac_globus_prefix/lib64 ; then
12809 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
12810 if test $num -gt 0 ; then
12811 ac_globus_libdir="$ac_globus_prefix/lib64"
12812 else
12813 ac_globus_libdir="$ac_globus_prefix/lib"
12814 fi
12815 else
12816 ac_globus_libdir="$ac_globus_prefix/lib"
12817 fi
12818 fi
12819 ac_globus_ldflags="-L$ac_globus_libdir"
12820
12821 if test -d "$ac_globus_prefix/include/globus" ; then
12822 ac_globus_cflags=-I$ac_globus_prefix/include/globus
12823 if test "x$ac_globus_flavorincdir" != "x" ; then
12824 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
12825 elif test "x$ac_globus_flavor" != "x" ; then
12826 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
12827 else
12828 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
12829 fi
12830 ac_globus_libsuffix=""
12831 else
12832 if test "x$ac_globus_flavor" != "x" ; then
12833 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
12834 ac_globus_libsuffix=_$ac_globus_flavor
12835 elif test -d "$ac_globus_prefix/include"; then
12836 ac_globus_cflags=-I$ac_globus_prefix/include
12837 else ac_globus_cflags=""
12838 ac_globus_libsuffix=""
12839 fi
12840 fi
12841 fi
12842
12843 fi
12844
12845
12846
12847
12848 if test "x$with_globus_prefix" = "x" ; then
12849
12850 pkg_failed=no
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_COMMON" >&5
12852 $as_echo_n "checking for GLOBUS_COMMON... " >&6; }
12853
12854 if test -n "$GLOBUS_COMMON_CFLAGS"; then
12855 pkg_cv_GLOBUS_COMMON_CFLAGS="$GLOBUS_COMMON_CFLAGS"
12856 elif test -n "$PKG_CONFIG"; then
12857 if test -n "$PKG_CONFIG" && \
12858 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
12859 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
12860 ac_status=$?
12861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12862 test $ac_status = 0; }; then
12863 pkg_cv_GLOBUS_COMMON_CFLAGS=`$PKG_CONFIG --cflags "globus-common" 2>/dev/null`
12864 test "x$?" != "x0" && pkg_failed=yes
12865 else
12866 pkg_failed=yes
12867 fi
12868 else
12869 pkg_failed=untried
12870 fi
12871 if test -n "$GLOBUS_COMMON_LIBS"; then
12872 pkg_cv_GLOBUS_COMMON_LIBS="$GLOBUS_COMMON_LIBS"
12873 elif test -n "$PKG_CONFIG"; then
12874 if test -n "$PKG_CONFIG" && \
12875 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
12876 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
12877 ac_status=$?
12878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12879 test $ac_status = 0; }; then
12880 pkg_cv_GLOBUS_COMMON_LIBS=`$PKG_CONFIG --libs "globus-common" 2>/dev/null`
12881 test "x$?" != "x0" && pkg_failed=yes
12882 else
12883 pkg_failed=yes
12884 fi
12885 else
12886 pkg_failed=untried
12887 fi
12888
12889
12890
12891 if test $pkg_failed = yes; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894
12895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12896 _pkg_short_errors_supported=yes
12897 else
12898 _pkg_short_errors_supported=no
12899 fi
12900 if test $_pkg_short_errors_supported = yes; then
12901 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-common" 2>&1`
12902 else
12903 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-common" 2>&1`
12904 fi
12905 # Put the nasty error message in config.log where it belongs
12906 echo "$GLOBUS_COMMON_PKG_ERRORS" >&5
12907
12908 have_globus_mod=no
12909 elif test $pkg_failed = untried; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12912 have_globus_mod=no
12913 else
12914 GLOBUS_COMMON_CFLAGS=$pkg_cv_GLOBUS_COMMON_CFLAGS
12915 GLOBUS_COMMON_LIBS=$pkg_cv_GLOBUS_COMMON_LIBS
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12917 $as_echo "yes" >&6; }
12918 have_globus_mod=yes
12919 fi
12920 if test "$have_globus_mod" = "no" ; then
12921
12922 ac_save_CFLAGS=$CFLAGS
12923 ac_save_CPPFLAGS=$CPPFLAGS
12924 ac_save_LIBS=$LIBS
12925 ac_save_LDFLAGS=$LDFLAGS
12926
12927 ac_try_CFLAGS=$ac_globus_cflags
12928
12929 if test "xglobus_common" = "x" ; then
12930 ac_try_LIBS=""
12931 else
12932 ac_try_LIBS="-lglobus_common$ac_globus_libsuffix"
12933 fi
12934
12935 ac_try_CPPFLAGS=$ac_try_CFLAGS
12936 if test "x$ac_globus_libdir" != "x" ; then
12937 ac_try_LDFLAGS="$ac_globus_ldflags"
12938 if test "x$LD_LIBRARY_PATH" != "x" ; then
12939 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
12940 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
12941 else
12942 export LD_LIBRARY_PATH="$ac_globus_libdir"
12943 fi
12944 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
12945 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
12946 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
12947 else
12948 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
12949 fi
12950 fi
12951
12952 CFLAGS="$ac_try_CFLAGS $CFLAGS"
12953 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
12954 LIBS="$ac_try_LIBS $LIBS"
12955 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_COMMON at system default and $ac_globus_libdir" >&5
12957 $as_echo_n "checking for GLOBUS_COMMON at system default and $ac_globus_libdir... " >&6; }
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12960 #include <globus_common.h>
12961 int main(void) {return 0;}
12962 _ACEOF
12963 if ac_fn_c_try_link "$LINENO"; then :
12964 have_mod=yes
12965 else
12966 have_mod=no
12967 fi
12968 rm -f core conftest.err conftest.$ac_objext \
12969 conftest$ac_exeext conftest.$ac_ext
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
12971 $as_echo "$have_mod" >&6; }
12972
12973 if test "x$have_mod" = "xyes" ; then
12974 have_globus_mod=yes
12975 if test "x$with_globus_thr_flavor" != "x" ; then
12976 GLOBUS_COMMON_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
12977 GLOBUS_COMMON_THR_CFLAGS=$ac_try_CFLAGS
12978 elif test "x$with_globus_nothr_flavor" != "x" ; then
12979 GLOBUS_COMMON_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
12980 GLOBUS_COMMON_NOTHR_CFLAGS=$ac_try_CFLAGS
12981 else
12982 GLOBUS_COMMON_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
12983 GLOBUS_COMMON_CFLAGS=$ac_try_CFLAGS
12984 fi
12985 else
12986 have_globus_mod=no
12987 fi
12988
12989 CFLAGS=$ac_save_CFLAGS
12990 CPPFLAGS=$ac_save_CPPFLAGS
12991 LIBS=$ac_save_LIBS
12992 LDFLAGS=$ac_save_LDFLAGS
12993 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
12994 unset LD_LIBRARY_PATH
12995 else
12996 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
12997 fi
12998 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
12999 unset DYLD_LIBRARY_PATH
13000 else
13001 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
13002 fi
13003
13004
13005 fi
13006 else
13007
13008 ac_save_CFLAGS=$CFLAGS
13009 ac_save_CPPFLAGS=$CPPFLAGS
13010 ac_save_LIBS=$LIBS
13011 ac_save_LDFLAGS=$LDFLAGS
13012
13013 ac_try_CFLAGS=$ac_globus_cflags
13014
13015 if test "xglobus_common" = "x" ; then
13016 ac_try_LIBS=""
13017 else
13018 ac_try_LIBS="-lglobus_common$ac_globus_libsuffix"
13019 fi
13020
13021 ac_try_CPPFLAGS=$ac_try_CFLAGS
13022 if test "x$ac_globus_libdir" != "x" ; then
13023 ac_try_LDFLAGS="$ac_globus_ldflags"
13024 if test "x$LD_LIBRARY_PATH" != "x" ; then
13025 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
13026 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
13027 else
13028 export LD_LIBRARY_PATH="$ac_globus_libdir"
13029 fi
13030 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
13031 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
13032 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
13033 else
13034 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
13035 fi
13036 fi
13037
13038 CFLAGS="$ac_try_CFLAGS $CFLAGS"
13039 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
13040 LIBS="$ac_try_LIBS $LIBS"
13041 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_COMMON at system default and $ac_globus_libdir" >&5
13043 $as_echo_n "checking for GLOBUS_COMMON at system default and $ac_globus_libdir... " >&6; }
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13046 #include <globus_common.h>
13047 int main(void) {return 0;}
13048 _ACEOF
13049 if ac_fn_c_try_link "$LINENO"; then :
13050 have_mod=yes
13051 else
13052 have_mod=no
13053 fi
13054 rm -f core conftest.err conftest.$ac_objext \
13055 conftest$ac_exeext conftest.$ac_ext
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
13057 $as_echo "$have_mod" >&6; }
13058
13059 if test "x$have_mod" = "xyes" ; then
13060 have_globus_mod=yes
13061 if test "x$with_globus_thr_flavor" != "x" ; then
13062 GLOBUS_COMMON_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13063 GLOBUS_COMMON_THR_CFLAGS=$ac_try_CFLAGS
13064 elif test "x$with_globus_nothr_flavor" != "x" ; then
13065 GLOBUS_COMMON_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13066 GLOBUS_COMMON_NOTHR_CFLAGS=$ac_try_CFLAGS
13067 else
13068 GLOBUS_COMMON_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13069 GLOBUS_COMMON_CFLAGS=$ac_try_CFLAGS
13070 fi
13071 else
13072 have_globus_mod=no
13073 fi
13074
13075 CFLAGS=$ac_save_CFLAGS
13076 CPPFLAGS=$ac_save_CPPFLAGS
13077 LIBS=$ac_save_LIBS
13078 LDFLAGS=$ac_save_LDFLAGS
13079 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
13080 unset LD_LIBRARY_PATH
13081 else
13082 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
13083 fi
13084 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
13085 unset DYLD_LIBRARY_PATH
13086 else
13087 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
13088 fi
13089
13090
13091 if test "$have_globus_mod" = "no" ; then
13092
13093 pkg_failed=no
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_COMMON" >&5
13095 $as_echo_n "checking for GLOBUS_COMMON... " >&6; }
13096
13097 if test -n "$GLOBUS_COMMON_CFLAGS"; then
13098 pkg_cv_GLOBUS_COMMON_CFLAGS="$GLOBUS_COMMON_CFLAGS"
13099 elif test -n "$PKG_CONFIG"; then
13100 if test -n "$PKG_CONFIG" && \
13101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
13102 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
13103 ac_status=$?
13104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13105 test $ac_status = 0; }; then
13106 pkg_cv_GLOBUS_COMMON_CFLAGS=`$PKG_CONFIG --cflags "globus-common" 2>/dev/null`
13107 test "x$?" != "x0" && pkg_failed=yes
13108 else
13109 pkg_failed=yes
13110 fi
13111 else
13112 pkg_failed=untried
13113 fi
13114 if test -n "$GLOBUS_COMMON_LIBS"; then
13115 pkg_cv_GLOBUS_COMMON_LIBS="$GLOBUS_COMMON_LIBS"
13116 elif test -n "$PKG_CONFIG"; then
13117 if test -n "$PKG_CONFIG" && \
13118 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-common\""; } >&5
13119 ($PKG_CONFIG --exists --print-errors "globus-common") 2>&5
13120 ac_status=$?
13121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13122 test $ac_status = 0; }; then
13123 pkg_cv_GLOBUS_COMMON_LIBS=`$PKG_CONFIG --libs "globus-common" 2>/dev/null`
13124 test "x$?" != "x0" && pkg_failed=yes
13125 else
13126 pkg_failed=yes
13127 fi
13128 else
13129 pkg_failed=untried
13130 fi
13131
13132
13133
13134 if test $pkg_failed = yes; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13137
13138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13139 _pkg_short_errors_supported=yes
13140 else
13141 _pkg_short_errors_supported=no
13142 fi
13143 if test $_pkg_short_errors_supported = yes; then
13144 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-common" 2>&1`
13145 else
13146 GLOBUS_COMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-common" 2>&1`
13147 fi
13148 # Put the nasty error message in config.log where it belongs
13149 echo "$GLOBUS_COMMON_PKG_ERRORS" >&5
13150
13151 have_globus_mod=no
13152 elif test $pkg_failed = untried; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 have_globus_mod=no
13156 else
13157 GLOBUS_COMMON_CFLAGS=$pkg_cv_GLOBUS_COMMON_CFLAGS
13158 GLOBUS_COMMON_LIBS=$pkg_cv_GLOBUS_COMMON_LIBS
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13160 $as_echo "yes" >&6; }
13161 have_globus_mod=yes
13162 fi
13163 fi
13164 fi
13165 have_globus_common=$have_globus_mod
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177 if test "x$have_globus_common" != "xyes" ; then
13178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13180 as_fn_error $? "\"no globus-common found\"
13181 See \`config.log' for more details" "$LINENO" 5; }
13182 fi
13183
13184
13185 # Note: globus_gridmap_callout_error depends on GSSAPI_ERROR via a define in
13186 # globus_gridmap_callout_error.h which maps to globus_error_wrap_gssapi_error().
13187 # Somehow the library dependency doesn't always get set automatically, so check
13188 # explicitly
13189
13190
13191
13192
13193
13194 if test "x$globus_tested" = "x"; then :
13195
13196 globus_tested="yes"
13197
13198 if test "x$with_globus_thr_flavor" != "x" ; then
13199 if test "x$with_globus_nothr_flavor" != "x" -o
13200 test "x$with_globus_flavor" != "x" ; then
13201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13203 as_fn_error $? "Cannot build against multiple flavor types
13204 See \`config.log' for more details" "$LINENO" 5; }
13205 fi
13206 ac_globus_flavor=$with_globus_thr_flavor
13207 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
13208 elif test "x$with_globus_nothr_flavor" != "x" ; then
13209 if test "x$with_globus_flavor" != "x" ; then
13210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13212 as_fn_error $? "Cannot build against multiple flavor types
13213 See \`config.log' for more details" "$LINENO" 5; }
13214 fi
13215 ac_globus_flavor=$with_globus_nothr_flavor
13216 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
13217 elif test "x$with_globus_flavor" != "x" ; then
13218 ac_globus_flavor=$with_globus_flavor
13219 GLOBUS_FLAVOR=$with_globus_flavor
13220 fi
13221
13222
13223
13224
13225 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
13226 ac_globus_prefix=/usr
13227 fi
13228
13229 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
13230 ac_globus_prefix=/opt/globus
13231 fi
13232
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
13234 $as_echo_n "checking for globus version... " >&6; }
13235 if test "x$ac_globus_prefix" = "x" ; then
13236 ac_globus_version_script=`which globus-version 2> /dev/null`
13237 else
13238 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
13239 fi
13240 if test "x$ac_globus_version_script" != "x" ; then
13241 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
13242 fi
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
13244 $as_echo "$ac_globus_version" >&6; }
13245
13246 if test "x$ac_globus_version" != "x" ; then
13247 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
13248 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
13249 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
13250 fi
13251
13252 if test "x$ac_globus_prefix" != "x" ; then
13253 if test "x$ac_globus_libdir" = "x" ; then
13254 if test "x$host_cpu" = "xx86_64" \
13255 -a -e $ac_globus_prefix/lib64 \
13256 -a ! -h $ac_globus_prefix/lib64 ; then
13257 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
13258 if test $num -gt 0 ; then
13259 ac_globus_libdir="$ac_globus_prefix/lib64"
13260 else
13261 ac_globus_libdir="$ac_globus_prefix/lib"
13262 fi
13263 else
13264 ac_globus_libdir="$ac_globus_prefix/lib"
13265 fi
13266 fi
13267 ac_globus_ldflags="-L$ac_globus_libdir"
13268
13269 if test -d "$ac_globus_prefix/include/globus" ; then
13270 ac_globus_cflags=-I$ac_globus_prefix/include/globus
13271 if test "x$ac_globus_flavorincdir" != "x" ; then
13272 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
13273 elif test "x$ac_globus_flavor" != "x" ; then
13274 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
13275 else
13276 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
13277 fi
13278 ac_globus_libsuffix=""
13279 else
13280 if test "x$ac_globus_flavor" != "x" ; then
13281 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
13282 ac_globus_libsuffix=_$ac_globus_flavor
13283 elif test -d "$ac_globus_prefix/include"; then
13284 ac_globus_cflags=-I$ac_globus_prefix/include
13285 else ac_globus_cflags=""
13286 ac_globus_libsuffix=""
13287 fi
13288 fi
13289 fi
13290
13291 fi
13292
13293
13294
13295
13296 if test "x$with_globus_prefix" = "x" ; then
13297
13298 pkg_failed=no
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_CREDENTIAL" >&5
13300 $as_echo_n "checking for GLOBUS_GSI_CREDENTIAL... " >&6; }
13301
13302 if test -n "$GLOBUS_GSI_CREDENTIAL_CFLAGS"; then
13303 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS="$GLOBUS_GSI_CREDENTIAL_CFLAGS"
13304 elif test -n "$PKG_CONFIG"; then
13305 if test -n "$PKG_CONFIG" && \
13306 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
13307 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
13308 ac_status=$?
13309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13310 test $ac_status = 0; }; then
13311 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS=`$PKG_CONFIG --cflags "globus-gsi-credential" 2>/dev/null`
13312 test "x$?" != "x0" && pkg_failed=yes
13313 else
13314 pkg_failed=yes
13315 fi
13316 else
13317 pkg_failed=untried
13318 fi
13319 if test -n "$GLOBUS_GSI_CREDENTIAL_LIBS"; then
13320 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS="$GLOBUS_GSI_CREDENTIAL_LIBS"
13321 elif test -n "$PKG_CONFIG"; then
13322 if test -n "$PKG_CONFIG" && \
13323 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
13324 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
13325 ac_status=$?
13326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327 test $ac_status = 0; }; then
13328 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS=`$PKG_CONFIG --libs "globus-gsi-credential" 2>/dev/null`
13329 test "x$?" != "x0" && pkg_failed=yes
13330 else
13331 pkg_failed=yes
13332 fi
13333 else
13334 pkg_failed=untried
13335 fi
13336
13337
13338
13339 if test $pkg_failed = yes; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13342
13343 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13344 _pkg_short_errors_supported=yes
13345 else
13346 _pkg_short_errors_supported=no
13347 fi
13348 if test $_pkg_short_errors_supported = yes; then
13349 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
13350 else
13351 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
13352 fi
13353 # Put the nasty error message in config.log where it belongs
13354 echo "$GLOBUS_GSI_CREDENTIAL_PKG_ERRORS" >&5
13355
13356 have_globus_mod=no
13357 elif test $pkg_failed = untried; then
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13360 have_globus_mod=no
13361 else
13362 GLOBUS_GSI_CREDENTIAL_CFLAGS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS
13363 GLOBUS_GSI_CREDENTIAL_LIBS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13365 $as_echo "yes" >&6; }
13366 have_globus_mod=yes
13367 fi
13368 if test "$have_globus_mod" = "no" ; then
13369
13370 ac_save_CFLAGS=$CFLAGS
13371 ac_save_CPPFLAGS=$CPPFLAGS
13372 ac_save_LIBS=$LIBS
13373 ac_save_LDFLAGS=$LDFLAGS
13374
13375 ac_try_CFLAGS=$ac_globus_cflags
13376
13377 if test "xglobus_gsi_credential" = "x" ; then
13378 ac_try_LIBS=""
13379 else
13380 ac_try_LIBS="-lglobus_gsi_credential$ac_globus_libsuffix"
13381 fi
13382
13383 ac_try_CPPFLAGS=$ac_try_CFLAGS
13384 if test "x$ac_globus_libdir" != "x" ; then
13385 ac_try_LDFLAGS="$ac_globus_ldflags"
13386 if test "x$LD_LIBRARY_PATH" != "x" ; then
13387 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
13388 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
13389 else
13390 export LD_LIBRARY_PATH="$ac_globus_libdir"
13391 fi
13392 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
13393 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
13394 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
13395 else
13396 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
13397 fi
13398 fi
13399
13400 CFLAGS="$ac_try_CFLAGS $CFLAGS"
13401 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
13402 LIBS="$ac_try_LIBS $LIBS"
13403 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir" >&5
13405 $as_echo_n "checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir... " >&6; }
13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13408 #include <globus_gsi_credential.h>
13409 int main(void) {return 0;}
13410 _ACEOF
13411 if ac_fn_c_try_link "$LINENO"; then :
13412 have_mod=yes
13413 else
13414 have_mod=no
13415 fi
13416 rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
13419 $as_echo "$have_mod" >&6; }
13420
13421 if test "x$have_mod" = "xyes" ; then
13422 have_globus_mod=yes
13423 if test "x$with_globus_thr_flavor" != "x" ; then
13424 GLOBUS_GSI_CREDENTIAL_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13425 GLOBUS_GSI_CREDENTIAL_THR_CFLAGS=$ac_try_CFLAGS
13426 elif test "x$with_globus_nothr_flavor" != "x" ; then
13427 GLOBUS_GSI_CREDENTIAL_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13428 GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS=$ac_try_CFLAGS
13429 else
13430 GLOBUS_GSI_CREDENTIAL_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13431 GLOBUS_GSI_CREDENTIAL_CFLAGS=$ac_try_CFLAGS
13432 fi
13433 else
13434 have_globus_mod=no
13435 fi
13436
13437 CFLAGS=$ac_save_CFLAGS
13438 CPPFLAGS=$ac_save_CPPFLAGS
13439 LIBS=$ac_save_LIBS
13440 LDFLAGS=$ac_save_LDFLAGS
13441 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
13442 unset LD_LIBRARY_PATH
13443 else
13444 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
13445 fi
13446 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
13447 unset DYLD_LIBRARY_PATH
13448 else
13449 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
13450 fi
13451
13452
13453 fi
13454 else
13455
13456 ac_save_CFLAGS=$CFLAGS
13457 ac_save_CPPFLAGS=$CPPFLAGS
13458 ac_save_LIBS=$LIBS
13459 ac_save_LDFLAGS=$LDFLAGS
13460
13461 ac_try_CFLAGS=$ac_globus_cflags
13462
13463 if test "xglobus_gsi_credential" = "x" ; then
13464 ac_try_LIBS=""
13465 else
13466 ac_try_LIBS="-lglobus_gsi_credential$ac_globus_libsuffix"
13467 fi
13468
13469 ac_try_CPPFLAGS=$ac_try_CFLAGS
13470 if test "x$ac_globus_libdir" != "x" ; then
13471 ac_try_LDFLAGS="$ac_globus_ldflags"
13472 if test "x$LD_LIBRARY_PATH" != "x" ; then
13473 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
13474 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
13475 else
13476 export LD_LIBRARY_PATH="$ac_globus_libdir"
13477 fi
13478 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
13479 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
13480 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
13481 else
13482 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
13483 fi
13484 fi
13485
13486 CFLAGS="$ac_try_CFLAGS $CFLAGS"
13487 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
13488 LIBS="$ac_try_LIBS $LIBS"
13489 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir" >&5
13491 $as_echo_n "checking for GLOBUS_GSI_CREDENTIAL at system default and $ac_globus_libdir... " >&6; }
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13494 #include <globus_gsi_credential.h>
13495 int main(void) {return 0;}
13496 _ACEOF
13497 if ac_fn_c_try_link "$LINENO"; then :
13498 have_mod=yes
13499 else
13500 have_mod=no
13501 fi
13502 rm -f core conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
13505 $as_echo "$have_mod" >&6; }
13506
13507 if test "x$have_mod" = "xyes" ; then
13508 have_globus_mod=yes
13509 if test "x$with_globus_thr_flavor" != "x" ; then
13510 GLOBUS_GSI_CREDENTIAL_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13511 GLOBUS_GSI_CREDENTIAL_THR_CFLAGS=$ac_try_CFLAGS
13512 elif test "x$with_globus_nothr_flavor" != "x" ; then
13513 GLOBUS_GSI_CREDENTIAL_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13514 GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS=$ac_try_CFLAGS
13515 else
13516 GLOBUS_GSI_CREDENTIAL_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13517 GLOBUS_GSI_CREDENTIAL_CFLAGS=$ac_try_CFLAGS
13518 fi
13519 else
13520 have_globus_mod=no
13521 fi
13522
13523 CFLAGS=$ac_save_CFLAGS
13524 CPPFLAGS=$ac_save_CPPFLAGS
13525 LIBS=$ac_save_LIBS
13526 LDFLAGS=$ac_save_LDFLAGS
13527 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
13528 unset LD_LIBRARY_PATH
13529 else
13530 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
13531 fi
13532 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
13533 unset DYLD_LIBRARY_PATH
13534 else
13535 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
13536 fi
13537
13538
13539 if test "$have_globus_mod" = "no" ; then
13540
13541 pkg_failed=no
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_CREDENTIAL" >&5
13543 $as_echo_n "checking for GLOBUS_GSI_CREDENTIAL... " >&6; }
13544
13545 if test -n "$GLOBUS_GSI_CREDENTIAL_CFLAGS"; then
13546 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS="$GLOBUS_GSI_CREDENTIAL_CFLAGS"
13547 elif test -n "$PKG_CONFIG"; then
13548 if test -n "$PKG_CONFIG" && \
13549 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
13550 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
13551 ac_status=$?
13552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13553 test $ac_status = 0; }; then
13554 pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS=`$PKG_CONFIG --cflags "globus-gsi-credential" 2>/dev/null`
13555 test "x$?" != "x0" && pkg_failed=yes
13556 else
13557 pkg_failed=yes
13558 fi
13559 else
13560 pkg_failed=untried
13561 fi
13562 if test -n "$GLOBUS_GSI_CREDENTIAL_LIBS"; then
13563 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS="$GLOBUS_GSI_CREDENTIAL_LIBS"
13564 elif test -n "$PKG_CONFIG"; then
13565 if test -n "$PKG_CONFIG" && \
13566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-credential\""; } >&5
13567 ($PKG_CONFIG --exists --print-errors "globus-gsi-credential") 2>&5
13568 ac_status=$?
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570 test $ac_status = 0; }; then
13571 pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS=`$PKG_CONFIG --libs "globus-gsi-credential" 2>/dev/null`
13572 test "x$?" != "x0" && pkg_failed=yes
13573 else
13574 pkg_failed=yes
13575 fi
13576 else
13577 pkg_failed=untried
13578 fi
13579
13580
13581
13582 if test $pkg_failed = yes; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13585
13586 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13587 _pkg_short_errors_supported=yes
13588 else
13589 _pkg_short_errors_supported=no
13590 fi
13591 if test $_pkg_short_errors_supported = yes; then
13592 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
13593 else
13594 GLOBUS_GSI_CREDENTIAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gsi-credential" 2>&1`
13595 fi
13596 # Put the nasty error message in config.log where it belongs
13597 echo "$GLOBUS_GSI_CREDENTIAL_PKG_ERRORS" >&5
13598
13599 have_globus_mod=no
13600 elif test $pkg_failed = untried; then
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13602 $as_echo "no" >&6; }
13603 have_globus_mod=no
13604 else
13605 GLOBUS_GSI_CREDENTIAL_CFLAGS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_CFLAGS
13606 GLOBUS_GSI_CREDENTIAL_LIBS=$pkg_cv_GLOBUS_GSI_CREDENTIAL_LIBS
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13608 $as_echo "yes" >&6; }
13609 have_globus_mod=yes
13610 fi
13611 fi
13612 fi
13613 have_globus_gsi_credential=$have_globus_mod
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625 if test "x$have_globus_gsi_credential" != "xyes" ; then
13626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13628 as_fn_error $? "\"no globus-gsi-credential found\"
13629 See \`config.log' for more details" "$LINENO" 5; }
13630 fi
13631
13632
13633
13634
13635
13636
13637 if test "x$ac_globus_major" = "x4" ; then
13638
13639
13640
13641 if test "x$with_globus_prefix" = "x" ; then
13642
13643 pkg_failed=no
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_ERROR" >&5
13645 $as_echo_n "checking for GLOBUS_GSSAPI_ERROR... " >&6; }
13646
13647 if test -n "$GLOBUS_GSSAPI_ERROR_CFLAGS"; then
13648 pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS="$GLOBUS_GSSAPI_ERROR_CFLAGS"
13649 elif test -n "$PKG_CONFIG"; then
13650 if test -n "$PKG_CONFIG" && \
13651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-error\""; } >&5
13652 ($PKG_CONFIG --exists --print-errors "globus-gssapi-error") 2>&5
13653 ac_status=$?
13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655 test $ac_status = 0; }; then
13656 pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-error" 2>/dev/null`
13657 test "x$?" != "x0" && pkg_failed=yes
13658 else
13659 pkg_failed=yes
13660 fi
13661 else
13662 pkg_failed=untried
13663 fi
13664 if test -n "$GLOBUS_GSSAPI_ERROR_LIBS"; then
13665 pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS="$GLOBUS_GSSAPI_ERROR_LIBS"
13666 elif test -n "$PKG_CONFIG"; then
13667 if test -n "$PKG_CONFIG" && \
13668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-error\""; } >&5
13669 ($PKG_CONFIG --exists --print-errors "globus-gssapi-error") 2>&5
13670 ac_status=$?
13671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13672 test $ac_status = 0; }; then
13673 pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS=`$PKG_CONFIG --libs "globus-gssapi-error" 2>/dev/null`
13674 test "x$?" != "x0" && pkg_failed=yes
13675 else
13676 pkg_failed=yes
13677 fi
13678 else
13679 pkg_failed=untried
13680 fi
13681
13682
13683
13684 if test $pkg_failed = yes; then
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686 $as_echo "no" >&6; }
13687
13688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13689 _pkg_short_errors_supported=yes
13690 else
13691 _pkg_short_errors_supported=no
13692 fi
13693 if test $_pkg_short_errors_supported = yes; then
13694 GLOBUS_GSSAPI_ERROR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-error" 2>&1`
13695 else
13696 GLOBUS_GSSAPI_ERROR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-error" 2>&1`
13697 fi
13698 # Put the nasty error message in config.log where it belongs
13699 echo "$GLOBUS_GSSAPI_ERROR_PKG_ERRORS" >&5
13700
13701 have_globus_mod=no
13702 elif test $pkg_failed = untried; then
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13705 have_globus_mod=no
13706 else
13707 GLOBUS_GSSAPI_ERROR_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS
13708 GLOBUS_GSSAPI_ERROR_LIBS=$pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13710 $as_echo "yes" >&6; }
13711 have_globus_mod=yes
13712 fi
13713 if test "$have_globus_mod" = "no" ; then
13714
13715 ac_save_CFLAGS=$CFLAGS
13716 ac_save_CPPFLAGS=$CPPFLAGS
13717 ac_save_LIBS=$LIBS
13718 ac_save_LDFLAGS=$LDFLAGS
13719
13720 ac_try_CFLAGS=$ac_globus_cflags
13721
13722 if test "xgssapi_error" = "x" ; then
13723 ac_try_LIBS=""
13724 else
13725 ac_try_LIBS="-lgssapi_error$ac_globus_libsuffix"
13726 fi
13727
13728 ac_try_CPPFLAGS=$ac_try_CFLAGS
13729 if test "x$ac_globus_libdir" != "x" ; then
13730 ac_try_LDFLAGS="$ac_globus_ldflags"
13731 if test "x$LD_LIBRARY_PATH" != "x" ; then
13732 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
13733 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
13734 else
13735 export LD_LIBRARY_PATH="$ac_globus_libdir"
13736 fi
13737 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
13738 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
13739 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
13740 else
13741 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
13742 fi
13743 fi
13744
13745 CFLAGS="$ac_try_CFLAGS $CFLAGS"
13746 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
13747 LIBS="$ac_try_LIBS $LIBS"
13748 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_ERROR at system default and $ac_globus_libdir" >&5
13750 $as_echo_n "checking for GLOBUS_GSSAPI_ERROR at system default and $ac_globus_libdir... " >&6; }
13751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13753 #include <globus_error_gssapi.h>
13754 int main(void) {return 0;}
13755 _ACEOF
13756 if ac_fn_c_try_link "$LINENO"; then :
13757 have_mod=yes
13758 else
13759 have_mod=no
13760 fi
13761 rm -f core conftest.err conftest.$ac_objext \
13762 conftest$ac_exeext conftest.$ac_ext
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
13764 $as_echo "$have_mod" >&6; }
13765
13766 if test "x$have_mod" = "xyes" ; then
13767 have_globus_mod=yes
13768 if test "x$with_globus_thr_flavor" != "x" ; then
13769 GLOBUS_GSSAPI_ERROR_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13770 GLOBUS_GSSAPI_ERROR_THR_CFLAGS=$ac_try_CFLAGS
13771 elif test "x$with_globus_nothr_flavor" != "x" ; then
13772 GLOBUS_GSSAPI_ERROR_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13773 GLOBUS_GSSAPI_ERROR_NOTHR_CFLAGS=$ac_try_CFLAGS
13774 else
13775 GLOBUS_GSSAPI_ERROR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13776 GLOBUS_GSSAPI_ERROR_CFLAGS=$ac_try_CFLAGS
13777 fi
13778 else
13779 have_globus_mod=no
13780 fi
13781
13782 CFLAGS=$ac_save_CFLAGS
13783 CPPFLAGS=$ac_save_CPPFLAGS
13784 LIBS=$ac_save_LIBS
13785 LDFLAGS=$ac_save_LDFLAGS
13786 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
13787 unset LD_LIBRARY_PATH
13788 else
13789 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
13790 fi
13791 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
13792 unset DYLD_LIBRARY_PATH
13793 else
13794 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
13795 fi
13796
13797
13798 fi
13799 else
13800
13801 ac_save_CFLAGS=$CFLAGS
13802 ac_save_CPPFLAGS=$CPPFLAGS
13803 ac_save_LIBS=$LIBS
13804 ac_save_LDFLAGS=$LDFLAGS
13805
13806 ac_try_CFLAGS=$ac_globus_cflags
13807
13808 if test "xgssapi_error" = "x" ; then
13809 ac_try_LIBS=""
13810 else
13811 ac_try_LIBS="-lgssapi_error$ac_globus_libsuffix"
13812 fi
13813
13814 ac_try_CPPFLAGS=$ac_try_CFLAGS
13815 if test "x$ac_globus_libdir" != "x" ; then
13816 ac_try_LDFLAGS="$ac_globus_ldflags"
13817 if test "x$LD_LIBRARY_PATH" != "x" ; then
13818 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
13819 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
13820 else
13821 export LD_LIBRARY_PATH="$ac_globus_libdir"
13822 fi
13823 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
13824 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
13825 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
13826 else
13827 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
13828 fi
13829 fi
13830
13831 CFLAGS="$ac_try_CFLAGS $CFLAGS"
13832 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
13833 LIBS="$ac_try_LIBS $LIBS"
13834 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_ERROR at system default and $ac_globus_libdir" >&5
13836 $as_echo_n "checking for GLOBUS_GSSAPI_ERROR at system default and $ac_globus_libdir... " >&6; }
13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h. */
13839 #include <globus_error_gssapi.h>
13840 int main(void) {return 0;}
13841 _ACEOF
13842 if ac_fn_c_try_link "$LINENO"; then :
13843 have_mod=yes
13844 else
13845 have_mod=no
13846 fi
13847 rm -f core conftest.err conftest.$ac_objext \
13848 conftest$ac_exeext conftest.$ac_ext
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
13850 $as_echo "$have_mod" >&6; }
13851
13852 if test "x$have_mod" = "xyes" ; then
13853 have_globus_mod=yes
13854 if test "x$with_globus_thr_flavor" != "x" ; then
13855 GLOBUS_GSSAPI_ERROR_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13856 GLOBUS_GSSAPI_ERROR_THR_CFLAGS=$ac_try_CFLAGS
13857 elif test "x$with_globus_nothr_flavor" != "x" ; then
13858 GLOBUS_GSSAPI_ERROR_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13859 GLOBUS_GSSAPI_ERROR_NOTHR_CFLAGS=$ac_try_CFLAGS
13860 else
13861 GLOBUS_GSSAPI_ERROR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
13862 GLOBUS_GSSAPI_ERROR_CFLAGS=$ac_try_CFLAGS
13863 fi
13864 else
13865 have_globus_mod=no
13866 fi
13867
13868 CFLAGS=$ac_save_CFLAGS
13869 CPPFLAGS=$ac_save_CPPFLAGS
13870 LIBS=$ac_save_LIBS
13871 LDFLAGS=$ac_save_LDFLAGS
13872 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
13873 unset LD_LIBRARY_PATH
13874 else
13875 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
13876 fi
13877 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
13878 unset DYLD_LIBRARY_PATH
13879 else
13880 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
13881 fi
13882
13883
13884 if test "$have_globus_mod" = "no" ; then
13885
13886 pkg_failed=no
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_ERROR" >&5
13888 $as_echo_n "checking for GLOBUS_GSSAPI_ERROR... " >&6; }
13889
13890 if test -n "$GLOBUS_GSSAPI_ERROR_CFLAGS"; then
13891 pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS="$GLOBUS_GSSAPI_ERROR_CFLAGS"
13892 elif test -n "$PKG_CONFIG"; then
13893 if test -n "$PKG_CONFIG" && \
13894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-error\""; } >&5
13895 ($PKG_CONFIG --exists --print-errors "globus-gssapi-error") 2>&5
13896 ac_status=$?
13897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13898 test $ac_status = 0; }; then
13899 pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-error" 2>/dev/null`
13900 test "x$?" != "x0" && pkg_failed=yes
13901 else
13902 pkg_failed=yes
13903 fi
13904 else
13905 pkg_failed=untried
13906 fi
13907 if test -n "$GLOBUS_GSSAPI_ERROR_LIBS"; then
13908 pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS="$GLOBUS_GSSAPI_ERROR_LIBS"
13909 elif test -n "$PKG_CONFIG"; then
13910 if test -n "$PKG_CONFIG" && \
13911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-error\""; } >&5
13912 ($PKG_CONFIG --exists --print-errors "globus-gssapi-error") 2>&5
13913 ac_status=$?
13914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13915 test $ac_status = 0; }; then
13916 pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS=`$PKG_CONFIG --libs "globus-gssapi-error" 2>/dev/null`
13917 test "x$?" != "x0" && pkg_failed=yes
13918 else
13919 pkg_failed=yes
13920 fi
13921 else
13922 pkg_failed=untried
13923 fi
13924
13925
13926
13927 if test $pkg_failed = yes; then
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929 $as_echo "no" >&6; }
13930
13931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13932 _pkg_short_errors_supported=yes
13933 else
13934 _pkg_short_errors_supported=no
13935 fi
13936 if test $_pkg_short_errors_supported = yes; then
13937 GLOBUS_GSSAPI_ERROR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-error" 2>&1`
13938 else
13939 GLOBUS_GSSAPI_ERROR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-error" 2>&1`
13940 fi
13941 # Put the nasty error message in config.log where it belongs
13942 echo "$GLOBUS_GSSAPI_ERROR_PKG_ERRORS" >&5
13943
13944 have_globus_mod=no
13945 elif test $pkg_failed = untried; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13948 have_globus_mod=no
13949 else
13950 GLOBUS_GSSAPI_ERROR_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS
13951 GLOBUS_GSSAPI_ERROR_LIBS=$pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13953 $as_echo "yes" >&6; }
13954 have_globus_mod=yes
13955 fi
13956 fi
13957 fi
13958 have_globus_gssapi_error=$have_globus_mod
13959
13960
13961
13962
13963
13964
13965
13966 else
13967
13968
13969
13970 if test "x$with_globus_prefix" = "x" ; then
13971
13972 pkg_failed=no
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_ERROR" >&5
13974 $as_echo_n "checking for GLOBUS_GSSAPI_ERROR... " >&6; }
13975
13976 if test -n "$GLOBUS_GSSAPI_ERROR_CFLAGS"; then
13977 pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS="$GLOBUS_GSSAPI_ERROR_CFLAGS"
13978 elif test -n "$PKG_CONFIG"; then
13979 if test -n "$PKG_CONFIG" && \
13980 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-error\""; } >&5
13981 ($PKG_CONFIG --exists --print-errors "globus-gssapi-error") 2>&5
13982 ac_status=$?
13983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13984 test $ac_status = 0; }; then
13985 pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-error" 2>/dev/null`
13986 test "x$?" != "x0" && pkg_failed=yes
13987 else
13988 pkg_failed=yes
13989 fi
13990 else
13991 pkg_failed=untried
13992 fi
13993 if test -n "$GLOBUS_GSSAPI_ERROR_LIBS"; then
13994 pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS="$GLOBUS_GSSAPI_ERROR_LIBS"
13995 elif test -n "$PKG_CONFIG"; then
13996 if test -n "$PKG_CONFIG" && \
13997 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-error\""; } >&5
13998 ($PKG_CONFIG --exists --print-errors "globus-gssapi-error") 2>&5
13999 ac_status=$?
14000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14001 test $ac_status = 0; }; then
14002 pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS=`$PKG_CONFIG --libs "globus-gssapi-error" 2>/dev/null`
14003 test "x$?" != "x0" && pkg_failed=yes
14004 else
14005 pkg_failed=yes
14006 fi
14007 else
14008 pkg_failed=untried
14009 fi
14010
14011
14012
14013 if test $pkg_failed = yes; then
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14015 $as_echo "no" >&6; }
14016
14017 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14018 _pkg_short_errors_supported=yes
14019 else
14020 _pkg_short_errors_supported=no
14021 fi
14022 if test $_pkg_short_errors_supported = yes; then
14023 GLOBUS_GSSAPI_ERROR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-error" 2>&1`
14024 else
14025 GLOBUS_GSSAPI_ERROR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-error" 2>&1`
14026 fi
14027 # Put the nasty error message in config.log where it belongs
14028 echo "$GLOBUS_GSSAPI_ERROR_PKG_ERRORS" >&5
14029
14030 have_globus_mod=no
14031 elif test $pkg_failed = untried; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14033 $as_echo "no" >&6; }
14034 have_globus_mod=no
14035 else
14036 GLOBUS_GSSAPI_ERROR_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS
14037 GLOBUS_GSSAPI_ERROR_LIBS=$pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14039 $as_echo "yes" >&6; }
14040 have_globus_mod=yes
14041 fi
14042 if test "$have_globus_mod" = "no" ; then
14043
14044 ac_save_CFLAGS=$CFLAGS
14045 ac_save_CPPFLAGS=$CPPFLAGS
14046 ac_save_LIBS=$LIBS
14047 ac_save_LDFLAGS=$LDFLAGS
14048
14049 ac_try_CFLAGS=$ac_globus_cflags
14050
14051 if test "xglobus_gssapi_error" = "x" ; then
14052 ac_try_LIBS=""
14053 else
14054 ac_try_LIBS="-lglobus_gssapi_error$ac_globus_libsuffix"
14055 fi
14056
14057 ac_try_CPPFLAGS=$ac_try_CFLAGS
14058 if test "x$ac_globus_libdir" != "x" ; then
14059 ac_try_LDFLAGS="$ac_globus_ldflags"
14060 if test "x$LD_LIBRARY_PATH" != "x" ; then
14061 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
14062 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
14063 else
14064 export LD_LIBRARY_PATH="$ac_globus_libdir"
14065 fi
14066 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
14067 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
14068 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
14069 else
14070 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
14071 fi
14072 fi
14073
14074 CFLAGS="$ac_try_CFLAGS $CFLAGS"
14075 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
14076 LIBS="$ac_try_LIBS $LIBS"
14077 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_ERROR at system default and $ac_globus_libdir" >&5
14079 $as_echo_n "checking for GLOBUS_GSSAPI_ERROR at system default and $ac_globus_libdir... " >&6; }
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 #include <globus_error_gssapi.h>
14083 int main(void) {return 0;}
14084 _ACEOF
14085 if ac_fn_c_try_link "$LINENO"; then :
14086 have_mod=yes
14087 else
14088 have_mod=no
14089 fi
14090 rm -f core conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
14093 $as_echo "$have_mod" >&6; }
14094
14095 if test "x$have_mod" = "xyes" ; then
14096 have_globus_mod=yes
14097 if test "x$with_globus_thr_flavor" != "x" ; then
14098 GLOBUS_GSSAPI_ERROR_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14099 GLOBUS_GSSAPI_ERROR_THR_CFLAGS=$ac_try_CFLAGS
14100 elif test "x$with_globus_nothr_flavor" != "x" ; then
14101 GLOBUS_GSSAPI_ERROR_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14102 GLOBUS_GSSAPI_ERROR_NOTHR_CFLAGS=$ac_try_CFLAGS
14103 else
14104 GLOBUS_GSSAPI_ERROR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14105 GLOBUS_GSSAPI_ERROR_CFLAGS=$ac_try_CFLAGS
14106 fi
14107 else
14108 have_globus_mod=no
14109 fi
14110
14111 CFLAGS=$ac_save_CFLAGS
14112 CPPFLAGS=$ac_save_CPPFLAGS
14113 LIBS=$ac_save_LIBS
14114 LDFLAGS=$ac_save_LDFLAGS
14115 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
14116 unset LD_LIBRARY_PATH
14117 else
14118 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
14119 fi
14120 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
14121 unset DYLD_LIBRARY_PATH
14122 else
14123 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
14124 fi
14125
14126
14127 fi
14128 else
14129
14130 ac_save_CFLAGS=$CFLAGS
14131 ac_save_CPPFLAGS=$CPPFLAGS
14132 ac_save_LIBS=$LIBS
14133 ac_save_LDFLAGS=$LDFLAGS
14134
14135 ac_try_CFLAGS=$ac_globus_cflags
14136
14137 if test "xglobus_gssapi_error" = "x" ; then
14138 ac_try_LIBS=""
14139 else
14140 ac_try_LIBS="-lglobus_gssapi_error$ac_globus_libsuffix"
14141 fi
14142
14143 ac_try_CPPFLAGS=$ac_try_CFLAGS
14144 if test "x$ac_globus_libdir" != "x" ; then
14145 ac_try_LDFLAGS="$ac_globus_ldflags"
14146 if test "x$LD_LIBRARY_PATH" != "x" ; then
14147 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
14148 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
14149 else
14150 export LD_LIBRARY_PATH="$ac_globus_libdir"
14151 fi
14152 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
14153 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
14154 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
14155 else
14156 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
14157 fi
14158 fi
14159
14160 CFLAGS="$ac_try_CFLAGS $CFLAGS"
14161 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
14162 LIBS="$ac_try_LIBS $LIBS"
14163 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_ERROR at system default and $ac_globus_libdir" >&5
14165 $as_echo_n "checking for GLOBUS_GSSAPI_ERROR at system default and $ac_globus_libdir... " >&6; }
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14168 #include <globus_error_gssapi.h>
14169 int main(void) {return 0;}
14170 _ACEOF
14171 if ac_fn_c_try_link "$LINENO"; then :
14172 have_mod=yes
14173 else
14174 have_mod=no
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
14179 $as_echo "$have_mod" >&6; }
14180
14181 if test "x$have_mod" = "xyes" ; then
14182 have_globus_mod=yes
14183 if test "x$with_globus_thr_flavor" != "x" ; then
14184 GLOBUS_GSSAPI_ERROR_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14185 GLOBUS_GSSAPI_ERROR_THR_CFLAGS=$ac_try_CFLAGS
14186 elif test "x$with_globus_nothr_flavor" != "x" ; then
14187 GLOBUS_GSSAPI_ERROR_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14188 GLOBUS_GSSAPI_ERROR_NOTHR_CFLAGS=$ac_try_CFLAGS
14189 else
14190 GLOBUS_GSSAPI_ERROR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14191 GLOBUS_GSSAPI_ERROR_CFLAGS=$ac_try_CFLAGS
14192 fi
14193 else
14194 have_globus_mod=no
14195 fi
14196
14197 CFLAGS=$ac_save_CFLAGS
14198 CPPFLAGS=$ac_save_CPPFLAGS
14199 LIBS=$ac_save_LIBS
14200 LDFLAGS=$ac_save_LDFLAGS
14201 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
14202 unset LD_LIBRARY_PATH
14203 else
14204 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
14205 fi
14206 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
14207 unset DYLD_LIBRARY_PATH
14208 else
14209 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
14210 fi
14211
14212
14213 if test "$have_globus_mod" = "no" ; then
14214
14215 pkg_failed=no
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_ERROR" >&5
14217 $as_echo_n "checking for GLOBUS_GSSAPI_ERROR... " >&6; }
14218
14219 if test -n "$GLOBUS_GSSAPI_ERROR_CFLAGS"; then
14220 pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS="$GLOBUS_GSSAPI_ERROR_CFLAGS"
14221 elif test -n "$PKG_CONFIG"; then
14222 if test -n "$PKG_CONFIG" && \
14223 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-error\""; } >&5
14224 ($PKG_CONFIG --exists --print-errors "globus-gssapi-error") 2>&5
14225 ac_status=$?
14226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227 test $ac_status = 0; }; then
14228 pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-error" 2>/dev/null`
14229 test "x$?" != "x0" && pkg_failed=yes
14230 else
14231 pkg_failed=yes
14232 fi
14233 else
14234 pkg_failed=untried
14235 fi
14236 if test -n "$GLOBUS_GSSAPI_ERROR_LIBS"; then
14237 pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS="$GLOBUS_GSSAPI_ERROR_LIBS"
14238 elif test -n "$PKG_CONFIG"; then
14239 if test -n "$PKG_CONFIG" && \
14240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-error\""; } >&5
14241 ($PKG_CONFIG --exists --print-errors "globus-gssapi-error") 2>&5
14242 ac_status=$?
14243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14244 test $ac_status = 0; }; then
14245 pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS=`$PKG_CONFIG --libs "globus-gssapi-error" 2>/dev/null`
14246 test "x$?" != "x0" && pkg_failed=yes
14247 else
14248 pkg_failed=yes
14249 fi
14250 else
14251 pkg_failed=untried
14252 fi
14253
14254
14255
14256 if test $pkg_failed = yes; then
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14259
14260 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14261 _pkg_short_errors_supported=yes
14262 else
14263 _pkg_short_errors_supported=no
14264 fi
14265 if test $_pkg_short_errors_supported = yes; then
14266 GLOBUS_GSSAPI_ERROR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-error" 2>&1`
14267 else
14268 GLOBUS_GSSAPI_ERROR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-error" 2>&1`
14269 fi
14270 # Put the nasty error message in config.log where it belongs
14271 echo "$GLOBUS_GSSAPI_ERROR_PKG_ERRORS" >&5
14272
14273 have_globus_mod=no
14274 elif test $pkg_failed = untried; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14276 $as_echo "no" >&6; }
14277 have_globus_mod=no
14278 else
14279 GLOBUS_GSSAPI_ERROR_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_ERROR_CFLAGS
14280 GLOBUS_GSSAPI_ERROR_LIBS=$pkg_cv_GLOBUS_GSSAPI_ERROR_LIBS
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14282 $as_echo "yes" >&6; }
14283 have_globus_mod=yes
14284 fi
14285 fi
14286 fi
14287 have_globus_gssapi_error=$have_globus_mod
14288
14289
14290
14291
14292
14293
14294
14295 fi
14296
14297
14298
14299
14300 if test "x$have_globus_gssapi_error" != "xyes" ; then
14301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14303 as_fn_error $? "\"no globus-gssapi-error found\"
14304 See \`config.log' for more details" "$LINENO" 5; }
14305 fi
14306
14307
14308
14309
14310
14311
14312
14313 if test "x$globus_tested" = "x"; then :
14314
14315 globus_tested="yes"
14316
14317 if test "x$with_globus_thr_flavor" != "x" ; then
14318 if test "x$with_globus_nothr_flavor" != "x" -o
14319 test "x$with_globus_flavor" != "x" ; then
14320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14322 as_fn_error $? "Cannot build against multiple flavor types
14323 See \`config.log' for more details" "$LINENO" 5; }
14324 fi
14325 ac_globus_flavor=$with_globus_thr_flavor
14326 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
14327 elif test "x$with_globus_nothr_flavor" != "x" ; then
14328 if test "x$with_globus_flavor" != "x" ; then
14329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14331 as_fn_error $? "Cannot build against multiple flavor types
14332 See \`config.log' for more details" "$LINENO" 5; }
14333 fi
14334 ac_globus_flavor=$with_globus_nothr_flavor
14335 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
14336 elif test "x$with_globus_flavor" != "x" ; then
14337 ac_globus_flavor=$with_globus_flavor
14338 GLOBUS_FLAVOR=$with_globus_flavor
14339 fi
14340
14341
14342
14343
14344 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
14345 ac_globus_prefix=/usr
14346 fi
14347
14348 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
14349 ac_globus_prefix=/opt/globus
14350 fi
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
14353 $as_echo_n "checking for globus version... " >&6; }
14354 if test "x$ac_globus_prefix" = "x" ; then
14355 ac_globus_version_script=`which globus-version 2> /dev/null`
14356 else
14357 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
14358 fi
14359 if test "x$ac_globus_version_script" != "x" ; then
14360 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
14363 $as_echo "$ac_globus_version" >&6; }
14364
14365 if test "x$ac_globus_version" != "x" ; then
14366 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
14367 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
14368 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
14369 fi
14370
14371 if test "x$ac_globus_prefix" != "x" ; then
14372 if test "x$ac_globus_libdir" = "x" ; then
14373 if test "x$host_cpu" = "xx86_64" \
14374 -a -e $ac_globus_prefix/lib64 \
14375 -a ! -h $ac_globus_prefix/lib64 ; then
14376 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
14377 if test $num -gt 0 ; then
14378 ac_globus_libdir="$ac_globus_prefix/lib64"
14379 else
14380 ac_globus_libdir="$ac_globus_prefix/lib"
14381 fi
14382 else
14383 ac_globus_libdir="$ac_globus_prefix/lib"
14384 fi
14385 fi
14386 ac_globus_ldflags="-L$ac_globus_libdir"
14387
14388 if test -d "$ac_globus_prefix/include/globus" ; then
14389 ac_globus_cflags=-I$ac_globus_prefix/include/globus
14390 if test "x$ac_globus_flavorincdir" != "x" ; then
14391 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
14392 elif test "x$ac_globus_flavor" != "x" ; then
14393 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
14394 else
14395 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
14396 fi
14397 ac_globus_libsuffix=""
14398 else
14399 if test "x$ac_globus_flavor" != "x" ; then
14400 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
14401 ac_globus_libsuffix=_$ac_globus_flavor
14402 elif test -d "$ac_globus_prefix/include"; then
14403 ac_globus_cflags=-I$ac_globus_prefix/include
14404 else ac_globus_cflags=""
14405 ac_globus_libsuffix=""
14406 fi
14407 fi
14408 fi
14409
14410 fi
14411
14412
14413
14414
14415 if test "x$with_globus_prefix" = "x" ; then
14416
14417 pkg_failed=no
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI" >&5
14419 $as_echo_n "checking for GLOBUS_GSSAPI_GSI... " >&6; }
14420
14421 if test -n "$GLOBUS_GSSAPI_GSI_CFLAGS"; then
14422 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS"
14423 elif test -n "$PKG_CONFIG"; then
14424 if test -n "$PKG_CONFIG" && \
14425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
14426 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
14427 ac_status=$?
14428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14429 test $ac_status = 0; }; then
14430 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-gsi" 2>/dev/null`
14431 test "x$?" != "x0" && pkg_failed=yes
14432 else
14433 pkg_failed=yes
14434 fi
14435 else
14436 pkg_failed=untried
14437 fi
14438 if test -n "$GLOBUS_GSSAPI_GSI_LIBS"; then
14439 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS="$GLOBUS_GSSAPI_GSI_LIBS"
14440 elif test -n "$PKG_CONFIG"; then
14441 if test -n "$PKG_CONFIG" && \
14442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
14443 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
14444 ac_status=$?
14445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14446 test $ac_status = 0; }; then
14447 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS=`$PKG_CONFIG --libs "globus-gssapi-gsi" 2>/dev/null`
14448 test "x$?" != "x0" && pkg_failed=yes
14449 else
14450 pkg_failed=yes
14451 fi
14452 else
14453 pkg_failed=untried
14454 fi
14455
14456
14457
14458 if test $pkg_failed = yes; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14460 $as_echo "no" >&6; }
14461
14462 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14463 _pkg_short_errors_supported=yes
14464 else
14465 _pkg_short_errors_supported=no
14466 fi
14467 if test $_pkg_short_errors_supported = yes; then
14468 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
14469 else
14470 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
14471 fi
14472 # Put the nasty error message in config.log where it belongs
14473 echo "$GLOBUS_GSSAPI_GSI_PKG_ERRORS" >&5
14474
14475 have_globus_mod=no
14476 elif test $pkg_failed = untried; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14478 $as_echo "no" >&6; }
14479 have_globus_mod=no
14480 else
14481 GLOBUS_GSSAPI_GSI_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS
14482 GLOBUS_GSSAPI_GSI_LIBS=$pkg_cv_GLOBUS_GSSAPI_GSI_LIBS
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14484 $as_echo "yes" >&6; }
14485 have_globus_mod=yes
14486 fi
14487 if test "$have_globus_mod" = "no" ; then
14488
14489 ac_save_CFLAGS=$CFLAGS
14490 ac_save_CPPFLAGS=$CPPFLAGS
14491 ac_save_LIBS=$LIBS
14492 ac_save_LDFLAGS=$LDFLAGS
14493
14494 ac_try_CFLAGS=$ac_globus_cflags
14495
14496 if test "xglobus_gssapi_gsi" = "x" ; then
14497 ac_try_LIBS=""
14498 else
14499 ac_try_LIBS="-lglobus_gssapi_gsi$ac_globus_libsuffix"
14500 fi
14501
14502 ac_try_CPPFLAGS=$ac_try_CFLAGS
14503 if test "x$ac_globus_libdir" != "x" ; then
14504 ac_try_LDFLAGS="$ac_globus_ldflags"
14505 if test "x$LD_LIBRARY_PATH" != "x" ; then
14506 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
14507 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
14508 else
14509 export LD_LIBRARY_PATH="$ac_globus_libdir"
14510 fi
14511 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
14512 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
14513 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
14514 else
14515 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
14516 fi
14517 fi
14518
14519 CFLAGS="$ac_try_CFLAGS $CFLAGS"
14520 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
14521 LIBS="$ac_try_LIBS $LIBS"
14522 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir" >&5
14524 $as_echo_n "checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir... " >&6; }
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527 #include <gssapi.h>
14528 int main(void) {return 0;}
14529 _ACEOF
14530 if ac_fn_c_try_link "$LINENO"; then :
14531 have_mod=yes
14532 else
14533 have_mod=no
14534 fi
14535 rm -f core conftest.err conftest.$ac_objext \
14536 conftest$ac_exeext conftest.$ac_ext
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
14538 $as_echo "$have_mod" >&6; }
14539
14540 if test "x$have_mod" = "xyes" ; then
14541 have_globus_mod=yes
14542 if test "x$with_globus_thr_flavor" != "x" ; then
14543 GLOBUS_GSSAPI_GSI_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14544 GLOBUS_GSSAPI_GSI_THR_CFLAGS=$ac_try_CFLAGS
14545 elif test "x$with_globus_nothr_flavor" != "x" ; then
14546 GLOBUS_GSSAPI_GSI_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14547 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS=$ac_try_CFLAGS
14548 else
14549 GLOBUS_GSSAPI_GSI_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14550 GLOBUS_GSSAPI_GSI_CFLAGS=$ac_try_CFLAGS
14551 fi
14552 else
14553 have_globus_mod=no
14554 fi
14555
14556 CFLAGS=$ac_save_CFLAGS
14557 CPPFLAGS=$ac_save_CPPFLAGS
14558 LIBS=$ac_save_LIBS
14559 LDFLAGS=$ac_save_LDFLAGS
14560 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
14561 unset LD_LIBRARY_PATH
14562 else
14563 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
14564 fi
14565 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
14566 unset DYLD_LIBRARY_PATH
14567 else
14568 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
14569 fi
14570
14571
14572 fi
14573 else
14574
14575 ac_save_CFLAGS=$CFLAGS
14576 ac_save_CPPFLAGS=$CPPFLAGS
14577 ac_save_LIBS=$LIBS
14578 ac_save_LDFLAGS=$LDFLAGS
14579
14580 ac_try_CFLAGS=$ac_globus_cflags
14581
14582 if test "xglobus_gssapi_gsi" = "x" ; then
14583 ac_try_LIBS=""
14584 else
14585 ac_try_LIBS="-lglobus_gssapi_gsi$ac_globus_libsuffix"
14586 fi
14587
14588 ac_try_CPPFLAGS=$ac_try_CFLAGS
14589 if test "x$ac_globus_libdir" != "x" ; then
14590 ac_try_LDFLAGS="$ac_globus_ldflags"
14591 if test "x$LD_LIBRARY_PATH" != "x" ; then
14592 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
14593 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
14594 else
14595 export LD_LIBRARY_PATH="$ac_globus_libdir"
14596 fi
14597 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
14598 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
14599 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
14600 else
14601 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
14602 fi
14603 fi
14604
14605 CFLAGS="$ac_try_CFLAGS $CFLAGS"
14606 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
14607 LIBS="$ac_try_LIBS $LIBS"
14608 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir" >&5
14610 $as_echo_n "checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir... " >&6; }
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 #include <gssapi.h>
14614 int main(void) {return 0;}
14615 _ACEOF
14616 if ac_fn_c_try_link "$LINENO"; then :
14617 have_mod=yes
14618 else
14619 have_mod=no
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext \
14622 conftest$ac_exeext conftest.$ac_ext
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
14624 $as_echo "$have_mod" >&6; }
14625
14626 if test "x$have_mod" = "xyes" ; then
14627 have_globus_mod=yes
14628 if test "x$with_globus_thr_flavor" != "x" ; then
14629 GLOBUS_GSSAPI_GSI_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14630 GLOBUS_GSSAPI_GSI_THR_CFLAGS=$ac_try_CFLAGS
14631 elif test "x$with_globus_nothr_flavor" != "x" ; then
14632 GLOBUS_GSSAPI_GSI_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14633 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS=$ac_try_CFLAGS
14634 else
14635 GLOBUS_GSSAPI_GSI_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14636 GLOBUS_GSSAPI_GSI_CFLAGS=$ac_try_CFLAGS
14637 fi
14638 else
14639 have_globus_mod=no
14640 fi
14641
14642 CFLAGS=$ac_save_CFLAGS
14643 CPPFLAGS=$ac_save_CPPFLAGS
14644 LIBS=$ac_save_LIBS
14645 LDFLAGS=$ac_save_LDFLAGS
14646 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
14647 unset LD_LIBRARY_PATH
14648 else
14649 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
14650 fi
14651 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
14652 unset DYLD_LIBRARY_PATH
14653 else
14654 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
14655 fi
14656
14657
14658 if test "$have_globus_mod" = "no" ; then
14659
14660 pkg_failed=no
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI" >&5
14662 $as_echo_n "checking for GLOBUS_GSSAPI_GSI... " >&6; }
14663
14664 if test -n "$GLOBUS_GSSAPI_GSI_CFLAGS"; then
14665 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS"
14666 elif test -n "$PKG_CONFIG"; then
14667 if test -n "$PKG_CONFIG" && \
14668 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
14669 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
14670 ac_status=$?
14671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14672 test $ac_status = 0; }; then
14673 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-gsi" 2>/dev/null`
14674 test "x$?" != "x0" && pkg_failed=yes
14675 else
14676 pkg_failed=yes
14677 fi
14678 else
14679 pkg_failed=untried
14680 fi
14681 if test -n "$GLOBUS_GSSAPI_GSI_LIBS"; then
14682 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS="$GLOBUS_GSSAPI_GSI_LIBS"
14683 elif test -n "$PKG_CONFIG"; then
14684 if test -n "$PKG_CONFIG" && \
14685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
14686 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
14687 ac_status=$?
14688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14689 test $ac_status = 0; }; then
14690 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS=`$PKG_CONFIG --libs "globus-gssapi-gsi" 2>/dev/null`
14691 test "x$?" != "x0" && pkg_failed=yes
14692 else
14693 pkg_failed=yes
14694 fi
14695 else
14696 pkg_failed=untried
14697 fi
14698
14699
14700
14701 if test $pkg_failed = yes; then
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14703 $as_echo "no" >&6; }
14704
14705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14706 _pkg_short_errors_supported=yes
14707 else
14708 _pkg_short_errors_supported=no
14709 fi
14710 if test $_pkg_short_errors_supported = yes; then
14711 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
14712 else
14713 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
14714 fi
14715 # Put the nasty error message in config.log where it belongs
14716 echo "$GLOBUS_GSSAPI_GSI_PKG_ERRORS" >&5
14717
14718 have_globus_mod=no
14719 elif test $pkg_failed = untried; then
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14721 $as_echo "no" >&6; }
14722 have_globus_mod=no
14723 else
14724 GLOBUS_GSSAPI_GSI_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS
14725 GLOBUS_GSSAPI_GSI_LIBS=$pkg_cv_GLOBUS_GSSAPI_GSI_LIBS
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14727 $as_echo "yes" >&6; }
14728 have_globus_mod=yes
14729 fi
14730 fi
14731 fi
14732 have_globus_gssapi_gsi=$have_globus_mod
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744 if test "x$have_globus_gssapi_gsi" != "xyes" ; then
14745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14747 as_fn_error $? "\"no globus-gssapi-gsi found\"
14748 See \`config.log' for more details" "$LINENO" 5; }
14749 fi
14750
14751
14752
14753 # next ones only for types, not for linking
14754
14755
14756
14757
14758
14759 if test "x$globus_tested" = "x"; then :
14760
14761 globus_tested="yes"
14762
14763 if test "x$with_globus_thr_flavor" != "x" ; then
14764 if test "x$with_globus_nothr_flavor" != "x" -o
14765 test "x$with_globus_flavor" != "x" ; then
14766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14768 as_fn_error $? "Cannot build against multiple flavor types
14769 See \`config.log' for more details" "$LINENO" 5; }
14770 fi
14771 ac_globus_flavor=$with_globus_thr_flavor
14772 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
14773 elif test "x$with_globus_nothr_flavor" != "x" ; then
14774 if test "x$with_globus_flavor" != "x" ; then
14775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14777 as_fn_error $? "Cannot build against multiple flavor types
14778 See \`config.log' for more details" "$LINENO" 5; }
14779 fi
14780 ac_globus_flavor=$with_globus_nothr_flavor
14781 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
14782 elif test "x$with_globus_flavor" != "x" ; then
14783 ac_globus_flavor=$with_globus_flavor
14784 GLOBUS_FLAVOR=$with_globus_flavor
14785 fi
14786
14787
14788
14789
14790 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
14791 ac_globus_prefix=/usr
14792 fi
14793
14794 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
14795 ac_globus_prefix=/opt/globus
14796 fi
14797
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
14799 $as_echo_n "checking for globus version... " >&6; }
14800 if test "x$ac_globus_prefix" = "x" ; then
14801 ac_globus_version_script=`which globus-version 2> /dev/null`
14802 else
14803 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
14804 fi
14805 if test "x$ac_globus_version_script" != "x" ; then
14806 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
14807 fi
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
14809 $as_echo "$ac_globus_version" >&6; }
14810
14811 if test "x$ac_globus_version" != "x" ; then
14812 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
14813 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
14814 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
14815 fi
14816
14817 if test "x$ac_globus_prefix" != "x" ; then
14818 if test "x$ac_globus_libdir" = "x" ; then
14819 if test "x$host_cpu" = "xx86_64" \
14820 -a -e $ac_globus_prefix/lib64 \
14821 -a ! -h $ac_globus_prefix/lib64 ; then
14822 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
14823 if test $num -gt 0 ; then
14824 ac_globus_libdir="$ac_globus_prefix/lib64"
14825 else
14826 ac_globus_libdir="$ac_globus_prefix/lib"
14827 fi
14828 else
14829 ac_globus_libdir="$ac_globus_prefix/lib"
14830 fi
14831 fi
14832 ac_globus_ldflags="-L$ac_globus_libdir"
14833
14834 if test -d "$ac_globus_prefix/include/globus" ; then
14835 ac_globus_cflags=-I$ac_globus_prefix/include/globus
14836 if test "x$ac_globus_flavorincdir" != "x" ; then
14837 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
14838 elif test "x$ac_globus_flavor" != "x" ; then
14839 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
14840 else
14841 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
14842 fi
14843 ac_globus_libsuffix=""
14844 else
14845 if test "x$ac_globus_flavor" != "x" ; then
14846 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
14847 ac_globus_libsuffix=_$ac_globus_flavor
14848 elif test -d "$ac_globus_prefix/include"; then
14849 ac_globus_cflags=-I$ac_globus_prefix/include
14850 else ac_globus_cflags=""
14851 ac_globus_libsuffix=""
14852 fi
14853 fi
14854 fi
14855
14856 fi
14857
14858
14859
14860
14861 if test "x$with_globus_prefix" = "x" ; then
14862
14863 pkg_failed=no
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSS_ASSIST" >&5
14865 $as_echo_n "checking for GLOBUS_GSS_ASSIST... " >&6; }
14866
14867 if test -n "$GLOBUS_GSS_ASSIST_CFLAGS"; then
14868 pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS="$GLOBUS_GSS_ASSIST_CFLAGS"
14869 elif test -n "$PKG_CONFIG"; then
14870 if test -n "$PKG_CONFIG" && \
14871 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gss-assist\""; } >&5
14872 ($PKG_CONFIG --exists --print-errors "globus-gss-assist") 2>&5
14873 ac_status=$?
14874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14875 test $ac_status = 0; }; then
14876 pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS=`$PKG_CONFIG --cflags "globus-gss-assist" 2>/dev/null`
14877 test "x$?" != "x0" && pkg_failed=yes
14878 else
14879 pkg_failed=yes
14880 fi
14881 else
14882 pkg_failed=untried
14883 fi
14884 if test -n "$GLOBUS_GSS_ASSIST_LIBS"; then
14885 pkg_cv_GLOBUS_GSS_ASSIST_LIBS="$GLOBUS_GSS_ASSIST_LIBS"
14886 elif test -n "$PKG_CONFIG"; then
14887 if test -n "$PKG_CONFIG" && \
14888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gss-assist\""; } >&5
14889 ($PKG_CONFIG --exists --print-errors "globus-gss-assist") 2>&5
14890 ac_status=$?
14891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14892 test $ac_status = 0; }; then
14893 pkg_cv_GLOBUS_GSS_ASSIST_LIBS=`$PKG_CONFIG --libs "globus-gss-assist" 2>/dev/null`
14894 test "x$?" != "x0" && pkg_failed=yes
14895 else
14896 pkg_failed=yes
14897 fi
14898 else
14899 pkg_failed=untried
14900 fi
14901
14902
14903
14904 if test $pkg_failed = yes; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906 $as_echo "no" >&6; }
14907
14908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14909 _pkg_short_errors_supported=yes
14910 else
14911 _pkg_short_errors_supported=no
14912 fi
14913 if test $_pkg_short_errors_supported = yes; then
14914 GLOBUS_GSS_ASSIST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gss-assist" 2>&1`
14915 else
14916 GLOBUS_GSS_ASSIST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gss-assist" 2>&1`
14917 fi
14918 # Put the nasty error message in config.log where it belongs
14919 echo "$GLOBUS_GSS_ASSIST_PKG_ERRORS" >&5
14920
14921 have_globus_mod=no
14922 elif test $pkg_failed = untried; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14925 have_globus_mod=no
14926 else
14927 GLOBUS_GSS_ASSIST_CFLAGS=$pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS
14928 GLOBUS_GSS_ASSIST_LIBS=$pkg_cv_GLOBUS_GSS_ASSIST_LIBS
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14930 $as_echo "yes" >&6; }
14931 have_globus_mod=yes
14932 fi
14933 if test "$have_globus_mod" = "no" ; then
14934
14935 ac_save_CFLAGS=$CFLAGS
14936 ac_save_CPPFLAGS=$CPPFLAGS
14937 ac_save_LIBS=$LIBS
14938 ac_save_LDFLAGS=$LDFLAGS
14939
14940 ac_try_CFLAGS=$ac_globus_cflags
14941
14942 if test "xglobus_gss_assist" = "x" ; then
14943 ac_try_LIBS=""
14944 else
14945 ac_try_LIBS="-lglobus_gss_assist$ac_globus_libsuffix"
14946 fi
14947
14948 ac_try_CPPFLAGS=$ac_try_CFLAGS
14949 if test "x$ac_globus_libdir" != "x" ; then
14950 ac_try_LDFLAGS="$ac_globus_ldflags"
14951 if test "x$LD_LIBRARY_PATH" != "x" ; then
14952 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
14953 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
14954 else
14955 export LD_LIBRARY_PATH="$ac_globus_libdir"
14956 fi
14957 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
14958 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
14959 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
14960 else
14961 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
14962 fi
14963 fi
14964
14965 CFLAGS="$ac_try_CFLAGS $CFLAGS"
14966 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
14967 LIBS="$ac_try_LIBS $LIBS"
14968 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSS_ASSIST at system default and $ac_globus_libdir" >&5
14970 $as_echo_n "checking for GLOBUS_GSS_ASSIST at system default and $ac_globus_libdir... " >&6; }
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14973 #include <globus_gss_assist.h>
14974 int main(void) {return 0;}
14975 _ACEOF
14976 if ac_fn_c_try_link "$LINENO"; then :
14977 have_mod=yes
14978 else
14979 have_mod=no
14980 fi
14981 rm -f core conftest.err conftest.$ac_objext \
14982 conftest$ac_exeext conftest.$ac_ext
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
14984 $as_echo "$have_mod" >&6; }
14985
14986 if test "x$have_mod" = "xyes" ; then
14987 have_globus_mod=yes
14988 if test "x$with_globus_thr_flavor" != "x" ; then
14989 GLOBUS_GSS_ASSIST_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14990 GLOBUS_GSS_ASSIST_THR_CFLAGS=$ac_try_CFLAGS
14991 elif test "x$with_globus_nothr_flavor" != "x" ; then
14992 GLOBUS_GSS_ASSIST_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14993 GLOBUS_GSS_ASSIST_NOTHR_CFLAGS=$ac_try_CFLAGS
14994 else
14995 GLOBUS_GSS_ASSIST_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
14996 GLOBUS_GSS_ASSIST_CFLAGS=$ac_try_CFLAGS
14997 fi
14998 else
14999 have_globus_mod=no
15000 fi
15001
15002 CFLAGS=$ac_save_CFLAGS
15003 CPPFLAGS=$ac_save_CPPFLAGS
15004 LIBS=$ac_save_LIBS
15005 LDFLAGS=$ac_save_LDFLAGS
15006 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
15007 unset LD_LIBRARY_PATH
15008 else
15009 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
15010 fi
15011 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
15012 unset DYLD_LIBRARY_PATH
15013 else
15014 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
15015 fi
15016
15017
15018 fi
15019 else
15020
15021 ac_save_CFLAGS=$CFLAGS
15022 ac_save_CPPFLAGS=$CPPFLAGS
15023 ac_save_LIBS=$LIBS
15024 ac_save_LDFLAGS=$LDFLAGS
15025
15026 ac_try_CFLAGS=$ac_globus_cflags
15027
15028 if test "xglobus_gss_assist" = "x" ; then
15029 ac_try_LIBS=""
15030 else
15031 ac_try_LIBS="-lglobus_gss_assist$ac_globus_libsuffix"
15032 fi
15033
15034 ac_try_CPPFLAGS=$ac_try_CFLAGS
15035 if test "x$ac_globus_libdir" != "x" ; then
15036 ac_try_LDFLAGS="$ac_globus_ldflags"
15037 if test "x$LD_LIBRARY_PATH" != "x" ; then
15038 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
15039 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
15040 else
15041 export LD_LIBRARY_PATH="$ac_globus_libdir"
15042 fi
15043 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
15044 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
15045 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
15046 else
15047 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
15048 fi
15049 fi
15050
15051 CFLAGS="$ac_try_CFLAGS $CFLAGS"
15052 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
15053 LIBS="$ac_try_LIBS $LIBS"
15054 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSS_ASSIST at system default and $ac_globus_libdir" >&5
15056 $as_echo_n "checking for GLOBUS_GSS_ASSIST at system default and $ac_globus_libdir... " >&6; }
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15059 #include <globus_gss_assist.h>
15060 int main(void) {return 0;}
15061 _ACEOF
15062 if ac_fn_c_try_link "$LINENO"; then :
15063 have_mod=yes
15064 else
15065 have_mod=no
15066 fi
15067 rm -f core conftest.err conftest.$ac_objext \
15068 conftest$ac_exeext conftest.$ac_ext
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
15070 $as_echo "$have_mod" >&6; }
15071
15072 if test "x$have_mod" = "xyes" ; then
15073 have_globus_mod=yes
15074 if test "x$with_globus_thr_flavor" != "x" ; then
15075 GLOBUS_GSS_ASSIST_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15076 GLOBUS_GSS_ASSIST_THR_CFLAGS=$ac_try_CFLAGS
15077 elif test "x$with_globus_nothr_flavor" != "x" ; then
15078 GLOBUS_GSS_ASSIST_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15079 GLOBUS_GSS_ASSIST_NOTHR_CFLAGS=$ac_try_CFLAGS
15080 else
15081 GLOBUS_GSS_ASSIST_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15082 GLOBUS_GSS_ASSIST_CFLAGS=$ac_try_CFLAGS
15083 fi
15084 else
15085 have_globus_mod=no
15086 fi
15087
15088 CFLAGS=$ac_save_CFLAGS
15089 CPPFLAGS=$ac_save_CPPFLAGS
15090 LIBS=$ac_save_LIBS
15091 LDFLAGS=$ac_save_LDFLAGS
15092 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
15093 unset LD_LIBRARY_PATH
15094 else
15095 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
15096 fi
15097 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
15098 unset DYLD_LIBRARY_PATH
15099 else
15100 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
15101 fi
15102
15103
15104 if test "$have_globus_mod" = "no" ; then
15105
15106 pkg_failed=no
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSS_ASSIST" >&5
15108 $as_echo_n "checking for GLOBUS_GSS_ASSIST... " >&6; }
15109
15110 if test -n "$GLOBUS_GSS_ASSIST_CFLAGS"; then
15111 pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS="$GLOBUS_GSS_ASSIST_CFLAGS"
15112 elif test -n "$PKG_CONFIG"; then
15113 if test -n "$PKG_CONFIG" && \
15114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gss-assist\""; } >&5
15115 ($PKG_CONFIG --exists --print-errors "globus-gss-assist") 2>&5
15116 ac_status=$?
15117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15118 test $ac_status = 0; }; then
15119 pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS=`$PKG_CONFIG --cflags "globus-gss-assist" 2>/dev/null`
15120 test "x$?" != "x0" && pkg_failed=yes
15121 else
15122 pkg_failed=yes
15123 fi
15124 else
15125 pkg_failed=untried
15126 fi
15127 if test -n "$GLOBUS_GSS_ASSIST_LIBS"; then
15128 pkg_cv_GLOBUS_GSS_ASSIST_LIBS="$GLOBUS_GSS_ASSIST_LIBS"
15129 elif test -n "$PKG_CONFIG"; then
15130 if test -n "$PKG_CONFIG" && \
15131 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gss-assist\""; } >&5
15132 ($PKG_CONFIG --exists --print-errors "globus-gss-assist") 2>&5
15133 ac_status=$?
15134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15135 test $ac_status = 0; }; then
15136 pkg_cv_GLOBUS_GSS_ASSIST_LIBS=`$PKG_CONFIG --libs "globus-gss-assist" 2>/dev/null`
15137 test "x$?" != "x0" && pkg_failed=yes
15138 else
15139 pkg_failed=yes
15140 fi
15141 else
15142 pkg_failed=untried
15143 fi
15144
15145
15146
15147 if test $pkg_failed = yes; then
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15149 $as_echo "no" >&6; }
15150
15151 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15152 _pkg_short_errors_supported=yes
15153 else
15154 _pkg_short_errors_supported=no
15155 fi
15156 if test $_pkg_short_errors_supported = yes; then
15157 GLOBUS_GSS_ASSIST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gss-assist" 2>&1`
15158 else
15159 GLOBUS_GSS_ASSIST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gss-assist" 2>&1`
15160 fi
15161 # Put the nasty error message in config.log where it belongs
15162 echo "$GLOBUS_GSS_ASSIST_PKG_ERRORS" >&5
15163
15164 have_globus_mod=no
15165 elif test $pkg_failed = untried; then
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15167 $as_echo "no" >&6; }
15168 have_globus_mod=no
15169 else
15170 GLOBUS_GSS_ASSIST_CFLAGS=$pkg_cv_GLOBUS_GSS_ASSIST_CFLAGS
15171 GLOBUS_GSS_ASSIST_LIBS=$pkg_cv_GLOBUS_GSS_ASSIST_LIBS
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15173 $as_echo "yes" >&6; }
15174 have_globus_mod=yes
15175 fi
15176 fi
15177 fi
15178 have_globus_gss_assist=$have_globus_mod
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190 if test "x$have_globus_gss_assist" != "xyes" ; then
15191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15193 as_fn_error $? "\"no globus-gss-assist found\"
15194 See \`config.log' for more details" "$LINENO" 5; }
15195 fi
15196
15197
15198
15199
15200
15201
15202
15203 if test "x$globus_tested" = "x"; then :
15204
15205 globus_tested="yes"
15206
15207 if test "x$with_globus_thr_flavor" != "x" ; then
15208 if test "x$with_globus_nothr_flavor" != "x" -o
15209 test "x$with_globus_flavor" != "x" ; then
15210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15212 as_fn_error $? "Cannot build against multiple flavor types
15213 See \`config.log' for more details" "$LINENO" 5; }
15214 fi
15215 ac_globus_flavor=$with_globus_thr_flavor
15216 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
15217 elif test "x$with_globus_nothr_flavor" != "x" ; then
15218 if test "x$with_globus_flavor" != "x" ; then
15219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15221 as_fn_error $? "Cannot build against multiple flavor types
15222 See \`config.log' for more details" "$LINENO" 5; }
15223 fi
15224 ac_globus_flavor=$with_globus_nothr_flavor
15225 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
15226 elif test "x$with_globus_flavor" != "x" ; then
15227 ac_globus_flavor=$with_globus_flavor
15228 GLOBUS_FLAVOR=$with_globus_flavor
15229 fi
15230
15231
15232
15233
15234 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
15235 ac_globus_prefix=/usr
15236 fi
15237
15238 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
15239 ac_globus_prefix=/opt/globus
15240 fi
15241
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
15243 $as_echo_n "checking for globus version... " >&6; }
15244 if test "x$ac_globus_prefix" = "x" ; then
15245 ac_globus_version_script=`which globus-version 2> /dev/null`
15246 else
15247 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
15248 fi
15249 if test "x$ac_globus_version_script" != "x" ; then
15250 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
15253 $as_echo "$ac_globus_version" >&6; }
15254
15255 if test "x$ac_globus_version" != "x" ; then
15256 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
15257 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
15258 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
15259 fi
15260
15261 if test "x$ac_globus_prefix" != "x" ; then
15262 if test "x$ac_globus_libdir" = "x" ; then
15263 if test "x$host_cpu" = "xx86_64" \
15264 -a -e $ac_globus_prefix/lib64 \
15265 -a ! -h $ac_globus_prefix/lib64 ; then
15266 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
15267 if test $num -gt 0 ; then
15268 ac_globus_libdir="$ac_globus_prefix/lib64"
15269 else
15270 ac_globus_libdir="$ac_globus_prefix/lib"
15271 fi
15272 else
15273 ac_globus_libdir="$ac_globus_prefix/lib"
15274 fi
15275 fi
15276 ac_globus_ldflags="-L$ac_globus_libdir"
15277
15278 if test -d "$ac_globus_prefix/include/globus" ; then
15279 ac_globus_cflags=-I$ac_globus_prefix/include/globus
15280 if test "x$ac_globus_flavorincdir" != "x" ; then
15281 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
15282 elif test "x$ac_globus_flavor" != "x" ; then
15283 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
15284 else
15285 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
15286 fi
15287 ac_globus_libsuffix=""
15288 else
15289 if test "x$ac_globus_flavor" != "x" ; then
15290 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
15291 ac_globus_libsuffix=_$ac_globus_flavor
15292 elif test -d "$ac_globus_prefix/include"; then
15293 ac_globus_cflags=-I$ac_globus_prefix/include
15294 else ac_globus_cflags=""
15295 ac_globus_libsuffix=""
15296 fi
15297 fi
15298 fi
15299
15300 fi
15301
15302
15303
15304
15305 if test "x$with_globus_prefix" = "x" ; then
15306
15307 pkg_failed=no
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GRIDMAP_CALLOUT_ERROR" >&5
15309 $as_echo_n "checking for GLOBUS_GRIDMAP_CALLOUT_ERROR... " >&6; }
15310
15311 if test -n "$GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS"; then
15312 pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS="$GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS"
15313 elif test -n "$PKG_CONFIG"; then
15314 if test -n "$PKG_CONFIG" && \
15315 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gridmap-callout-error\""; } >&5
15316 ($PKG_CONFIG --exists --print-errors "globus-gridmap-callout-error") 2>&5
15317 ac_status=$?
15318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15319 test $ac_status = 0; }; then
15320 pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS=`$PKG_CONFIG --cflags "globus-gridmap-callout-error" 2>/dev/null`
15321 test "x$?" != "x0" && pkg_failed=yes
15322 else
15323 pkg_failed=yes
15324 fi
15325 else
15326 pkg_failed=untried
15327 fi
15328 if test -n "$GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS"; then
15329 pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS="$GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS"
15330 elif test -n "$PKG_CONFIG"; then
15331 if test -n "$PKG_CONFIG" && \
15332 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gridmap-callout-error\""; } >&5
15333 ($PKG_CONFIG --exists --print-errors "globus-gridmap-callout-error") 2>&5
15334 ac_status=$?
15335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15336 test $ac_status = 0; }; then
15337 pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS=`$PKG_CONFIG --libs "globus-gridmap-callout-error" 2>/dev/null`
15338 test "x$?" != "x0" && pkg_failed=yes
15339 else
15340 pkg_failed=yes
15341 fi
15342 else
15343 pkg_failed=untried
15344 fi
15345
15346
15347
15348 if test $pkg_failed = yes; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15350 $as_echo "no" >&6; }
15351
15352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15353 _pkg_short_errors_supported=yes
15354 else
15355 _pkg_short_errors_supported=no
15356 fi
15357 if test $_pkg_short_errors_supported = yes; then
15358 GLOBUS_GRIDMAP_CALLOUT_ERROR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gridmap-callout-error" 2>&1`
15359 else
15360 GLOBUS_GRIDMAP_CALLOUT_ERROR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gridmap-callout-error" 2>&1`
15361 fi
15362 # Put the nasty error message in config.log where it belongs
15363 echo "$GLOBUS_GRIDMAP_CALLOUT_ERROR_PKG_ERRORS" >&5
15364
15365 have_globus_mod=no
15366 elif test $pkg_failed = untried; then
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15368 $as_echo "no" >&6; }
15369 have_globus_mod=no
15370 else
15371 GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS=$pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS
15372 GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS=$pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15374 $as_echo "yes" >&6; }
15375 have_globus_mod=yes
15376 fi
15377 if test "$have_globus_mod" = "no" ; then
15378
15379 ac_save_CFLAGS=$CFLAGS
15380 ac_save_CPPFLAGS=$CPPFLAGS
15381 ac_save_LIBS=$LIBS
15382 ac_save_LDFLAGS=$LDFLAGS
15383
15384 ac_try_CFLAGS=$ac_globus_cflags
15385
15386 if test "xglobus_gridmap_callout_error" = "x" ; then
15387 ac_try_LIBS=""
15388 else
15389 ac_try_LIBS="-lglobus_gridmap_callout_error$ac_globus_libsuffix"
15390 fi
15391
15392 ac_try_CPPFLAGS=$ac_try_CFLAGS
15393 if test "x$ac_globus_libdir" != "x" ; then
15394 ac_try_LDFLAGS="$ac_globus_ldflags"
15395 if test "x$LD_LIBRARY_PATH" != "x" ; then
15396 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
15397 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
15398 else
15399 export LD_LIBRARY_PATH="$ac_globus_libdir"
15400 fi
15401 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
15402 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
15403 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
15404 else
15405 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
15406 fi
15407 fi
15408
15409 CFLAGS="$ac_try_CFLAGS $CFLAGS"
15410 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
15411 LIBS="$ac_try_LIBS $LIBS"
15412 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GRIDMAP_CALLOUT_ERROR at system default and $ac_globus_libdir" >&5
15414 $as_echo_n "checking for GLOBUS_GRIDMAP_CALLOUT_ERROR at system default and $ac_globus_libdir... " >&6; }
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15417 #include <globus_gridmap_callout_error.h>
15418 int main(void) {return 0;}
15419 _ACEOF
15420 if ac_fn_c_try_link "$LINENO"; then :
15421 have_mod=yes
15422 else
15423 have_mod=no
15424 fi
15425 rm -f core conftest.err conftest.$ac_objext \
15426 conftest$ac_exeext conftest.$ac_ext
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
15428 $as_echo "$have_mod" >&6; }
15429
15430 if test "x$have_mod" = "xyes" ; then
15431 have_globus_mod=yes
15432 if test "x$with_globus_thr_flavor" != "x" ; then
15433 GLOBUS_GRIDMAP_CALLOUT_ERROR_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15434 GLOBUS_GRIDMAP_CALLOUT_ERROR_THR_CFLAGS=$ac_try_CFLAGS
15435 elif test "x$with_globus_nothr_flavor" != "x" ; then
15436 GLOBUS_GRIDMAP_CALLOUT_ERROR_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15437 GLOBUS_GRIDMAP_CALLOUT_ERROR_NOTHR_CFLAGS=$ac_try_CFLAGS
15438 else
15439 GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15440 GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS=$ac_try_CFLAGS
15441 fi
15442 else
15443 have_globus_mod=no
15444 fi
15445
15446 CFLAGS=$ac_save_CFLAGS
15447 CPPFLAGS=$ac_save_CPPFLAGS
15448 LIBS=$ac_save_LIBS
15449 LDFLAGS=$ac_save_LDFLAGS
15450 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
15451 unset LD_LIBRARY_PATH
15452 else
15453 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
15454 fi
15455 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
15456 unset DYLD_LIBRARY_PATH
15457 else
15458 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
15459 fi
15460
15461
15462 fi
15463 else
15464
15465 ac_save_CFLAGS=$CFLAGS
15466 ac_save_CPPFLAGS=$CPPFLAGS
15467 ac_save_LIBS=$LIBS
15468 ac_save_LDFLAGS=$LDFLAGS
15469
15470 ac_try_CFLAGS=$ac_globus_cflags
15471
15472 if test "xglobus_gridmap_callout_error" = "x" ; then
15473 ac_try_LIBS=""
15474 else
15475 ac_try_LIBS="-lglobus_gridmap_callout_error$ac_globus_libsuffix"
15476 fi
15477
15478 ac_try_CPPFLAGS=$ac_try_CFLAGS
15479 if test "x$ac_globus_libdir" != "x" ; then
15480 ac_try_LDFLAGS="$ac_globus_ldflags"
15481 if test "x$LD_LIBRARY_PATH" != "x" ; then
15482 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
15483 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
15484 else
15485 export LD_LIBRARY_PATH="$ac_globus_libdir"
15486 fi
15487 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
15488 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
15489 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
15490 else
15491 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
15492 fi
15493 fi
15494
15495 CFLAGS="$ac_try_CFLAGS $CFLAGS"
15496 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
15497 LIBS="$ac_try_LIBS $LIBS"
15498 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GRIDMAP_CALLOUT_ERROR at system default and $ac_globus_libdir" >&5
15500 $as_echo_n "checking for GLOBUS_GRIDMAP_CALLOUT_ERROR at system default and $ac_globus_libdir... " >&6; }
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503 #include <globus_gridmap_callout_error.h>
15504 int main(void) {return 0;}
15505 _ACEOF
15506 if ac_fn_c_try_link "$LINENO"; then :
15507 have_mod=yes
15508 else
15509 have_mod=no
15510 fi
15511 rm -f core conftest.err conftest.$ac_objext \
15512 conftest$ac_exeext conftest.$ac_ext
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
15514 $as_echo "$have_mod" >&6; }
15515
15516 if test "x$have_mod" = "xyes" ; then
15517 have_globus_mod=yes
15518 if test "x$with_globus_thr_flavor" != "x" ; then
15519 GLOBUS_GRIDMAP_CALLOUT_ERROR_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15520 GLOBUS_GRIDMAP_CALLOUT_ERROR_THR_CFLAGS=$ac_try_CFLAGS
15521 elif test "x$with_globus_nothr_flavor" != "x" ; then
15522 GLOBUS_GRIDMAP_CALLOUT_ERROR_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15523 GLOBUS_GRIDMAP_CALLOUT_ERROR_NOTHR_CFLAGS=$ac_try_CFLAGS
15524 else
15525 GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15526 GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS=$ac_try_CFLAGS
15527 fi
15528 else
15529 have_globus_mod=no
15530 fi
15531
15532 CFLAGS=$ac_save_CFLAGS
15533 CPPFLAGS=$ac_save_CPPFLAGS
15534 LIBS=$ac_save_LIBS
15535 LDFLAGS=$ac_save_LDFLAGS
15536 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
15537 unset LD_LIBRARY_PATH
15538 else
15539 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
15540 fi
15541 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
15542 unset DYLD_LIBRARY_PATH
15543 else
15544 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
15545 fi
15546
15547
15548 if test "$have_globus_mod" = "no" ; then
15549
15550 pkg_failed=no
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GRIDMAP_CALLOUT_ERROR" >&5
15552 $as_echo_n "checking for GLOBUS_GRIDMAP_CALLOUT_ERROR... " >&6; }
15553
15554 if test -n "$GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS"; then
15555 pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS="$GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS"
15556 elif test -n "$PKG_CONFIG"; then
15557 if test -n "$PKG_CONFIG" && \
15558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gridmap-callout-error\""; } >&5
15559 ($PKG_CONFIG --exists --print-errors "globus-gridmap-callout-error") 2>&5
15560 ac_status=$?
15561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15562 test $ac_status = 0; }; then
15563 pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS=`$PKG_CONFIG --cflags "globus-gridmap-callout-error" 2>/dev/null`
15564 test "x$?" != "x0" && pkg_failed=yes
15565 else
15566 pkg_failed=yes
15567 fi
15568 else
15569 pkg_failed=untried
15570 fi
15571 if test -n "$GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS"; then
15572 pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS="$GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS"
15573 elif test -n "$PKG_CONFIG"; then
15574 if test -n "$PKG_CONFIG" && \
15575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gridmap-callout-error\""; } >&5
15576 ($PKG_CONFIG --exists --print-errors "globus-gridmap-callout-error") 2>&5
15577 ac_status=$?
15578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15579 test $ac_status = 0; }; then
15580 pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS=`$PKG_CONFIG --libs "globus-gridmap-callout-error" 2>/dev/null`
15581 test "x$?" != "x0" && pkg_failed=yes
15582 else
15583 pkg_failed=yes
15584 fi
15585 else
15586 pkg_failed=untried
15587 fi
15588
15589
15590
15591 if test $pkg_failed = yes; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15593 $as_echo "no" >&6; }
15594
15595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15596 _pkg_short_errors_supported=yes
15597 else
15598 _pkg_short_errors_supported=no
15599 fi
15600 if test $_pkg_short_errors_supported = yes; then
15601 GLOBUS_GRIDMAP_CALLOUT_ERROR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gridmap-callout-error" 2>&1`
15602 else
15603 GLOBUS_GRIDMAP_CALLOUT_ERROR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gridmap-callout-error" 2>&1`
15604 fi
15605 # Put the nasty error message in config.log where it belongs
15606 echo "$GLOBUS_GRIDMAP_CALLOUT_ERROR_PKG_ERRORS" >&5
15607
15608 have_globus_mod=no
15609 elif test $pkg_failed = untried; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15611 $as_echo "no" >&6; }
15612 have_globus_mod=no
15613 else
15614 GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS=$pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_CFLAGS
15615 GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS=$pkg_cv_GLOBUS_GRIDMAP_CALLOUT_ERROR_LIBS
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15617 $as_echo "yes" >&6; }
15618 have_globus_mod=yes
15619 fi
15620 fi
15621 fi
15622 have_globus_gridmap_callout_error=$have_globus_mod
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634 if test "x$have_globus_gridmap_callout_error" != "xyes" ; then
15635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15637 as_fn_error $? "\"no globus-gridmap-callout-error found\"
15638 See \`config.log' for more details" "$LINENO" 5; }
15639 fi
15640
15641
15642
15643 # This one is only needed because of the local copy of gssapi_openssl.h which
15644 # contains a struct with members defined in this packages
15645
15646
15647
15648
15649
15650 if test "x$globus_tested" = "x"; then :
15651
15652 globus_tested="yes"
15653
15654 if test "x$with_globus_thr_flavor" != "x" ; then
15655 if test "x$with_globus_nothr_flavor" != "x" -o
15656 test "x$with_globus_flavor" != "x" ; then
15657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15659 as_fn_error $? "Cannot build against multiple flavor types
15660 See \`config.log' for more details" "$LINENO" 5; }
15661 fi
15662 ac_globus_flavor=$with_globus_thr_flavor
15663 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
15664 elif test "x$with_globus_nothr_flavor" != "x" ; then
15665 if test "x$with_globus_flavor" != "x" ; then
15666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15668 as_fn_error $? "Cannot build against multiple flavor types
15669 See \`config.log' for more details" "$LINENO" 5; }
15670 fi
15671 ac_globus_flavor=$with_globus_nothr_flavor
15672 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
15673 elif test "x$with_globus_flavor" != "x" ; then
15674 ac_globus_flavor=$with_globus_flavor
15675 GLOBUS_FLAVOR=$with_globus_flavor
15676 fi
15677
15678
15679
15680
15681 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
15682 ac_globus_prefix=/usr
15683 fi
15684
15685 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
15686 ac_globus_prefix=/opt/globus
15687 fi
15688
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
15690 $as_echo_n "checking for globus version... " >&6; }
15691 if test "x$ac_globus_prefix" = "x" ; then
15692 ac_globus_version_script=`which globus-version 2> /dev/null`
15693 else
15694 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
15695 fi
15696 if test "x$ac_globus_version_script" != "x" ; then
15697 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
15698 fi
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
15700 $as_echo "$ac_globus_version" >&6; }
15701
15702 if test "x$ac_globus_version" != "x" ; then
15703 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
15704 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
15705 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
15706 fi
15707
15708 if test "x$ac_globus_prefix" != "x" ; then
15709 if test "x$ac_globus_libdir" = "x" ; then
15710 if test "x$host_cpu" = "xx86_64" \
15711 -a -e $ac_globus_prefix/lib64 \
15712 -a ! -h $ac_globus_prefix/lib64 ; then
15713 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
15714 if test $num -gt 0 ; then
15715 ac_globus_libdir="$ac_globus_prefix/lib64"
15716 else
15717 ac_globus_libdir="$ac_globus_prefix/lib"
15718 fi
15719 else
15720 ac_globus_libdir="$ac_globus_prefix/lib"
15721 fi
15722 fi
15723 ac_globus_ldflags="-L$ac_globus_libdir"
15724
15725 if test -d "$ac_globus_prefix/include/globus" ; then
15726 ac_globus_cflags=-I$ac_globus_prefix/include/globus
15727 if test "x$ac_globus_flavorincdir" != "x" ; then
15728 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
15729 elif test "x$ac_globus_flavor" != "x" ; then
15730 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
15731 else
15732 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
15733 fi
15734 ac_globus_libsuffix=""
15735 else
15736 if test "x$ac_globus_flavor" != "x" ; then
15737 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
15738 ac_globus_libsuffix=_$ac_globus_flavor
15739 elif test -d "$ac_globus_prefix/include"; then
15740 ac_globus_cflags=-I$ac_globus_prefix/include
15741 else ac_globus_cflags=""
15742 ac_globus_libsuffix=""
15743 fi
15744 fi
15745 fi
15746
15747 fi
15748
15749
15750
15751
15752 if test "x$with_globus_prefix" = "x" ; then
15753
15754 pkg_failed=no
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_PROXY_CORE" >&5
15756 $as_echo_n "checking for GLOBUS_GSI_PROXY_CORE... " >&6; }
15757
15758 if test -n "$GLOBUS_GSI_PROXY_CORE_CFLAGS"; then
15759 pkg_cv_GLOBUS_GSI_PROXY_CORE_CFLAGS="$GLOBUS_GSI_PROXY_CORE_CFLAGS"
15760 elif test -n "$PKG_CONFIG"; then
15761 if test -n "$PKG_CONFIG" && \
15762 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-proxy-core\""; } >&5
15763 ($PKG_CONFIG --exists --print-errors "globus-gsi-proxy-core") 2>&5
15764 ac_status=$?
15765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15766 test $ac_status = 0; }; then
15767 pkg_cv_GLOBUS_GSI_PROXY_CORE_CFLAGS=`$PKG_CONFIG --cflags "globus-gsi-proxy-core" 2>/dev/null`
15768 test "x$?" != "x0" && pkg_failed=yes
15769 else
15770 pkg_failed=yes
15771 fi
15772 else
15773 pkg_failed=untried
15774 fi
15775 if test -n "$GLOBUS_GSI_PROXY_CORE_LIBS"; then
15776 pkg_cv_GLOBUS_GSI_PROXY_CORE_LIBS="$GLOBUS_GSI_PROXY_CORE_LIBS"
15777 elif test -n "$PKG_CONFIG"; then
15778 if test -n "$PKG_CONFIG" && \
15779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-proxy-core\""; } >&5
15780 ($PKG_CONFIG --exists --print-errors "globus-gsi-proxy-core") 2>&5
15781 ac_status=$?
15782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15783 test $ac_status = 0; }; then
15784 pkg_cv_GLOBUS_GSI_PROXY_CORE_LIBS=`$PKG_CONFIG --libs "globus-gsi-proxy-core" 2>/dev/null`
15785 test "x$?" != "x0" && pkg_failed=yes
15786 else
15787 pkg_failed=yes
15788 fi
15789 else
15790 pkg_failed=untried
15791 fi
15792
15793
15794
15795 if test $pkg_failed = yes; then
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15797 $as_echo "no" >&6; }
15798
15799 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15800 _pkg_short_errors_supported=yes
15801 else
15802 _pkg_short_errors_supported=no
15803 fi
15804 if test $_pkg_short_errors_supported = yes; then
15805 GLOBUS_GSI_PROXY_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gsi-proxy-core" 2>&1`
15806 else
15807 GLOBUS_GSI_PROXY_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gsi-proxy-core" 2>&1`
15808 fi
15809 # Put the nasty error message in config.log where it belongs
15810 echo "$GLOBUS_GSI_PROXY_CORE_PKG_ERRORS" >&5
15811
15812 have_globus_mod=no
15813 elif test $pkg_failed = untried; then
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15815 $as_echo "no" >&6; }
15816 have_globus_mod=no
15817 else
15818 GLOBUS_GSI_PROXY_CORE_CFLAGS=$pkg_cv_GLOBUS_GSI_PROXY_CORE_CFLAGS
15819 GLOBUS_GSI_PROXY_CORE_LIBS=$pkg_cv_GLOBUS_GSI_PROXY_CORE_LIBS
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15821 $as_echo "yes" >&6; }
15822 have_globus_mod=yes
15823 fi
15824 if test "$have_globus_mod" = "no" ; then
15825
15826 ac_save_CFLAGS=$CFLAGS
15827 ac_save_CPPFLAGS=$CPPFLAGS
15828 ac_save_LIBS=$LIBS
15829 ac_save_LDFLAGS=$LDFLAGS
15830
15831 ac_try_CFLAGS=$ac_globus_cflags
15832
15833 if test "xglobus_gsi_proxy_core" = "x" ; then
15834 ac_try_LIBS=""
15835 else
15836 ac_try_LIBS="-lglobus_gsi_proxy_core$ac_globus_libsuffix"
15837 fi
15838
15839 ac_try_CPPFLAGS=$ac_try_CFLAGS
15840 if test "x$ac_globus_libdir" != "x" ; then
15841 ac_try_LDFLAGS="$ac_globus_ldflags"
15842 if test "x$LD_LIBRARY_PATH" != "x" ; then
15843 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
15844 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
15845 else
15846 export LD_LIBRARY_PATH="$ac_globus_libdir"
15847 fi
15848 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
15849 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
15850 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
15851 else
15852 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
15853 fi
15854 fi
15855
15856 CFLAGS="$ac_try_CFLAGS $CFLAGS"
15857 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
15858 LIBS="$ac_try_LIBS $LIBS"
15859 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_PROXY_CORE at system default and $ac_globus_libdir" >&5
15861 $as_echo_n "checking for GLOBUS_GSI_PROXY_CORE at system default and $ac_globus_libdir... " >&6; }
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 #include <globus_gsi_proxy.h>
15865 int main(void) {return 0;}
15866 _ACEOF
15867 if ac_fn_c_try_link "$LINENO"; then :
15868 have_mod=yes
15869 else
15870 have_mod=no
15871 fi
15872 rm -f core conftest.err conftest.$ac_objext \
15873 conftest$ac_exeext conftest.$ac_ext
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
15875 $as_echo "$have_mod" >&6; }
15876
15877 if test "x$have_mod" = "xyes" ; then
15878 have_globus_mod=yes
15879 if test "x$with_globus_thr_flavor" != "x" ; then
15880 GLOBUS_GSI_PROXY_CORE_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15881 GLOBUS_GSI_PROXY_CORE_THR_CFLAGS=$ac_try_CFLAGS
15882 elif test "x$with_globus_nothr_flavor" != "x" ; then
15883 GLOBUS_GSI_PROXY_CORE_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15884 GLOBUS_GSI_PROXY_CORE_NOTHR_CFLAGS=$ac_try_CFLAGS
15885 else
15886 GLOBUS_GSI_PROXY_CORE_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15887 GLOBUS_GSI_PROXY_CORE_CFLAGS=$ac_try_CFLAGS
15888 fi
15889 else
15890 have_globus_mod=no
15891 fi
15892
15893 CFLAGS=$ac_save_CFLAGS
15894 CPPFLAGS=$ac_save_CPPFLAGS
15895 LIBS=$ac_save_LIBS
15896 LDFLAGS=$ac_save_LDFLAGS
15897 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
15898 unset LD_LIBRARY_PATH
15899 else
15900 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
15901 fi
15902 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
15903 unset DYLD_LIBRARY_PATH
15904 else
15905 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
15906 fi
15907
15908
15909 fi
15910 else
15911
15912 ac_save_CFLAGS=$CFLAGS
15913 ac_save_CPPFLAGS=$CPPFLAGS
15914 ac_save_LIBS=$LIBS
15915 ac_save_LDFLAGS=$LDFLAGS
15916
15917 ac_try_CFLAGS=$ac_globus_cflags
15918
15919 if test "xglobus_gsi_proxy_core" = "x" ; then
15920 ac_try_LIBS=""
15921 else
15922 ac_try_LIBS="-lglobus_gsi_proxy_core$ac_globus_libsuffix"
15923 fi
15924
15925 ac_try_CPPFLAGS=$ac_try_CFLAGS
15926 if test "x$ac_globus_libdir" != "x" ; then
15927 ac_try_LDFLAGS="$ac_globus_ldflags"
15928 if test "x$LD_LIBRARY_PATH" != "x" ; then
15929 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
15930 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
15931 else
15932 export LD_LIBRARY_PATH="$ac_globus_libdir"
15933 fi
15934 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
15935 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
15936 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
15937 else
15938 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
15939 fi
15940 fi
15941
15942 CFLAGS="$ac_try_CFLAGS $CFLAGS"
15943 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
15944 LIBS="$ac_try_LIBS $LIBS"
15945 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_PROXY_CORE at system default and $ac_globus_libdir" >&5
15947 $as_echo_n "checking for GLOBUS_GSI_PROXY_CORE at system default and $ac_globus_libdir... " >&6; }
15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15949 /* end confdefs.h. */
15950 #include <globus_gsi_proxy.h>
15951 int main(void) {return 0;}
15952 _ACEOF
15953 if ac_fn_c_try_link "$LINENO"; then :
15954 have_mod=yes
15955 else
15956 have_mod=no
15957 fi
15958 rm -f core conftest.err conftest.$ac_objext \
15959 conftest$ac_exeext conftest.$ac_ext
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
15961 $as_echo "$have_mod" >&6; }
15962
15963 if test "x$have_mod" = "xyes" ; then
15964 have_globus_mod=yes
15965 if test "x$with_globus_thr_flavor" != "x" ; then
15966 GLOBUS_GSI_PROXY_CORE_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15967 GLOBUS_GSI_PROXY_CORE_THR_CFLAGS=$ac_try_CFLAGS
15968 elif test "x$with_globus_nothr_flavor" != "x" ; then
15969 GLOBUS_GSI_PROXY_CORE_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15970 GLOBUS_GSI_PROXY_CORE_NOTHR_CFLAGS=$ac_try_CFLAGS
15971 else
15972 GLOBUS_GSI_PROXY_CORE_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
15973 GLOBUS_GSI_PROXY_CORE_CFLAGS=$ac_try_CFLAGS
15974 fi
15975 else
15976 have_globus_mod=no
15977 fi
15978
15979 CFLAGS=$ac_save_CFLAGS
15980 CPPFLAGS=$ac_save_CPPFLAGS
15981 LIBS=$ac_save_LIBS
15982 LDFLAGS=$ac_save_LDFLAGS
15983 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
15984 unset LD_LIBRARY_PATH
15985 else
15986 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
15987 fi
15988 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
15989 unset DYLD_LIBRARY_PATH
15990 else
15991 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
15992 fi
15993
15994
15995 if test "$have_globus_mod" = "no" ; then
15996
15997 pkg_failed=no
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSI_PROXY_CORE" >&5
15999 $as_echo_n "checking for GLOBUS_GSI_PROXY_CORE... " >&6; }
16000
16001 if test -n "$GLOBUS_GSI_PROXY_CORE_CFLAGS"; then
16002 pkg_cv_GLOBUS_GSI_PROXY_CORE_CFLAGS="$GLOBUS_GSI_PROXY_CORE_CFLAGS"
16003 elif test -n "$PKG_CONFIG"; then
16004 if test -n "$PKG_CONFIG" && \
16005 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-proxy-core\""; } >&5
16006 ($PKG_CONFIG --exists --print-errors "globus-gsi-proxy-core") 2>&5
16007 ac_status=$?
16008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16009 test $ac_status = 0; }; then
16010 pkg_cv_GLOBUS_GSI_PROXY_CORE_CFLAGS=`$PKG_CONFIG --cflags "globus-gsi-proxy-core" 2>/dev/null`
16011 test "x$?" != "x0" && pkg_failed=yes
16012 else
16013 pkg_failed=yes
16014 fi
16015 else
16016 pkg_failed=untried
16017 fi
16018 if test -n "$GLOBUS_GSI_PROXY_CORE_LIBS"; then
16019 pkg_cv_GLOBUS_GSI_PROXY_CORE_LIBS="$GLOBUS_GSI_PROXY_CORE_LIBS"
16020 elif test -n "$PKG_CONFIG"; then
16021 if test -n "$PKG_CONFIG" && \
16022 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gsi-proxy-core\""; } >&5
16023 ($PKG_CONFIG --exists --print-errors "globus-gsi-proxy-core") 2>&5
16024 ac_status=$?
16025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16026 test $ac_status = 0; }; then
16027 pkg_cv_GLOBUS_GSI_PROXY_CORE_LIBS=`$PKG_CONFIG --libs "globus-gsi-proxy-core" 2>/dev/null`
16028 test "x$?" != "x0" && pkg_failed=yes
16029 else
16030 pkg_failed=yes
16031 fi
16032 else
16033 pkg_failed=untried
16034 fi
16035
16036
16037
16038 if test $pkg_failed = yes; then
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16040 $as_echo "no" >&6; }
16041
16042 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16043 _pkg_short_errors_supported=yes
16044 else
16045 _pkg_short_errors_supported=no
16046 fi
16047 if test $_pkg_short_errors_supported = yes; then
16048 GLOBUS_GSI_PROXY_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gsi-proxy-core" 2>&1`
16049 else
16050 GLOBUS_GSI_PROXY_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gsi-proxy-core" 2>&1`
16051 fi
16052 # Put the nasty error message in config.log where it belongs
16053 echo "$GLOBUS_GSI_PROXY_CORE_PKG_ERRORS" >&5
16054
16055 have_globus_mod=no
16056 elif test $pkg_failed = untried; then
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16058 $as_echo "no" >&6; }
16059 have_globus_mod=no
16060 else
16061 GLOBUS_GSI_PROXY_CORE_CFLAGS=$pkg_cv_GLOBUS_GSI_PROXY_CORE_CFLAGS
16062 GLOBUS_GSI_PROXY_CORE_LIBS=$pkg_cv_GLOBUS_GSI_PROXY_CORE_LIBS
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16064 $as_echo "yes" >&6; }
16065 have_globus_mod=yes
16066 fi
16067 fi
16068 fi
16069 have_globus_gsi_proxy_core=$have_globus_mod
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081 if test "x$have_globus_gsi_proxy_core" != "xyes" ; then
16082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16084 as_fn_error $? "\"no globus-gsi-proxy-core found\"
16085 See \`config.log' for more details" "$LINENO" 5; }
16086 fi
16087
16088
16089
16090 # Check if libglobus_gsi_credential contains globus_gsi_cred_read_cert_buffer
16091 SAVE_CFLAGS=$CFLAGS
16092 CFLAGS="$GLOBUS_GSI_CREDENTIAL_CFLAGS $GLOBUS_GSI_CREDENTIAL_NOTHR_CFLAGS $GLOBUS_GSI_CREDENTIAL_THR_CFLAGS"
16093 ac_fn_c_check_decl "$LINENO" "globus_gsi_cred_read_cert_buffer" "ac_cv_have_decl_globus_gsi_cred_read_cert_buffer" "#include <globus_gsi_credential.h>
16094 "
16095 if test "x$ac_cv_have_decl_globus_gsi_cred_read_cert_buffer" = xyes; then :
16096 ac_have_decl=1
16097 else
16098 ac_have_decl=0
16099 fi
16100
16101 cat >>confdefs.h <<_ACEOF
16102 #define HAVE_DECL_GLOBUS_GSI_CRED_READ_CERT_BUFFER $ac_have_decl
16103 _ACEOF
16104 if test $ac_have_decl = 1; then :
16105
16106 else
16107
16108 # No globus_gsi_cred_read_cert_buffer, then need to check libcrypto
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_free in -lcrypto" >&5
16110 $as_echo_n "checking for BIO_free in -lcrypto... " >&6; }
16111 if ${ac_cv_lib_crypto_BIO_free+:} false; then :
16112 $as_echo_n "(cached) " >&6
16113 else
16114 ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-lcrypto $LIBS"
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118
16119 /* Override any GCC internal prototype to avoid an error.
16120 Use char because int might match the return type of a GCC
16121 builtin and then its argument prototype would still apply. */
16122 #ifdef __cplusplus
16123 extern "C"
16124 #endif
16125 char BIO_free ();
16126 int
16127 main ()
16128 {
16129 return BIO_free ();
16130 ;
16131 return 0;
16132 }
16133 _ACEOF
16134 if ac_fn_c_try_link "$LINENO"; then :
16135 ac_cv_lib_crypto_BIO_free=yes
16136 else
16137 ac_cv_lib_crypto_BIO_free=no
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16141 LIBS=$ac_check_lib_save_LIBS
16142 fi
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_free" >&5
16144 $as_echo "$ac_cv_lib_crypto_BIO_free" >&6; }
16145 if test "x$ac_cv_lib_crypto_BIO_free" = xyes; then :
16146 cat >>confdefs.h <<_ACEOF
16147 #define HAVE_LIBCRYPTO 1
16148 _ACEOF
16149
16150 LIBS="-lcrypto $LIBS"
16151
16152 fi
16153
16154
16155 fi
16156
16157 CFLAGS=$SAVE_CFLAGS
16158
16159 # Running LCAS or not
16160 enable_lcas_default=yes
16161 # Check whether --enable-lcas was given.
16162 if test "${enable_lcas+set}" = set; then :
16163 enableval=$enable_lcas; enable_lcas=$enableval
16164 else
16165 enable_lcas=$enable_lcas_default
16166 fi
16167
16168
16169 if test "x$enable_lcas" = "xyes"; then :
16170
16171 # Set lcas variables
16172
16173
16174
16175 # Check whether --with-lcas-prefix was given.
16176 if test "${with_lcas_prefix+set}" = set; then :
16177 withval=$with_lcas_prefix; ac_lcas_prefix=$withval
16178 else
16179 ac_lcas_prefix=/usr
16180 fi
16181
16182
16183
16184 # Check whether --with-lcas-includes was given.
16185 if test "${with_lcas_includes+set}" = set; then :
16186 withval=$with_lcas_includes; ac_lcas_includes=$withval
16187 else
16188 ac_lcas_includes=$ac_lcas_prefix/include
16189 fi
16190
16191
16192
16193
16194 if test "x$with_lcas_prefix" = "x" -a "x$with_lcas_includes" = "x" ; then
16195
16196 pkg_failed=no
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCAS_INTERFACE" >&5
16198 $as_echo_n "checking for LCAS_INTERFACE... " >&6; }
16199
16200 if test -n "$LCAS_INTERFACE_CFLAGS"; then
16201 pkg_cv_LCAS_INTERFACE_CFLAGS="$LCAS_INTERFACE_CFLAGS"
16202 elif test -n "$PKG_CONFIG"; then
16203 if test -n "$PKG_CONFIG" && \
16204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcas-interface\""; } >&5
16205 ($PKG_CONFIG --exists --print-errors "lcas-interface") 2>&5
16206 ac_status=$?
16207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16208 test $ac_status = 0; }; then
16209 pkg_cv_LCAS_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcas-interface" 2>/dev/null`
16210 test "x$?" != "x0" && pkg_failed=yes
16211 else
16212 pkg_failed=yes
16213 fi
16214 else
16215 pkg_failed=untried
16216 fi
16217 if test -n "$LCAS_INTERFACE_LIBS"; then
16218 pkg_cv_LCAS_INTERFACE_LIBS="$LCAS_INTERFACE_LIBS"
16219 elif test -n "$PKG_CONFIG"; then
16220 if test -n "$PKG_CONFIG" && \
16221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcas-interface\""; } >&5
16222 ($PKG_CONFIG --exists --print-errors "lcas-interface") 2>&5
16223 ac_status=$?
16224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16225 test $ac_status = 0; }; then
16226 pkg_cv_LCAS_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcas-interface" 2>/dev/null`
16227 test "x$?" != "x0" && pkg_failed=yes
16228 else
16229 pkg_failed=yes
16230 fi
16231 else
16232 pkg_failed=untried
16233 fi
16234
16235
16236
16237 if test $pkg_failed = yes; then
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16239 $as_echo "no" >&6; }
16240
16241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16242 _pkg_short_errors_supported=yes
16243 else
16244 _pkg_short_errors_supported=no
16245 fi
16246 if test $_pkg_short_errors_supported = yes; then
16247 LCAS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcas-interface" 2>&1`
16248 else
16249 LCAS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcas-interface" 2>&1`
16250 fi
16251 # Put the nasty error message in config.log where it belongs
16252 echo "$LCAS_INTERFACE_PKG_ERRORS" >&5
16253
16254 have_lcas_interface=no
16255 elif test $pkg_failed = untried; then
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257 $as_echo "no" >&6; }
16258 have_lcas_interface=no
16259 else
16260 LCAS_INTERFACE_CFLAGS=$pkg_cv_LCAS_INTERFACE_CFLAGS
16261 LCAS_INTERFACE_LIBS=$pkg_cv_LCAS_INTERFACE_LIBS
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16263 $as_echo "yes" >&6; }
16264 have_lcas_interface=yes
16265 fi
16266 if test "$have_lcas_interface" = "no" ; then
16267
16268 ac_save_CFLAGS=$CFLAGS
16269
16270 if test "x$ac_lcas_includes" != "x" ; then
16271 ac_try_CFLAGS="-I$ac_lcas_includes"
16272 fi
16273
16274 if test "x$ac_lcas_includes" != "x" ; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCAS_INTERFACE at system default and $ac_lcas_includes" >&5
16276 $as_echo_n "checking for LCAS_INTERFACE at system default and $ac_lcas_includes... " >&6; }
16277 else
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCAS_INTERFACE at system default" >&5
16279 $as_echo_n "checking for LCAS_INTERFACE at system default... " >&6; }
16280 fi
16281
16282 CFLAGS="$ac_try_CFLAGS $CFLAGS"
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 #include <lcas/lcas_log.h>
16286 int main(void) {return 0;}
16287 _ACEOF
16288 if ac_fn_c_try_compile "$LINENO"; then :
16289 have_mod=yes
16290 else
16291 have_mod=no
16292 fi
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
16295 $as_echo "$have_mod" >&6; }
16296
16297 if test "x$have_mod" = "xyes" ; then
16298 have_lcas_interface=yes
16299 LCAS_INTERFACE_CFLAGS=$ac_try_CFLAGS
16300 else
16301 have_lcas_interface=no
16302 LCAS_INTERFACE_CFLAGS=""
16303 fi
16304
16305 CFLAGS=$ac_save_CFLAGS
16306
16307
16308 fi
16309 else
16310
16311 ac_save_CFLAGS=$CFLAGS
16312
16313 if test "x$ac_lcas_includes" != "x" ; then
16314 ac_try_CFLAGS="-I$ac_lcas_includes"
16315 fi
16316
16317 if test "x$ac_lcas_includes" != "x" ; then
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCAS_INTERFACE at system default and $ac_lcas_includes" >&5
16319 $as_echo_n "checking for LCAS_INTERFACE at system default and $ac_lcas_includes... " >&6; }
16320 else
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCAS_INTERFACE at system default" >&5
16322 $as_echo_n "checking for LCAS_INTERFACE at system default... " >&6; }
16323 fi
16324
16325 CFLAGS="$ac_try_CFLAGS $CFLAGS"
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16328 #include <lcas/lcas_log.h>
16329 int main(void) {return 0;}
16330 _ACEOF
16331 if ac_fn_c_try_compile "$LINENO"; then :
16332 have_mod=yes
16333 else
16334 have_mod=no
16335 fi
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
16338 $as_echo "$have_mod" >&6; }
16339
16340 if test "x$have_mod" = "xyes" ; then
16341 have_lcas_interface=yes
16342 LCAS_INTERFACE_CFLAGS=$ac_try_CFLAGS
16343 else
16344 have_lcas_interface=no
16345 LCAS_INTERFACE_CFLAGS=""
16346 fi
16347
16348 CFLAGS=$ac_save_CFLAGS
16349
16350
16351 if test "$have_lcas_interface" = "no" ; then
16352
16353 pkg_failed=no
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCAS_INTERFACE" >&5
16355 $as_echo_n "checking for LCAS_INTERFACE... " >&6; }
16356
16357 if test -n "$LCAS_INTERFACE_CFLAGS"; then
16358 pkg_cv_LCAS_INTERFACE_CFLAGS="$LCAS_INTERFACE_CFLAGS"
16359 elif test -n "$PKG_CONFIG"; then
16360 if test -n "$PKG_CONFIG" && \
16361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcas-interface\""; } >&5
16362 ($PKG_CONFIG --exists --print-errors "lcas-interface") 2>&5
16363 ac_status=$?
16364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16365 test $ac_status = 0; }; then
16366 pkg_cv_LCAS_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcas-interface" 2>/dev/null`
16367 test "x$?" != "x0" && pkg_failed=yes
16368 else
16369 pkg_failed=yes
16370 fi
16371 else
16372 pkg_failed=untried
16373 fi
16374 if test -n "$LCAS_INTERFACE_LIBS"; then
16375 pkg_cv_LCAS_INTERFACE_LIBS="$LCAS_INTERFACE_LIBS"
16376 elif test -n "$PKG_CONFIG"; then
16377 if test -n "$PKG_CONFIG" && \
16378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcas-interface\""; } >&5
16379 ($PKG_CONFIG --exists --print-errors "lcas-interface") 2>&5
16380 ac_status=$?
16381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16382 test $ac_status = 0; }; then
16383 pkg_cv_LCAS_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcas-interface" 2>/dev/null`
16384 test "x$?" != "x0" && pkg_failed=yes
16385 else
16386 pkg_failed=yes
16387 fi
16388 else
16389 pkg_failed=untried
16390 fi
16391
16392
16393
16394 if test $pkg_failed = yes; then
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16396 $as_echo "no" >&6; }
16397
16398 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16399 _pkg_short_errors_supported=yes
16400 else
16401 _pkg_short_errors_supported=no
16402 fi
16403 if test $_pkg_short_errors_supported = yes; then
16404 LCAS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcas-interface" 2>&1`
16405 else
16406 LCAS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcas-interface" 2>&1`
16407 fi
16408 # Put the nasty error message in config.log where it belongs
16409 echo "$LCAS_INTERFACE_PKG_ERRORS" >&5
16410
16411 have_lcas_interface=no
16412 elif test $pkg_failed = untried; then
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414 $as_echo "no" >&6; }
16415 have_lcas_interface=no
16416 else
16417 LCAS_INTERFACE_CFLAGS=$pkg_cv_LCAS_INTERFACE_CFLAGS
16418 LCAS_INTERFACE_LIBS=$pkg_cv_LCAS_INTERFACE_LIBS
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16420 $as_echo "yes" >&6; }
16421 have_lcas_interface=yes
16422 fi
16423 fi
16424 fi
16425
16426 LCAS_CFLAGS=$LCAS_INTERFACE_CFLAGS
16427
16428
16429
16430 if test "x$have_lcas_interface" = "xno" ; then
16431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16433 as_fn_error $? "\"no LCAS interface found\"
16434 See \`config.log' for more details" "$LINENO" 5; }
16435 fi
16436
16437
16438 # Check whether --with-lcas_db was given.
16439 if test "${with_lcas_db+set}" = set; then :
16440 withval=$with_lcas_db; if test "x$withval" = "xyes" -o "x$withval" = "xno" ; then :
16441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16443 as_fn_error $? "Option --with-lcas-db needs a filename
16444 See \`config.log' for more details" "$LINENO" 5; }
16445 else
16446 if test "x`echo $withval|cut -c1`" != "x/" ; then :
16447 LCAS_DB_FILE=$sysconfdir/lcas/$withval
16448 else
16449 LCAS_DB_FILE=$withval
16450 fi
16451 fi
16452
16453 else
16454 LCAS_DB_FILE="$sysconfdir/lcas/lcas.db"
16455
16456 fi
16457
16458
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LCAS_DB_FILE set to $LCAS_DB_FILE" >&5
16460 $as_echo "LCAS_DB_FILE set to $LCAS_DB_FILE" >&6; }
16461
16462 LCAS_DB_DIR=`dirname $LCAS_DB_FILE`
16463
16464 LCAS_DB_FILENAME=`basename $LCAS_DB_FILE`
16465
16466
16467
16468 # Check whether --with-lcas_moduledir_sfx was given.
16469 if test "${with_lcas_moduledir_sfx+set}" = set; then :
16470 withval=$with_lcas_moduledir_sfx; if test "x`echo $withval|cut -c1`" != "x/" ; then :
16471 LCAS_MODULEDIR_SFX=/$withval
16472 else
16473 LCAS_MODULEDIR_SFX=$withval
16474 fi
16475 else
16476 LCAS_MODULEDIR_SFX='/lcas'
16477
16478 fi
16479
16480
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LCAS_MODULEDIR_SFX set to $LCAS_MODULEDIR_SFX" >&5
16482 $as_echo "LCAS_MODULEDIR_SFX set to $LCAS_MODULEDIR_SFX" >&6; }
16483
16484
16485 # Check whether --with-lcas_moduledir was given.
16486 if test "${with_lcas_moduledir+set}" = set; then :
16487 withval=$with_lcas_moduledir; if test "x`echo $withval|cut -c1`" != "x/" ; then :
16488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16490 as_fn_error $? "Option --with-lcas-moduledir needs an absolute directory
16491 See \`config.log' for more details" "$LINENO" 5; }
16492 else
16493 LCAS_MODULEDIR=$withval
16494
16495 fi
16496
16497 else
16498 LCAS_MODULEDIR=${libdir}$LCAS_MODULEDIR_SFX
16499
16500
16501 fi
16502
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LCAS_MODULEDIR set to $LCAS_MODULEDIR" >&5
16504 $as_echo "LCAS_MODULEDIR set to $LCAS_MODULEDIR" >&6; }
16505
16506 else
16507
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of LCAS" >&5
16509 $as_echo "Disabling use of LCAS" >&6; }
16510
16511 $as_echo "#define DISABLE_LCAS 1" >>confdefs.h
16512
16513
16514 fi
16515
16516 if test "x$enable_lcas" = "xyes"; then
16517 USE_LCAS_TRUE=
16518 USE_LCAS_FALSE='#'
16519 else
16520 USE_LCAS_TRUE='#'
16521 USE_LCAS_FALSE=
16522 fi
16523
16524
16525 # Set lcmaps variables
16526
16527
16528 # Check whether --with-lcmaps-prefix was given.
16529 if test "${with_lcmaps_prefix+set}" = set; then :
16530 withval=$with_lcmaps_prefix; ac_lcmaps_prefix=$withval
16531 else
16532 ac_lcmaps_prefix=/usr
16533 fi
16534
16535
16536
16537 # Check whether --with-lcmaps-includes was given.
16538 if test "${with_lcmaps_includes+set}" = set; then :
16539 withval=$with_lcmaps_includes; ac_lcmaps_includes=$withval
16540 else
16541 ac_lcmaps_includes=$ac_lcmaps_prefix/include
16542 fi
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562 if test "x$have_globus_gssapi_gsi" = "x" ; then
16563
16564
16565
16566
16567
16568 if test "x$globus_tested" = "x"; then :
16569
16570 globus_tested="yes"
16571
16572 if test "x$with_globus_thr_flavor" != "x" ; then
16573 if test "x$with_globus_nothr_flavor" != "x" -o
16574 test "x$with_globus_flavor" != "x" ; then
16575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16577 as_fn_error $? "Cannot build against multiple flavor types
16578 See \`config.log' for more details" "$LINENO" 5; }
16579 fi
16580 ac_globus_flavor=$with_globus_thr_flavor
16581 GLOBUS_THR_FLAVOR=$with_globus_thr_flavor
16582 elif test "x$with_globus_nothr_flavor" != "x" ; then
16583 if test "x$with_globus_flavor" != "x" ; then
16584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16586 as_fn_error $? "Cannot build against multiple flavor types
16587 See \`config.log' for more details" "$LINENO" 5; }
16588 fi
16589 ac_globus_flavor=$with_globus_nothr_flavor
16590 GLOBUS_NOTHR_FLAVOR=$with_globus_nothr_flavor
16591 elif test "x$with_globus_flavor" != "x" ; then
16592 ac_globus_flavor=$with_globus_flavor
16593 GLOBUS_FLAVOR=$with_globus_flavor
16594 fi
16595
16596
16597
16598
16599 if test "x$ac_globus_prefix" = "x" -a -d /usr/include/globus ; then
16600 ac_globus_prefix=/usr
16601 fi
16602
16603 if test "x$ac_globus_prefix" = "x" -a -d /opt/globus ; then
16604 ac_globus_prefix=/opt/globus
16605 fi
16606
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for globus version" >&5
16608 $as_echo_n "checking for globus version... " >&6; }
16609 if test "x$ac_globus_prefix" = "x" ; then
16610 ac_globus_version_script=`which globus-version 2> /dev/null`
16611 else
16612 ac_globus_version_script=$ac_globus_prefix/bin/globus-version
16613 fi
16614 if test "x$ac_globus_version_script" != "x" ; then
16615 ac_globus_version=`grep 'GLOBUS_VERSION=' $ac_globus_version_script | head -1 | cut -d'"' -f2`
16616 fi
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_globus_version" >&5
16618 $as_echo "$ac_globus_version" >&6; }
16619
16620 if test "x$ac_globus_version" != "x" ; then
16621 ac_globus_major=`echo $ac_globus_version|cut -d. -f1`
16622 ac_globus_minor=`echo $ac_globus_version|cut -d. -f2`
16623 ac_globus_release=`echo $ac_globus_version|cut -d. -f3`
16624 fi
16625
16626 if test "x$ac_globus_prefix" != "x" ; then
16627 if test "x$ac_globus_libdir" = "x" ; then
16628 if test "x$host_cpu" = "xx86_64" \
16629 -a -e $ac_globus_prefix/lib64 \
16630 -a ! -h $ac_globus_prefix/lib64 ; then
16631 num=`find $ac_globus_prefix/lib64 -name "libglobus*"|wc -l`
16632 if test $num -gt 0 ; then
16633 ac_globus_libdir="$ac_globus_prefix/lib64"
16634 else
16635 ac_globus_libdir="$ac_globus_prefix/lib"
16636 fi
16637 else
16638 ac_globus_libdir="$ac_globus_prefix/lib"
16639 fi
16640 fi
16641 ac_globus_ldflags="-L$ac_globus_libdir"
16642
16643 if test -d "$ac_globus_prefix/include/globus" ; then
16644 ac_globus_cflags=-I$ac_globus_prefix/include/globus
16645 if test "x$ac_globus_flavorincdir" != "x" ; then
16646 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_flavorincdir"
16647 elif test "x$ac_globus_flavor" != "x" ; then
16648 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_prefix/include/globus/$ac_globus_flavor"
16649 else
16650 ac_globus_cflags="$ac_globus_cflags -I$ac_globus_libdir/globus/include"
16651 fi
16652 ac_globus_libsuffix=""
16653 else
16654 if test "x$ac_globus_flavor" != "x" ; then
16655 ac_globus_cflags=-I$ac_globus_prefix/include/$ac_globus_flavor
16656 ac_globus_libsuffix=_$ac_globus_flavor
16657 elif test -d "$ac_globus_prefix/include"; then
16658 ac_globus_cflags=-I$ac_globus_prefix/include
16659 else ac_globus_cflags=""
16660 ac_globus_libsuffix=""
16661 fi
16662 fi
16663 fi
16664
16665 fi
16666
16667
16668
16669
16670 if test "x$with_globus_prefix" = "x" ; then
16671
16672 pkg_failed=no
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI" >&5
16674 $as_echo_n "checking for GLOBUS_GSSAPI_GSI... " >&6; }
16675
16676 if test -n "$GLOBUS_GSSAPI_GSI_CFLAGS"; then
16677 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS"
16678 elif test -n "$PKG_CONFIG"; then
16679 if test -n "$PKG_CONFIG" && \
16680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
16681 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
16682 ac_status=$?
16683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16684 test $ac_status = 0; }; then
16685 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-gsi" 2>/dev/null`
16686 test "x$?" != "x0" && pkg_failed=yes
16687 else
16688 pkg_failed=yes
16689 fi
16690 else
16691 pkg_failed=untried
16692 fi
16693 if test -n "$GLOBUS_GSSAPI_GSI_LIBS"; then
16694 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS="$GLOBUS_GSSAPI_GSI_LIBS"
16695 elif test -n "$PKG_CONFIG"; then
16696 if test -n "$PKG_CONFIG" && \
16697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
16698 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
16699 ac_status=$?
16700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16701 test $ac_status = 0; }; then
16702 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS=`$PKG_CONFIG --libs "globus-gssapi-gsi" 2>/dev/null`
16703 test "x$?" != "x0" && pkg_failed=yes
16704 else
16705 pkg_failed=yes
16706 fi
16707 else
16708 pkg_failed=untried
16709 fi
16710
16711
16712
16713 if test $pkg_failed = yes; then
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16716
16717 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16718 _pkg_short_errors_supported=yes
16719 else
16720 _pkg_short_errors_supported=no
16721 fi
16722 if test $_pkg_short_errors_supported = yes; then
16723 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
16724 else
16725 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
16726 fi
16727 # Put the nasty error message in config.log where it belongs
16728 echo "$GLOBUS_GSSAPI_GSI_PKG_ERRORS" >&5
16729
16730 have_globus_mod=no
16731 elif test $pkg_failed = untried; then
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16733 $as_echo "no" >&6; }
16734 have_globus_mod=no
16735 else
16736 GLOBUS_GSSAPI_GSI_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS
16737 GLOBUS_GSSAPI_GSI_LIBS=$pkg_cv_GLOBUS_GSSAPI_GSI_LIBS
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16739 $as_echo "yes" >&6; }
16740 have_globus_mod=yes
16741 fi
16742 if test "$have_globus_mod" = "no" ; then
16743
16744 ac_save_CFLAGS=$CFLAGS
16745 ac_save_CPPFLAGS=$CPPFLAGS
16746 ac_save_LIBS=$LIBS
16747 ac_save_LDFLAGS=$LDFLAGS
16748
16749 ac_try_CFLAGS=$ac_globus_cflags
16750
16751 if test "xglobus_gssapi_gsi" = "x" ; then
16752 ac_try_LIBS=""
16753 else
16754 ac_try_LIBS="-lglobus_gssapi_gsi$ac_globus_libsuffix"
16755 fi
16756
16757 ac_try_CPPFLAGS=$ac_try_CFLAGS
16758 if test "x$ac_globus_libdir" != "x" ; then
16759 ac_try_LDFLAGS="$ac_globus_ldflags"
16760 if test "x$LD_LIBRARY_PATH" != "x" ; then
16761 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
16762 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
16763 else
16764 export LD_LIBRARY_PATH="$ac_globus_libdir"
16765 fi
16766 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
16767 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
16768 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
16769 else
16770 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
16771 fi
16772 fi
16773
16774 CFLAGS="$ac_try_CFLAGS $CFLAGS"
16775 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
16776 LIBS="$ac_try_LIBS $LIBS"
16777 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir" >&5
16779 $as_echo_n "checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir... " >&6; }
16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781 /* end confdefs.h. */
16782 #include <gssapi.h>
16783 int main(void) {return 0;}
16784 _ACEOF
16785 if ac_fn_c_try_link "$LINENO"; then :
16786 have_mod=yes
16787 else
16788 have_mod=no
16789 fi
16790 rm -f core conftest.err conftest.$ac_objext \
16791 conftest$ac_exeext conftest.$ac_ext
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
16793 $as_echo "$have_mod" >&6; }
16794
16795 if test "x$have_mod" = "xyes" ; then
16796 have_globus_mod=yes
16797 if test "x$with_globus_thr_flavor" != "x" ; then
16798 GLOBUS_GSSAPI_GSI_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
16799 GLOBUS_GSSAPI_GSI_THR_CFLAGS=$ac_try_CFLAGS
16800 elif test "x$with_globus_nothr_flavor" != "x" ; then
16801 GLOBUS_GSSAPI_GSI_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
16802 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS=$ac_try_CFLAGS
16803 else
16804 GLOBUS_GSSAPI_GSI_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
16805 GLOBUS_GSSAPI_GSI_CFLAGS=$ac_try_CFLAGS
16806 fi
16807 else
16808 have_globus_mod=no
16809 fi
16810
16811 CFLAGS=$ac_save_CFLAGS
16812 CPPFLAGS=$ac_save_CPPFLAGS
16813 LIBS=$ac_save_LIBS
16814 LDFLAGS=$ac_save_LDFLAGS
16815 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
16816 unset LD_LIBRARY_PATH
16817 else
16818 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
16819 fi
16820 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
16821 unset DYLD_LIBRARY_PATH
16822 else
16823 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
16824 fi
16825
16826
16827 fi
16828 else
16829
16830 ac_save_CFLAGS=$CFLAGS
16831 ac_save_CPPFLAGS=$CPPFLAGS
16832 ac_save_LIBS=$LIBS
16833 ac_save_LDFLAGS=$LDFLAGS
16834
16835 ac_try_CFLAGS=$ac_globus_cflags
16836
16837 if test "xglobus_gssapi_gsi" = "x" ; then
16838 ac_try_LIBS=""
16839 else
16840 ac_try_LIBS="-lglobus_gssapi_gsi$ac_globus_libsuffix"
16841 fi
16842
16843 ac_try_CPPFLAGS=$ac_try_CFLAGS
16844 if test "x$ac_globus_libdir" != "x" ; then
16845 ac_try_LDFLAGS="$ac_globus_ldflags"
16846 if test "x$LD_LIBRARY_PATH" != "x" ; then
16847 ac_save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
16848 export LD_LIBRARY_PATH="$ac_globus_libdir:$LD_LIBRARY_PATH"
16849 else
16850 export LD_LIBRARY_PATH="$ac_globus_libdir"
16851 fi
16852 if test "x$DYLD_LIBRARY_PATH" != "x" ; then
16853 ac_save_DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH
16854 export DYLD_LIBRARY_PATH="$ac_globus_libdir:$DYLD_LIBRARY_PATH"
16855 else
16856 export DYLD_LIBRARY_PATH="$ac_globus_libdir"
16857 fi
16858 fi
16859
16860 CFLAGS="$ac_try_CFLAGS $CFLAGS"
16861 CPPFLAGS="$ac_try_CPPFLAGS $CPPFLAGS"
16862 LIBS="$ac_try_LIBS $LIBS"
16863 LDFLAGS="$ac_try_LDFLAGS $LDFLAGS"
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir" >&5
16865 $as_echo_n "checking for GLOBUS_GSSAPI_GSI at system default and $ac_globus_libdir... " >&6; }
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867 /* end confdefs.h. */
16868 #include <gssapi.h>
16869 int main(void) {return 0;}
16870 _ACEOF
16871 if ac_fn_c_try_link "$LINENO"; then :
16872 have_mod=yes
16873 else
16874 have_mod=no
16875 fi
16876 rm -f core conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
16879 $as_echo "$have_mod" >&6; }
16880
16881 if test "x$have_mod" = "xyes" ; then
16882 have_globus_mod=yes
16883 if test "x$with_globus_thr_flavor" != "x" ; then
16884 GLOBUS_GSSAPI_GSI_THR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
16885 GLOBUS_GSSAPI_GSI_THR_CFLAGS=$ac_try_CFLAGS
16886 elif test "x$with_globus_nothr_flavor" != "x" ; then
16887 GLOBUS_GSSAPI_GSI_NOTHR_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
16888 GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS=$ac_try_CFLAGS
16889 else
16890 GLOBUS_GSSAPI_GSI_LIBS="$ac_try_LDFLAGS $ac_try_LIBS"
16891 GLOBUS_GSSAPI_GSI_CFLAGS=$ac_try_CFLAGS
16892 fi
16893 else
16894 have_globus_mod=no
16895 fi
16896
16897 CFLAGS=$ac_save_CFLAGS
16898 CPPFLAGS=$ac_save_CPPFLAGS
16899 LIBS=$ac_save_LIBS
16900 LDFLAGS=$ac_save_LDFLAGS
16901 if test "x$ac_save_LD_LIBRARY_PATH" = "x" ; then
16902 unset LD_LIBRARY_PATH
16903 else
16904 LD_LIBRARY_PATH=$ac_save_LD_LIBRARY_PATH
16905 fi
16906 if test "x$ac_save_DYLD_LIBRARY_PATH" = "x" ; then
16907 unset DYLD_LIBRARY_PATH
16908 else
16909 DYLD_LIBRARY_PATH=$ac_save_DYLD_LIBRARY_PATH
16910 fi
16911
16912
16913 if test "$have_globus_mod" = "no" ; then
16914
16915 pkg_failed=no
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBUS_GSSAPI_GSI" >&5
16917 $as_echo_n "checking for GLOBUS_GSSAPI_GSI... " >&6; }
16918
16919 if test -n "$GLOBUS_GSSAPI_GSI_CFLAGS"; then
16920 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS"
16921 elif test -n "$PKG_CONFIG"; then
16922 if test -n "$PKG_CONFIG" && \
16923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
16924 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
16925 ac_status=$?
16926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16927 test $ac_status = 0; }; then
16928 pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS=`$PKG_CONFIG --cflags "globus-gssapi-gsi" 2>/dev/null`
16929 test "x$?" != "x0" && pkg_failed=yes
16930 else
16931 pkg_failed=yes
16932 fi
16933 else
16934 pkg_failed=untried
16935 fi
16936 if test -n "$GLOBUS_GSSAPI_GSI_LIBS"; then
16937 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS="$GLOBUS_GSSAPI_GSI_LIBS"
16938 elif test -n "$PKG_CONFIG"; then
16939 if test -n "$PKG_CONFIG" && \
16940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"globus-gssapi-gsi\""; } >&5
16941 ($PKG_CONFIG --exists --print-errors "globus-gssapi-gsi") 2>&5
16942 ac_status=$?
16943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16944 test $ac_status = 0; }; then
16945 pkg_cv_GLOBUS_GSSAPI_GSI_LIBS=`$PKG_CONFIG --libs "globus-gssapi-gsi" 2>/dev/null`
16946 test "x$?" != "x0" && pkg_failed=yes
16947 else
16948 pkg_failed=yes
16949 fi
16950 else
16951 pkg_failed=untried
16952 fi
16953
16954
16955
16956 if test $pkg_failed = yes; then
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16958 $as_echo "no" >&6; }
16959
16960 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16961 _pkg_short_errors_supported=yes
16962 else
16963 _pkg_short_errors_supported=no
16964 fi
16965 if test $_pkg_short_errors_supported = yes; then
16966 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
16967 else
16968 GLOBUS_GSSAPI_GSI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "globus-gssapi-gsi" 2>&1`
16969 fi
16970 # Put the nasty error message in config.log where it belongs
16971 echo "$GLOBUS_GSSAPI_GSI_PKG_ERRORS" >&5
16972
16973 have_globus_mod=no
16974 elif test $pkg_failed = untried; then
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16976 $as_echo "no" >&6; }
16977 have_globus_mod=no
16978 else
16979 GLOBUS_GSSAPI_GSI_CFLAGS=$pkg_cv_GLOBUS_GSSAPI_GSI_CFLAGS
16980 GLOBUS_GSSAPI_GSI_LIBS=$pkg_cv_GLOBUS_GSSAPI_GSI_LIBS
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16982 $as_echo "yes" >&6; }
16983 have_globus_mod=yes
16984 fi
16985 fi
16986 fi
16987 have_globus_gssapi_gsi=$have_globus_mod
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999 if test "x$have_globus_gssapi_gsi" != "xyes" ; then
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"missing dependency gssapi-gsi\"" >&5
17001 $as_echo "$as_me: WARNING: \"missing dependency gssapi-gsi\"" >&2;}
17002 fi
17003
17004
17005 fi
17006
17007 if test "x$with_lcmaps_prefix" = "x" -a "x$with_lcmaps_includes" = "x" ; then
17008
17009 pkg_failed=no
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_GLOBUS_INTERFACE" >&5
17011 $as_echo_n "checking for LCMAPS_GLOBUS_INTERFACE... " >&6; }
17012
17013 if test -n "$LCMAPS_GLOBUS_INTERFACE_CFLAGS"; then
17014 pkg_cv_LCMAPS_GLOBUS_INTERFACE_CFLAGS="$LCMAPS_GLOBUS_INTERFACE_CFLAGS"
17015 elif test -n "$PKG_CONFIG"; then
17016 if test -n "$PKG_CONFIG" && \
17017 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-globus-interface \""; } >&5
17018 ($PKG_CONFIG --exists --print-errors "lcmaps-globus-interface ") 2>&5
17019 ac_status=$?
17020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17021 test $ac_status = 0; }; then
17022 pkg_cv_LCMAPS_GLOBUS_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-globus-interface " 2>/dev/null`
17023 test "x$?" != "x0" && pkg_failed=yes
17024 else
17025 pkg_failed=yes
17026 fi
17027 else
17028 pkg_failed=untried
17029 fi
17030 if test -n "$LCMAPS_GLOBUS_INTERFACE_LIBS"; then
17031 pkg_cv_LCMAPS_GLOBUS_INTERFACE_LIBS="$LCMAPS_GLOBUS_INTERFACE_LIBS"
17032 elif test -n "$PKG_CONFIG"; then
17033 if test -n "$PKG_CONFIG" && \
17034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-globus-interface \""; } >&5
17035 ($PKG_CONFIG --exists --print-errors "lcmaps-globus-interface ") 2>&5
17036 ac_status=$?
17037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17038 test $ac_status = 0; }; then
17039 pkg_cv_LCMAPS_GLOBUS_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-globus-interface " 2>/dev/null`
17040 test "x$?" != "x0" && pkg_failed=yes
17041 else
17042 pkg_failed=yes
17043 fi
17044 else
17045 pkg_failed=untried
17046 fi
17047
17048
17049
17050 if test $pkg_failed = yes; then
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052 $as_echo "no" >&6; }
17053
17054 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17055 _pkg_short_errors_supported=yes
17056 else
17057 _pkg_short_errors_supported=no
17058 fi
17059 if test $_pkg_short_errors_supported = yes; then
17060 LCMAPS_GLOBUS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-globus-interface " 2>&1`
17061 else
17062 LCMAPS_GLOBUS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-globus-interface " 2>&1`
17063 fi
17064 # Put the nasty error message in config.log where it belongs
17065 echo "$LCMAPS_GLOBUS_INTERFACE_PKG_ERRORS" >&5
17066
17067 have_lcmaps_globus_interface=no
17068 elif test $pkg_failed = untried; then
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17070 $as_echo "no" >&6; }
17071 have_lcmaps_globus_interface=no
17072 else
17073 LCMAPS_GLOBUS_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_GLOBUS_INTERFACE_CFLAGS
17074 LCMAPS_GLOBUS_INTERFACE_LIBS=$pkg_cv_LCMAPS_GLOBUS_INTERFACE_LIBS
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17076 $as_echo "yes" >&6; }
17077 have_lcmaps_globus_interface=yes
17078 fi
17079 if test "x$have_lcmaps_globus_interface" = "xno" ; then
17080
17081 ac_save_CFLAGS=$CFLAGS
17082
17083 if test "x$ac_lcmaps_includes" != "x" ; then
17084 ac_try_CFLAGS="-I$ac_lcmaps_includes"
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_GLOBUS_INTERFACE (lcmaps_globus.h) at system default and $ac_lcmaps_includes" >&5
17086 $as_echo_n "checking for LCMAPS_GLOBUS_INTERFACE (lcmaps_globus.h) at system default and $ac_lcmaps_includes... " >&6; }
17087 else
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_GLOBUS_INTERFACE (lcmaps_globus.h) at system default" >&5
17089 $as_echo_n "checking for LCMAPS_GLOBUS_INTERFACE (lcmaps_globus.h) at system default... " >&6; }
17090 fi
17091
17092 CFLAGS="$ac_try_CFLAGS $CFLAGS"
17093
17094
17095
17096 CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS $GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS $CFLAGS"
17097
17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099 /* end confdefs.h. */
17100 #include <lcmaps/lcmaps_globus.h>
17101 #ifndef LCMAPS_API_MAJOR_VERSION
17102 #error LCMAPS API version is undefined, this should not happen for new-style interface
17103 #endif
17104 #if (LCMAPS_API_MAJOR_VERSION) < (0) || \
17105 ( (LCMAPS_API_MAJOR_VERSION) == (0) && \
17106 ( (LCMAPS_API_MINOR_VERSION) < (0) || \
17107 ( (LCMAPS_API_MINOR_VERSION) == (0) && \
17108 (LCMAPS_API_PATCH_VERSION) < (0) ) ) )
17109 #error LCMAPS API version older than 0.0.0
17110 #endif
17111 int main(void) {return 0;}
17112 _ACEOF
17113 if ac_fn_c_try_compile "$LINENO"; then :
17114 have_mod=yes
17115 else
17116 have_mod=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
17120 $as_echo "$have_mod" >&6; }
17121
17122
17123 if test "x$have_mod" = "xyes" ; then
17124 have_lcmaps_globus_interface=yes
17125 LCMAPS_GLOBUS_INTERFACE_CFLAGS=$ac_try_CFLAGS
17126 else
17127 have_lcmaps_globus_interface=no
17128 LCMAPS_GLOBUS_INTERFACE_CFLAGS=""
17129 fi
17130
17131 CFLAGS=$ac_save_CFLAGS
17132
17133
17134
17135 if test "x$have_lcmaps_globus_interface" = "xno" ; then
17136
17137 pkg_failed=no
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE" >&5
17139 $as_echo_n "checking for LCMAPS_INTERFACE... " >&6; }
17140
17141 if test -n "$LCMAPS_INTERFACE_CFLAGS"; then
17142 pkg_cv_LCMAPS_INTERFACE_CFLAGS="$LCMAPS_INTERFACE_CFLAGS"
17143 elif test -n "$PKG_CONFIG"; then
17144 if test -n "$PKG_CONFIG" && \
17145 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
17146 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
17147 ac_status=$?
17148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17149 test $ac_status = 0; }; then
17150 pkg_cv_LCMAPS_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-interface < 1.4.31" 2>/dev/null`
17151 test "x$?" != "x0" && pkg_failed=yes
17152 else
17153 pkg_failed=yes
17154 fi
17155 else
17156 pkg_failed=untried
17157 fi
17158 if test -n "$LCMAPS_INTERFACE_LIBS"; then
17159 pkg_cv_LCMAPS_INTERFACE_LIBS="$LCMAPS_INTERFACE_LIBS"
17160 elif test -n "$PKG_CONFIG"; then
17161 if test -n "$PKG_CONFIG" && \
17162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
17163 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
17164 ac_status=$?
17165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17166 test $ac_status = 0; }; then
17167 pkg_cv_LCMAPS_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-interface < 1.4.31" 2>/dev/null`
17168 test "x$?" != "x0" && pkg_failed=yes
17169 else
17170 pkg_failed=yes
17171 fi
17172 else
17173 pkg_failed=untried
17174 fi
17175
17176
17177
17178 if test $pkg_failed = yes; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17180 $as_echo "no" >&6; }
17181
17182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17183 _pkg_short_errors_supported=yes
17184 else
17185 _pkg_short_errors_supported=no
17186 fi
17187 if test $_pkg_short_errors_supported = yes; then
17188 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
17189 else
17190 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
17191 fi
17192 # Put the nasty error message in config.log where it belongs
17193 echo "$LCMAPS_INTERFACE_PKG_ERRORS" >&5
17194
17195 have_lcmaps_globus_interface=no
17196 elif test $pkg_failed = untried; then
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17198 $as_echo "no" >&6; }
17199 have_lcmaps_globus_interface=no
17200 else
17201 LCMAPS_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_INTERFACE_CFLAGS
17202 LCMAPS_INTERFACE_LIBS=$pkg_cv_LCMAPS_INTERFACE_LIBS
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17204 $as_echo "yes" >&6; }
17205 have_lcmaps_globus_interface=yes
17206 fi
17207 if test "x$have_lcmaps_globus_interface" = "xno" ; then
17208
17209 ac_save_CFLAGS=$CFLAGS
17210
17211 if test "x$ac_lcmaps_includes" != "x" ; then
17212 ac_try_CFLAGS="-I$ac_lcmaps_includes"
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_return_poolindex.h) at system default and $ac_lcmaps_includes" >&5
17214 $as_echo_n "checking for LCMAPS_INTERFACE (lcmaps_return_poolindex.h) at system default and $ac_lcmaps_includes... " >&6; }
17215 else
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_return_poolindex.h) at system default" >&5
17217 $as_echo_n "checking for LCMAPS_INTERFACE (lcmaps_return_poolindex.h) at system default... " >&6; }
17218 fi
17219
17220 CFLAGS="$ac_try_CFLAGS $CFLAGS"
17221
17222
17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h. */
17225 #include <lcmaps/lcmaps_version.h>
17226 int main(void) {return 0;}
17227 _ACEOF
17228 if ac_fn_c_try_compile "$LINENO"; then :
17229 have_mod=no
17230
17231 else
17232
17233 CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS $GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS $CFLAGS"
17234
17235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236 /* end confdefs.h. */
17237 #include <lcmaps/lcmaps_return_poolindex.h>
17238 int main(void) {return 0;}
17239 _ACEOF
17240 if ac_fn_c_try_compile "$LINENO"; then :
17241 have_mod=yes
17242 else
17243 have_mod=no
17244 fi
17245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17246
17247 fi
17248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
17250 $as_echo "$have_mod" >&6; }
17251
17252
17253 if test "x$have_mod" = "xyes" ; then
17254 have_lcmaps_globus_interface=yes
17255 LCMAPS_INTERFACE_CFLAGS=$ac_try_CFLAGS
17256 else
17257 have_lcmaps_globus_interface=no
17258 LCMAPS_INTERFACE_CFLAGS=""
17259 fi
17260
17261 CFLAGS=$ac_save_CFLAGS
17262
17263
17264 fi
17265 LCMAPS_GLOBUS_INTERFACE_CFLAGS=$LCMAPS_INTERFACE_CFLAGS
17266 fi
17267
17268 fi
17269 else
17270
17271 ac_save_CFLAGS=$CFLAGS
17272
17273 if test "x$ac_lcmaps_includes" != "x" ; then
17274 ac_try_CFLAGS="-I$ac_lcmaps_includes"
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_GLOBUS_INTERFACE (lcmaps_globus.h) at system default and $ac_lcmaps_includes" >&5
17276 $as_echo_n "checking for LCMAPS_GLOBUS_INTERFACE (lcmaps_globus.h) at system default and $ac_lcmaps_includes... " >&6; }
17277 else
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_GLOBUS_INTERFACE (lcmaps_globus.h) at system default" >&5
17279 $as_echo_n "checking for LCMAPS_GLOBUS_INTERFACE (lcmaps_globus.h) at system default... " >&6; }
17280 fi
17281
17282 CFLAGS="$ac_try_CFLAGS $CFLAGS"
17283
17284
17285
17286 CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS $GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS $CFLAGS"
17287
17288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289 /* end confdefs.h. */
17290 #include <lcmaps/lcmaps_globus.h>
17291 #ifndef LCMAPS_API_MAJOR_VERSION
17292 #error LCMAPS API version is undefined, this should not happen for new-style interface
17293 #endif
17294 #if (LCMAPS_API_MAJOR_VERSION) < (0) || \
17295 ( (LCMAPS_API_MAJOR_VERSION) == (0) && \
17296 ( (LCMAPS_API_MINOR_VERSION) < (0) || \
17297 ( (LCMAPS_API_MINOR_VERSION) == (0) && \
17298 (LCMAPS_API_PATCH_VERSION) < (0) ) ) )
17299 #error LCMAPS API version older than 0.0.0
17300 #endif
17301 int main(void) {return 0;}
17302 _ACEOF
17303 if ac_fn_c_try_compile "$LINENO"; then :
17304 have_mod=yes
17305 else
17306 have_mod=no
17307 fi
17308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
17310 $as_echo "$have_mod" >&6; }
17311
17312
17313 if test "x$have_mod" = "xyes" ; then
17314 have_lcmaps_globus_interface=yes
17315 LCMAPS_GLOBUS_INTERFACE_CFLAGS=$ac_try_CFLAGS
17316 else
17317 have_lcmaps_globus_interface=no
17318 LCMAPS_GLOBUS_INTERFACE_CFLAGS=""
17319 fi
17320
17321 CFLAGS=$ac_save_CFLAGS
17322
17323
17324 if test "x$have_lcmaps_globus_interface" = "xno" ; then
17325
17326 pkg_failed=no
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_GLOBUS_INTERFACE" >&5
17328 $as_echo_n "checking for LCMAPS_GLOBUS_INTERFACE... " >&6; }
17329
17330 if test -n "$LCMAPS_GLOBUS_INTERFACE_CFLAGS"; then
17331 pkg_cv_LCMAPS_GLOBUS_INTERFACE_CFLAGS="$LCMAPS_GLOBUS_INTERFACE_CFLAGS"
17332 elif test -n "$PKG_CONFIG"; then
17333 if test -n "$PKG_CONFIG" && \
17334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-globus-interface \""; } >&5
17335 ($PKG_CONFIG --exists --print-errors "lcmaps-globus-interface ") 2>&5
17336 ac_status=$?
17337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17338 test $ac_status = 0; }; then
17339 pkg_cv_LCMAPS_GLOBUS_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-globus-interface " 2>/dev/null`
17340 test "x$?" != "x0" && pkg_failed=yes
17341 else
17342 pkg_failed=yes
17343 fi
17344 else
17345 pkg_failed=untried
17346 fi
17347 if test -n "$LCMAPS_GLOBUS_INTERFACE_LIBS"; then
17348 pkg_cv_LCMAPS_GLOBUS_INTERFACE_LIBS="$LCMAPS_GLOBUS_INTERFACE_LIBS"
17349 elif test -n "$PKG_CONFIG"; then
17350 if test -n "$PKG_CONFIG" && \
17351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-globus-interface \""; } >&5
17352 ($PKG_CONFIG --exists --print-errors "lcmaps-globus-interface ") 2>&5
17353 ac_status=$?
17354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17355 test $ac_status = 0; }; then
17356 pkg_cv_LCMAPS_GLOBUS_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-globus-interface " 2>/dev/null`
17357 test "x$?" != "x0" && pkg_failed=yes
17358 else
17359 pkg_failed=yes
17360 fi
17361 else
17362 pkg_failed=untried
17363 fi
17364
17365
17366
17367 if test $pkg_failed = yes; then
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369 $as_echo "no" >&6; }
17370
17371 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17372 _pkg_short_errors_supported=yes
17373 else
17374 _pkg_short_errors_supported=no
17375 fi
17376 if test $_pkg_short_errors_supported = yes; then
17377 LCMAPS_GLOBUS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-globus-interface " 2>&1`
17378 else
17379 LCMAPS_GLOBUS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-globus-interface " 2>&1`
17380 fi
17381 # Put the nasty error message in config.log where it belongs
17382 echo "$LCMAPS_GLOBUS_INTERFACE_PKG_ERRORS" >&5
17383
17384 have_lcmaps_globus_interface=no
17385 elif test $pkg_failed = untried; then
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17387 $as_echo "no" >&6; }
17388 have_lcmaps_globus_interface=no
17389 else
17390 LCMAPS_GLOBUS_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_GLOBUS_INTERFACE_CFLAGS
17391 LCMAPS_GLOBUS_INTERFACE_LIBS=$pkg_cv_LCMAPS_GLOBUS_INTERFACE_LIBS
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17393 $as_echo "yes" >&6; }
17394 have_lcmaps_globus_interface=yes
17395 fi
17396
17397 if test "x$have_lcmaps_globus_interface" = "xno" ; then
17398
17399 ac_save_CFLAGS=$CFLAGS
17400
17401 if test "x$ac_lcmaps_includes" != "x" ; then
17402 ac_try_CFLAGS="-I$ac_lcmaps_includes"
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_return_poolindex.h) at system default and $ac_lcmaps_includes" >&5
17404 $as_echo_n "checking for LCMAPS_INTERFACE (lcmaps_return_poolindex.h) at system default and $ac_lcmaps_includes... " >&6; }
17405 else
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE (lcmaps_return_poolindex.h) at system default" >&5
17407 $as_echo_n "checking for LCMAPS_INTERFACE (lcmaps_return_poolindex.h) at system default... " >&6; }
17408 fi
17409
17410 CFLAGS="$ac_try_CFLAGS $CFLAGS"
17411
17412
17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17414 /* end confdefs.h. */
17415 #include <lcmaps/lcmaps_version.h>
17416 int main(void) {return 0;}
17417 _ACEOF
17418 if ac_fn_c_try_compile "$LINENO"; then :
17419 have_mod=no
17420
17421 else
17422
17423 CFLAGS="$GLOBUS_GSSAPI_GSI_CFLAGS $GLOBUS_GSSAPI_GSI_NOTHR_CFLAGS $CFLAGS"
17424
17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h. */
17427 #include <lcmaps/lcmaps_return_poolindex.h>
17428 int main(void) {return 0;}
17429 _ACEOF
17430 if ac_fn_c_try_compile "$LINENO"; then :
17431 have_mod=yes
17432 else
17433 have_mod=no
17434 fi
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436
17437 fi
17438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mod" >&5
17440 $as_echo "$have_mod" >&6; }
17441
17442
17443 if test "x$have_mod" = "xyes" ; then
17444 have_lcmaps_globus_interface=yes
17445 LCMAPS_INTERFACE_CFLAGS=$ac_try_CFLAGS
17446 else
17447 have_lcmaps_globus_interface=no
17448 LCMAPS_INTERFACE_CFLAGS=""
17449 fi
17450
17451 CFLAGS=$ac_save_CFLAGS
17452
17453
17454 if test "x$have_lcmaps_globus_interface" = "xno" ; then
17455
17456 pkg_failed=no
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMAPS_INTERFACE" >&5
17458 $as_echo_n "checking for LCMAPS_INTERFACE... " >&6; }
17459
17460 if test -n "$LCMAPS_INTERFACE_CFLAGS"; then
17461 pkg_cv_LCMAPS_INTERFACE_CFLAGS="$LCMAPS_INTERFACE_CFLAGS"
17462 elif test -n "$PKG_CONFIG"; then
17463 if test -n "$PKG_CONFIG" && \
17464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
17465 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
17466 ac_status=$?
17467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17468 test $ac_status = 0; }; then
17469 pkg_cv_LCMAPS_INTERFACE_CFLAGS=`$PKG_CONFIG --cflags "lcmaps-interface < 1.4.31" 2>/dev/null`
17470 test "x$?" != "x0" && pkg_failed=yes
17471 else
17472 pkg_failed=yes
17473 fi
17474 else
17475 pkg_failed=untried
17476 fi
17477 if test -n "$LCMAPS_INTERFACE_LIBS"; then
17478 pkg_cv_LCMAPS_INTERFACE_LIBS="$LCMAPS_INTERFACE_LIBS"
17479 elif test -n "$PKG_CONFIG"; then
17480 if test -n "$PKG_CONFIG" && \
17481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcmaps-interface < 1.4.31\""; } >&5
17482 ($PKG_CONFIG --exists --print-errors "lcmaps-interface < 1.4.31") 2>&5
17483 ac_status=$?
17484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17485 test $ac_status = 0; }; then
17486 pkg_cv_LCMAPS_INTERFACE_LIBS=`$PKG_CONFIG --libs "lcmaps-interface < 1.4.31" 2>/dev/null`
17487 test "x$?" != "x0" && pkg_failed=yes
17488 else
17489 pkg_failed=yes
17490 fi
17491 else
17492 pkg_failed=untried
17493 fi
17494
17495
17496
17497 if test $pkg_failed = yes; then
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17499 $as_echo "no" >&6; }
17500
17501 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17502 _pkg_short_errors_supported=yes
17503 else
17504 _pkg_short_errors_supported=no
17505 fi
17506 if test $_pkg_short_errors_supported = yes; then
17507 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
17508 else
17509 LCMAPS_INTERFACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcmaps-interface < 1.4.31" 2>&1`
17510 fi
17511 # Put the nasty error message in config.log where it belongs
17512 echo "$LCMAPS_INTERFACE_PKG_ERRORS" >&5
17513
17514 have_lcmaps_globus_interface=no
17515 elif test $pkg_failed = untried; then
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17517 $as_echo "no" >&6; }
17518 have_lcmaps_globus_interface=no
17519 else
17520 LCMAPS_INTERFACE_CFLAGS=$pkg_cv_LCMAPS_INTERFACE_CFLAGS
17521 LCMAPS_INTERFACE_LIBS=$pkg_cv_LCMAPS_INTERFACE_LIBS
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17523 $as_echo "yes" >&6; }
17524 have_lcmaps_globus_interface=yes
17525 fi
17526 fi
17527 LCMAPS_GLOBUS_INTERFACE_CFLAGS=$LCMAPS_INTERFACE_CFLAGS
17528 fi
17529
17530 fi
17531 fi
17532 LCMAPS_CFLAGS=$LCMAPS_GLOBUS_INTERFACE_CFLAGS
17533
17534
17535
17536
17537
17538 if test "x$have_lcmaps_globus_interface" = "xno" ; then
17539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17541 as_fn_error $? "\"no LCMAPS globus interface found\"
17542 See \`config.log' for more details" "$LINENO" 5; }
17543 fi
17544
17545 # Set compiled-in LCMAPS db file
17546 # relative paths are taken to be relative to $sysconfdir/lcmaps
17547
17548 # Check whether --with-lcmaps_db was given.
17549 if test "${with_lcmaps_db+set}" = set; then :
17550 withval=$with_lcmaps_db; if test "x$withval" = "xyes" -o "x$withval" = "xno" ; then :
17551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17553 as_fn_error $? "Option --with-lcmaps-db needs a filename
17554 See \`config.log' for more details" "$LINENO" 5; }
17555 else
17556 if test "x`echo $withval|cut -c1`" != "x/" ; then :
17557 LCMAPS_DB_FILE=$sysconfdir/lcmaps/$withval
17558 else
17559 LCMAPS_DB_FILE=$withval
17560 fi
17561 fi
17562
17563 else
17564 LCMAPS_DB_FILE="$sysconfdir/lcmaps/lcmaps.db"
17565
17566 fi
17567
17568
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LCMAPS_DB_FILE set to $LCMAPS_DB_FILE" >&5
17570 $as_echo "LCMAPS_DB_FILE set to $LCMAPS_DB_FILE" >&6; }
17571
17572 LCMAPS_DB_DIR=`dirname $LCMAPS_DB_FILE`
17573
17574 LCMAPS_DB_FILENAME=`basename $LCMAPS_DB_FILE`
17575
17576
17577
17578 # Check whether --with-lcmaps_moduledir_sfx was given.
17579 if test "${with_lcmaps_moduledir_sfx+set}" = set; then :
17580 withval=$with_lcmaps_moduledir_sfx; if test "x`echo $withval|cut -c1`" != "x/" ; then :
17581 LCMAPS_MODULEDIR_SFX=/$withval
17582 else
17583 LCMAPS_MODULEDIR_SFX=$withval
17584 fi
17585 else
17586 LCMAPS_MODULEDIR_SFX='/lcmaps'
17587
17588 fi
17589
17590
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LCMAPS_MODULEDIR_SFX set to $LCMAPS_MODULEDIR_SFX" >&5
17592 $as_echo "LCMAPS_MODULEDIR_SFX set to $LCMAPS_MODULEDIR_SFX" >&6; }
17593
17594
17595 # Check whether --with-lcmaps_moduledir was given.
17596 if test "${with_lcmaps_moduledir+set}" = set; then :
17597 withval=$with_lcmaps_moduledir; if test "x`echo $withval|cut -c1`" != "x/" ; then :
17598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17600 as_fn_error $? "Option --with-lcmaps-moduledir needs an absolute directory
17601 See \`config.log' for more details" "$LINENO" 5; }
17602 else
17603 LCMAPS_MODULEDIR=$withval
17604
17605 fi
17606
17607 else
17608 LCMAPS_MODULEDIR=${libdir}$LCMAPS_MODULEDIR_SFX
17609
17610
17611 fi
17612
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LCMAPS_MODULEDIR set to $LCMAPS_MODULEDIR" >&5
17614 $as_echo "LCMAPS_MODULEDIR set to $LCMAPS_MODULEDIR" >&6; }
17615
17616 # Find proper shared library extension
17617 eval SHREXT=$shrext_cmds
17618
17619
17620 # Configuration items
17621 ac_config_files="$ac_config_files Makefile"
17622
17623 ac_config_files="$ac_config_files doc/Makefile"
17624
17625 ac_config_files="$ac_config_files src/Makefile"
17626
17627 ac_config_files="$ac_config_files setup/gt4-interface-install:setup/gt4-interface-install.sh.in"
17628
17629 ac_config_files="$ac_config_files examples/gsi-authz.conf"
17630
17631
17632 ac_config_headers="$ac_config_headers src/llgt_config.h"
17633
17634
17635 cat >confcache <<\_ACEOF
17636 # This file is a shell script that caches the results of configure
17637 # tests run on this system so they can be shared between configure
17638 # scripts and configure runs, see configure's option --config-cache.
17639 # It is not useful on other systems. If it contains results you don't
17640 # want to keep, you may remove or edit it.
17641 #
17642 # config.status only pays attention to the cache file if you give it
17643 # the --recheck option to rerun configure.
17644 #
17645 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17646 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17647 # following values.
17648
17649 _ACEOF
17650
17651 # The following way of writing the cache mishandles newlines in values,
17652 # but we know of no workaround that is simple, portable, and efficient.
17653 # So, we kill variables containing newlines.
17654 # Ultrix sh set writes to stderr and can't be redirected directly,
17655 # and sets the high bit in the cache file unless we assign to the vars.
17656 (
17657 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17658 eval ac_val=\$$ac_var
17659 case $ac_val in #(
17660 *${as_nl}*)
17661 case $ac_var in #(
17662 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17663 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17664 esac
17665 case $ac_var in #(
17666 _ | IFS | as_nl) ;; #(
17667 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17668 *) { eval $ac_var=; unset $ac_var;} ;;
17669 esac ;;
17670 esac
17671 done
17672
17673 (set) 2>&1 |
17674 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17675 *${as_nl}ac_space=\ *)
17676 # `set' does not quote correctly, so add quotes: double-quote
17677 # substitution turns \\\\ into \\, and sed turns \\ into \.
17678 sed -n \
17679 "s/'/'\\\\''/g;
17680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17681 ;; #(
17682 *)
17683 # `set' quotes correctly as required by POSIX, so do not add quotes.
17684 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17685 ;;
17686 esac |
17687 sort
17688 ) |
17689 sed '
17690 /^ac_cv_env_/b end
17691 t clear
17692 :clear
17693 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17694 t end
17695 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17696 :end' >>confcache
17697 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17698 if test -w "$cache_file"; then
17699 if test "x$cache_file" != "x/dev/null"; then
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17701 $as_echo "$as_me: updating cache $cache_file" >&6;}
17702 if test ! -f "$cache_file" || test -h "$cache_file"; then
17703 cat confcache >"$cache_file"
17704 else
17705 case $cache_file in #(
17706 */* | ?:*)
17707 mv -f confcache "$cache_file"$$ &&
17708 mv -f "$cache_file"$$ "$cache_file" ;; #(
17709 *)
17710 mv -f confcache "$cache_file" ;;
17711 esac
17712 fi
17713 fi
17714 else
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17716 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17717 fi
17718 fi
17719 rm -f confcache
17720
17721 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17722 # Let make expand exec_prefix.
17723 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17724
17725 DEFS=-DHAVE_CONFIG_H
17726
17727 ac_libobjs=
17728 ac_ltlibobjs=
17729 U=
17730 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17731 # 1. Remove the extension, and $U if already installed.
17732 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17733 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17734 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17735 # will be set to the directory where LIBOBJS objects are built.
17736 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17737 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17738 done
17739 LIBOBJS=$ac_libobjs
17740
17741 LTLIBOBJS=$ac_ltlibobjs
17742
17743
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17745 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17746 if test -n "$am_sleep_pid"; then
17747 # Hide warnings about reused PIDs.
17748 wait $am_sleep_pid 2>/dev/null
17749 fi
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17751 $as_echo "done" >&6; }
17752 if test -n "$EXEEXT"; then
17753 am__EXEEXT_TRUE=
17754 am__EXEEXT_FALSE='#'
17755 else
17756 am__EXEEXT_TRUE='#'
17757 am__EXEEXT_FALSE=
17758 fi
17759
17760 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17761 as_fn_error $? "conditional \"AMDEP\" was never defined.
17762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17763 fi
17764 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17765 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17767 fi
17768 if test -z "${USE_LCAS_TRUE}" && test -z "${USE_LCAS_FALSE}"; then
17769 as_fn_error $? "conditional \"USE_LCAS\" was never defined.
17770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17771 fi
17772
17773 : "${CONFIG_STATUS=./config.status}"
17774 ac_write_fail=0
17775 ac_clean_files_save=$ac_clean_files
17776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17778 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17779 as_write_fail=0
17780 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17781 #! $SHELL
17782 # Generated by $as_me.
17783 # Run this file to recreate the current configuration.
17784 # Compiler output produced by configure, useful for debugging
17785 # configure, is in config.log if it exists.
17786
17787 debug=false
17788 ac_cs_recheck=false
17789 ac_cs_silent=false
17790
17791 SHELL=\${CONFIG_SHELL-$SHELL}
17792 export SHELL
17793 _ASEOF
17794 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17795 ## -------------------- ##
17796 ## M4sh Initialization. ##
17797 ## -------------------- ##
17798
17799 # Be more Bourne compatible
17800 DUALCASE=1; export DUALCASE # for MKS sh
17801 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17802 emulate sh
17803 NULLCMD=:
17804 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17805 # is contrary to our usage. Disable this feature.
17806 alias -g '${1+"$@"}'='"$@"'
17807 setopt NO_GLOB_SUBST
17808 else
17809 case `(set -o) 2>/dev/null` in #(
17810 *posix*) :
17811 set -o posix ;; #(
17812 *) :
17813 ;;
17814 esac
17815 fi
17816
17817
17818 as_nl='
17819 '
17820 export as_nl
17821 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17822 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17823 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17824 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17825 # Prefer a ksh shell builtin over an external printf program on Solaris,
17826 # but without wasting forks for bash or zsh.
17827 if test -z "$BASH_VERSION$ZSH_VERSION" \
17828 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17829 as_echo='print -r --'
17830 as_echo_n='print -rn --'
17831 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17832 as_echo='printf %s\n'
17833 as_echo_n='printf %s'
17834 else
17835 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17836 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17837 as_echo_n='/usr/ucb/echo -n'
17838 else
17839 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17840 as_echo_n_body='eval
17841 arg=$1;
17842 case $arg in #(
17843 *"$as_nl"*)
17844 expr "X$arg" : "X\\(.*\\)$as_nl";
17845 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17846 esac;
17847 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17848 '
17849 export as_echo_n_body
17850 as_echo_n='sh -c $as_echo_n_body as_echo'
17851 fi
17852 export as_echo_body
17853 as_echo='sh -c $as_echo_body as_echo'
17854 fi
17855
17856 # The user is always right.
17857 if test "${PATH_SEPARATOR+set}" != set; then
17858 PATH_SEPARATOR=:
17859 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17860 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17861 PATH_SEPARATOR=';'
17862 }
17863 fi
17864
17865
17866 # IFS
17867 # We need space, tab and new line, in precisely that order. Quoting is
17868 # there to prevent editors from complaining about space-tab.
17869 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17870 # splitting by setting IFS to empty value.)
17871 IFS=" "" $as_nl"
17872
17873 # Find who we are. Look in the path if we contain no directory separator.
17874 as_myself=
17875 case $0 in #((
17876 *[\\/]* ) as_myself=$0 ;;
17877 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17878 for as_dir in $PATH
17879 do
17880 IFS=$as_save_IFS
17881 test -z "$as_dir" && as_dir=.
17882 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17883 done
17884 IFS=$as_save_IFS
17885
17886 ;;
17887 esac
17888 # We did not find ourselves, most probably we were run as `sh COMMAND'
17889 # in which case we are not to be found in the path.
17890 if test "x$as_myself" = x; then
17891 as_myself=$0
17892 fi
17893 if test ! -f "$as_myself"; then
17894 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17895 exit 1
17896 fi
17897
17898 # Unset variables that we do not need and which cause bugs (e.g. in
17899 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17900 # suppresses any "Segmentation fault" message there. '((' could
17901 # trigger a bug in pdksh 5.2.14.
17902 for as_var in BASH_ENV ENV MAIL MAILPATH
17903 do eval test x\${$as_var+set} = xset \
17904 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17905 done
17906 PS1='$ '
17907 PS2='> '
17908 PS4='+ '
17909
17910 # NLS nuisances.
17911 LC_ALL=C
17912 export LC_ALL
17913 LANGUAGE=C
17914 export LANGUAGE
17915
17916 # CDPATH.
17917 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17918
17919
17920 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17921 # ----------------------------------------
17922 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17923 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17924 # script with STATUS, using 1 if that was 0.
17925 as_fn_error ()
17926 {
17927 as_status=$1; test $as_status -eq 0 && as_status=1
17928 if test "$4"; then
17929 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17930 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17931 fi
17932 $as_echo "$as_me: error: $2" >&2
17933 as_fn_exit $as_status
17934 } # as_fn_error
17935
17936
17937 # as_fn_set_status STATUS
17938 # -----------------------
17939 # Set $? to STATUS, without forking.
17940 as_fn_set_status ()
17941 {
17942 return $1
17943 } # as_fn_set_status
17944
17945 # as_fn_exit STATUS
17946 # -----------------
17947 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17948 as_fn_exit ()
17949 {
17950 set +e
17951 as_fn_set_status $1
17952 exit $1
17953 } # as_fn_exit
17954
17955 # as_fn_unset VAR
17956 # ---------------
17957 # Portably unset VAR.
17958 as_fn_unset ()
17959 {
17960 { eval $1=; unset $1;}
17961 }
17962 as_unset=as_fn_unset
17963 # as_fn_append VAR VALUE
17964 # ----------------------
17965 # Append the text in VALUE to the end of the definition contained in VAR. Take
17966 # advantage of any shell optimizations that allow amortized linear growth over
17967 # repeated appends, instead of the typical quadratic growth present in naive
17968 # implementations.
17969 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17970 eval 'as_fn_append ()
17971 {
17972 eval $1+=\$2
17973 }'
17974 else
17975 as_fn_append ()
17976 {
17977 eval $1=\$$1\$2
17978 }
17979 fi # as_fn_append
17980
17981 # as_fn_arith ARG...
17982 # ------------------
17983 # Perform arithmetic evaluation on the ARGs, and store the result in the
17984 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17985 # must be portable across $(()) and expr.
17986 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17987 eval 'as_fn_arith ()
17988 {
17989 as_val=$(( $* ))
17990 }'
17991 else
17992 as_fn_arith ()
17993 {
17994 as_val=`expr "$@" || test $? -eq 1`
17995 }
17996 fi # as_fn_arith
17997
17998
17999 if expr a : '\(a\)' >/dev/null 2>&1 &&
18000 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18001 as_expr=expr
18002 else
18003 as_expr=false
18004 fi
18005
18006 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18007 as_basename=basename
18008 else
18009 as_basename=false
18010 fi
18011
18012 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18013 as_dirname=dirname
18014 else
18015 as_dirname=false
18016 fi
18017
18018 as_me=`$as_basename -- "$0" ||
18019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18020 X"$0" : 'X\(//\)$' \| \
18021 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18022 $as_echo X/"$0" |
18023 sed '/^.*\/\([^/][^/]*\)\/*$/{
18024 s//\1/
18025 q
18026 }
18027 /^X\/\(\/\/\)$/{
18028 s//\1/
18029 q
18030 }
18031 /^X\/\(\/\).*/{
18032 s//\1/
18033 q
18034 }
18035 s/.*/./; q'`
18036
18037 # Avoid depending upon Character Ranges.
18038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18041 as_cr_digits='0123456789'
18042 as_cr_alnum=$as_cr_Letters$as_cr_digits
18043
18044 ECHO_C= ECHO_N= ECHO_T=
18045 case `echo -n x` in #(((((
18046 -n*)
18047 case `echo 'xy\c'` in
18048 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18049 xy) ECHO_C='\c';;
18050 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18051 ECHO_T=' ';;
18052 esac;;
18053 *)
18054 ECHO_N='-n';;
18055 esac
18056
18057 rm -f conf$$ conf$$.exe conf$$.file
18058 if test -d conf$$.dir; then
18059 rm -f conf$$.dir/conf$$.file
18060 else
18061 rm -f conf$$.dir
18062 mkdir conf$$.dir 2>/dev/null
18063 fi
18064 if (echo >conf$$.file) 2>/dev/null; then
18065 if ln -s conf$$.file conf$$ 2>/dev/null; then
18066 as_ln_s='ln -s'
18067 # ... but there are two gotchas:
18068 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18069 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18070 # In both cases, we have to default to `cp -pR'.
18071 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18072 as_ln_s='cp -pR'
18073 elif ln conf$$.file conf$$ 2>/dev/null; then
18074 as_ln_s=ln
18075 else
18076 as_ln_s='cp -pR'
18077 fi
18078 else
18079 as_ln_s='cp -pR'
18080 fi
18081 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18082 rmdir conf$$.dir 2>/dev/null
18083
18084
18085 # as_fn_mkdir_p
18086 # -------------
18087 # Create "$as_dir" as a directory, including parents if necessary.
18088 as_fn_mkdir_p ()
18089 {
18090
18091 case $as_dir in #(
18092 -*) as_dir=./$as_dir;;
18093 esac
18094 test -d "$as_dir" || eval $as_mkdir_p || {
18095 as_dirs=
18096 while :; do
18097 case $as_dir in #(
18098 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18099 *) as_qdir=$as_dir;;
18100 esac
18101 as_dirs="'$as_qdir' $as_dirs"
18102 as_dir=`$as_dirname -- "$as_dir" ||
18103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18104 X"$as_dir" : 'X\(//\)[^/]' \| \
18105 X"$as_dir" : 'X\(//\)$' \| \
18106 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18107 $as_echo X"$as_dir" |
18108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18109 s//\1/
18110 q
18111 }
18112 /^X\(\/\/\)[^/].*/{
18113 s//\1/
18114 q
18115 }
18116 /^X\(\/\/\)$/{
18117 s//\1/
18118 q
18119 }
18120 /^X\(\/\).*/{
18121 s//\1/
18122 q
18123 }
18124 s/.*/./; q'`
18125 test -d "$as_dir" && break
18126 done
18127 test -z "$as_dirs" || eval "mkdir $as_dirs"
18128 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18129
18130
18131 } # as_fn_mkdir_p
18132 if mkdir -p . 2>/dev/null; then
18133 as_mkdir_p='mkdir -p "$as_dir"'
18134 else
18135 test -d ./-p && rmdir ./-p
18136 as_mkdir_p=false
18137 fi
18138
18139
18140 # as_fn_executable_p FILE
18141 # -----------------------
18142 # Test if FILE is an executable regular file.
18143 as_fn_executable_p ()
18144 {
18145 test -f "$1" && test -x "$1"
18146 } # as_fn_executable_p
18147 as_test_x='test -x'
18148 as_executable_p=as_fn_executable_p
18149
18150 # Sed expression to map a string onto a valid CPP name.
18151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18152
18153 # Sed expression to map a string onto a valid variable name.
18154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18155
18156
18157 exec 6>&1
18158 ## ----------------------------------- ##
18159 ## Main body of $CONFIG_STATUS script. ##
18160 ## ----------------------------------- ##
18161 _ASEOF
18162 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18163
18164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18165 # Save the log message, to keep $0 and so on meaningful, and to
18166 # report actual input values of CONFIG_FILES etc. instead of their
18167 # values after options handling.
18168 ac_log="
18169 This file was extended by LCAS-LCMAPS GT4 interface $as_me 0.3.2, which was
18170 generated by GNU Autoconf 2.69. Invocation command line was
18171
18172 CONFIG_FILES = $CONFIG_FILES
18173 CONFIG_HEADERS = $CONFIG_HEADERS
18174 CONFIG_LINKS = $CONFIG_LINKS
18175 CONFIG_COMMANDS = $CONFIG_COMMANDS
18176 $ $0 $@
18177
18178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18179 "
18180
18181 _ACEOF
18182
18183 case $ac_config_files in *"
18184 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18185 esac
18186
18187 case $ac_config_headers in *"
18188 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18189 esac
18190
18191
18192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18193 # Files that config.status was made for.
18194 config_files="$ac_config_files"
18195 config_headers="$ac_config_headers"
18196 config_commands="$ac_config_commands"
18197
18198 _ACEOF
18199
18200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18201 ac_cs_usage="\
18202 \`$as_me' instantiates files and other configuration actions
18203 from templates according to the current configuration. Unless the files
18204 and actions are specified as TAGs, all are instantiated by default.
18205
18206 Usage: $0 [OPTION]... [TAG]...
18207
18208 -h, --help print this help, then exit
18209 -V, --version print version number and configuration settings, then exit
18210 --config print configuration, then exit
18211 -q, --quiet, --silent
18212 do not print progress messages
18213 -d, --debug don't remove temporary files
18214 --recheck update $as_me by reconfiguring in the same conditions
18215 --file=FILE[:TEMPLATE]
18216 instantiate the configuration file FILE
18217 --header=FILE[:TEMPLATE]
18218 instantiate the configuration header FILE
18219
18220 Configuration files:
18221 $config_files
18222
18223 Configuration headers:
18224 $config_headers
18225
18226 Configuration commands:
18227 $config_commands
18228
18229 Report bugs to <[email protected]>."
18230
18231 _ACEOF
18232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18233 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18234 ac_cs_version="\\
18235 LCAS-LCMAPS GT4 interface config.status 0.3.2
18236 configured by $0, generated by GNU Autoconf 2.69,
18237 with options \\"\$ac_cs_config\\"
18238
18239 Copyright (C) 2012 Free Software Foundation, Inc.
18240 This config.status script is free software; the Free Software Foundation
18241 gives unlimited permission to copy, distribute and modify it."
18242
18243 ac_pwd='$ac_pwd'
18244 srcdir='$srcdir'
18245 INSTALL='$INSTALL'
18246 MKDIR_P='$MKDIR_P'
18247 AWK='$AWK'
18248 test -n "\$AWK" || AWK=awk
18249 _ACEOF
18250
18251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18252 # The default lists apply if the user does not specify any file.
18253 ac_need_defaults=:
18254 while test $# != 0
18255 do
18256 case $1 in
18257 --*=?*)
18258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18260 ac_shift=:
18261 ;;
18262 --*=)
18263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18264 ac_optarg=
18265 ac_shift=:
18266 ;;
18267 *)
18268 ac_option=$1
18269 ac_optarg=$2
18270 ac_shift=shift
18271 ;;
18272 esac
18273
18274 case $ac_option in
18275 # Handling of the options.
18276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18277 ac_cs_recheck=: ;;
18278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18279 $as_echo "$ac_cs_version"; exit ;;
18280 --config | --confi | --conf | --con | --co | --c )
18281 $as_echo "$ac_cs_config"; exit ;;
18282 --debug | --debu | --deb | --de | --d | -d )
18283 debug=: ;;
18284 --file | --fil | --fi | --f )
18285 $ac_shift
18286 case $ac_optarg in
18287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18288 '') as_fn_error $? "missing file argument" ;;
18289 esac
18290 as_fn_append CONFIG_FILES " '$ac_optarg'"
18291 ac_need_defaults=false;;
18292 --header | --heade | --head | --hea )
18293 $ac_shift
18294 case $ac_optarg in
18295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18296 esac
18297 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18298 ac_need_defaults=false;;
18299 --he | --h)
18300 # Conflict between --help and --header
18301 as_fn_error $? "ambiguous option: \`$1'
18302 Try \`$0 --help' for more information.";;
18303 --help | --hel | -h )
18304 $as_echo "$ac_cs_usage"; exit ;;
18305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18306 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18307 ac_cs_silent=: ;;
18308
18309 # This is an error.
18310 -*) as_fn_error $? "unrecognized option: \`$1'
18311 Try \`$0 --help' for more information." ;;
18312
18313 *) as_fn_append ac_config_targets " $1"
18314 ac_need_defaults=false ;;
18315
18316 esac
18317 shift
18318 done
18319
18320 ac_configure_extra_args=
18321
18322 if $ac_cs_silent; then
18323 exec 6>/dev/null
18324 ac_configure_extra_args="$ac_configure_extra_args --silent"
18325 fi
18326
18327 _ACEOF
18328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18329 if \$ac_cs_recheck; then
18330 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18331 shift
18332 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18333 CONFIG_SHELL='$SHELL'
18334 export CONFIG_SHELL
18335 exec "\$@"
18336 fi
18337
18338 _ACEOF
18339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18340 exec 5>>config.log
18341 {
18342 echo
18343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18344 ## Running $as_me. ##
18345 _ASBOX
18346 $as_echo "$ac_log"
18347 } >&5
18348
18349 _ACEOF
18350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18351 #
18352 # INIT-COMMANDS
18353 #
18354 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18355
18356
18357 # The HP-UX ksh and POSIX shell print the target directory to stdout
18358 # if CDPATH is set.
18359 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18360
18361 sed_quote_subst='$sed_quote_subst'
18362 double_quote_subst='$double_quote_subst'
18363 delay_variable_subst='$delay_variable_subst'
18364 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18365 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18366 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18367 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18368 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18369 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18370 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18371 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18372 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18373 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18374 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18375 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18376 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18377 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18378 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18379 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18380 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18381 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18382 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18383 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18384 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18385 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18386 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18387 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18388 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18389 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18390 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18391 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18392 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18393 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18394 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18395 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18396 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18397 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18398 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18399 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18400 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18401 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18402 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18403 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18404 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18405 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18406 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18407 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18408 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18409 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18410 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18411 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18412 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18413 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18414 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18415 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18416 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18417 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18418 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18419 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18420 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18421 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18422 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"`'
18423 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18424 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18425 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18426 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18427 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18428 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18429 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18430 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18431 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18432 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18433 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18434 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18435 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18436 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18437 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18438 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18439 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18440 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18441 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18442 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18443 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18444 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18445 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18446 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18447 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18448 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18449 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18450 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18451 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18452 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18453 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18454 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18455 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18456 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18457 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18458 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18459 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18460 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18461 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18462 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18463 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18464 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18465 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18466 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18467 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18468 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18469 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18470 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18471 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18472 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18473 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18474 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18475 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18476 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18477 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18478 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18479 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18480 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18481 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18482 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18483 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18484 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18485 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18486 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18487 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18488 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18489 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18490 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18491 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18492 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18493 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18494 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18495 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18496 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18497 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18498 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18499
18500 LTCC='$LTCC'
18501 LTCFLAGS='$LTCFLAGS'
18502 compiler='$compiler_DEFAULT'
18503
18504 # A function that is used when there is no print builtin or printf.
18505 func_fallback_echo ()
18506 {
18507 eval 'cat <<_LTECHO_EOF
18508 \$1
18509 _LTECHO_EOF'
18510 }
18511
18512 # Quote evaled strings.
18513 for var in SHELL \
18514 ECHO \
18515 PATH_SEPARATOR \
18516 SED \
18517 GREP \
18518 EGREP \
18519 FGREP \
18520 LD \
18521 NM \
18522 LN_S \
18523 lt_SP2NL \
18524 lt_NL2SP \
18525 reload_flag \
18526 OBJDUMP \
18527 deplibs_check_method \
18528 file_magic_cmd \
18529 file_magic_glob \
18530 want_nocaseglob \
18531 DLLTOOL \
18532 sharedlib_from_linklib_cmd \
18533 AR \
18534 AR_FLAGS \
18535 archiver_list_spec \
18536 STRIP \
18537 RANLIB \
18538 CC \
18539 CFLAGS \
18540 compiler \
18541 lt_cv_sys_global_symbol_pipe \
18542 lt_cv_sys_global_symbol_to_cdecl \
18543 lt_cv_sys_global_symbol_to_import \
18544 lt_cv_sys_global_symbol_to_c_name_address \
18545 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18546 lt_cv_nm_interface \
18547 nm_file_list_spec \
18548 lt_cv_truncate_bin \
18549 lt_prog_compiler_no_builtin_flag \
18550 lt_prog_compiler_pic \
18551 lt_prog_compiler_wl \
18552 lt_prog_compiler_static \
18553 lt_cv_prog_compiler_c_o \
18554 need_locks \
18555 MANIFEST_TOOL \
18556 DSYMUTIL \
18557 NMEDIT \
18558 LIPO \
18559 OTOOL \
18560 OTOOL64 \
18561 shrext_cmds \
18562 export_dynamic_flag_spec \
18563 whole_archive_flag_spec \
18564 compiler_needs_object \
18565 with_gnu_ld \
18566 allow_undefined_flag \
18567 no_undefined_flag \
18568 hardcode_libdir_flag_spec \
18569 hardcode_libdir_separator \
18570 exclude_expsyms \
18571 include_expsyms \
18572 file_list_spec \
18573 variables_saved_for_relink \
18574 libname_spec \
18575 library_names_spec \
18576 soname_spec \
18577 install_override_mode \
18578 finish_eval \
18579 old_striplib \
18580 striplib; do
18581 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18582 *[\\\\\\\`\\"\\\$]*)
18583 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18584 ;;
18585 *)
18586 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18587 ;;
18588 esac
18589 done
18590
18591 # Double-quote double-evaled strings.
18592 for var in reload_cmds \
18593 old_postinstall_cmds \
18594 old_postuninstall_cmds \
18595 old_archive_cmds \
18596 extract_expsyms_cmds \
18597 old_archive_from_new_cmds \
18598 old_archive_from_expsyms_cmds \
18599 archive_cmds \
18600 archive_expsym_cmds \
18601 module_cmds \
18602 module_expsym_cmds \
18603 export_symbols_cmds \
18604 prelink_cmds \
18605 postlink_cmds \
18606 postinstall_cmds \
18607 postuninstall_cmds \
18608 finish_cmds \
18609 sys_lib_search_path_spec \
18610 configure_time_dlsearch_path \
18611 configure_time_lt_sys_library_path; do
18612 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18613 *[\\\\\\\`\\"\\\$]*)
18614 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18615 ;;
18616 *)
18617 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18618 ;;
18619 esac
18620 done
18621
18622 ac_aux_dir='$ac_aux_dir'
18623
18624 # See if we are running on zsh, and set the options that allow our
18625 # commands through without removal of \ escapes INIT.
18626 if test -n "\${ZSH_VERSION+set}"; then
18627 setopt NO_GLOB_SUBST
18628 fi
18629
18630
18631 PACKAGE='$PACKAGE'
18632 VERSION='$VERSION'
18633 RM='$RM'
18634 ofile='$ofile'
18635
18636
18637
18638
18639 _ACEOF
18640
18641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18642
18643 # Handling of arguments.
18644 for ac_config_target in $ac_config_targets
18645 do
18646 case $ac_config_target in
18647 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18648 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18649 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18650 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18651 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18652 "setup/gt4-interface-install") CONFIG_FILES="$CONFIG_FILES setup/gt4-interface-install:setup/gt4-interface-install.sh.in" ;;
18653 "examples/gsi-authz.conf") CONFIG_FILES="$CONFIG_FILES examples/gsi-authz.conf" ;;
18654 "src/llgt_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/llgt_config.h" ;;
18655
18656 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18657 esac
18658 done
18659
18660
18661 # If the user did not use the arguments to specify the items to instantiate,
18662 # then the envvar interface is used. Set only those that are not.
18663 # We use the long form for the default assignment because of an extremely
18664 # bizarre bug on SunOS 4.1.3.
18665 if $ac_need_defaults; then
18666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18667 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18668 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18669 fi
18670
18671 # Have a temporary directory for convenience. Make it in the build tree
18672 # simply because there is no reason against having it here, and in addition,
18673 # creating and moving files from /tmp can sometimes cause problems.
18674 # Hook for its removal unless debugging.
18675 # Note that there is a small window in which the directory will not be cleaned:
18676 # after its creation but before its name has been assigned to `$tmp'.
18677 $debug ||
18678 {
18679 tmp= ac_tmp=
18680 trap 'exit_status=$?
18681 : "${ac_tmp:=$tmp}"
18682 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18683 ' 0
18684 trap 'as_fn_exit 1' 1 2 13 15
18685 }
18686 # Create a (secure) tmp directory for tmp files.
18687
18688 {
18689 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18690 test -d "$tmp"
18691 } ||
18692 {
18693 tmp=./conf$$-$RANDOM
18694 (umask 077 && mkdir "$tmp")
18695 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18696 ac_tmp=$tmp
18697
18698 # Set up the scripts for CONFIG_FILES section.
18699 # No need to generate them if there are no CONFIG_FILES.
18700 # This happens for instance with `./config.status config.h'.
18701 if test -n "$CONFIG_FILES"; then
18702
18703
18704 ac_cr=`echo X | tr X '\015'`
18705 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18706 # But we know of no other shell where ac_cr would be empty at this
18707 # point, so we can use a bashism as a fallback.
18708 if test "x$ac_cr" = x; then
18709 eval ac_cr=\$\'\\r\'
18710 fi
18711 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18712 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18713 ac_cs_awk_cr='\\r'
18714 else
18715 ac_cs_awk_cr=$ac_cr
18716 fi
18717
18718 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18719 _ACEOF
18720
18721
18722 {
18723 echo "cat >conf$$subs.awk <<_ACEOF" &&
18724 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18725 echo "_ACEOF"
18726 } >conf$$subs.sh ||
18727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18728 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18729 ac_delim='%!_!# '
18730 for ac_last_try in false false false false false :; do
18731 . ./conf$$subs.sh ||
18732 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18733
18734 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18735 if test $ac_delim_n = $ac_delim_num; then
18736 break
18737 elif $ac_last_try; then
18738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18739 else
18740 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18741 fi
18742 done
18743 rm -f conf$$subs.sh
18744
18745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18746 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18747 _ACEOF
18748 sed -n '
18749 h
18750 s/^/S["/; s/!.*/"]=/
18751 p
18752 g
18753 s/^[^!]*!//
18754 :repl
18755 t repl
18756 s/'"$ac_delim"'$//
18757 t delim
18758 :nl
18759 h
18760 s/\(.\{148\}\)..*/\1/
18761 t more1
18762 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18763 p
18764 n
18765 b repl
18766 :more1
18767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18768 p
18769 g
18770 s/.\{148\}//
18771 t nl
18772 :delim
18773 h
18774 s/\(.\{148\}\)..*/\1/
18775 t more2
18776 s/["\\]/\\&/g; s/^/"/; s/$/"/
18777 p
18778 b
18779 :more2
18780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18781 p
18782 g
18783 s/.\{148\}//
18784 t delim
18785 ' <conf$$subs.awk | sed '
18786 /^[^""]/{
18787 N
18788 s/\n//
18789 }
18790 ' >>$CONFIG_STATUS || ac_write_fail=1
18791 rm -f conf$$subs.awk
18792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18793 _ACAWK
18794 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18795 for (key in S) S_is_set[key] = 1
18796 FS = ""
18797
18798 }
18799 {
18800 line = $ 0
18801 nfields = split(line, field, "@")
18802 substed = 0
18803 len = length(field[1])
18804 for (i = 2; i < nfields; i++) {
18805 key = field[i]
18806 keylen = length(key)
18807 if (S_is_set[key]) {
18808 value = S[key]
18809 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18810 len += length(value) + length(field[++i])
18811 substed = 1
18812 } else
18813 len += 1 + keylen
18814 }
18815
18816 print line
18817 }
18818
18819 _ACAWK
18820 _ACEOF
18821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18822 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18823 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18824 else
18825 cat
18826 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18827 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18828 _ACEOF
18829
18830 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18831 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18832 # trailing colons and then remove the whole line if VPATH becomes empty
18833 # (actually we leave an empty line to preserve line numbers).
18834 if test "x$srcdir" = x.; then
18835 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18836 h
18837 s///
18838 s/^/:/
18839 s/[ ]*$/:/
18840 s/:\$(srcdir):/:/g
18841 s/:\${srcdir}:/:/g
18842 s/:@srcdir@:/:/g
18843 s/^:*//
18844 s/:*$//
18845 x
18846 s/\(=[ ]*\).*/\1/
18847 G
18848 s/\n//
18849 s/^[^=]*=[ ]*$//
18850 }'
18851 fi
18852
18853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18854 fi # test -n "$CONFIG_FILES"
18855
18856 # Set up the scripts for CONFIG_HEADERS section.
18857 # No need to generate them if there are no CONFIG_HEADERS.
18858 # This happens for instance with `./config.status Makefile'.
18859 if test -n "$CONFIG_HEADERS"; then
18860 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18861 BEGIN {
18862 _ACEOF
18863
18864 # Transform confdefs.h into an awk script `defines.awk', embedded as
18865 # here-document in config.status, that substitutes the proper values into
18866 # config.h.in to produce config.h.
18867
18868 # Create a delimiter string that does not exist in confdefs.h, to ease
18869 # handling of long lines.
18870 ac_delim='%!_!# '
18871 for ac_last_try in false false :; do
18872 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18873 if test -z "$ac_tt"; then
18874 break
18875 elif $ac_last_try; then
18876 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18877 else
18878 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18879 fi
18880 done
18881
18882 # For the awk script, D is an array of macro values keyed by name,
18883 # likewise P contains macro parameters if any. Preserve backslash
18884 # newline sequences.
18885
18886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18887 sed -n '
18888 s/.\{148\}/&'"$ac_delim"'/g
18889 t rset
18890 :rset
18891 s/^[ ]*#[ ]*define[ ][ ]*/ /
18892 t def
18893 d
18894 :def
18895 s/\\$//
18896 t bsnl
18897 s/["\\]/\\&/g
18898 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18899 D["\1"]=" \3"/p
18900 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18901 d
18902 :bsnl
18903 s/["\\]/\\&/g
18904 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18905 D["\1"]=" \3\\\\\\n"\\/p
18906 t cont
18907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18908 t cont
18909 d
18910 :cont
18911 n
18912 s/.\{148\}/&'"$ac_delim"'/g
18913 t clear
18914 :clear
18915 s/\\$//
18916 t bsnlc
18917 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18918 d
18919 :bsnlc
18920 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18921 b cont
18922 ' <confdefs.h | sed '
18923 s/'"$ac_delim"'/"\\\
18924 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18925
18926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18927 for (key in D) D_is_set[key] = 1
18928 FS = ""
18929 }
18930 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18931 line = \$ 0
18932 split(line, arg, " ")
18933 if (arg[1] == "#") {
18934 defundef = arg[2]
18935 mac1 = arg[3]
18936 } else {
18937 defundef = substr(arg[1], 2)
18938 mac1 = arg[2]
18939 }
18940 split(mac1, mac2, "(") #)
18941 macro = mac2[1]
18942 prefix = substr(line, 1, index(line, defundef) - 1)
18943 if (D_is_set[macro]) {
18944 # Preserve the white space surrounding the "#".
18945 print prefix "define", macro P[macro] D[macro]
18946 next
18947 } else {
18948 # Replace #undef with comments. This is necessary, for example,
18949 # in the case of _POSIX_SOURCE, which is predefined and required
18950 # on some systems where configure will not decide to define it.
18951 if (defundef == "undef") {
18952 print "/*", prefix defundef, macro, "*/"
18953 next
18954 }
18955 }
18956 }
18957 { print }
18958 _ACAWK
18959 _ACEOF
18960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18961 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18962 fi # test -n "$CONFIG_HEADERS"
18963
18964
18965 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18966 shift
18967 for ac_tag
18968 do
18969 case $ac_tag in
18970 :[FHLC]) ac_mode=$ac_tag; continue;;
18971 esac
18972 case $ac_mode$ac_tag in
18973 :[FHL]*:*);;
18974 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18975 :[FH]-) ac_tag=-:-;;
18976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18977 esac
18978 ac_save_IFS=$IFS
18979 IFS=:
18980 set x $ac_tag
18981 IFS=$ac_save_IFS
18982 shift
18983 ac_file=$1
18984 shift
18985
18986 case $ac_mode in
18987 :L) ac_source=$1;;
18988 :[FH])
18989 ac_file_inputs=
18990 for ac_f
18991 do
18992 case $ac_f in
18993 -) ac_f="$ac_tmp/stdin";;
18994 *) # Look for the file first in the build tree, then in the source tree
18995 # (if the path is not absolute). The absolute path cannot be DOS-style,
18996 # because $ac_f cannot contain `:'.
18997 test -f "$ac_f" ||
18998 case $ac_f in
18999 [\\/$]*) false;;
19000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19001 esac ||
19002 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19003 esac
19004 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19005 as_fn_append ac_file_inputs " '$ac_f'"
19006 done
19007
19008 # Let's still pretend it is `configure' which instantiates (i.e., don't
19009 # use $as_me), people would be surprised to read:
19010 # /* config.h. Generated by config.status. */
19011 configure_input='Generated from '`
19012 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19013 `' by configure.'
19014 if test x"$ac_file" != x-; then
19015 configure_input="$ac_file. $configure_input"
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19017 $as_echo "$as_me: creating $ac_file" >&6;}
19018 fi
19019 # Neutralize special characters interpreted by sed in replacement strings.
19020 case $configure_input in #(
19021 *\&* | *\|* | *\\* )
19022 ac_sed_conf_input=`$as_echo "$configure_input" |
19023 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19024 *) ac_sed_conf_input=$configure_input;;
19025 esac
19026
19027 case $ac_tag in
19028 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19030 esac
19031 ;;
19032 esac
19033
19034 ac_dir=`$as_dirname -- "$ac_file" ||
19035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19036 X"$ac_file" : 'X\(//\)[^/]' \| \
19037 X"$ac_file" : 'X\(//\)$' \| \
19038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19039 $as_echo X"$ac_file" |
19040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19041 s//\1/
19042 q
19043 }
19044 /^X\(\/\/\)[^/].*/{
19045 s//\1/
19046 q
19047 }
19048 /^X\(\/\/\)$/{
19049 s//\1/
19050 q
19051 }
19052 /^X\(\/\).*/{
19053 s//\1/
19054 q
19055 }
19056 s/.*/./; q'`
19057 as_dir="$ac_dir"; as_fn_mkdir_p
19058 ac_builddir=.
19059
19060 case "$ac_dir" in
19061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19062 *)
19063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19064 # A ".." for each directory in $ac_dir_suffix.
19065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19066 case $ac_top_builddir_sub in
19067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19069 esac ;;
19070 esac
19071 ac_abs_top_builddir=$ac_pwd
19072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19073 # for backward compatibility:
19074 ac_top_builddir=$ac_top_build_prefix
19075
19076 case $srcdir in
19077 .) # We are building in place.
19078 ac_srcdir=.
19079 ac_top_srcdir=$ac_top_builddir_sub
19080 ac_abs_top_srcdir=$ac_pwd ;;
19081 [\\/]* | ?:[\\/]* ) # Absolute name.
19082 ac_srcdir=$srcdir$ac_dir_suffix;
19083 ac_top_srcdir=$srcdir
19084 ac_abs_top_srcdir=$srcdir ;;
19085 *) # Relative name.
19086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19087 ac_top_srcdir=$ac_top_build_prefix$srcdir
19088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19089 esac
19090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19091
19092
19093 case $ac_mode in
19094 :F)
19095 #
19096 # CONFIG_FILE
19097 #
19098
19099 case $INSTALL in
19100 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19101 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19102 esac
19103 ac_MKDIR_P=$MKDIR_P
19104 case $MKDIR_P in
19105 [\\/$]* | ?:[\\/]* ) ;;
19106 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19107 esac
19108 _ACEOF
19109
19110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19111 # If the template does not know about datarootdir, expand it.
19112 # FIXME: This hack should be removed a few years after 2.60.
19113 ac_datarootdir_hack=; ac_datarootdir_seen=
19114 ac_sed_dataroot='
19115 /datarootdir/ {
19116 p
19117 q
19118 }
19119 /@datadir@/p
19120 /@docdir@/p
19121 /@infodir@/p
19122 /@localedir@/p
19123 /@mandir@/p'
19124 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19125 *datarootdir*) ac_datarootdir_seen=yes;;
19126 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19128 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19129 _ACEOF
19130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19131 ac_datarootdir_hack='
19132 s&@datadir@&$datadir&g
19133 s&@docdir@&$docdir&g
19134 s&@infodir@&$infodir&g
19135 s&@localedir@&$localedir&g
19136 s&@mandir@&$mandir&g
19137 s&\\\${datarootdir}&$datarootdir&g' ;;
19138 esac
19139 _ACEOF
19140
19141 # Neutralize VPATH when `$srcdir' = `.'.
19142 # Shell code in configure.ac might set extrasub.
19143 # FIXME: do we really want to maintain this feature?
19144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19145 ac_sed_extra="$ac_vpsub
19146 $extrasub
19147 _ACEOF
19148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19149 :t
19150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19151 s|@configure_input@|$ac_sed_conf_input|;t t
19152 s&@top_builddir@&$ac_top_builddir_sub&;t t
19153 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19154 s&@srcdir@&$ac_srcdir&;t t
19155 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19156 s&@top_srcdir@&$ac_top_srcdir&;t t
19157 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19158 s&@builddir@&$ac_builddir&;t t
19159 s&@abs_builddir@&$ac_abs_builddir&;t t
19160 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19161 s&@INSTALL@&$ac_INSTALL&;t t
19162 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19163 $ac_datarootdir_hack
19164 "
19165 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19166 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19167
19168 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19169 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19170 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19171 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19173 which seems to be undefined. Please make sure it is defined" >&5
19174 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19175 which seems to be undefined. Please make sure it is defined" >&2;}
19176
19177 rm -f "$ac_tmp/stdin"
19178 case $ac_file in
19179 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19180 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19181 esac \
19182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19183 ;;
19184 :H)
19185 #
19186 # CONFIG_HEADER
19187 #
19188 if test x"$ac_file" != x-; then
19189 {
19190 $as_echo "/* $configure_input */" \
19191 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19192 } >"$ac_tmp/config.h" \
19193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19194 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19196 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19197 else
19198 rm -f "$ac_file"
19199 mv "$ac_tmp/config.h" "$ac_file" \
19200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19201 fi
19202 else
19203 $as_echo "/* $configure_input */" \
19204 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19205 || as_fn_error $? "could not create -" "$LINENO" 5
19206 fi
19207 # Compute "$ac_file"'s index in $config_headers.
19208 _am_arg="$ac_file"
19209 _am_stamp_count=1
19210 for _am_header in $config_headers :; do
19211 case $_am_header in
19212 $_am_arg | $_am_arg:* )
19213 break ;;
19214 * )
19215 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19216 esac
19217 done
19218 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19219 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19220 X"$_am_arg" : 'X\(//\)[^/]' \| \
19221 X"$_am_arg" : 'X\(//\)$' \| \
19222 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19223 $as_echo X"$_am_arg" |
19224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19225 s//\1/
19226 q
19227 }
19228 /^X\(\/\/\)[^/].*/{
19229 s//\1/
19230 q
19231 }
19232 /^X\(\/\/\)$/{
19233 s//\1/
19234 q
19235 }
19236 /^X\(\/\).*/{
19237 s//\1/
19238 q
19239 }
19240 s/.*/./; q'`/stamp-h$_am_stamp_count
19241 ;;
19242
19243 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19244 $as_echo "$as_me: executing $ac_file commands" >&6;}
19245 ;;
19246 esac
19247
19248
19249 case $ac_file$ac_mode in
19250 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19251 # Older Autoconf quotes --file arguments for eval, but not when files
19252 # are listed without --file. Let's play safe and only enable the eval
19253 # if we detect the quoting.
19254 # TODO: see whether this extra hack can be removed once we start
19255 # requiring Autoconf 2.70 or later.
19256 case $CONFIG_FILES in #(
19257 *\'*) :
19258 eval set x "$CONFIG_FILES" ;; #(
19259 *) :
19260 set x $CONFIG_FILES ;; #(
19261 *) :
19262 ;;
19263 esac
19264 shift
19265 # Used to flag and report bootstrapping failures.
19266 am_rc=0
19267 for am_mf
19268 do
19269 # Strip MF so we end up with the name of the file.
19270 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19271 # Check whether this is an Automake generated Makefile which includes
19272 # dependency-tracking related rules and includes.
19273 # Grep'ing the whole file directly is not great: AIX grep has a line
19274 # limit of 2048, but all sed's we know have understand at least 4000.
19275 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19276 || continue
19277 am_dirpart=`$as_dirname -- "$am_mf" ||
19278 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19279 X"$am_mf" : 'X\(//\)[^/]' \| \
19280 X"$am_mf" : 'X\(//\)$' \| \
19281 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19282 $as_echo X"$am_mf" |
19283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19284 s//\1/
19285 q
19286 }
19287 /^X\(\/\/\)[^/].*/{
19288 s//\1/
19289 q
19290 }
19291 /^X\(\/\/\)$/{
19292 s//\1/
19293 q
19294 }
19295 /^X\(\/\).*/{
19296 s//\1/
19297 q
19298 }
19299 s/.*/./; q'`
19300 am_filepart=`$as_basename -- "$am_mf" ||
19301 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19302 X"$am_mf" : 'X\(//\)$' \| \
19303 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19304 $as_echo X/"$am_mf" |
19305 sed '/^.*\/\([^/][^/]*\)\/*$/{
19306 s//\1/
19307 q
19308 }
19309 /^X\/\(\/\/\)$/{
19310 s//\1/
19311 q
19312 }
19313 /^X\/\(\/\).*/{
19314 s//\1/
19315 q
19316 }
19317 s/.*/./; q'`
19318 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19319 && sed -e '/# am--include-marker/d' "$am_filepart" \
19320 | $MAKE -f - am--depfiles" >&5
19321 (cd "$am_dirpart" \
19322 && sed -e '/# am--include-marker/d' "$am_filepart" \
19323 | $MAKE -f - am--depfiles) >&5 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } || am_rc=$?
19327 done
19328 if test $am_rc -ne 0; then
19329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19331 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19332 for automatic dependency tracking. If GNU make was not used, consider
19333 re-running the configure script with MAKE=\"gmake\" (or whatever is
19334 necessary). You can also try re-running configure with the
19335 '--disable-dependency-tracking' option to at least be able to build
19336 the package (albeit without support for automatic dependency tracking).
19337 See \`config.log' for more details" "$LINENO" 5; }
19338 fi
19339 { am_dirpart=; unset am_dirpart;}
19340 { am_filepart=; unset am_filepart;}
19341 { am_mf=; unset am_mf;}
19342 { am_rc=; unset am_rc;}
19343 rm -f conftest-deps.mk
19344 }
19345 ;;
19346 "libtool":C)
19347
19348 # See if we are running on zsh, and set the options that allow our
19349 # commands through without removal of \ escapes.
19350 if test -n "${ZSH_VERSION+set}"; then
19351 setopt NO_GLOB_SUBST
19352 fi
19353
19354 cfgfile=${ofile}T
19355 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19356 $RM "$cfgfile"
19357
19358 cat <<_LT_EOF >> "$cfgfile"
19359 #! $SHELL
19360 # Generated automatically by $as_me ($PACKAGE) $VERSION
19361 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19362 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19363
19364 # Provide generalized library-building support services.
19365 # Written by Gordon Matzigkeit, 1996
19366
19367 # Copyright (C) 2014 Free Software Foundation, Inc.
19368 # This is free software; see the source for copying conditions. There is NO
19369 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19370
19371 # GNU Libtool is free software; you can redistribute it and/or modify
19372 # it under the terms of the GNU General Public License as published by
19373 # the Free Software Foundation; either version 2 of of the License, or
19374 # (at your option) any later version.
19375 #
19376 # As a special exception to the GNU General Public License, if you
19377 # distribute this file as part of a program or library that is built
19378 # using GNU Libtool, you may include this file under the same
19379 # distribution terms that you use for the rest of that program.
19380 #
19381 # GNU Libtool is distributed in the hope that it will be useful, but
19382 # WITHOUT ANY WARRANTY; without even the implied warranty of
19383 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19384 # GNU General Public License for more details.
19385 #
19386 # You should have received a copy of the GNU General Public License
19387 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19388
19389
19390 # The names of the tagged configurations supported by this script.
19391 available_tags=''
19392
19393 # Configured defaults for sys_lib_dlsearch_path munging.
19394 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19395
19396 # ### BEGIN LIBTOOL CONFIG
19397
19398 # Which release of libtool.m4 was used?
19399 macro_version=$macro_version
19400 macro_revision=$macro_revision
19401
19402 # Whether or not to build shared libraries.
19403 build_libtool_libs=$enable_shared
19404
19405 # Whether or not to build static libraries.
19406 build_old_libs=$enable_static
19407
19408 # What type of objects to build.
19409 pic_mode=$pic_mode
19410
19411 # Whether or not to optimize for fast installation.
19412 fast_install=$enable_fast_install
19413
19414 # Shared archive member basename,for filename based shared library versioning on AIX.
19415 shared_archive_member_spec=$shared_archive_member_spec
19416
19417 # Shell to use when invoking shell scripts.
19418 SHELL=$lt_SHELL
19419
19420 # An echo program that protects backslashes.
19421 ECHO=$lt_ECHO
19422
19423 # The PATH separator for the build system.
19424 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19425
19426 # The host system.
19427 host_alias=$host_alias
19428 host=$host
19429 host_os=$host_os
19430
19431 # The build system.
19432 build_alias=$build_alias
19433 build=$build
19434 build_os=$build_os
19435
19436 # A sed program that does not truncate output.
19437 SED=$lt_SED
19438
19439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19440 Xsed="\$SED -e 1s/^X//"
19441
19442 # A grep program that handles long lines.
19443 GREP=$lt_GREP
19444
19445 # An ERE matcher.
19446 EGREP=$lt_EGREP
19447
19448 # A literal string matcher.
19449 FGREP=$lt_FGREP
19450
19451 # A BSD- or MS-compatible name lister.
19452 NM=$lt_NM
19453
19454 # Whether we need soft or hard links.
19455 LN_S=$lt_LN_S
19456
19457 # What is the maximum length of a command?
19458 max_cmd_len=$max_cmd_len
19459
19460 # Object file suffix (normally "o").
19461 objext=$ac_objext
19462
19463 # Executable file suffix (normally "").
19464 exeext=$exeext
19465
19466 # whether the shell understands "unset".
19467 lt_unset=$lt_unset
19468
19469 # turn spaces into newlines.
19470 SP2NL=$lt_lt_SP2NL
19471
19472 # turn newlines into spaces.
19473 NL2SP=$lt_lt_NL2SP
19474
19475 # convert \$build file names to \$host format.
19476 to_host_file_cmd=$lt_cv_to_host_file_cmd
19477
19478 # convert \$build files to toolchain format.
19479 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19480
19481 # An object symbol dumper.
19482 OBJDUMP=$lt_OBJDUMP
19483
19484 # Method to check whether dependent libraries are shared objects.
19485 deplibs_check_method=$lt_deplibs_check_method
19486
19487 # Command to use when deplibs_check_method = "file_magic".
19488 file_magic_cmd=$lt_file_magic_cmd
19489
19490 # How to find potential files when deplibs_check_method = "file_magic".
19491 file_magic_glob=$lt_file_magic_glob
19492
19493 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19494 want_nocaseglob=$lt_want_nocaseglob
19495
19496 # DLL creation program.
19497 DLLTOOL=$lt_DLLTOOL
19498
19499 # Command to associate shared and link libraries.
19500 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19501
19502 # The archiver.
19503 AR=$lt_AR
19504
19505 # Flags to create an archive.
19506 AR_FLAGS=$lt_AR_FLAGS
19507
19508 # How to feed a file listing to the archiver.
19509 archiver_list_spec=$lt_archiver_list_spec
19510
19511 # A symbol stripping program.
19512 STRIP=$lt_STRIP
19513
19514 # Commands used to install an old-style archive.
19515 RANLIB=$lt_RANLIB
19516 old_postinstall_cmds=$lt_old_postinstall_cmds
19517 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19518
19519 # Whether to use a lock for old archive extraction.
19520 lock_old_archive_extraction=$lock_old_archive_extraction
19521
19522 # A C compiler.
19523 LTCC=$lt_CC
19524
19525 # LTCC compiler flags.
19526 LTCFLAGS=$lt_CFLAGS
19527
19528 # Take the output of nm and produce a listing of raw symbols and C names.
19529 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19530
19531 # Transform the output of nm in a proper C declaration.
19532 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19533
19534 # Transform the output of nm into a list of symbols to manually relocate.
19535 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19536
19537 # Transform the output of nm in a C name address pair.
19538 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19539
19540 # Transform the output of nm in a C name address pair when lib prefix is needed.
19541 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19542
19543 # The name lister interface.
19544 nm_interface=$lt_lt_cv_nm_interface
19545
19546 # Specify filename containing input files for \$NM.
19547 nm_file_list_spec=$lt_nm_file_list_spec
19548
19549 # The root where to search for dependent libraries,and where our libraries should be installed.
19550 lt_sysroot=$lt_sysroot
19551
19552 # Command to truncate a binary pipe.
19553 lt_truncate_bin=$lt_lt_cv_truncate_bin
19554
19555 # The name of the directory that contains temporary libtool files.
19556 objdir=$objdir
19557
19558 # Used to examine libraries when file_magic_cmd begins with "file".
19559 MAGIC_CMD=$MAGIC_CMD
19560
19561 # Must we lock files when doing compilation?
19562 need_locks=$lt_need_locks
19563
19564 # Manifest tool.
19565 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19566
19567 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19568 DSYMUTIL=$lt_DSYMUTIL
19569
19570 # Tool to change global to local symbols on Mac OS X.
19571 NMEDIT=$lt_NMEDIT
19572
19573 # Tool to manipulate fat objects and archives on Mac OS X.
19574 LIPO=$lt_LIPO
19575
19576 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19577 OTOOL=$lt_OTOOL
19578
19579 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19580 OTOOL64=$lt_OTOOL64
19581
19582 # Old archive suffix (normally "a").
19583 libext=$libext
19584
19585 # Shared library suffix (normally ".so").
19586 shrext_cmds=$lt_shrext_cmds
19587
19588 # The commands to extract the exported symbol list from a shared archive.
19589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19590
19591 # Variables whose values should be saved in libtool wrapper scripts and
19592 # restored at link time.
19593 variables_saved_for_relink=$lt_variables_saved_for_relink
19594
19595 # Do we need the "lib" prefix for modules?
19596 need_lib_prefix=$need_lib_prefix
19597
19598 # Do we need a version for libraries?
19599 need_version=$need_version
19600
19601 # Library versioning type.
19602 version_type=$version_type
19603
19604 # Shared library runtime path variable.
19605 runpath_var=$runpath_var
19606
19607 # Shared library path variable.
19608 shlibpath_var=$shlibpath_var
19609
19610 # Is shlibpath searched before the hard-coded library search path?
19611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19612
19613 # Format of library name prefix.
19614 libname_spec=$lt_libname_spec
19615
19616 # List of archive names. First name is the real one, the rest are links.
19617 # The last name is the one that the linker finds with -lNAME
19618 library_names_spec=$lt_library_names_spec
19619
19620 # The coded name of the library, if different from the real name.
19621 soname_spec=$lt_soname_spec
19622
19623 # Permission mode override for installation of shared libraries.
19624 install_override_mode=$lt_install_override_mode
19625
19626 # Command to use after installation of a shared archive.
19627 postinstall_cmds=$lt_postinstall_cmds
19628
19629 # Command to use after uninstallation of a shared archive.
19630 postuninstall_cmds=$lt_postuninstall_cmds
19631
19632 # Commands used to finish a libtool library installation in a directory.
19633 finish_cmds=$lt_finish_cmds
19634
19635 # As "finish_cmds", except a single script fragment to be evaled but
19636 # not shown.
19637 finish_eval=$lt_finish_eval
19638
19639 # Whether we should hardcode library paths into libraries.
19640 hardcode_into_libs=$hardcode_into_libs
19641
19642 # Compile-time system search path for libraries.
19643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19644
19645 # Detected run-time system search path for libraries.
19646 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19647
19648 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19649 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19650
19651 # Whether dlopen is supported.
19652 dlopen_support=$enable_dlopen
19653
19654 # Whether dlopen of programs is supported.
19655 dlopen_self=$enable_dlopen_self
19656
19657 # Whether dlopen of statically linked programs is supported.
19658 dlopen_self_static=$enable_dlopen_self_static
19659
19660 # Commands to strip libraries.
19661 old_striplib=$lt_old_striplib
19662 striplib=$lt_striplib
19663
19664
19665 # The linker used to build libraries.
19666 LD=$lt_LD
19667
19668 # How to create reloadable object files.
19669 reload_flag=$lt_reload_flag
19670 reload_cmds=$lt_reload_cmds
19671
19672 # Commands used to build an old-style archive.
19673 old_archive_cmds=$lt_old_archive_cmds
19674
19675 # A language specific compiler.
19676 CC=$lt_compiler
19677
19678 # Is the compiler the GNU compiler?
19679 with_gcc=$GCC
19680
19681 # Compiler flag to turn off builtin functions.
19682 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19683
19684 # Additional compiler flags for building library objects.
19685 pic_flag=$lt_lt_prog_compiler_pic
19686
19687 # How to pass a linker flag through the compiler.
19688 wl=$lt_lt_prog_compiler_wl
19689
19690 # Compiler flag to prevent dynamic linking.
19691 link_static_flag=$lt_lt_prog_compiler_static
19692
19693 # Does compiler simultaneously support -c and -o options?
19694 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19695
19696 # Whether or not to add -lc for building shared libraries.
19697 build_libtool_need_lc=$archive_cmds_need_lc
19698
19699 # Whether or not to disallow shared libs when runtime libs are static.
19700 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19701
19702 # Compiler flag to allow reflexive dlopens.
19703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19704
19705 # Compiler flag to generate shared objects directly from archives.
19706 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19707
19708 # Whether the compiler copes with passing no objects directly.
19709 compiler_needs_object=$lt_compiler_needs_object
19710
19711 # Create an old-style archive from a shared archive.
19712 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19713
19714 # Create a temporary old-style archive to link instead of a shared archive.
19715 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19716
19717 # Commands used to build a shared archive.
19718 archive_cmds=$lt_archive_cmds
19719 archive_expsym_cmds=$lt_archive_expsym_cmds
19720
19721 # Commands used to build a loadable module if different from building
19722 # a shared archive.
19723 module_cmds=$lt_module_cmds
19724 module_expsym_cmds=$lt_module_expsym_cmds
19725
19726 # Whether we are building with GNU ld or not.
19727 with_gnu_ld=$lt_with_gnu_ld
19728
19729 # Flag that allows shared libraries with undefined symbols to be built.
19730 allow_undefined_flag=$lt_allow_undefined_flag
19731
19732 # Flag that enforces no undefined symbols.
19733 no_undefined_flag=$lt_no_undefined_flag
19734
19735 # Flag to hardcode \$libdir into a binary during linking.
19736 # This must work even if \$libdir does not exist
19737 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19738
19739 # Whether we need a single "-rpath" flag with a separated argument.
19740 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19741
19742 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19743 # DIR into the resulting binary.
19744 hardcode_direct=$hardcode_direct
19745
19746 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19747 # DIR into the resulting binary and the resulting library dependency is
19748 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19749 # library is relocated.
19750 hardcode_direct_absolute=$hardcode_direct_absolute
19751
19752 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19753 # into the resulting binary.
19754 hardcode_minus_L=$hardcode_minus_L
19755
19756 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19757 # into the resulting binary.
19758 hardcode_shlibpath_var=$hardcode_shlibpath_var
19759
19760 # Set to "yes" if building a shared library automatically hardcodes DIR
19761 # into the library and all subsequent libraries and executables linked
19762 # against it.
19763 hardcode_automatic=$hardcode_automatic
19764
19765 # Set to yes if linker adds runtime paths of dependent libraries
19766 # to runtime path list.
19767 inherit_rpath=$inherit_rpath
19768
19769 # Whether libtool must link a program against all its dependency libraries.
19770 link_all_deplibs=$link_all_deplibs
19771
19772 # Set to "yes" if exported symbols are required.
19773 always_export_symbols=$always_export_symbols
19774
19775 # The commands to list exported symbols.
19776 export_symbols_cmds=$lt_export_symbols_cmds
19777
19778 # Symbols that should not be listed in the preloaded symbols.
19779 exclude_expsyms=$lt_exclude_expsyms
19780
19781 # Symbols that must always be exported.
19782 include_expsyms=$lt_include_expsyms
19783
19784 # Commands necessary for linking programs (against libraries) with templates.
19785 prelink_cmds=$lt_prelink_cmds
19786
19787 # Commands necessary for finishing linking programs.
19788 postlink_cmds=$lt_postlink_cmds
19789
19790 # Specify filename containing input files.
19791 file_list_spec=$lt_file_list_spec
19792
19793 # How to hardcode a shared library path into an executable.
19794 hardcode_action=$hardcode_action
19795
19796 # ### END LIBTOOL CONFIG
19797
19798 _LT_EOF
19799
19800 cat <<'_LT_EOF' >> "$cfgfile"
19801
19802 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19803
19804 # func_munge_path_list VARIABLE PATH
19805 # -----------------------------------
19806 # VARIABLE is name of variable containing _space_ separated list of
19807 # directories to be munged by the contents of PATH, which is string
19808 # having a format:
19809 # "DIR[:DIR]:"
19810 # string "DIR[ DIR]" will be prepended to VARIABLE
19811 # ":DIR[:DIR]"
19812 # string "DIR[ DIR]" will be appended to VARIABLE
19813 # "DIRP[:DIRP]::[DIRA:]DIRA"
19814 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19815 # "DIRA[ DIRA]" will be appended to VARIABLE
19816 # "DIR[:DIR]"
19817 # VARIABLE will be replaced by "DIR[ DIR]"
19818 func_munge_path_list ()
19819 {
19820 case x$2 in
19821 x)
19822 ;;
19823 *:)
19824 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19825 ;;
19826 x:*)
19827 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19828 ;;
19829 *::*)
19830 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19831 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19832 ;;
19833 *)
19834 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19835 ;;
19836 esac
19837 }
19838
19839
19840 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19841 func_cc_basename ()
19842 {
19843 for cc_temp in $*""; do
19844 case $cc_temp in
19845 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19846 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19847 \-*) ;;
19848 *) break;;
19849 esac
19850 done
19851 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19852 }
19853
19854
19855 # ### END FUNCTIONS SHARED WITH CONFIGURE
19856
19857 _LT_EOF
19858
19859 case $host_os in
19860 aix3*)
19861 cat <<\_LT_EOF >> "$cfgfile"
19862 # AIX sometimes has problems with the GCC collect2 program. For some
19863 # reason, if we set the COLLECT_NAMES environment variable, the problems
19864 # vanish in a puff of smoke.
19865 if test set != "${COLLECT_NAMES+set}"; then
19866 COLLECT_NAMES=
19867 export COLLECT_NAMES
19868 fi
19869 _LT_EOF
19870 ;;
19871 esac
19872
19873
19874 ltmain=$ac_aux_dir/ltmain.sh
19875
19876
19877 # We use sed instead of cat because bash on DJGPP gets confused if
19878 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19879 # text mode, it properly converts lines to CR/LF. This bash problem
19880 # is reportedly fixed, but why not run on old versions too?
19881 sed '$q' "$ltmain" >> "$cfgfile" \
19882 || (rm -f "$cfgfile"; exit 1)
19883
19884 mv -f "$cfgfile" "$ofile" ||
19885 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19886 chmod +x "$ofile"
19887
19888 ;;
19889
19890 esac
19891 done # for ac_tag
19892
19893
19894 as_fn_exit 0
19895 _ACEOF
19896 ac_clean_files=$ac_clean_files_save
19897
19898 test $ac_write_fail = 0 ||
19899 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19900
19901
19902 # configure is writing to config.log, and then calls config.status.
19903 # config.status does its own redirection, appending to config.log.
19904 # Unfortunately, on DOS this fails, as config.log is still kept open
19905 # by configure, so config.status won't be able to write to it; its
19906 # output is simply discarded. So we exec the FD to /dev/null,
19907 # effectively closing config.log, so it can be properly (re)opened and
19908 # appended to by config.status. When coming back to configure, we
19909 # need to make the FD available again.
19910 if test "$no_create" != yes; then
19911 ac_cs_success=:
19912 ac_config_status_args=
19913 test "$silent" = yes &&
19914 ac_config_status_args="$ac_config_status_args --quiet"
19915 exec 5>/dev/null
19916 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19917 exec 5>>config.log
19918 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19919 # would make configure fail if this is the last instruction.
19920 $ac_cs_success || as_fn_exit 1
19921 fi
19922 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19924 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19925 fi
19926