Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for osmo-cbc 0.5.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system, including
280 $0: any error possibly output before this message. Then
281 $0: install a modern shell, or manually run the script
282 $0: under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='osmo-cbc'
623 PACKAGE_TARNAME='osmo-cbc'
624 PACKAGE_VERSION='0.5.1'
625 PACKAGE_STRING='osmo-cbc 0.5.1'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 # Factoring default headers for most tests.
630 ac_includes_default="\
631 #include <stddef.h>
632 #ifdef HAVE_STDIO_H
633 # include <stdio.h>
634 #endif
635 #ifdef HAVE_STDLIB_H
636 # include <stdlib.h>
637 #endif
638 #ifdef HAVE_STRING_H
639 # include <string.h>
640 #endif
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
643 #endif
644 #ifdef HAVE_STDINT_H
645 # include <stdint.h>
646 #endif
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
649 #endif
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
652 #endif
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
655 #endif
656 #ifdef HAVE_UNISTD_H
657 # include <unistd.h>
658 #endif"
659
660 ac_header_c_list=
661 ac_subst_vars='am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 ENABLE_EXT_TESTS_FALSE
666 ENABLE_EXT_TESTS_TRUE
667 OSMOTESTEXT_CHECK
668 pkgpyexecdir
669 pyexecdir
670 pkgpythondir
671 pythondir
672 PYTHON_EXEC_PREFIX
673 PYTHON_PREFIX
674 PYTHON_PLATFORM
675 PYTHON_VERSION
676 PYTHON
677 HAVE_SYSTEMD_FALSE
678 HAVE_SYSTEMD_TRUE
679 systemdsystemunitdir
680 OSMO_GSM_MANUALS_DIR
681 BUILD_MANUALS_FALSE
682 BUILD_MANUALS_TRUE
683 HAVE_DOXYGEN_FALSE
684 HAVE_DOXYGEN_TRUE
685 DOXYGEN
686 SYMBOL_VISIBILITY
687 LIBSCTP_LIBS
688 HAVE_LIBSCTP
689 ASN_MODULE_CFLAGS
690 ASN1C_BIN_PATH
691 ASN1C_SKELETON_PATH
692 ORCANIA_LIBS
693 ORCANIA_CFLAGS
694 JANSSON_LIBS
695 JANSSON_CFLAGS
696 ULFIUS_LIBS
697 ULFIUS_CFLAGS
698 LIBOSMONETIF_LIBS
699 LIBOSMONETIF_CFLAGS
700 LIBOSMOGSM_LIBS
701 LIBOSMOGSM_CFLAGS
702 LIBOSMOVTY_LIBS
703 LIBOSMOVTY_CFLAGS
704 LIBOSMOCORE_LIBS
705 LIBOSMOCORE_CFLAGS
706 PKG_CONFIG_LIBDIR
707 PKG_CONFIG_PATH
708 PKG_CONFIG
709 PKG_CONFIG_INSTALLED
710 LT_SYS_LIBRARY_PATH
711 OTOOL64
712 OTOOL
713 LIPO
714 NMEDIT
715 DSYMUTIL
716 MANIFEST_TOOL
717 RANLIB
718 ac_ct_AR
719 AR
720 DLLTOOL
721 OBJDUMP
722 FILECMD
723 LN_S
724 NM
725 ac_ct_DUMPBIN
726 DUMPBIN
727 LD
728 FGREP
729 EGREP
730 GREP
731 SED
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 LIBTOOL
741 am__fastdepCC_FALSE
742 am__fastdepCC_TRUE
743 CCDEPMODE
744 am__nodep
745 AMDEPBACKSLASH
746 AMDEP_FALSE
747 AMDEP_TRUE
748 am__include
749 DEPDIR
750 OBJEXT
751 EXEEXT
752 ac_ct_CC
753 CPPFLAGS
754 LDFLAGS
755 CFLAGS
756 CC
757 RELMAKE
758 AM_BACKSLASH
759 AM_DEFAULT_VERBOSITY
760 AM_DEFAULT_V
761 AM_V
762 CSCOPE
763 ETAGS
764 CTAGS
765 am__untar
766 am__tar
767 AMTAR
768 am__leading_dot
769 SET_MAKE
770 AWK
771 mkdir_p
772 MKDIR_P
773 INSTALL_STRIP_PROGRAM
774 STRIP
775 install_sh
776 MAKEINFO
777 AUTOHEADER
778 AUTOMAKE
779 AUTOCONF
780 ACLOCAL
781 VERSION
782 PACKAGE
783 CYGPATH_W
784 am__isrc
785 INSTALL_DATA
786 INSTALL_SCRIPT
787 INSTALL_PROGRAM
788 target_alias
789 host_alias
790 build_alias
791 LIBS
792 ECHO_T
793 ECHO_N
794 ECHO_C
795 DEFS
796 mandir
797 localedir
798 libdir
799 psdir
800 pdfdir
801 dvidir
802 htmldir
803 infodir
804 docdir
805 oldincludedir
806 includedir
807 runstatedir
808 localstatedir
809 sharedstatedir
810 sysconfdir
811 datadir
812 datarootdir
813 libexecdir
814 sbindir
815 bindir
816 program_transform_name
817 prefix
818 exec_prefix
819 PACKAGE_URL
820 PACKAGE_BUGREPORT
821 PACKAGE_STRING
822 PACKAGE_VERSION
823 PACKAGE_TARNAME
824 PACKAGE_NAME
825 PATH_SEPARATOR
826 SHELL
827 am__quote'
828 ac_subst_files=''
829 ac_user_opts='
830 enable_option_checking
831 enable_silent_rules
832 enable_dependency_tracking
833 enable_shared
834 enable_static
835 with_pic
836 enable_fast_install
837 with_aix_soname
838 with_gnu_ld
839 with_sysroot
840 enable_libtool_lock
841 enable_sanitize
842 enable_werror
843 enable_doxygen
844 enable_manuals
845 with_systemdsystemunitdir
846 enable_external_tests
847 with_python_sys_prefix
848 with_python_prefix
849 with_python_exec_prefix
850 '
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 LT_SYS_LIBRARY_PATH
860 PKG_CONFIG
861 PKG_CONFIG_PATH
862 PKG_CONFIG_LIBDIR
863 LIBOSMOCORE_CFLAGS
864 LIBOSMOCORE_LIBS
865 LIBOSMOVTY_CFLAGS
866 LIBOSMOVTY_LIBS
867 LIBOSMOGSM_CFLAGS
868 LIBOSMOGSM_LIBS
869 LIBOSMONETIF_CFLAGS
870 LIBOSMONETIF_LIBS
871 ULFIUS_CFLAGS
872 ULFIUS_LIBS
873 JANSSON_CFLAGS
874 JANSSON_LIBS
875 ORCANIA_CFLAGS
876 ORCANIA_LIBS
877 OSMO_GSM_MANUALS_DIR
878 PYTHON'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 ac_unrecognized_opts=
885 ac_unrecognized_sep=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 runstatedir='${localstatedir}/run'
918 includedir='${prefix}/include'
919 oldincludedir='/usr/include'
920 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
921 infodir='${datarootdir}/info'
922 htmldir='${docdir}'
923 dvidir='${docdir}'
924 pdfdir='${docdir}'
925 psdir='${docdir}'
926 libdir='${exec_prefix}/lib'
927 localedir='${datarootdir}/locale'
928 mandir='${datarootdir}/man'
929
930 ac_prev=
931 ac_dashdash=
932 for ac_option
933 do
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\$ac_option
937 ac_prev=
938 continue
939 fi
940
941 case $ac_option in
942 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 *=) ac_optarg= ;;
944 *) ac_optarg=yes ;;
945 esac
946
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
955
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
970
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
975
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: \`$ac_useropt'"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1008
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018 "enable_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -runstatedir | --runstatedir | --runstatedi | --runstated \
1169 | --runstate | --runstat | --runsta | --runst | --runs \
1170 | --run | --ru | --r)
1171 ac_prev=runstatedir ;;
1172 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1173 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1174 | --run=* | --ru=* | --r=*)
1175 runstatedir=$ac_optarg ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: \`$ac_useropt'"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1237
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=`printf "%s\n" "$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--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1253
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1257
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1264
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1271
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1274 ;;
1275
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282 esac
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1285
1286 *)
1287 # FIXME: should be removed in autoconf 3.0.
1288 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292 ;;
1293
1294 esac
1295 done
1296
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 as_fn_error $? "missing argument to $ac_option"
1300 fi
1301
1302 if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1308 fi
1309
1310 # Check all directory arguments for consistency.
1311 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir runstatedir
1315 do
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1330
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1337
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1344 fi
1345 fi
1346
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350 test "$silent" = yes && exec 6>/dev/null
1351
1352
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1359
1360
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 printf "%s\n" X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1391 fi
1392 else
1393 ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398 fi
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406 fi
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1419
1420 #
1421 # Report the --help message.
1422 #
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427 \`configure' configures osmo-cbc 0.5.1 to adapt to many kinds of systems.
1428
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1430
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1433
1434 Defaults for the options are specified in brackets.
1435
1436 Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1446
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1452
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1457
1458 For better control, use the options below.
1459
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1468 --libdir=DIR object code libraries [EPREFIX/lib]
1469 --includedir=DIR C header files [PREFIX/include]
1470 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1471 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473 --infodir=DIR info documentation [DATAROOTDIR/info]
1474 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475 --mandir=DIR man documentation [DATAROOTDIR/man]
1476 --docdir=DIR documentation root [DATAROOTDIR/doc/osmo-cbc]
1477 --htmldir=DIR html documentation [DOCDIR]
1478 --dvidir=DIR dvi documentation [DOCDIR]
1479 --pdfdir=DIR pdf documentation [DOCDIR]
1480 --psdir=DIR ps documentation [DOCDIR]
1481 _ACEOF
1482
1483 cat <<\_ACEOF
1484
1485 Program names:
1486 --program-prefix=PREFIX prepend PREFIX to installed program names
1487 --program-suffix=SUFFIX append SUFFIX to installed program names
1488 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1489
1490 System types:
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1493 _ACEOF
1494 fi
1495
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive ) echo "Configuration of osmo-cbc 0.5.1:";;
1499 esac
1500 cat <<\_ACEOF
1501
1502 Optional Features:
1503 --disable-option-checking ignore unrecognized --enable/--with options
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --enable-silent-rules less verbose build output (undo: "make V=1")
1507 --disable-silent-rules verbose build output (undo: "make V=0")
1508 --enable-dependency-tracking
1509 do not reject slow dependency extractors
1510 --disable-dependency-tracking
1511 speeds up one-time build
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1517 --enable-sanitize Compile with address sanitizer enabled
1518 --enable-werror Turn all compiler warnings into errors, with
1519 exceptions: a) deprecation (allow upstream to mark
1520 deprecation without breaking builds); b) "#warning"
1521 pragmas (allow to remind ourselves of errors without
1522 breaking builds)
1523 --disable-doxygen Disable generation of documentation using doxygen
1524 --enable-manuals Generate manual PDFs [default=no]
1525 --enable-external-tests Include the VTY/CTRL tests in make check
1526 [default=no]
1527
1528 Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1532 both]
1533 --with-aix-soname=aix|svr4|both
1534 shared library versioning (aka "SONAME") variant to
1535 provide on AIX, [default=aix].
1536 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1537 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1538 compiler's sysroot if not specified).
1539 --with-systemdsystemunitdir=DIR
1540 Directory for systemd service files
1541 --with-python-sys-prefix
1542 use Python's sys.prefix and sys.exec_prefix values
1543 --with-python_prefix override the default PYTHON_PREFIX
1544 --with-python_exec_prefix
1545 override the default PYTHON_EXEC_PREFIX
1546
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1555 LT_SYS_LIBRARY_PATH
1556 User-defined run-time library search path.
1557 PKG_CONFIG path to pkg-config utility
1558 PKG_CONFIG_PATH
1559 directories to add to pkg-config's search path
1560 PKG_CONFIG_LIBDIR
1561 path overriding pkg-config's built-in search path
1562 LIBOSMOCORE_CFLAGS
1563 C compiler flags for LIBOSMOCORE, overriding pkg-config
1564 LIBOSMOCORE_LIBS
1565 linker flags for LIBOSMOCORE, overriding pkg-config
1566 LIBOSMOVTY_CFLAGS
1567 C compiler flags for LIBOSMOVTY, overriding pkg-config
1568 LIBOSMOVTY_LIBS
1569 linker flags for LIBOSMOVTY, overriding pkg-config
1570 LIBOSMOGSM_CFLAGS
1571 C compiler flags for LIBOSMOGSM, overriding pkg-config
1572 LIBOSMOGSM_LIBS
1573 linker flags for LIBOSMOGSM, overriding pkg-config
1574 LIBOSMONETIF_CFLAGS
1575 C compiler flags for LIBOSMONETIF, overriding pkg-config
1576 LIBOSMONETIF_LIBS
1577 linker flags for LIBOSMONETIF, overriding pkg-config
1578 ULFIUS_CFLAGS
1579 C compiler flags for ULFIUS, overriding pkg-config
1580 ULFIUS_LIBS linker flags for ULFIUS, overriding pkg-config
1581 JANSSON_CFLAGS
1582 C compiler flags for JANSSON, overriding pkg-config
1583 JANSSON_LIBS
1584 linker flags for JANSSON, overriding pkg-config
1585 ORCANIA_CFLAGS
1586 C compiler flags for ORCANIA, overriding pkg-config
1587 ORCANIA_LIBS
1588 linker flags for ORCANIA, overriding pkg-config
1589 OSMO_GSM_MANUALS_DIR
1590 path to common osmo-gsm-manuals files, overriding pkg-config and
1591 "../osmo-gsm-manuals" fallback
1592 PYTHON the Python interpreter
1593
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1596
1597 Report bugs to <[email protected]>.
1598 _ACEOF
1599 ac_status=$?
1600 fi
1601
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1607 continue
1608 ac_builddir=.
1609
1610 case "$ac_dir" in
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *)
1613 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 esac ;;
1620 esac
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1625
1626 case $srcdir in
1627 .) # We are building in place.
1628 ac_srcdir=.
1629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
1632 ac_srcdir=$srcdir$ac_dir_suffix;
1633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1635 *) # Relative name.
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 esac
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641
1642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for configure.gnu first; this name is used for a wrapper for
1644 # Metaconfig's "Configure" on case-insensitive file systems.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1651 else
1652 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1655 done
1656 fi
1657
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1660 cat <<\_ACEOF
1661 osmo-cbc configure 0.5.1
1662 generated by GNU Autoconf 2.71
1663
1664 Copyright (C) 2021 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1667 _ACEOF
1668 exit
1669 fi
1670
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1674
1675 # ac_fn_c_try_compile LINENO
1676 # --------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_compile ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest.beam
1682 if { { ac_try="$ac_compile"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 printf "%s\n" "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext
1701 then :
1702 ac_retval=0
1703 else $as_nop
1704 printf "%s\n" "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708 fi
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_compile
1713
1714 # ac_fn_c_try_link LINENO
1715 # -----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_link ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1721 if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 printf "%s\n" "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest$ac_exeext && {
1740 test "$cross_compiling" = yes ||
1741 test -x conftest$ac_exeext
1742 }
1743 then :
1744 ac_retval=0
1745 else $as_nop
1746 printf "%s\n" "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_link
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 printf %s "checking for $2... " >&6; }
1770 if eval test \${$3+y}
1771 then :
1772 printf %s "(cached) " >&6
1773 else $as_nop
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"
1780 then :
1781 eval "$3=yes"
1782 else $as_nop
1783 eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 printf "%s\n" "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_compile
1793
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 printf %s "checking for $2... " >&6; }
1802 if eval test \${$3+y}
1803 then :
1804 printf %s "(cached) " >&6
1805 else $as_nop
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1810 #define $2 innocuous_$2
1811
1812 /* System header to define __stub macros and hopefully few prototypes,
1813 which can conflict with char $2 (); below. */
1814
1815 #include <limits.h>
1816 #undef $2
1817
1818 /* Override any GCC internal prototype to avoid an error.
1819 Use char because int might match the return type of a GCC
1820 builtin and then its argument prototype would still apply. */
1821 #ifdef __cplusplus
1822 extern "C"
1823 #endif
1824 char $2 ();
1825 /* The GNU C library defines this for functions which it implements
1826 to always fail with ENOSYS. Some functions are actually named
1827 something starting with __ and the normal name is an alias. */
1828 #if defined __stub_$2 || defined __stub___$2
1829 choke me
1830 #endif
1831
1832 int
1833 main (void)
1834 {
1835 return $2 ();
1836 ;
1837 return 0;
1838 }
1839 _ACEOF
1840 if ac_fn_c_try_link "$LINENO"
1841 then :
1842 eval "$3=yes"
1843 else $as_nop
1844 eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1847 conftest$ac_exeext conftest.$ac_ext
1848 fi
1849 eval ac_res=\$$3
1850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 printf "%s\n" "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
1854 } # ac_fn_c_check_func
1855 ac_configure_args_raw=
1856 for ac_arg
1857 do
1858 case $ac_arg in
1859 *\'*)
1860 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1861 esac
1862 as_fn_append ac_configure_args_raw " '$ac_arg'"
1863 done
1864
1865 case $ac_configure_args_raw in
1866 *$as_nl*)
1867 ac_safe_unquote= ;;
1868 *)
1869 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1870 ac_unsafe_a="$ac_unsafe_z#~"
1871 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1872 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1873 esac
1874
1875 cat >config.log <<_ACEOF
1876 This file contains any messages produced by compilers while
1877 running configure, to aid debugging if configure makes a mistake.
1878
1879 It was created by osmo-cbc $as_me 0.5.1, which was
1880 generated by GNU Autoconf 2.71. Invocation command line was
1881
1882 $ $0$ac_configure_args_raw
1883
1884 _ACEOF
1885 exec 5>>config.log
1886 {
1887 cat <<_ASUNAME
1888 ## --------- ##
1889 ## Platform. ##
1890 ## --------- ##
1891
1892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897
1898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1900
1901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1908
1909 _ASUNAME
1910
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 for as_dir in $PATH
1913 do
1914 IFS=$as_save_IFS
1915 case $as_dir in #(((
1916 '') as_dir=./ ;;
1917 */) ;;
1918 *) as_dir=$as_dir/ ;;
1919 esac
1920 printf "%s\n" "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 2)
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
1976 as_fn_append ac_configure_args " '$ac_arg'"
1977 ;;
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Sanitize IFS.
1991 IFS=" "" $as_nl"
1992 # Save into config.log some information that might help in debugging.
1993 {
1994 echo
1995
1996 printf "%s\n" "## ---------------- ##
1997 ## Cache variables. ##
1998 ## ---------------- ##"
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2001 (
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2024 *)
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 ;;
2027 esac |
2028 sort
2029 )
2030 echo
2031
2032 printf "%s\n" "## ----------------- ##
2033 ## Output variables. ##
2034 ## ----------------- ##"
2035 echo
2036 for ac_var in $ac_subst_vars
2037 do
2038 eval ac_val=\$$ac_var
2039 case $ac_val in
2040 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 esac
2042 printf "%s\n" "$ac_var='\''$ac_val'\''"
2043 done | sort
2044 echo
2045
2046 if test -n "$ac_subst_files"; then
2047 printf "%s\n" "## ------------------- ##
2048 ## File substitutions. ##
2049 ## ------------------- ##"
2050 echo
2051 for ac_var in $ac_subst_files
2052 do
2053 eval ac_val=\$$ac_var
2054 case $ac_val in
2055 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2056 esac
2057 printf "%s\n" "$ac_var='\''$ac_val'\''"
2058 done | sort
2059 echo
2060 fi
2061
2062 if test -s confdefs.h; then
2063 printf "%s\n" "## ----------- ##
2064 ## confdefs.h. ##
2065 ## ----------- ##"
2066 echo
2067 cat confdefs.h
2068 echo
2069 fi
2070 test "$ac_signal" != 0 &&
2071 printf "%s\n" "$as_me: caught signal $ac_signal"
2072 printf "%s\n" "$as_me: exit $exit_status"
2073 } >&5
2074 rm -f core *.core core.conftest.* &&
2075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 exit $exit_status
2077 ' 0
2078 for ac_signal in 1 2 13 15; do
2079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080 done
2081 ac_signal=0
2082
2083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2084 rm -f -r conftest* confdefs.h
2085
2086 printf "%s\n" "/* confdefs.h */" > confdefs.h
2087
2088 # Predefined preprocessor variables.
2089
2090 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2091
2092 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2093
2094 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2095
2096 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2097
2098 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2099
2100 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2101
2102
2103 # Let the site file select an alternate cache file if it wants to.
2104 # Prefer an explicitly selected file to automatically selected ones.
2105 if test -n "$CONFIG_SITE"; then
2106 ac_site_files="$CONFIG_SITE"
2107 elif test "x$prefix" != xNONE; then
2108 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2109 else
2110 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2111 fi
2112
2113 for ac_site_file in $ac_site_files
2114 do
2115 case $ac_site_file in #(
2116 */*) :
2117 ;; #(
2118 *) :
2119 ac_site_file=./$ac_site_file ;;
2120 esac
2121 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2123 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2124 sed 's/^/| /' "$ac_site_file" >&5
2125 . "$ac_site_file" \
2126 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2128 as_fn_error $? "failed to load site script $ac_site_file
2129 See \`config.log' for more details" "$LINENO" 5; }
2130 fi
2131 done
2132
2133 if test -r "$cache_file"; then
2134 # Some versions of bash will fail to source /dev/null (special files
2135 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2136 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2138 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2139 case $cache_file in
2140 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2141 *) . "./$cache_file";;
2142 esac
2143 fi
2144 else
2145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2146 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2147 >$cache_file
2148 fi
2149
2150 # Test code for whether the C compiler supports C89 (global declarations)
2151 ac_c_conftest_c89_globals='
2152 /* Does the compiler advertise C89 conformance?
2153 Do not test the value of __STDC__, because some compilers set it to 0
2154 while being otherwise adequately conformant. */
2155 #if !defined __STDC__
2156 # error "Compiler does not advertise C89 conformance"
2157 #endif
2158
2159 #include <stddef.h>
2160 #include <stdarg.h>
2161 struct stat;
2162 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2163 struct buf { int x; };
2164 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2165 static char *e (p, i)
2166 char **p;
2167 int i;
2168 {
2169 return p[i];
2170 }
2171 static char *f (char * (*g) (char **, int), char **p, ...)
2172 {
2173 char *s;
2174 va_list v;
2175 va_start (v,p);
2176 s = g (p, va_arg (v,int));
2177 va_end (v);
2178 return s;
2179 }
2180
2181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2182 function prototypes and stuff, but not \xHH hex character constants.
2183 These do not provoke an error unfortunately, instead are silently treated
2184 as an "x". The following induces an error, until -std is added to get
2185 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2186 array size at least. It is necessary to write \x00 == 0 to get something
2187 that is true only with -std. */
2188 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2189
2190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2191 inside strings and character constants. */
2192 #define FOO(x) '\''x'\''
2193 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2194
2195 int test (int i, double x);
2196 struct s1 {int (*f) (int a);};
2197 struct s2 {int (*f) (double a);};
2198 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2199 int, int);'
2200
2201 # Test code for whether the C compiler supports C89 (body of main).
2202 ac_c_conftest_c89_main='
2203 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2204 '
2205
2206 # Test code for whether the C compiler supports C99 (global declarations)
2207 ac_c_conftest_c99_globals='
2208 // Does the compiler advertise C99 conformance?
2209 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2210 # error "Compiler does not advertise C99 conformance"
2211 #endif
2212
2213 #include <stdbool.h>
2214 extern int puts (const char *);
2215 extern int printf (const char *, ...);
2216 extern int dprintf (int, const char *, ...);
2217 extern void *malloc (size_t);
2218
2219 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2220 // dprintf is used instead of fprintf to avoid needing to declare
2221 // FILE and stderr.
2222 #define debug(...) dprintf (2, __VA_ARGS__)
2223 #define showlist(...) puts (#__VA_ARGS__)
2224 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2225 static void
2226 test_varargs_macros (void)
2227 {
2228 int x = 1234;
2229 int y = 5678;
2230 debug ("Flag");
2231 debug ("X = %d\n", x);
2232 showlist (The first, second, and third items.);
2233 report (x>y, "x is %d but y is %d", x, y);
2234 }
2235
2236 // Check long long types.
2237 #define BIG64 18446744073709551615ull
2238 #define BIG32 4294967295ul
2239 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2240 #if !BIG_OK
2241 #error "your preprocessor is broken"
2242 #endif
2243 #if BIG_OK
2244 #else
2245 #error "your preprocessor is broken"
2246 #endif
2247 static long long int bignum = -9223372036854775807LL;
2248 static unsigned long long int ubignum = BIG64;
2249
2250 struct incomplete_array
2251 {
2252 int datasize;
2253 double data[];
2254 };
2255
2256 struct named_init {
2257 int number;
2258 const wchar_t *name;
2259 double average;
2260 };
2261
2262 typedef const char *ccp;
2263
2264 static inline int
2265 test_restrict (ccp restrict text)
2266 {
2267 // See if C++-style comments work.
2268 // Iterate through items via the restricted pointer.
2269 // Also check for declarations in for loops.
2270 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2271 continue;
2272 return 0;
2273 }
2274
2275 // Check varargs and va_copy.
2276 static bool
2277 test_varargs (const char *format, ...)
2278 {
2279 va_list args;
2280 va_start (args, format);
2281 va_list args_copy;
2282 va_copy (args_copy, args);
2283
2284 const char *str = "";
2285 int number = 0;
2286 float fnumber = 0;
2287
2288 while (*format)
2289 {
2290 switch (*format++)
2291 {
2292 case '\''s'\'': // string
2293 str = va_arg (args_copy, const char *);
2294 break;
2295 case '\''d'\'': // int
2296 number = va_arg (args_copy, int);
2297 break;
2298 case '\''f'\'': // float
2299 fnumber = va_arg (args_copy, double);
2300 break;
2301 default:
2302 break;
2303 }
2304 }
2305 va_end (args_copy);
2306 va_end (args);
2307
2308 return *str && number && fnumber;
2309 }
2310 '
2311
2312 # Test code for whether the C compiler supports C99 (body of main).
2313 ac_c_conftest_c99_main='
2314 // Check bool.
2315 _Bool success = false;
2316 success |= (argc != 0);
2317
2318 // Check restrict.
2319 if (test_restrict ("String literal") == 0)
2320 success = true;
2321 char *restrict newvar = "Another string";
2322
2323 // Check varargs.
2324 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2325 test_varargs_macros ();
2326
2327 // Check flexible array members.
2328 struct incomplete_array *ia =
2329 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2330 ia->datasize = 10;
2331 for (int i = 0; i < ia->datasize; ++i)
2332 ia->data[i] = i * 1.234;
2333
2334 // Check named initializers.
2335 struct named_init ni = {
2336 .number = 34,
2337 .name = L"Test wide string",
2338 .average = 543.34343,
2339 };
2340
2341 ni.number = 58;
2342
2343 int dynamic_array[ni.number];
2344 dynamic_array[0] = argv[0][0];
2345 dynamic_array[ni.number - 1] = 543;
2346
2347 // work around unused variable warnings
2348 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2349 || dynamic_array[ni.number - 1] != 543);
2350 '
2351
2352 # Test code for whether the C compiler supports C11 (global declarations)
2353 ac_c_conftest_c11_globals='
2354 // Does the compiler advertise C11 conformance?
2355 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2356 # error "Compiler does not advertise C11 conformance"
2357 #endif
2358
2359 // Check _Alignas.
2360 char _Alignas (double) aligned_as_double;
2361 char _Alignas (0) no_special_alignment;
2362 extern char aligned_as_int;
2363 char _Alignas (0) _Alignas (int) aligned_as_int;
2364
2365 // Check _Alignof.
2366 enum
2367 {
2368 int_alignment = _Alignof (int),
2369 int_array_alignment = _Alignof (int[100]),
2370 char_alignment = _Alignof (char)
2371 };
2372 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2373
2374 // Check _Noreturn.
2375 int _Noreturn does_not_return (void) { for (;;) continue; }
2376
2377 // Check _Static_assert.
2378 struct test_static_assert
2379 {
2380 int x;
2381 _Static_assert (sizeof (int) <= sizeof (long int),
2382 "_Static_assert does not work in struct");
2383 long int y;
2384 };
2385
2386 // Check UTF-8 literals.
2387 #define u8 syntax error!
2388 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2389
2390 // Check duplicate typedefs.
2391 typedef long *long_ptr;
2392 typedef long int *long_ptr;
2393 typedef long_ptr long_ptr;
2394
2395 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2396 struct anonymous
2397 {
2398 union {
2399 struct { int i; int j; };
2400 struct { int k; long int l; } w;
2401 };
2402 int m;
2403 } v1;
2404 '
2405
2406 # Test code for whether the C compiler supports C11 (body of main).
2407 ac_c_conftest_c11_main='
2408 _Static_assert ((offsetof (struct anonymous, i)
2409 == offsetof (struct anonymous, w.k)),
2410 "Anonymous union alignment botch");
2411 v1.i = 2;
2412 v1.w.k = 5;
2413 ok |= v1.i != 5;
2414 '
2415
2416 # Test code for whether the C compiler supports C11 (complete).
2417 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2418 ${ac_c_conftest_c99_globals}
2419 ${ac_c_conftest_c11_globals}
2420
2421 int
2422 main (int argc, char **argv)
2423 {
2424 int ok = 0;
2425 ${ac_c_conftest_c89_main}
2426 ${ac_c_conftest_c99_main}
2427 ${ac_c_conftest_c11_main}
2428 return ok;
2429 }
2430 "
2431
2432 # Test code for whether the C compiler supports C99 (complete).
2433 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2434 ${ac_c_conftest_c99_globals}
2435
2436 int
2437 main (int argc, char **argv)
2438 {
2439 int ok = 0;
2440 ${ac_c_conftest_c89_main}
2441 ${ac_c_conftest_c99_main}
2442 return ok;
2443 }
2444 "
2445
2446 # Test code for whether the C compiler supports C89 (complete).
2447 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2448
2449 int
2450 main (int argc, char **argv)
2451 {
2452 int ok = 0;
2453 ${ac_c_conftest_c89_main}
2454 return ok;
2455 }
2456 "
2457
2458 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2459 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2460 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2461 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2462 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2463 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2464 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2465 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2466 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2467
2468 # Auxiliary files required by this configure script.
2469 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2470
2471 # Locations in which to look for auxiliary files.
2472 ac_aux_dir_candidates="${srcdir}/."
2473
2474 # Search for a directory containing all of the required auxiliary files,
2475 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2476 # If we don't find one directory that contains all the files we need,
2477 # we report the set of missing files from the *first* directory in
2478 # $ac_aux_dir_candidates and give up.
2479 ac_missing_aux_files=""
2480 ac_first_candidate=:
2481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 as_found=false
2484 for as_dir in $ac_aux_dir_candidates
2485 do
2486 IFS=$as_save_IFS
2487 case $as_dir in #(((
2488 '') as_dir=./ ;;
2489 */) ;;
2490 *) as_dir=$as_dir/ ;;
2491 esac
2492 as_found=:
2493
2494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2495 ac_aux_dir_found=yes
2496 ac_install_sh=
2497 for ac_aux in $ac_aux_files
2498 do
2499 # As a special case, if "install-sh" is required, that requirement
2500 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2501 # and $ac_install_sh is set appropriately for whichever one is found.
2502 if test x"$ac_aux" = x"install-sh"
2503 then
2504 if test -f "${as_dir}install-sh"; then
2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2506 ac_install_sh="${as_dir}install-sh -c"
2507 elif test -f "${as_dir}install.sh"; then
2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2509 ac_install_sh="${as_dir}install.sh -c"
2510 elif test -f "${as_dir}shtool"; then
2511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2512 ac_install_sh="${as_dir}shtool install -c"
2513 else
2514 ac_aux_dir_found=no
2515 if $ac_first_candidate; then
2516 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2517 else
2518 break
2519 fi
2520 fi
2521 else
2522 if test -f "${as_dir}${ac_aux}"; then
2523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2524 else
2525 ac_aux_dir_found=no
2526 if $ac_first_candidate; then
2527 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2528 else
2529 break
2530 fi
2531 fi
2532 fi
2533 done
2534 if test "$ac_aux_dir_found" = yes; then
2535 ac_aux_dir="$as_dir"
2536 break
2537 fi
2538 ac_first_candidate=false
2539
2540 as_found=false
2541 done
2542 IFS=$as_save_IFS
2543 if $as_found
2544 then :
2545
2546 else $as_nop
2547 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2548 fi
2549
2550
2551 # These three variables are undocumented and unsupported,
2552 # and are intended to be withdrawn in a future Autoconf release.
2553 # They can cause serious problems if a builder's source tree is in a directory
2554 # whose full name contains unusual characters.
2555 if test -f "${ac_aux_dir}config.guess"; then
2556 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2557 fi
2558 if test -f "${ac_aux_dir}config.sub"; then
2559 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2560 fi
2561 if test -f "$ac_aux_dir/configure"; then
2562 ac_configure="$SHELL ${ac_aux_dir}configure"
2563 fi
2564
2565 # Check that the precious variables saved in the cache have kept the same
2566 # value.
2567 ac_cache_corrupted=false
2568 for ac_var in $ac_precious_vars; do
2569 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2570 eval ac_new_set=\$ac_env_${ac_var}_set
2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2572 eval ac_new_val=\$ac_env_${ac_var}_value
2573 case $ac_old_set,$ac_new_set in
2574 set,)
2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2576 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2577 ac_cache_corrupted=: ;;
2578 ,set)
2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2580 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2581 ac_cache_corrupted=: ;;
2582 ,);;
2583 *)
2584 if test "x$ac_old_val" != "x$ac_new_val"; then
2585 # differences in whitespace do not lead to failure.
2586 ac_old_val_w=`echo x $ac_old_val`
2587 ac_new_val_w=`echo x $ac_new_val`
2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2590 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2591 ac_cache_corrupted=:
2592 else
2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2594 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2595 eval $ac_var=\$ac_old_val
2596 fi
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2598 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2600 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2601 fi;;
2602 esac
2603 # Pass precious variables to config.status.
2604 if test "$ac_new_set" = set; then
2605 case $ac_new_val in
2606 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2607 *) ac_arg=$ac_var=$ac_new_val ;;
2608 esac
2609 case " $ac_configure_args " in
2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2612 esac
2613 fi
2614 done
2615 if $ac_cache_corrupted; then
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2619 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2620 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2621 and start over" "$LINENO" 5
2622 fi
2623 ## -------------------- ##
2624 ## Main body of script. ##
2625 ## -------------------- ##
2626
2627 ac_ext=c
2628 ac_cpp='$CPP $CPPFLAGS'
2629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2632
2633
2634
2635
2636
2637 am__api_version='1.16'
2638
2639
2640
2641 # Find a good install program. We prefer a C program (faster),
2642 # so one script is as good as another. But avoid the broken or
2643 # incompatible versions:
2644 # SysV /etc/install, /usr/sbin/install
2645 # SunOS /usr/etc/install
2646 # IRIX /sbin/install
2647 # AIX /bin/install
2648 # AmigaOS /C/install, which installs bootblocks on floppy discs
2649 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2650 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2651 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2652 # OS/2's system install, which has a completely different semantic
2653 # ./install, which can be erroneously created by make from ./install.sh.
2654 # Reject install programs that cannot install multiple files.
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2656 printf %s "checking for a BSD-compatible install... " >&6; }
2657 if test -z "$INSTALL"; then
2658 if test ${ac_cv_path_install+y}
2659 then :
2660 printf %s "(cached) " >&6
2661 else $as_nop
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 case $as_dir in #(((
2667 '') as_dir=./ ;;
2668 */) ;;
2669 *) as_dir=$as_dir/ ;;
2670 esac
2671 # Account for fact that we put trailing slashes in our PATH walk.
2672 case $as_dir in #((
2673 ./ | /[cC]/* | \
2674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2675 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2676 /usr/ucb/* ) ;;
2677 *)
2678 # OSF1 and SCO ODT 3.0 have their own names for install.
2679 # Don't use installbsd from OSF since it installs stuff as root
2680 # by default.
2681 for ac_prog in ginstall scoinst install; do
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2684 if test $ac_prog = install &&
2685 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # AIX install. It has an incompatible calling convention.
2687 :
2688 elif test $ac_prog = install &&
2689 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2690 # program-specific install script used by HP pwplus--don't use.
2691 :
2692 else
2693 rm -rf conftest.one conftest.two conftest.dir
2694 echo one > conftest.one
2695 echo two > conftest.two
2696 mkdir conftest.dir
2697 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2698 test -s conftest.one && test -s conftest.two &&
2699 test -s conftest.dir/conftest.one &&
2700 test -s conftest.dir/conftest.two
2701 then
2702 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2703 break 3
2704 fi
2705 fi
2706 fi
2707 done
2708 done
2709 ;;
2710 esac
2711
2712 done
2713 IFS=$as_save_IFS
2714
2715 rm -rf conftest.one conftest.two conftest.dir
2716
2717 fi
2718 if test ${ac_cv_path_install+y}; then
2719 INSTALL=$ac_cv_path_install
2720 else
2721 # As a last resort, use the slow shell script. Don't cache a
2722 # value for INSTALL within a source directory, because that will
2723 # break other packages using the cache if that directory is
2724 # removed, or if the value is a relative name.
2725 INSTALL=$ac_install_sh
2726 fi
2727 fi
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2729 printf "%s\n" "$INSTALL" >&6; }
2730
2731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2732 # It thinks the first close brace ends the variable substitution.
2733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2734
2735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2736
2737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2738
2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2740 printf %s "checking whether build environment is sane... " >&6; }
2741 # Reject unsafe characters in $srcdir or the absolute working directory
2742 # name. Accept space and tab only in the latter.
2743 am_lf='
2744 '
2745 case `pwd` in
2746 *[\\\"\#\$\&\'\`$am_lf]*)
2747 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2748 esac
2749 case $srcdir in
2750 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2751 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2752 esac
2753
2754 # Do 'set' in a subshell so we don't clobber the current shell's
2755 # arguments. Must try -L first in case configure is actually a
2756 # symlink; some systems play weird games with the mod time of symlinks
2757 # (eg FreeBSD returns the mod time of the symlink's containing
2758 # directory).
2759 if (
2760 am_has_slept=no
2761 for am_try in 1 2; do
2762 echo "timestamp, slept: $am_has_slept" > conftest.file
2763 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2764 if test "$*" = "X"; then
2765 # -L didn't work.
2766 set X `ls -t "$srcdir/configure" conftest.file`
2767 fi
2768 if test "$*" != "X $srcdir/configure conftest.file" \
2769 && test "$*" != "X conftest.file $srcdir/configure"; then
2770
2771 # If neither matched, then we have a broken ls. This can happen
2772 # if, for instance, CONFIG_SHELL is bash and it inherits a
2773 # broken ls alias from the environment. This has actually
2774 # happened. Such a system could not be considered "sane".
2775 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2776 alias in your environment" "$LINENO" 5
2777 fi
2778 if test "$2" = conftest.file || test $am_try -eq 2; then
2779 break
2780 fi
2781 # Just in case.
2782 sleep 1
2783 am_has_slept=yes
2784 done
2785 test "$2" = conftest.file
2786 )
2787 then
2788 # Ok.
2789 :
2790 else
2791 as_fn_error $? "newly created file is older than distributed files!
2792 Check your system clock" "$LINENO" 5
2793 fi
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 printf "%s\n" "yes" >&6; }
2796 # If we didn't sleep, we still need to ensure time stamps of config.status and
2797 # generated files are strictly newer.
2798 am_sleep_pid=
2799 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2800 ( sleep 1 ) &
2801 am_sleep_pid=$!
2802 fi
2803
2804 rm -f conftest.file
2805
2806 test "$program_prefix" != NONE &&
2807 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2808 # Use a double $ so make ignores it.
2809 test "$program_suffix" != NONE &&
2810 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2811 # Double any \ or $.
2812 # By default was `s,x,x', remove it if useless.
2813 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2814 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2815
2816
2817 # Expand $ac_aux_dir to an absolute path.
2818 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2819
2820
2821 if test x"${MISSING+set}" != xset; then
2822 MISSING="\${SHELL} '$am_aux_dir/missing'"
2823 fi
2824 # Use eval to expand $SHELL
2825 if eval "$MISSING --is-lightweight"; then
2826 am_missing_run="$MISSING "
2827 else
2828 am_missing_run=
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2830 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2831 fi
2832
2833 if test x"${install_sh+set}" != xset; then
2834 case $am_aux_dir in
2835 *\ * | *\ *)
2836 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2837 *)
2838 install_sh="\${SHELL} $am_aux_dir/install-sh"
2839 esac
2840 fi
2841
2842 # Installed binaries are usually stripped using 'strip' when the user
2843 # run "make install-strip". However 'strip' might not be the right
2844 # tool to use in cross-compilation environments, therefore Automake
2845 # will honor the 'STRIP' environment variable to overrule this program.
2846 if test "$cross_compiling" != no; then
2847 if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}strip; ac_word=$2
2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 printf %s "checking for $ac_word... " >&6; }
2852 if test ${ac_cv_prog_STRIP+y}
2853 then :
2854 printf %s "(cached) " >&6
2855 else $as_nop
2856 if test -n "$STRIP"; then
2857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862 IFS=$as_save_IFS
2863 case $as_dir in #(((
2864 '') as_dir=./ ;;
2865 */) ;;
2866 *) as_dir=$as_dir/ ;;
2867 esac
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2870 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 STRIP=$ac_cv_prog_STRIP
2881 if test -n "$STRIP"; then
2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2883 printf "%s\n" "$STRIP" >&6; }
2884 else
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 printf "%s\n" "no" >&6; }
2887 fi
2888
2889
2890 fi
2891 if test -z "$ac_cv_prog_STRIP"; then
2892 ac_ct_STRIP=$STRIP
2893 # Extract the first word of "strip", so it can be a program name with args.
2894 set dummy strip; ac_word=$2
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 printf %s "checking for $ac_word... " >&6; }
2897 if test ${ac_cv_prog_ac_ct_STRIP+y}
2898 then :
2899 printf %s "(cached) " >&6
2900 else $as_nop
2901 if test -n "$ac_ct_STRIP"; then
2902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2906 do
2907 IFS=$as_save_IFS
2908 case $as_dir in #(((
2909 '') as_dir=./ ;;
2910 */) ;;
2911 *) as_dir=$as_dir/ ;;
2912 esac
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2915 ac_cv_prog_ac_ct_STRIP="strip"
2916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919 done
2920 done
2921 IFS=$as_save_IFS
2922
2923 fi
2924 fi
2925 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2926 if test -n "$ac_ct_STRIP"; then
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2928 printf "%s\n" "$ac_ct_STRIP" >&6; }
2929 else
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 printf "%s\n" "no" >&6; }
2932 fi
2933
2934 if test "x$ac_ct_STRIP" = x; then
2935 STRIP=":"
2936 else
2937 case $cross_compiling:$ac_tool_warned in
2938 yes:)
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941 ac_tool_warned=yes ;;
2942 esac
2943 STRIP=$ac_ct_STRIP
2944 fi
2945 else
2946 STRIP="$ac_cv_prog_STRIP"
2947 fi
2948
2949 fi
2950 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2951
2952
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2954 printf %s "checking for a race-free mkdir -p... " >&6; }
2955 if test -z "$MKDIR_P"; then
2956 if test ${ac_cv_path_mkdir+y}
2957 then :
2958 printf %s "(cached) " >&6
2959 else $as_nop
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2962 do
2963 IFS=$as_save_IFS
2964 case $as_dir in #(((
2965 '') as_dir=./ ;;
2966 */) ;;
2967 *) as_dir=$as_dir/ ;;
2968 esac
2969 for ac_prog in mkdir gmkdir; do
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2972 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2973 'mkdir ('*'coreutils) '* | \
2974 'BusyBox '* | \
2975 'mkdir (fileutils) '4.1*)
2976 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2977 break 3;;
2978 esac
2979 done
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi
2985
2986 test -d ./--version && rmdir ./--version
2987 if test ${ac_cv_path_mkdir+y}; then
2988 MKDIR_P="$ac_cv_path_mkdir -p"
2989 else
2990 # As a last resort, use the slow shell script. Don't cache a
2991 # value for MKDIR_P within a source directory, because that will
2992 # break other packages using the cache if that directory is
2993 # removed, or if the value is a relative name.
2994 MKDIR_P="$ac_install_sh -d"
2995 fi
2996 fi
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2998 printf "%s\n" "$MKDIR_P" >&6; }
2999
3000 for ac_prog in gawk mawk nawk awk
3001 do
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy $ac_prog; ac_word=$2
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 printf %s "checking for $ac_word... " >&6; }
3006 if test ${ac_cv_prog_AWK+y}
3007 then :
3008 printf %s "(cached) " >&6
3009 else $as_nop
3010 if test -n "$AWK"; then
3011 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016 IFS=$as_save_IFS
3017 case $as_dir in #(((
3018 '') as_dir=./ ;;
3019 */) ;;
3020 *) as_dir=$as_dir/ ;;
3021 esac
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_AWK="$ac_prog"
3025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 AWK=$ac_cv_prog_AWK
3035 if test -n "$AWK"; then
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3037 printf "%s\n" "$AWK" >&6; }
3038 else
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 printf "%s\n" "no" >&6; }
3041 fi
3042
3043
3044 test -n "$AWK" && break
3045 done
3046
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3048 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3049 set x ${MAKE-make}
3050 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3051 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3052 then :
3053 printf %s "(cached) " >&6
3054 else $as_nop
3055 cat >conftest.make <<\_ACEOF
3056 SHELL = /bin/sh
3057 all:
3058 @echo '@@@%%%=$(MAKE)=@@@%%%'
3059 _ACEOF
3060 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3061 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3062 *@@@%%%=?*=@@@%%%*)
3063 eval ac_cv_prog_make_${ac_make}_set=yes;;
3064 *)
3065 eval ac_cv_prog_make_${ac_make}_set=no;;
3066 esac
3067 rm -f conftest.make
3068 fi
3069 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071 printf "%s\n" "yes" >&6; }
3072 SET_MAKE=
3073 else
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 printf "%s\n" "no" >&6; }
3076 SET_MAKE="MAKE=${MAKE-make}"
3077 fi
3078
3079 rm -rf .tst 2>/dev/null
3080 mkdir .tst 2>/dev/null
3081 if test -d .tst; then
3082 am__leading_dot=.
3083 else
3084 am__leading_dot=_
3085 fi
3086 rmdir .tst 2>/dev/null
3087
3088 # Check whether --enable-silent-rules was given.
3089 if test ${enable_silent_rules+y}
3090 then :
3091 enableval=$enable_silent_rules;
3092 fi
3093
3094 case $enable_silent_rules in # (((
3095 yes) AM_DEFAULT_VERBOSITY=0;;
3096 no) AM_DEFAULT_VERBOSITY=1;;
3097 *) AM_DEFAULT_VERBOSITY=1;;
3098 esac
3099 am_make=${MAKE-make}
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3101 printf %s "checking whether $am_make supports nested variables... " >&6; }
3102 if test ${am_cv_make_support_nested_variables+y}
3103 then :
3104 printf %s "(cached) " >&6
3105 else $as_nop
3106 if printf "%s\n" 'TRUE=$(BAR$(V))
3107 BAR0=false
3108 BAR1=true
3109 V=1
3110 am__doit:
3111 @$(TRUE)
3112 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3113 am_cv_make_support_nested_variables=yes
3114 else
3115 am_cv_make_support_nested_variables=no
3116 fi
3117 fi
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3119 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3120 if test $am_cv_make_support_nested_variables = yes; then
3121 AM_V='$(V)'
3122 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3123 else
3124 AM_V=$AM_DEFAULT_VERBOSITY
3125 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3126 fi
3127 AM_BACKSLASH='\'
3128
3129 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3131 # is not polluted with repeated "-I."
3132 am__isrc=' -I$(srcdir)'
3133 # test to see if srcdir already configured
3134 if test -f $srcdir/config.status; then
3135 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3136 fi
3137 fi
3138
3139 # test whether we have cygpath
3140 if test -z "$CYGPATH_W"; then
3141 if (cygpath --version) >/dev/null 2>/dev/null; then
3142 CYGPATH_W='cygpath -w'
3143 else
3144 CYGPATH_W=echo
3145 fi
3146 fi
3147
3148
3149 # Define the identity of the package.
3150 PACKAGE='osmo-cbc'
3151 VERSION='0.5.1'
3152
3153
3154 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3155
3156
3157 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3158
3159 # Some tools Automake needs.
3160
3161 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3162
3163
3164 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3165
3166
3167 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3168
3169
3170 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3171
3172
3173 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3174
3175 # For better backward compatibility. To be removed once Automake 1.9.x
3176 # dies out for good. For more background, see:
3177 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3178 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3179 mkdir_p='$(MKDIR_P)'
3180
3181 # We need awk for the "check" target (and possibly the TAP driver). The
3182 # system "awk" is bad on some platforms.
3183 # Always define AMTAR for backward compatibility. Yes, it's still used
3184 # in the wild :-( We should find a proper way to deprecate it ...
3185 AMTAR='$${TAR-tar}'
3186
3187
3188 # We'll loop over all known methods to create a tar archive until one works.
3189 _am_tools='gnutar pax cpio none'
3190
3191 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3192
3193
3194
3195
3196
3197 # Variables for tags utilities; see am/tags.am
3198 if test -z "$CTAGS"; then
3199 CTAGS=ctags
3200 fi
3201
3202 if test -z "$ETAGS"; then
3203 ETAGS=etags
3204 fi
3205
3206 if test -z "$CSCOPE"; then
3207 CSCOPE=cscope
3208 fi
3209
3210
3211
3212 # POSIX will say in a future version that running "rm -f" with no argument
3213 # is OK; and we want to be able to make that assumption in our Makefile
3214 # recipes. So use an aggressive probe to check that the usage we want is
3215 # actually supported "in the wild" to an acceptable degree.
3216 # See automake bug#10828.
3217 # To make any issue more visible, cause the running configure to be aborted
3218 # by default if the 'rm' program in use doesn't match our expectations; the
3219 # user can still override this though.
3220 if rm -f && rm -fr && rm -rf; then : OK; else
3221 cat >&2 <<'END'
3222 Oops!
3223
3224 Your 'rm' program seems unable to run without file operands specified
3225 on the command line, even when the '-f' option is present. This is contrary
3226 to the behaviour of most rm programs out there, and not conforming with
3227 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3228
3229 Please tell [email protected] about your system, including the value
3230 of your $PATH and any error possibly output before this message. This
3231 can help us improve future automake versions.
3232
3233 END
3234 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3235 echo 'Configuration will proceed anyway, since you have set the' >&2
3236 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3237 echo >&2
3238 else
3239 cat >&2 <<'END'
3240 Aborting the configuration process, to ensure you take notice of the issue.
3241
3242 You can download and install GNU coreutils to get an 'rm' implementation
3243 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3244
3245 If you want to complete the configuration process using your problematic
3246 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3247 to "yes", and re-run configure.
3248
3249 END
3250 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3251 fi
3252 fi
3253
3254 ac_config_commands="$ac_config_commands tests/atconfig"
3255
3256
3257 CFLAGS="$CFLAGS -std=gnu11"
3258
3259 # Check whether --enable-silent-rules was given.
3260 if test ${enable_silent_rules+y}
3261 then :
3262 enableval=$enable_silent_rules;
3263 fi
3264
3265 case $enable_silent_rules in # (((
3266 yes) AM_DEFAULT_VERBOSITY=0;;
3267 no) AM_DEFAULT_VERBOSITY=1;;
3268 *) AM_DEFAULT_VERBOSITY=0;;
3269 esac
3270 am_make=${MAKE-make}
3271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3272 printf %s "checking whether $am_make supports nested variables... " >&6; }
3273 if test ${am_cv_make_support_nested_variables+y}
3274 then :
3275 printf %s "(cached) " >&6
3276 else $as_nop
3277 if printf "%s\n" 'TRUE=$(BAR$(V))
3278 BAR0=false
3279 BAR1=true
3280 V=1
3281 am__doit:
3282 @$(TRUE)
3283 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3284 am_cv_make_support_nested_variables=yes
3285 else
3286 am_cv_make_support_nested_variables=no
3287 fi
3288 fi
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3290 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3291 if test $am_cv_make_support_nested_variables = yes; then
3292 AM_V='$(V)'
3293 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3294 else
3295 AM_V=$AM_DEFAULT_VERBOSITY
3296 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3297 fi
3298 AM_BACKSLASH='\'
3299
3300
3301 RELMAKE='-include osmo-release.mk'
3302
3303
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3305 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3306 set x ${MAKE-make}
3307 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3308 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3309 then :
3310 printf %s "(cached) " >&6
3311 else $as_nop
3312 cat >conftest.make <<\_ACEOF
3313 SHELL = /bin/sh
3314 all:
3315 @echo '@@@%%%=$(MAKE)=@@@%%%'
3316 _ACEOF
3317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3319 *@@@%%%=?*=@@@%%%*)
3320 eval ac_cv_prog_make_${ac_make}_set=yes;;
3321 *)
3322 eval ac_cv_prog_make_${ac_make}_set=no;;
3323 esac
3324 rm -f conftest.make
3325 fi
3326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 printf "%s\n" "yes" >&6; }
3329 SET_MAKE=
3330 else
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 printf "%s\n" "no" >&6; }
3333 SET_MAKE="MAKE=${MAKE-make}"
3334 fi
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345 ac_ext=c
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 printf %s "checking for $ac_word... " >&6; }
3355 if test ${ac_cv_prog_CC+y}
3356 then :
3357 printf %s "(cached) " >&6
3358 else $as_nop
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 case $as_dir in #(((
3367 '') as_dir=./ ;;
3368 */) ;;
3369 *) as_dir=$as_dir/ ;;
3370 esac
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379 IFS=$as_save_IFS
3380
3381 fi
3382 fi
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 printf "%s\n" "$CC" >&6; }
3387 else
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 printf "%s\n" "no" >&6; }
3390 fi
3391
3392
3393 fi
3394 if test -z "$ac_cv_prog_CC"; then
3395 ac_ct_CC=$CC
3396 # Extract the first word of "gcc", so it can be a program name with args.
3397 set dummy gcc; ac_word=$2
3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 printf %s "checking for $ac_word... " >&6; }
3400 if test ${ac_cv_prog_ac_ct_CC+y}
3401 then :
3402 printf %s "(cached) " >&6
3403 else $as_nop
3404 if test -n "$ac_ct_CC"; then
3405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410 IFS=$as_save_IFS
3411 case $as_dir in #(((
3412 '') as_dir=./ ;;
3413 */) ;;
3414 *) as_dir=$as_dir/ ;;
3415 esac
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3418 ac_cv_prog_ac_ct_CC="gcc"
3419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3420 break 2
3421 fi
3422 done
3423 done
3424 IFS=$as_save_IFS
3425
3426 fi
3427 fi
3428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3429 if test -n "$ac_ct_CC"; then
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3431 printf "%s\n" "$ac_ct_CC" >&6; }
3432 else
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 printf "%s\n" "no" >&6; }
3435 fi
3436
3437 if test "x$ac_ct_CC" = x; then
3438 CC=""
3439 else
3440 case $cross_compiling:$ac_tool_warned in
3441 yes:)
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3443 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3444 ac_tool_warned=yes ;;
3445 esac
3446 CC=$ac_ct_CC
3447 fi
3448 else
3449 CC="$ac_cv_prog_CC"
3450 fi
3451
3452 if test -z "$CC"; then
3453 if test -n "$ac_tool_prefix"; then
3454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3455 set dummy ${ac_tool_prefix}cc; ac_word=$2
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 printf %s "checking for $ac_word... " >&6; }
3458 if test ${ac_cv_prog_CC+y}
3459 then :
3460 printf %s "(cached) " >&6
3461 else $as_nop
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3467 do
3468 IFS=$as_save_IFS
3469 case $as_dir in #(((
3470 '') as_dir=./ ;;
3471 */) ;;
3472 *) as_dir=$as_dir/ ;;
3473 esac
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_CC="${ac_tool_prefix}cc"
3477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480 done
3481 done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 printf "%s\n" "$CC" >&6; }
3490 else
3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 printf "%s\n" "no" >&6; }
3493 fi
3494
3495
3496 fi
3497 fi
3498 if test -z "$CC"; then
3499 # Extract the first word of "cc", so it can be a program name with args.
3500 set dummy cc; ac_word=$2
3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 printf %s "checking for $ac_word... " >&6; }
3503 if test ${ac_cv_prog_CC+y}
3504 then :
3505 printf %s "(cached) " >&6
3506 else $as_nop
3507 if test -n "$CC"; then
3508 ac_cv_prog_CC="$CC" # Let the user override the test.
3509 else
3510 ac_prog_rejected=no
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514 IFS=$as_save_IFS
3515 case $as_dir in #(((
3516 '') as_dir=./ ;;
3517 */) ;;
3518 *) as_dir=$as_dir/ ;;
3519 esac
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3522 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3523 ac_prog_rejected=yes
3524 continue
3525 fi
3526 ac_cv_prog_CC="cc"
3527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3528 break 2
3529 fi
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 if test $ac_prog_rejected = yes; then
3535 # We found a bogon in the path, so make sure we never use it.
3536 set dummy $ac_cv_prog_CC
3537 shift
3538 if test $# != 0; then
3539 # We chose a different compiler from the bogus one.
3540 # However, it has the same basename, so the bogon will be chosen
3541 # first if we set CC to just the basename; use the full file name.
3542 shift
3543 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3544 fi
3545 fi
3546 fi
3547 fi
3548 CC=$ac_cv_prog_CC
3549 if test -n "$CC"; then
3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3551 printf "%s\n" "$CC" >&6; }
3552 else
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554 printf "%s\n" "no" >&6; }
3555 fi
3556
3557
3558 fi
3559 if test -z "$CC"; then
3560 if test -n "$ac_tool_prefix"; then
3561 for ac_prog in cl.exe
3562 do
3563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 printf %s "checking for $ac_word... " >&6; }
3567 if test ${ac_cv_prog_CC+y}
3568 then :
3569 printf %s "(cached) " >&6
3570 else $as_nop
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577 IFS=$as_save_IFS
3578 case $as_dir in #(((
3579 '') as_dir=./ ;;
3580 */) ;;
3581 *) as_dir=$as_dir/ ;;
3582 esac
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3587 break 2
3588 fi
3589 done
3590 done
3591 IFS=$as_save_IFS
3592
3593 fi
3594 fi
3595 CC=$ac_cv_prog_CC
3596 if test -n "$CC"; then
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598 printf "%s\n" "$CC" >&6; }
3599 else
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 printf "%s\n" "no" >&6; }
3602 fi
3603
3604
3605 test -n "$CC" && break
3606 done
3607 fi
3608 if test -z "$CC"; then
3609 ac_ct_CC=$CC
3610 for ac_prog in cl.exe
3611 do
3612 # Extract the first word of "$ac_prog", so it can be a program name with args.
3613 set dummy $ac_prog; ac_word=$2
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 printf %s "checking for $ac_word... " >&6; }
3616 if test ${ac_cv_prog_ac_ct_CC+y}
3617 then :
3618 printf %s "(cached) " >&6
3619 else $as_nop
3620 if test -n "$ac_ct_CC"; then
3621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3625 do
3626 IFS=$as_save_IFS
3627 case $as_dir in #(((
3628 '') as_dir=./ ;;
3629 */) ;;
3630 *) as_dir=$as_dir/ ;;
3631 esac
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_ac_ct_CC="$ac_prog"
3635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3636 break 2
3637 fi
3638 done
3639 done
3640 IFS=$as_save_IFS
3641
3642 fi
3643 fi
3644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3645 if test -n "$ac_ct_CC"; then
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3647 printf "%s\n" "$ac_ct_CC" >&6; }
3648 else
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 printf "%s\n" "no" >&6; }
3651 fi
3652
3653
3654 test -n "$ac_ct_CC" && break
3655 done
3656
3657 if test "x$ac_ct_CC" = x; then
3658 CC=""
3659 else
3660 case $cross_compiling:$ac_tool_warned in
3661 yes:)
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664 ac_tool_warned=yes ;;
3665 esac
3666 CC=$ac_ct_CC
3667 fi
3668 fi
3669
3670 fi
3671 if test -z "$CC"; then
3672 if test -n "$ac_tool_prefix"; then
3673 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3674 set dummy ${ac_tool_prefix}clang; ac_word=$2
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 printf %s "checking for $ac_word... " >&6; }
3677 if test ${ac_cv_prog_CC+y}
3678 then :
3679 printf %s "(cached) " >&6
3680 else $as_nop
3681 if test -n "$CC"; then
3682 ac_cv_prog_CC="$CC" # Let the user override the test.
3683 else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3686 do
3687 IFS=$as_save_IFS
3688 case $as_dir in #(((
3689 '') as_dir=./ ;;
3690 */) ;;
3691 *) as_dir=$as_dir/ ;;
3692 esac
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_CC="${ac_tool_prefix}clang"
3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699 done
3700 done
3701 IFS=$as_save_IFS
3702
3703 fi
3704 fi
3705 CC=$ac_cv_prog_CC
3706 if test -n "$CC"; then
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708 printf "%s\n" "$CC" >&6; }
3709 else
3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 printf "%s\n" "no" >&6; }
3712 fi
3713
3714
3715 fi
3716 if test -z "$ac_cv_prog_CC"; then
3717 ac_ct_CC=$CC
3718 # Extract the first word of "clang", so it can be a program name with args.
3719 set dummy clang; ac_word=$2
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 printf %s "checking for $ac_word... " >&6; }
3722 if test ${ac_cv_prog_ac_ct_CC+y}
3723 then :
3724 printf %s "(cached) " >&6
3725 else $as_nop
3726 if test -n "$ac_ct_CC"; then
3727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732 IFS=$as_save_IFS
3733 case $as_dir in #(((
3734 '') as_dir=./ ;;
3735 */) ;;
3736 *) as_dir=$as_dir/ ;;
3737 esac
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_ac_ct_CC="clang"
3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3742 break 2
3743 fi
3744 done
3745 done
3746 IFS=$as_save_IFS
3747
3748 fi
3749 fi
3750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3751 if test -n "$ac_ct_CC"; then
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3753 printf "%s\n" "$ac_ct_CC" >&6; }
3754 else
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 printf "%s\n" "no" >&6; }
3757 fi
3758
3759 if test "x$ac_ct_CC" = x; then
3760 CC=""
3761 else
3762 case $cross_compiling:$ac_tool_warned in
3763 yes:)
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766 ac_tool_warned=yes ;;
3767 esac
3768 CC=$ac_ct_CC
3769 fi
3770 else
3771 CC="$ac_cv_prog_CC"
3772 fi
3773
3774 fi
3775
3776
3777 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "no acceptable C compiler found in \$PATH
3780 See \`config.log' for more details" "$LINENO" 5; }
3781
3782 # Provide some information about the compiler.
3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3784 set X $ac_compile
3785 ac_compiler=$2
3786 for ac_option in --version -v -V -qversion -version; do
3787 { { ac_try="$ac_compiler $ac_option >&5"
3788 case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791 esac
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 printf "%s\n" "$ac_try_echo"; } >&5
3794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3795 ac_status=$?
3796 if test -s conftest.err; then
3797 sed '10a\
3798 ... rest of stderr output deleted ...
3799 10q' conftest.err >conftest.er1
3800 cat conftest.er1 >&5
3801 fi
3802 rm -f conftest.er1 conftest.err
3803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }
3805 done
3806
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809
3810 int
3811 main (void)
3812 {
3813
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 ac_clean_files_save=$ac_clean_files
3819 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3820 # Try to create an executable without -o first, disregard a.out.
3821 # It will help us diagnose broken compilers, and finding out an intuition
3822 # of exeext.
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3824 printf %s "checking whether the C compiler works... " >&6; }
3825 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3826
3827 # The possible output files:
3828 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3829
3830 ac_rmfiles=
3831 for ac_file in $ac_files
3832 do
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3836 esac
3837 done
3838 rm -f $ac_rmfiles
3839
3840 if { { ac_try="$ac_link_default"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 printf "%s\n" "$ac_try_echo"; } >&5
3847 (eval "$ac_link_default") 2>&5
3848 ac_status=$?
3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }
3851 then :
3852 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3853 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3854 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3855 # so that the user can short-circuit this test for compilers unknown to
3856 # Autoconf.
3857 for ac_file in $ac_files ''
3858 do
3859 test -f "$ac_file" || continue
3860 case $ac_file in
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3862 ;;
3863 [ab].out )
3864 # We found the default executable, but exeext='' is most
3865 # certainly right.
3866 break;;
3867 *.* )
3868 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3869 then :; else
3870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3871 fi
3872 # We set ac_cv_exeext here because the later test for it is not
3873 # safe: cross compilers may not add the suffix if given an `-o'
3874 # argument, so we may need to know it at that point already.
3875 # Even if this section looks crufty: it has the advantage of
3876 # actually working.
3877 break;;
3878 * )
3879 break;;
3880 esac
3881 done
3882 test "$ac_cv_exeext" = no && ac_cv_exeext=
3883
3884 else $as_nop
3885 ac_file=''
3886 fi
3887 if test -z "$ac_file"
3888 then :
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 printf "%s\n" "no" >&6; }
3891 printf "%s\n" "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error 77 "C compiler cannot create executables
3897 See \`config.log' for more details" "$LINENO" 5; }
3898 else $as_nop
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900 printf "%s\n" "yes" >&6; }
3901 fi
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3903 printf %s "checking for C compiler default output file name... " >&6; }
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3905 printf "%s\n" "$ac_file" >&6; }
3906 ac_exeext=$ac_cv_exeext
3907
3908 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3909 ac_clean_files=$ac_clean_files_save
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3911 printf %s "checking for suffix of executables... " >&6; }
3912 if { { ac_try="$ac_link"
3913 case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 printf "%s\n" "$ac_try_echo"; } >&5
3919 (eval "$ac_link") 2>&5
3920 ac_status=$?
3921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }
3923 then :
3924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe'), while it won't with
3927 # `rm'.
3928 for ac_file in conftest.exe conftest conftest.*; do
3929 test -f "$ac_file" || continue
3930 case $ac_file in
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933 break;;
3934 * ) break;;
3935 esac
3936 done
3937 else $as_nop
3938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details" "$LINENO" 5; }
3942 fi
3943 rm -f conftest conftest$ac_cv_exeext
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 printf "%s\n" "$ac_cv_exeext" >&6; }
3946
3947 rm -f conftest.$ac_ext
3948 EXEEXT=$ac_cv_exeext
3949 ac_exeext=$EXEEXT
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952 #include <stdio.h>
3953 int
3954 main (void)
3955 {
3956 FILE *f = fopen ("conftest.out", "w");
3957 return ferror (f) || fclose (f) != 0;
3958
3959 ;
3960 return 0;
3961 }
3962 _ACEOF
3963 ac_clean_files="$ac_clean_files conftest.out"
3964 # Check that the compiler produces executables we can run. If not, either
3965 # the compiler is broken, or we cross compile.
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3967 printf %s "checking whether we are cross compiling... " >&6; }
3968 if test "$cross_compiling" != yes; then
3969 { { ac_try="$ac_link"
3970 case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 printf "%s\n" "$ac_try_echo"; } >&5
3976 (eval "$ac_link") 2>&5
3977 ac_status=$?
3978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }
3980 if { ac_try='./conftest$ac_cv_exeext'
3981 { { case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 printf "%s\n" "$ac_try_echo"; } >&5
3987 (eval "$ac_try") 2>&5
3988 ac_status=$?
3989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990 test $ac_status = 0; }; }; then
3991 cross_compiling=no
3992 else
3993 if test "$cross_compiling" = maybe; then
3994 cross_compiling=yes
3995 else
3996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3997 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3998 as_fn_error 77 "cannot run C compiled programs.
3999 If you meant to cross compile, use \`--host'.
4000 See \`config.log' for more details" "$LINENO" 5; }
4001 fi
4002 fi
4003 fi
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4005 printf "%s\n" "$cross_compiling" >&6; }
4006
4007 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4008 ac_clean_files=$ac_clean_files_save
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4010 printf %s "checking for suffix of object files... " >&6; }
4011 if test ${ac_cv_objext+y}
4012 then :
4013 printf %s "(cached) " >&6
4014 else $as_nop
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017
4018 int
4019 main (void)
4020 {
4021
4022 ;
4023 return 0;
4024 }
4025 _ACEOF
4026 rm -f conftest.o conftest.obj
4027 if { { ac_try="$ac_compile"
4028 case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031 esac
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 printf "%s\n" "$ac_try_echo"; } >&5
4034 (eval "$ac_compile") 2>&5
4035 ac_status=$?
4036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }
4038 then :
4039 for ac_file in conftest.o conftest.obj conftest.*; do
4040 test -f "$ac_file" || continue;
4041 case $ac_file in
4042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4043 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4044 break;;
4045 esac
4046 done
4047 else $as_nop
4048 printf "%s\n" "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4053 as_fn_error $? "cannot compute suffix of object files: cannot compile
4054 See \`config.log' for more details" "$LINENO" 5; }
4055 fi
4056 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4057 fi
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4059 printf "%s\n" "$ac_cv_objext" >&6; }
4060 OBJEXT=$ac_cv_objext
4061 ac_objext=$OBJEXT
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4063 printf %s "checking whether the compiler supports GNU C... " >&6; }
4064 if test ${ac_cv_c_compiler_gnu+y}
4065 then :
4066 printf %s "(cached) " >&6
4067 else $as_nop
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4070
4071 int
4072 main (void)
4073 {
4074 #ifndef __GNUC__
4075 choke me
4076 #endif
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"
4083 then :
4084 ac_compiler_gnu=yes
4085 else $as_nop
4086 ac_compiler_gnu=no
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4090
4091 fi
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4093 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095
4096 if test $ac_compiler_gnu = yes; then
4097 GCC=yes
4098 else
4099 GCC=
4100 fi
4101 ac_test_CFLAGS=${CFLAGS+y}
4102 ac_save_CFLAGS=$CFLAGS
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4104 printf %s "checking whether $CC accepts -g... " >&6; }
4105 if test ${ac_cv_prog_cc_g+y}
4106 then :
4107 printf %s "(cached) " >&6
4108 else $as_nop
4109 ac_save_c_werror_flag=$ac_c_werror_flag
4110 ac_c_werror_flag=yes
4111 ac_cv_prog_cc_g=no
4112 CFLAGS="-g"
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115
4116 int
4117 main (void)
4118 {
4119
4120 ;
4121 return 0;
4122 }
4123 _ACEOF
4124 if ac_fn_c_try_compile "$LINENO"
4125 then :
4126 ac_cv_prog_cc_g=yes
4127 else $as_nop
4128 CFLAGS=""
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4131
4132 int
4133 main (void)
4134 {
4135
4136 ;
4137 return 0;
4138 }
4139 _ACEOF
4140 if ac_fn_c_try_compile "$LINENO"
4141 then :
4142
4143 else $as_nop
4144 ac_c_werror_flag=$ac_save_c_werror_flag
4145 CFLAGS="-g"
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148
4149 int
4150 main (void)
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"
4158 then :
4159 ac_cv_prog_cc_g=yes
4160 fi
4161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4162 fi
4163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4164 fi
4165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4167 fi
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4169 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4170 if test $ac_test_CFLAGS; then
4171 CFLAGS=$ac_save_CFLAGS
4172 elif test $ac_cv_prog_cc_g = yes; then
4173 if test "$GCC" = yes; then
4174 CFLAGS="-g -O2"
4175 else
4176 CFLAGS="-g"
4177 fi
4178 else
4179 if test "$GCC" = yes; then
4180 CFLAGS="-O2"
4181 else
4182 CFLAGS=
4183 fi
4184 fi
4185 ac_prog_cc_stdc=no
4186 if test x$ac_prog_cc_stdc = xno
4187 then :
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4189 printf %s "checking for $CC option to enable C11 features... " >&6; }
4190 if test ${ac_cv_prog_cc_c11+y}
4191 then :
4192 printf %s "(cached) " >&6
4193 else $as_nop
4194 ac_cv_prog_cc_c11=no
4195 ac_save_CC=$CC
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 $ac_c_conftest_c11_program
4199 _ACEOF
4200 for ac_arg in '' -std=gnu11
4201 do
4202 CC="$ac_save_CC $ac_arg"
4203 if ac_fn_c_try_compile "$LINENO"
4204 then :
4205 ac_cv_prog_cc_c11=$ac_arg
4206 fi
4207 rm -f core conftest.err conftest.$ac_objext conftest.beam
4208 test "x$ac_cv_prog_cc_c11" != "xno" && break
4209 done
4210 rm -f conftest.$ac_ext
4211 CC=$ac_save_CC
4212 fi
4213
4214 if test "x$ac_cv_prog_cc_c11" = xno
4215 then :
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4217 printf "%s\n" "unsupported" >&6; }
4218 else $as_nop
4219 if test "x$ac_cv_prog_cc_c11" = x
4220 then :
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4222 printf "%s\n" "none needed" >&6; }
4223 else $as_nop
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4225 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4226 CC="$CC $ac_cv_prog_cc_c11"
4227 fi
4228 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4229 ac_prog_cc_stdc=c11
4230 fi
4231 fi
4232 if test x$ac_prog_cc_stdc = xno
4233 then :
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4235 printf %s "checking for $CC option to enable C99 features... " >&6; }
4236 if test ${ac_cv_prog_cc_c99+y}
4237 then :
4238 printf %s "(cached) " >&6
4239 else $as_nop
4240 ac_cv_prog_cc_c99=no
4241 ac_save_CC=$CC
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244 $ac_c_conftest_c99_program
4245 _ACEOF
4246 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4247 do
4248 CC="$ac_save_CC $ac_arg"
4249 if ac_fn_c_try_compile "$LINENO"
4250 then :
4251 ac_cv_prog_cc_c99=$ac_arg
4252 fi
4253 rm -f core conftest.err conftest.$ac_objext conftest.beam
4254 test "x$ac_cv_prog_cc_c99" != "xno" && break
4255 done
4256 rm -f conftest.$ac_ext
4257 CC=$ac_save_CC
4258 fi
4259
4260 if test "x$ac_cv_prog_cc_c99" = xno
4261 then :
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4263 printf "%s\n" "unsupported" >&6; }
4264 else $as_nop
4265 if test "x$ac_cv_prog_cc_c99" = x
4266 then :
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4268 printf "%s\n" "none needed" >&6; }
4269 else $as_nop
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4271 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4272 CC="$CC $ac_cv_prog_cc_c99"
4273 fi
4274 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4275 ac_prog_cc_stdc=c99
4276 fi
4277 fi
4278 if test x$ac_prog_cc_stdc = xno
4279 then :
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4281 printf %s "checking for $CC option to enable C89 features... " >&6; }
4282 if test ${ac_cv_prog_cc_c89+y}
4283 then :
4284 printf %s "(cached) " >&6
4285 else $as_nop
4286 ac_cv_prog_cc_c89=no
4287 ac_save_CC=$CC
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 $ac_c_conftest_c89_program
4291 _ACEOF
4292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4293 do
4294 CC="$ac_save_CC $ac_arg"
4295 if ac_fn_c_try_compile "$LINENO"
4296 then :
4297 ac_cv_prog_cc_c89=$ac_arg
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext conftest.beam
4300 test "x$ac_cv_prog_cc_c89" != "xno" && break
4301 done
4302 rm -f conftest.$ac_ext
4303 CC=$ac_save_CC
4304 fi
4305
4306 if test "x$ac_cv_prog_cc_c89" = xno
4307 then :
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4309 printf "%s\n" "unsupported" >&6; }
4310 else $as_nop
4311 if test "x$ac_cv_prog_cc_c89" = x
4312 then :
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4314 printf "%s\n" "none needed" >&6; }
4315 else $as_nop
4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4317 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4318 CC="$CC $ac_cv_prog_cc_c89"
4319 fi
4320 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4321 ac_prog_cc_stdc=c89
4322 fi
4323 fi
4324
4325 ac_ext=c
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330
4331
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4338 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4339 if test ${am_cv_prog_cc_c_o+y}
4340 then :
4341 printf %s "(cached) " >&6
4342 else $as_nop
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345
4346 int
4347 main (void)
4348 {
4349
4350 ;
4351 return 0;
4352 }
4353 _ACEOF
4354 # Make sure it works both with $CC and with simple cc.
4355 # Following AC_PROG_CC_C_O, we do the test twice because some
4356 # compilers refuse to overwrite an existing .o file with -o,
4357 # though they will create one.
4358 am_cv_prog_cc_c_o=yes
4359 for am_i in 1 2; do
4360 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4361 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } \
4365 && test -f conftest2.$ac_objext; then
4366 : OK
4367 else
4368 am_cv_prog_cc_c_o=no
4369 break
4370 fi
4371 done
4372 rm -f core conftest*
4373 unset am_i
4374 fi
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4376 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4377 if test "$am_cv_prog_cc_c_o" != yes; then
4378 # Losing compiler, so override with the script.
4379 # FIXME: It is wrong to rewrite CC.
4380 # But if we don't then we get into trouble of one sort or another.
4381 # A longer-term fix would be to have automake use am__CC in this case,
4382 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4383 CC="$am_aux_dir/compile $CC"
4384 fi
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390
4391 DEPDIR="${am__leading_dot}deps"
4392
4393 ac_config_commands="$ac_config_commands depfiles"
4394
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4396 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4397 cat > confinc.mk << 'END'
4398 am__doit:
4399 @echo this is the am__doit target >confinc.out
4400 .PHONY: am__doit
4401 END
4402 am__include="#"
4403 am__quote=
4404 # BSD make does it like this.
4405 echo '.include "confinc.mk" # ignored' > confmf.BSD
4406 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4407 echo 'include confinc.mk # ignored' > confmf.GNU
4408 _am_result=no
4409 for s in GNU BSD; do
4410 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4411 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4412 ac_status=$?
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }
4415 case $?:`cat confinc.out 2>/dev/null` in #(
4416 '0:this is the am__doit target') :
4417 case $s in #(
4418 BSD) :
4419 am__include='.include' am__quote='"' ;; #(
4420 *) :
4421 am__include='include' am__quote='' ;;
4422 esac ;; #(
4423 *) :
4424 ;;
4425 esac
4426 if test "$am__include" != "#"; then
4427 _am_result="yes ($s style)"
4428 break
4429 fi
4430 done
4431 rm -f confinc.* confmf.*
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4433 printf "%s\n" "${_am_result}" >&6; }
4434
4435 # Check whether --enable-dependency-tracking was given.
4436 if test ${enable_dependency_tracking+y}
4437 then :
4438 enableval=$enable_dependency_tracking;
4439 fi
4440
4441 if test "x$enable_dependency_tracking" != xno; then
4442 am_depcomp="$ac_aux_dir/depcomp"
4443 AMDEPBACKSLASH='\'
4444 am__nodep='_no'
4445 fi
4446 if test "x$enable_dependency_tracking" != xno; then
4447 AMDEP_TRUE=
4448 AMDEP_FALSE='#'
4449 else
4450 AMDEP_TRUE='#'
4451 AMDEP_FALSE=
4452 fi
4453
4454
4455
4456 depcc="$CC" am_compiler_list=
4457
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4459 printf %s "checking dependency style of $depcc... " >&6; }
4460 if test ${am_cv_CC_dependencies_compiler_type+y}
4461 then :
4462 printf %s "(cached) " >&6
4463 else $as_nop
4464 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4465 # We make a subdir and do the tests there. Otherwise we can end up
4466 # making bogus files that we don't know about and never remove. For
4467 # instance it was reported that on HP-UX the gcc test will end up
4468 # making a dummy file named 'D' -- because '-MD' means "put the output
4469 # in D".
4470 rm -rf conftest.dir
4471 mkdir conftest.dir
4472 # Copy depcomp to subdir because otherwise we won't find it if we're
4473 # using a relative directory.
4474 cp "$am_depcomp" conftest.dir
4475 cd conftest.dir
4476 # We will build objects and dependencies in a subdirectory because
4477 # it helps to detect inapplicable dependency modes. For instance
4478 # both Tru64's cc and ICC support -MD to output dependencies as a
4479 # side effect of compilation, but ICC will put the dependencies in
4480 # the current directory while Tru64 will put them in the object
4481 # directory.
4482 mkdir sub
4483
4484 am_cv_CC_dependencies_compiler_type=none
4485 if test "$am_compiler_list" = ""; then
4486 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4487 fi
4488 am__universal=false
4489 case " $depcc " in #(
4490 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4491 esac
4492
4493 for depmode in $am_compiler_list; do
4494 # Setup a source with many dependencies, because some compilers
4495 # like to wrap large dependency lists on column 80 (with \), and
4496 # we should not choose a depcomp mode which is confused by this.
4497 #
4498 # We need to recreate these files for each test, as the compiler may
4499 # overwrite some of them when testing with obscure command lines.
4500 # This happens at least with the AIX C compiler.
4501 : > sub/conftest.c
4502 for i in 1 2 3 4 5 6; do
4503 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4504 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4505 # Solaris 10 /bin/sh.
4506 echo '/* dummy */' > sub/conftst$i.h
4507 done
4508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509
4510 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4511 # mode. It turns out that the SunPro C++ compiler does not properly
4512 # handle '-M -o', and we need to detect this. Also, some Intel
4513 # versions had trouble with output in subdirs.
4514 am__obj=sub/conftest.${OBJEXT-o}
4515 am__minus_obj="-o $am__obj"
4516 case $depmode in
4517 gcc)
4518 # This depmode causes a compiler race in universal mode.
4519 test "$am__universal" = false || continue
4520 ;;
4521 nosideeffect)
4522 # After this tag, mechanisms are not by side-effect, so they'll
4523 # only be used when explicitly requested.
4524 if test "x$enable_dependency_tracking" = xyes; then
4525 continue
4526 else
4527 break
4528 fi
4529 ;;
4530 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4531 # This compiler won't grok '-c -o', but also, the minuso test has
4532 # not run yet. These depmodes are late enough in the game, and
4533 # so weak that their functioning should not be impacted.
4534 am__obj=conftest.${OBJEXT-o}
4535 am__minus_obj=
4536 ;;
4537 none) break ;;
4538 esac
4539 if depmode=$depmode \
4540 source=sub/conftest.c object=$am__obj \
4541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4542 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4543 >/dev/null 2>conftest.err &&
4544 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4548 # icc doesn't choke on unknown options, it will just issue warnings
4549 # or remarks (even with -Werror). So we grep stderr for any message
4550 # that says an option was ignored or not supported.
4551 # When given -MP, icc 7.0 and 7.1 complain thusly:
4552 # icc: Command line warning: ignoring option '-M'; no argument required
4553 # The diagnosis changed in icc 8.0:
4554 # icc: Command line remark: option '-MP' not supported
4555 if (grep 'ignoring option' conftest.err ||
4556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4557 am_cv_CC_dependencies_compiler_type=$depmode
4558 break
4559 fi
4560 fi
4561 done
4562
4563 cd ..
4564 rm -rf conftest.dir
4565 else
4566 am_cv_CC_dependencies_compiler_type=none
4567 fi
4568
4569 fi
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4571 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4572 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4573
4574 if
4575 test "x$enable_dependency_tracking" != xno \
4576 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4577 am__fastdepCC_TRUE=
4578 am__fastdepCC_FALSE='#'
4579 else
4580 am__fastdepCC_TRUE='#'
4581 am__fastdepCC_FALSE=
4582 fi
4583
4584
4585
4586 case `pwd` in
4587 *\ * | *\ *)
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4589 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4590 esac
4591
4592
4593
4594 macro_version='2.4.7'
4595 macro_revision='2.4.7'
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610 ltmain=$ac_aux_dir/ltmain.sh
4611
4612
4613
4614 # Make sure we can run config.sub.
4615 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4616 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4617
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4619 printf %s "checking build system type... " >&6; }
4620 if test ${ac_cv_build+y}
4621 then :
4622 printf %s "(cached) " >&6
4623 else $as_nop
4624 ac_build_alias=$build_alias
4625 test "x$ac_build_alias" = x &&
4626 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4627 test "x$ac_build_alias" = x &&
4628 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4629 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4630 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4631
4632 fi
4633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4634 printf "%s\n" "$ac_cv_build" >&6; }
4635 case $ac_cv_build in
4636 *-*-*) ;;
4637 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4638 esac
4639 build=$ac_cv_build
4640 ac_save_IFS=$IFS; IFS='-'
4641 set x $ac_cv_build
4642 shift
4643 build_cpu=$1
4644 build_vendor=$2
4645 shift; shift
4646 # Remember, the first character of IFS is used to create $*,
4647 # except with old shells:
4648 build_os=$*
4649 IFS=$ac_save_IFS
4650 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4651
4652
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4654 printf %s "checking host system type... " >&6; }
4655 if test ${ac_cv_host+y}
4656 then :
4657 printf %s "(cached) " >&6
4658 else $as_nop
4659 if test "x$host_alias" = x; then
4660 ac_cv_host=$ac_cv_build
4661 else
4662 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4663 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4664 fi
4665
4666 fi
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4668 printf "%s\n" "$ac_cv_host" >&6; }
4669 case $ac_cv_host in
4670 *-*-*) ;;
4671 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4672 esac
4673 host=$ac_cv_host
4674 ac_save_IFS=$IFS; IFS='-'
4675 set x $ac_cv_host
4676 shift
4677 host_cpu=$1
4678 host_vendor=$2
4679 shift; shift
4680 # Remember, the first character of IFS is used to create $*,
4681 # except with old shells:
4682 host_os=$*
4683 IFS=$ac_save_IFS
4684 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4685
4686
4687 # Backslashify metacharacters that are still active within
4688 # double-quoted strings.
4689 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4690
4691 # Same as above, but do not quote variable references.
4692 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4693
4694 # Sed substitution to delay expansion of an escaped shell variable in a
4695 # double_quote_subst'ed string.
4696 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4697
4698 # Sed substitution to delay expansion of an escaped single quote.
4699 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4700
4701 # Sed substitution to avoid accidental globbing in evaled expressions
4702 no_glob_subst='s/\*/\\\*/g'
4703
4704 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4706 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4707
4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4709 printf %s "checking how to print strings... " >&6; }
4710 # Test print first, because it will be a builtin if present.
4711 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4712 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4713 ECHO='print -r --'
4714 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4715 ECHO='printf %s\n'
4716 else
4717 # Use this function as a fallback that always works.
4718 func_fallback_echo ()
4719 {
4720 eval 'cat <<_LTECHO_EOF
4721 $1
4722 _LTECHO_EOF'
4723 }
4724 ECHO='func_fallback_echo'
4725 fi
4726
4727 # func_echo_all arg...
4728 # Invoke $ECHO with all args, space-separated.
4729 func_echo_all ()
4730 {
4731 $ECHO ""
4732 }
4733
4734 case $ECHO in
4735 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4736 printf "%s\n" "printf" >&6; } ;;
4737 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4738 printf "%s\n" "print -r" >&6; } ;;
4739 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4740 printf "%s\n" "cat" >&6; } ;;
4741 esac
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4757 printf %s "checking for a sed that does not truncate output... " >&6; }
4758 if test ${ac_cv_path_SED+y}
4759 then :
4760 printf %s "(cached) " >&6
4761 else $as_nop
4762 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4763 for ac_i in 1 2 3 4 5 6 7; do
4764 ac_script="$ac_script$as_nl$ac_script"
4765 done
4766 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4767 { ac_script=; unset ac_script;}
4768 if test -z "$SED"; then
4769 ac_path_SED_found=false
4770 # Loop through the user's path and test for each of PROGNAME-LIST
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774 IFS=$as_save_IFS
4775 case $as_dir in #(((
4776 '') as_dir=./ ;;
4777 */) ;;
4778 *) as_dir=$as_dir/ ;;
4779 esac
4780 for ac_prog in sed gsed
4781 do
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4784 as_fn_executable_p "$ac_path_SED" || continue
4785 # Check for GNU ac_path_SED and select it if it is found.
4786 # Check for GNU $ac_path_SED
4787 case `"$ac_path_SED" --version 2>&1` in
4788 *GNU*)
4789 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4790 *)
4791 ac_count=0
4792 printf %s 0123456789 >"conftest.in"
4793 while :
4794 do
4795 cat "conftest.in" "conftest.in" >"conftest.tmp"
4796 mv "conftest.tmp" "conftest.in"
4797 cp "conftest.in" "conftest.nl"
4798 printf "%s\n" '' >> "conftest.nl"
4799 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4801 as_fn_arith $ac_count + 1 && ac_count=$as_val
4802 if test $ac_count -gt ${ac_path_SED_max-0}; then
4803 # Best one so far, save it but keep looking for a better one
4804 ac_cv_path_SED="$ac_path_SED"
4805 ac_path_SED_max=$ac_count
4806 fi
4807 # 10*(2^10) chars as input seems more than enough
4808 test $ac_count -gt 10 && break
4809 done
4810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4811 esac
4812
4813 $ac_path_SED_found && break 3
4814 done
4815 done
4816 done
4817 IFS=$as_save_IFS
4818 if test -z "$ac_cv_path_SED"; then
4819 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4820 fi
4821 else
4822 ac_cv_path_SED=$SED
4823 fi
4824
4825 fi
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4827 printf "%s\n" "$ac_cv_path_SED" >&6; }
4828 SED="$ac_cv_path_SED"
4829 rm -f conftest.sed
4830
4831 test -z "$SED" && SED=sed
4832 Xsed="$SED -e 1s/^X//"
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4845 printf %s "checking for grep that handles long lines and -e... " >&6; }
4846 if test ${ac_cv_path_GREP+y}
4847 then :
4848 printf %s "(cached) " >&6
4849 else $as_nop
4850 if test -z "$GREP"; then
4851 ac_path_GREP_found=false
4852 # Loop through the user's path and test for each of PROGNAME-LIST
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4855 do
4856 IFS=$as_save_IFS
4857 case $as_dir in #(((
4858 '') as_dir=./ ;;
4859 */) ;;
4860 *) as_dir=$as_dir/ ;;
4861 esac
4862 for ac_prog in grep ggrep
4863 do
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4866 as_fn_executable_p "$ac_path_GREP" || continue
4867 # Check for GNU ac_path_GREP and select it if it is found.
4868 # Check for GNU $ac_path_GREP
4869 case `"$ac_path_GREP" --version 2>&1` in
4870 *GNU*)
4871 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4872 *)
4873 ac_count=0
4874 printf %s 0123456789 >"conftest.in"
4875 while :
4876 do
4877 cat "conftest.in" "conftest.in" >"conftest.tmp"
4878 mv "conftest.tmp" "conftest.in"
4879 cp "conftest.in" "conftest.nl"
4880 printf "%s\n" 'GREP' >> "conftest.nl"
4881 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4883 as_fn_arith $ac_count + 1 && ac_count=$as_val
4884 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4885 # Best one so far, save it but keep looking for a better one
4886 ac_cv_path_GREP="$ac_path_GREP"
4887 ac_path_GREP_max=$ac_count
4888 fi
4889 # 10*(2^10) chars as input seems more than enough
4890 test $ac_count -gt 10 && break
4891 done
4892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4893 esac
4894
4895 $ac_path_GREP_found && break 3
4896 done
4897 done
4898 done
4899 IFS=$as_save_IFS
4900 if test -z "$ac_cv_path_GREP"; then
4901 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4902 fi
4903 else
4904 ac_cv_path_GREP=$GREP
4905 fi
4906
4907 fi
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4909 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4910 GREP="$ac_cv_path_GREP"
4911
4912
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4914 printf %s "checking for egrep... " >&6; }
4915 if test ${ac_cv_path_EGREP+y}
4916 then :
4917 printf %s "(cached) " >&6
4918 else $as_nop
4919 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4920 then ac_cv_path_EGREP="$GREP -E"
4921 else
4922 if test -z "$EGREP"; then
4923 ac_path_EGREP_found=false
4924 # Loop through the user's path and test for each of PROGNAME-LIST
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4927 do
4928 IFS=$as_save_IFS
4929 case $as_dir in #(((
4930 '') as_dir=./ ;;
4931 */) ;;
4932 *) as_dir=$as_dir/ ;;
4933 esac
4934 for ac_prog in egrep
4935 do
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4938 as_fn_executable_p "$ac_path_EGREP" || continue
4939 # Check for GNU ac_path_EGREP and select it if it is found.
4940 # Check for GNU $ac_path_EGREP
4941 case `"$ac_path_EGREP" --version 2>&1` in
4942 *GNU*)
4943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4944 *)
4945 ac_count=0
4946 printf %s 0123456789 >"conftest.in"
4947 while :
4948 do
4949 cat "conftest.in" "conftest.in" >"conftest.tmp"
4950 mv "conftest.tmp" "conftest.in"
4951 cp "conftest.in" "conftest.nl"
4952 printf "%s\n" 'EGREP' >> "conftest.nl"
4953 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4955 as_fn_arith $ac_count + 1 && ac_count=$as_val
4956 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4957 # Best one so far, save it but keep looking for a better one
4958 ac_cv_path_EGREP="$ac_path_EGREP"
4959 ac_path_EGREP_max=$ac_count
4960 fi
4961 # 10*(2^10) chars as input seems more than enough
4962 test $ac_count -gt 10 && break
4963 done
4964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4965 esac
4966
4967 $ac_path_EGREP_found && break 3
4968 done
4969 done
4970 done
4971 IFS=$as_save_IFS
4972 if test -z "$ac_cv_path_EGREP"; then
4973 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4974 fi
4975 else
4976 ac_cv_path_EGREP=$EGREP
4977 fi
4978
4979 fi
4980 fi
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4982 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4983 EGREP="$ac_cv_path_EGREP"
4984
4985
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4987 printf %s "checking for fgrep... " >&6; }
4988 if test ${ac_cv_path_FGREP+y}
4989 then :
4990 printf %s "(cached) " >&6
4991 else $as_nop
4992 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4993 then ac_cv_path_FGREP="$GREP -F"
4994 else
4995 if test -z "$FGREP"; then
4996 ac_path_FGREP_found=false
4997 # Loop through the user's path and test for each of PROGNAME-LIST
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5000 do
5001 IFS=$as_save_IFS
5002 case $as_dir in #(((
5003 '') as_dir=./ ;;
5004 */) ;;
5005 *) as_dir=$as_dir/ ;;
5006 esac
5007 for ac_prog in fgrep
5008 do
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5011 as_fn_executable_p "$ac_path_FGREP" || continue
5012 # Check for GNU ac_path_FGREP and select it if it is found.
5013 # Check for GNU $ac_path_FGREP
5014 case `"$ac_path_FGREP" --version 2>&1` in
5015 *GNU*)
5016 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5017 *)
5018 ac_count=0
5019 printf %s 0123456789 >"conftest.in"
5020 while :
5021 do
5022 cat "conftest.in" "conftest.in" >"conftest.tmp"
5023 mv "conftest.tmp" "conftest.in"
5024 cp "conftest.in" "conftest.nl"
5025 printf "%s\n" 'FGREP' >> "conftest.nl"
5026 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5028 as_fn_arith $ac_count + 1 && ac_count=$as_val
5029 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5030 # Best one so far, save it but keep looking for a better one
5031 ac_cv_path_FGREP="$ac_path_FGREP"
5032 ac_path_FGREP_max=$ac_count
5033 fi
5034 # 10*(2^10) chars as input seems more than enough
5035 test $ac_count -gt 10 && break
5036 done
5037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5038 esac
5039
5040 $ac_path_FGREP_found && break 3
5041 done
5042 done
5043 done
5044 IFS=$as_save_IFS
5045 if test -z "$ac_cv_path_FGREP"; then
5046 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5047 fi
5048 else
5049 ac_cv_path_FGREP=$FGREP
5050 fi
5051
5052 fi
5053 fi
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5055 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5056 FGREP="$ac_cv_path_FGREP"
5057
5058
5059 test -z "$GREP" && GREP=grep
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079 # Check whether --with-gnu-ld was given.
5080 if test ${with_gnu_ld+y}
5081 then :
5082 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5083 else $as_nop
5084 with_gnu_ld=no
5085 fi
5086
5087 ac_prog=ld
5088 if test yes = "$GCC"; then
5089 # Check if gcc -print-prog-name=ld gives a path.
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5091 printf %s "checking for ld used by $CC... " >&6; }
5092 case $host in
5093 *-*-mingw*)
5094 # gcc leaves a trailing carriage return, which upsets mingw
5095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5096 *)
5097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5098 esac
5099 case $ac_prog in
5100 # Accept absolute paths.
5101 [\\/]* | ?:[\\/]*)
5102 re_direlt='/[^/][^/]*/\.\./'
5103 # Canonicalize the pathname of ld
5104 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5105 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5106 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5107 done
5108 test -z "$LD" && LD=$ac_prog
5109 ;;
5110 "")
5111 # If it fails, then pretend we aren't using GCC.
5112 ac_prog=ld
5113 ;;
5114 *)
5115 # If it is relative, then search for the first ld in PATH.
5116 with_gnu_ld=unknown
5117 ;;
5118 esac
5119 elif test yes = "$with_gnu_ld"; then
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5121 printf %s "checking for GNU ld... " >&6; }
5122 else
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5124 printf %s "checking for non-GNU ld... " >&6; }
5125 fi
5126 if test ${lt_cv_path_LD+y}
5127 then :
5128 printf %s "(cached) " >&6
5129 else $as_nop
5130 if test -z "$LD"; then
5131 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5132 for ac_dir in $PATH; do
5133 IFS=$lt_save_ifs
5134 test -z "$ac_dir" && ac_dir=.
5135 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5136 lt_cv_path_LD=$ac_dir/$ac_prog
5137 # Check to see if the program is GNU ld. I'd rather use --version,
5138 # but apparently some variants of GNU ld only accept -v.
5139 # Break only if it was the GNU/non-GNU ld that we prefer.
5140 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5141 *GNU* | *'with BFD'*)
5142 test no != "$with_gnu_ld" && break
5143 ;;
5144 *)
5145 test yes != "$with_gnu_ld" && break
5146 ;;
5147 esac
5148 fi
5149 done
5150 IFS=$lt_save_ifs
5151 else
5152 lt_cv_path_LD=$LD # Let the user override the test with a path.
5153 fi
5154 fi
5155
5156 LD=$lt_cv_path_LD
5157 if test -n "$LD"; then
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5159 printf "%s\n" "$LD" >&6; }
5160 else
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 printf "%s\n" "no" >&6; }
5163 fi
5164 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5166 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5167 if test ${lt_cv_prog_gnu_ld+y}
5168 then :
5169 printf %s "(cached) " >&6
5170 else $as_nop
5171 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5172 case `$LD -v 2>&1 </dev/null` in
5173 *GNU* | *'with BFD'*)
5174 lt_cv_prog_gnu_ld=yes
5175 ;;
5176 *)
5177 lt_cv_prog_gnu_ld=no
5178 ;;
5179 esac
5180 fi
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5182 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5183 with_gnu_ld=$lt_cv_prog_gnu_ld
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5194 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5195 if test ${lt_cv_path_NM+y}
5196 then :
5197 printf %s "(cached) " >&6
5198 else $as_nop
5199 if test -n "$NM"; then
5200 # Let the user override the test.
5201 lt_cv_path_NM=$NM
5202 else
5203 lt_nm_to_check=${ac_tool_prefix}nm
5204 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5205 lt_nm_to_check="$lt_nm_to_check nm"
5206 fi
5207 for lt_tmp_nm in $lt_nm_to_check; do
5208 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5209 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5210 IFS=$lt_save_ifs
5211 test -z "$ac_dir" && ac_dir=.
5212 tmp_nm=$ac_dir/$lt_tmp_nm
5213 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5214 # Check to see if the nm accepts a BSD-compat flag.
5215 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5216 # nm: unknown option "B" ignored
5217 # Tru64's nm complains that /dev/null is an invalid object file
5218 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5219 case $build_os in
5220 mingw*) lt_bad_file=conftest.nm/nofile ;;
5221 *) lt_bad_file=/dev/null ;;
5222 esac
5223 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5224 *$lt_bad_file* | *'Invalid file or object type'*)
5225 lt_cv_path_NM="$tmp_nm -B"
5226 break 2
5227 ;;
5228 *)
5229 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5230 */dev/null*)
5231 lt_cv_path_NM="$tmp_nm -p"
5232 break 2
5233 ;;
5234 *)
5235 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5236 continue # so that we can try to find one that supports BSD flags
5237 ;;
5238 esac
5239 ;;
5240 esac
5241 fi
5242 done
5243 IFS=$lt_save_ifs
5244 done
5245 : ${lt_cv_path_NM=no}
5246 fi
5247 fi
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5249 printf "%s\n" "$lt_cv_path_NM" >&6; }
5250 if test no != "$lt_cv_path_NM"; then
5251 NM=$lt_cv_path_NM
5252 else
5253 # Didn't find any BSD compatible name lister, look for dumpbin.
5254 if test -n "$DUMPBIN"; then :
5255 # Let the user override the test.
5256 else
5257 if test -n "$ac_tool_prefix"; then
5258 for ac_prog in dumpbin "link -dump"
5259 do
5260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 printf %s "checking for $ac_word... " >&6; }
5264 if test ${ac_cv_prog_DUMPBIN+y}
5265 then :
5266 printf %s "(cached) " >&6
5267 else $as_nop
5268 if test -n "$DUMPBIN"; then
5269 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274 IFS=$as_save_IFS
5275 case $as_dir in #(((
5276 '') as_dir=./ ;;
5277 */) ;;
5278 *) as_dir=$as_dir/ ;;
5279 esac
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5284 break 2
5285 fi
5286 done
5287 done
5288 IFS=$as_save_IFS
5289
5290 fi
5291 fi
5292 DUMPBIN=$ac_cv_prog_DUMPBIN
5293 if test -n "$DUMPBIN"; then
5294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5295 printf "%s\n" "$DUMPBIN" >&6; }
5296 else
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 printf "%s\n" "no" >&6; }
5299 fi
5300
5301
5302 test -n "$DUMPBIN" && break
5303 done
5304 fi
5305 if test -z "$DUMPBIN"; then
5306 ac_ct_DUMPBIN=$DUMPBIN
5307 for ac_prog in dumpbin "link -dump"
5308 do
5309 # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 printf %s "checking for $ac_word... " >&6; }
5313 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5314 then :
5315 printf %s "(cached) " >&6
5316 else $as_nop
5317 if test -n "$ac_ct_DUMPBIN"; then
5318 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 case $as_dir in #(((
5325 '') as_dir=./ ;;
5326 */) ;;
5327 *) as_dir=$as_dir/ ;;
5328 esac
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5331 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335 done
5336 done
5337 IFS=$as_save_IFS
5338
5339 fi
5340 fi
5341 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5342 if test -n "$ac_ct_DUMPBIN"; then
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5344 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5345 else
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 printf "%s\n" "no" >&6; }
5348 fi
5349
5350
5351 test -n "$ac_ct_DUMPBIN" && break
5352 done
5353
5354 if test "x$ac_ct_DUMPBIN" = x; then
5355 DUMPBIN=":"
5356 else
5357 case $cross_compiling:$ac_tool_warned in
5358 yes:)
5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361 ac_tool_warned=yes ;;
5362 esac
5363 DUMPBIN=$ac_ct_DUMPBIN
5364 fi
5365 fi
5366
5367 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5368 *COFF*)
5369 DUMPBIN="$DUMPBIN -symbols -headers"
5370 ;;
5371 *)
5372 DUMPBIN=:
5373 ;;
5374 esac
5375 fi
5376
5377 if test : != "$DUMPBIN"; then
5378 NM=$DUMPBIN
5379 fi
5380 fi
5381 test -z "$NM" && NM=nm
5382
5383
5384
5385
5386
5387
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5389 printf %s "checking the name lister ($NM) interface... " >&6; }
5390 if test ${lt_cv_nm_interface+y}
5391 then :
5392 printf %s "(cached) " >&6
5393 else $as_nop
5394 lt_cv_nm_interface="BSD nm"
5395 echo "int some_variable = 0;" > conftest.$ac_ext
5396 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5397 (eval "$ac_compile" 2>conftest.err)
5398 cat conftest.err >&5
5399 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5400 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5401 cat conftest.err >&5
5402 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5403 cat conftest.out >&5
5404 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5405 lt_cv_nm_interface="MS dumpbin"
5406 fi
5407 rm -f conftest*
5408 fi
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5410 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5411
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5413 printf %s "checking whether ln -s works... " >&6; }
5414 LN_S=$as_ln_s
5415 if test "$LN_S" = "ln -s"; then
5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417 printf "%s\n" "yes" >&6; }
5418 else
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5420 printf "%s\n" "no, using $LN_S" >&6; }
5421 fi
5422
5423 # find the maximum length of command line arguments
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5425 printf %s "checking the maximum length of command line arguments... " >&6; }
5426 if test ${lt_cv_sys_max_cmd_len+y}
5427 then :
5428 printf %s "(cached) " >&6
5429 else $as_nop
5430 i=0
5431 teststring=ABCD
5432
5433 case $build_os in
5434 msdosdjgpp*)
5435 # On DJGPP, this test can blow up pretty badly due to problems in libc
5436 # (any single argument exceeding 2000 bytes causes a buffer overrun
5437 # during glob expansion). Even if it were fixed, the result of this
5438 # check would be larger than it should be.
5439 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5440 ;;
5441
5442 gnu*)
5443 # Under GNU Hurd, this test is not required because there is
5444 # no limit to the length of command line arguments.
5445 # Libtool will interpret -1 as no limit whatsoever
5446 lt_cv_sys_max_cmd_len=-1;
5447 ;;
5448
5449 cygwin* | mingw* | cegcc*)
5450 # On Win9x/ME, this test blows up -- it succeeds, but takes
5451 # about 5 minutes as the teststring grows exponentially.
5452 # Worse, since 9x/ME are not pre-emptively multitasking,
5453 # you end up with a "frozen" computer, even though with patience
5454 # the test eventually succeeds (with a max line length of 256k).
5455 # Instead, let's just punt: use the minimum linelength reported by
5456 # all of the supported platforms: 8192 (on NT/2K/XP).
5457 lt_cv_sys_max_cmd_len=8192;
5458 ;;
5459
5460 mint*)
5461 # On MiNT this can take a long time and run out of memory.
5462 lt_cv_sys_max_cmd_len=8192;
5463 ;;
5464
5465 amigaos*)
5466 # On AmigaOS with pdksh, this test takes hours, literally.
5467 # So we just punt and use a minimum line length of 8192.
5468 lt_cv_sys_max_cmd_len=8192;
5469 ;;
5470
5471 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5472 # This has been around since 386BSD, at least. Likely further.
5473 if test -x /sbin/sysctl; then
5474 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5475 elif test -x /usr/sbin/sysctl; then
5476 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5477 else
5478 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5479 fi
5480 # And add a safety zone
5481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5482 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5483 ;;
5484
5485 interix*)
5486 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5487 lt_cv_sys_max_cmd_len=196608
5488 ;;
5489
5490 os2*)
5491 # The test takes a long time on OS/2.
5492 lt_cv_sys_max_cmd_len=8192
5493 ;;
5494
5495 osf*)
5496 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5497 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5498 # nice to cause kernel panics so lets avoid the loop below.
5499 # First set a reasonable default.
5500 lt_cv_sys_max_cmd_len=16384
5501 #
5502 if test -x /sbin/sysconfig; then
5503 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5504 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5505 esac
5506 fi
5507 ;;
5508 sco3.2v5*)
5509 lt_cv_sys_max_cmd_len=102400
5510 ;;
5511 sysv5* | sco5v6* | sysv4.2uw2*)
5512 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5513 if test -n "$kargmax"; then
5514 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5515 else
5516 lt_cv_sys_max_cmd_len=32768
5517 fi
5518 ;;
5519 *)
5520 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5521 if test -n "$lt_cv_sys_max_cmd_len" && \
5522 test undefined != "$lt_cv_sys_max_cmd_len"; then
5523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5525 else
5526 # Make teststring a little bigger before we do anything with it.
5527 # a 1K string should be a reasonable start.
5528 for i in 1 2 3 4 5 6 7 8; do
5529 teststring=$teststring$teststring
5530 done
5531 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5532 # If test is not a shell built-in, we'll probably end up computing a
5533 # maximum length that is only half of the actual maximum length, but
5534 # we can't tell.
5535 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5536 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5537 test 17 != "$i" # 1/2 MB should be enough
5538 do
5539 i=`expr $i + 1`
5540 teststring=$teststring$teststring
5541 done
5542 # Only check the string length outside the loop.
5543 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5544 teststring=
5545 # Add a significant safety factor because C++ compilers can tack on
5546 # massive amounts of additional arguments before passing them to the
5547 # linker. It appears as though 1/2 is a usable value.
5548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5549 fi
5550 ;;
5551 esac
5552
5553 fi
5554
5555 if test -n "$lt_cv_sys_max_cmd_len"; then
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5557 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5558 else
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5560 printf "%s\n" "none" >&6; }
5561 fi
5562 max_cmd_len=$lt_cv_sys_max_cmd_len
5563
5564
5565
5566
5567
5568
5569 : ${CP="cp -f"}
5570 : ${MV="mv -f"}
5571 : ${RM="rm -f"}
5572
5573 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5574 lt_unset=unset
5575 else
5576 lt_unset=false
5577 fi
5578
5579
5580
5581
5582
5583 # test EBCDIC or ASCII
5584 case `echo X|tr X '\101'` in
5585 A) # ASCII based system
5586 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5587 lt_SP2NL='tr \040 \012'
5588 lt_NL2SP='tr \015\012 \040\040'
5589 ;;
5590 *) # EBCDIC based system
5591 lt_SP2NL='tr \100 \n'
5592 lt_NL2SP='tr \r\n \100\100'
5593 ;;
5594 esac
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5605 printf %s "checking how to convert $build file names to $host format... " >&6; }
5606 if test ${lt_cv_to_host_file_cmd+y}
5607 then :
5608 printf %s "(cached) " >&6
5609 else $as_nop
5610 case $host in
5611 *-*-mingw* )
5612 case $build in
5613 *-*-mingw* ) # actually msys
5614 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5615 ;;
5616 *-*-cygwin* )
5617 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5618 ;;
5619 * ) # otherwise, assume *nix
5620 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5621 ;;
5622 esac
5623 ;;
5624 *-*-cygwin* )
5625 case $build in
5626 *-*-mingw* ) # actually msys
5627 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5628 ;;
5629 *-*-cygwin* )
5630 lt_cv_to_host_file_cmd=func_convert_file_noop
5631 ;;
5632 * ) # otherwise, assume *nix
5633 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5634 ;;
5635 esac
5636 ;;
5637 * ) # unhandled hosts (and "normal" native builds)
5638 lt_cv_to_host_file_cmd=func_convert_file_noop
5639 ;;
5640 esac
5641
5642 fi
5643
5644 to_host_file_cmd=$lt_cv_to_host_file_cmd
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5646 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5647
5648
5649
5650
5651
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5653 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5654 if test ${lt_cv_to_tool_file_cmd+y}
5655 then :
5656 printf %s "(cached) " >&6
5657 else $as_nop
5658 #assume ordinary cross tools, or native build.
5659 lt_cv_to_tool_file_cmd=func_convert_file_noop
5660 case $host in
5661 *-*-mingw* )
5662 case $build in
5663 *-*-mingw* ) # actually msys
5664 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5665 ;;
5666 esac
5667 ;;
5668 esac
5669
5670 fi
5671
5672 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5674 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5675
5676
5677
5678
5679
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5681 printf %s "checking for $LD option to reload object files... " >&6; }
5682 if test ${lt_cv_ld_reload_flag+y}
5683 then :
5684 printf %s "(cached) " >&6
5685 else $as_nop
5686 lt_cv_ld_reload_flag='-r'
5687 fi
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5689 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5690 reload_flag=$lt_cv_ld_reload_flag
5691 case $reload_flag in
5692 "" | " "*) ;;
5693 *) reload_flag=" $reload_flag" ;;
5694 esac
5695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5696 case $host_os in
5697 cygwin* | mingw* | pw32* | cegcc*)
5698 if test yes != "$GCC"; then
5699 reload_cmds=false
5700 fi
5701 ;;
5702 darwin*)
5703 if test yes = "$GCC"; then
5704 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5705 else
5706 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5707 fi
5708 ;;
5709 esac
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719 if test -n "$ac_tool_prefix"; then
5720 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5721 set dummy ${ac_tool_prefix}file; ac_word=$2
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 printf %s "checking for $ac_word... " >&6; }
5724 if test ${ac_cv_prog_FILECMD+y}
5725 then :
5726 printf %s "(cached) " >&6
5727 else $as_nop
5728 if test -n "$FILECMD"; then
5729 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734 IFS=$as_save_IFS
5735 case $as_dir in #(((
5736 '') as_dir=./ ;;
5737 */) ;;
5738 *) as_dir=$as_dir/ ;;
5739 esac
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5742 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5744 break 2
5745 fi
5746 done
5747 done
5748 IFS=$as_save_IFS
5749
5750 fi
5751 fi
5752 FILECMD=$ac_cv_prog_FILECMD
5753 if test -n "$FILECMD"; then
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5755 printf "%s\n" "$FILECMD" >&6; }
5756 else
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 printf "%s\n" "no" >&6; }
5759 fi
5760
5761
5762 fi
5763 if test -z "$ac_cv_prog_FILECMD"; then
5764 ac_ct_FILECMD=$FILECMD
5765 # Extract the first word of "file", so it can be a program name with args.
5766 set dummy file; ac_word=$2
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 printf %s "checking for $ac_word... " >&6; }
5769 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5770 then :
5771 printf %s "(cached) " >&6
5772 else $as_nop
5773 if test -n "$ac_ct_FILECMD"; then
5774 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779 IFS=$as_save_IFS
5780 case $as_dir in #(((
5781 '') as_dir=./ ;;
5782 */) ;;
5783 *) as_dir=$as_dir/ ;;
5784 esac
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5787 ac_cv_prog_ac_ct_FILECMD="file"
5788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5789 break 2
5790 fi
5791 done
5792 done
5793 IFS=$as_save_IFS
5794
5795 fi
5796 fi
5797 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5798 if test -n "$ac_ct_FILECMD"; then
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5800 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5801 else
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 printf "%s\n" "no" >&6; }
5804 fi
5805
5806 if test "x$ac_ct_FILECMD" = x; then
5807 FILECMD=":"
5808 else
5809 case $cross_compiling:$ac_tool_warned in
5810 yes:)
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813 ac_tool_warned=yes ;;
5814 esac
5815 FILECMD=$ac_ct_FILECMD
5816 fi
5817 else
5818 FILECMD="$ac_cv_prog_FILECMD"
5819 fi
5820
5821
5822
5823
5824
5825
5826
5827 if test -n "$ac_tool_prefix"; then
5828 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5829 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831 printf %s "checking for $ac_word... " >&6; }
5832 if test ${ac_cv_prog_OBJDUMP+y}
5833 then :
5834 printf %s "(cached) " >&6
5835 else $as_nop
5836 if test -n "$OBJDUMP"; then
5837 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842 IFS=$as_save_IFS
5843 case $as_dir in #(((
5844 '') as_dir=./ ;;
5845 */) ;;
5846 *) as_dir=$as_dir/ ;;
5847 esac
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 OBJDUMP=$ac_cv_prog_OBJDUMP
5861 if test -n "$OBJDUMP"; then
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5863 printf "%s\n" "$OBJDUMP" >&6; }
5864 else
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 printf "%s\n" "no" >&6; }
5867 fi
5868
5869
5870 fi
5871 if test -z "$ac_cv_prog_OBJDUMP"; then
5872 ac_ct_OBJDUMP=$OBJDUMP
5873 # Extract the first word of "objdump", so it can be a program name with args.
5874 set dummy objdump; ac_word=$2
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 printf %s "checking for $ac_word... " >&6; }
5877 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5878 then :
5879 printf %s "(cached) " >&6
5880 else $as_nop
5881 if test -n "$ac_ct_OBJDUMP"; then
5882 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5883 else
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 for as_dir in $PATH
5886 do
5887 IFS=$as_save_IFS
5888 case $as_dir in #(((
5889 '') as_dir=./ ;;
5890 */) ;;
5891 *) as_dir=$as_dir/ ;;
5892 esac
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899 done
5900 done
5901 IFS=$as_save_IFS
5902
5903 fi
5904 fi
5905 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5906 if test -n "$ac_ct_OBJDUMP"; then
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5908 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5909 else
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 printf "%s\n" "no" >&6; }
5912 fi
5913
5914 if test "x$ac_ct_OBJDUMP" = x; then
5915 OBJDUMP="false"
5916 else
5917 case $cross_compiling:$ac_tool_warned in
5918 yes:)
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5922 esac
5923 OBJDUMP=$ac_ct_OBJDUMP
5924 fi
5925 else
5926 OBJDUMP="$ac_cv_prog_OBJDUMP"
5927 fi
5928
5929 test -z "$OBJDUMP" && OBJDUMP=objdump
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5940 printf %s "checking how to recognize dependent libraries... " >&6; }
5941 if test ${lt_cv_deplibs_check_method+y}
5942 then :
5943 printf %s "(cached) " >&6
5944 else $as_nop
5945 lt_cv_file_magic_cmd='$MAGIC_CMD'
5946 lt_cv_file_magic_test_file=
5947 lt_cv_deplibs_check_method='unknown'
5948 # Need to set the preceding variable on all platforms that support
5949 # interlibrary dependencies.
5950 # 'none' -- dependencies not supported.
5951 # 'unknown' -- same as none, but documents that we really don't know.
5952 # 'pass_all' -- all dependencies passed with no checks.
5953 # 'test_compile' -- check by making test program.
5954 # 'file_magic [[regex]]' -- check by looking for files in library path
5955 # that responds to the $file_magic_cmd with a given extended regex.
5956 # If you have 'file' or equivalent on your system and you're not sure
5957 # whether 'pass_all' will *always* work, you probably want this one.
5958
5959 case $host_os in
5960 aix[4-9]*)
5961 lt_cv_deplibs_check_method=pass_all
5962 ;;
5963
5964 beos*)
5965 lt_cv_deplibs_check_method=pass_all
5966 ;;
5967
5968 bsdi[45]*)
5969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5970 lt_cv_file_magic_cmd='$FILECMD -L'
5971 lt_cv_file_magic_test_file=/shlib/libc.so
5972 ;;
5973
5974 cygwin*)
5975 # func_win32_libid is a shell function defined in ltmain.sh
5976 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5977 lt_cv_file_magic_cmd='func_win32_libid'
5978 ;;
5979
5980 mingw* | pw32*)
5981 # Base MSYS/MinGW do not provide the 'file' command needed by
5982 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5983 # unless we find 'file', for example because we are cross-compiling.
5984 if ( file / ) >/dev/null 2>&1; then
5985 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5986 lt_cv_file_magic_cmd='func_win32_libid'
5987 else
5988 # Keep this pattern in sync with the one in func_win32_libid.
5989 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5990 lt_cv_file_magic_cmd='$OBJDUMP -f'
5991 fi
5992 ;;
5993
5994 cegcc*)
5995 # use the weaker test based on 'objdump'. See mingw*.
5996 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5997 lt_cv_file_magic_cmd='$OBJDUMP -f'
5998 ;;
5999
6000 darwin* | rhapsody*)
6001 lt_cv_deplibs_check_method=pass_all
6002 ;;
6003
6004 freebsd* | dragonfly* | midnightbsd*)
6005 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6006 case $host_cpu in
6007 i*86 )
6008 # Not sure whether the presence of OpenBSD here was a mistake.
6009 # Let's accept both of them until this is cleared up.
6010 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6011 lt_cv_file_magic_cmd=$FILECMD
6012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6013 ;;
6014 esac
6015 else
6016 lt_cv_deplibs_check_method=pass_all
6017 fi
6018 ;;
6019
6020 haiku*)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023
6024 hpux10.20* | hpux11*)
6025 lt_cv_file_magic_cmd=$FILECMD
6026 case $host_cpu in
6027 ia64*)
6028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6029 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6030 ;;
6031 hppa*64*)
6032 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]'
6033 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6034 ;;
6035 *)
6036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6037 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6038 ;;
6039 esac
6040 ;;
6041
6042 interix[3-9]*)
6043 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6045 ;;
6046
6047 irix5* | irix6* | nonstopux*)
6048 case $LD in
6049 *-32|*"-32 ") libmagic=32-bit;;
6050 *-n32|*"-n32 ") libmagic=N32;;
6051 *-64|*"-64 ") libmagic=64-bit;;
6052 *) libmagic=never-match;;
6053 esac
6054 lt_cv_deplibs_check_method=pass_all
6055 ;;
6056
6057 # This must be glibc/ELF.
6058 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061
6062 netbsd* | netbsdelf*-gnu)
6063 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6065 else
6066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6067 fi
6068 ;;
6069
6070 newos6*)
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6072 lt_cv_file_magic_cmd=$FILECMD
6073 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6074 ;;
6075
6076 *nto* | *qnx*)
6077 lt_cv_deplibs_check_method=pass_all
6078 ;;
6079
6080 openbsd* | bitrig*)
6081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6083 else
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6085 fi
6086 ;;
6087
6088 osf3* | osf4* | osf5*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
6092 rdos*)
6093 lt_cv_deplibs_check_method=pass_all
6094 ;;
6095
6096 solaris*)
6097 lt_cv_deplibs_check_method=pass_all
6098 ;;
6099
6100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6101 lt_cv_deplibs_check_method=pass_all
6102 ;;
6103
6104 sysv4 | sysv4.3*)
6105 case $host_vendor in
6106 motorola)
6107 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]'
6108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6109 ;;
6110 ncr)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113 sequent)
6114 lt_cv_file_magic_cmd='/bin/file'
6115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6116 ;;
6117 sni)
6118 lt_cv_file_magic_cmd='/bin/file'
6119 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6120 lt_cv_file_magic_test_file=/lib/libc.so
6121 ;;
6122 siemens)
6123 lt_cv_deplibs_check_method=pass_all
6124 ;;
6125 pc)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128 esac
6129 ;;
6130
6131 tpf*)
6132 lt_cv_deplibs_check_method=pass_all
6133 ;;
6134 os2*)
6135 lt_cv_deplibs_check_method=pass_all
6136 ;;
6137 esac
6138
6139 fi
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6141 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6142
6143 file_magic_glob=
6144 want_nocaseglob=no
6145 if test "$build" = "$host"; then
6146 case $host_os in
6147 mingw* | pw32*)
6148 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6149 want_nocaseglob=yes
6150 else
6151 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6152 fi
6153 ;;
6154 esac
6155 fi
6156
6157 file_magic_cmd=$lt_cv_file_magic_cmd
6158 deplibs_check_method=$lt_cv_deplibs_check_method
6159 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 if test -n "$ac_tool_prefix"; then
6183 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6184 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 printf %s "checking for $ac_word... " >&6; }
6187 if test ${ac_cv_prog_DLLTOOL+y}
6188 then :
6189 printf %s "(cached) " >&6
6190 else $as_nop
6191 if test -n "$DLLTOOL"; then
6192 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197 IFS=$as_save_IFS
6198 case $as_dir in #(((
6199 '') as_dir=./ ;;
6200 */) ;;
6201 *) as_dir=$as_dir/ ;;
6202 esac
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6205 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213 fi
6214 fi
6215 DLLTOOL=$ac_cv_prog_DLLTOOL
6216 if test -n "$DLLTOOL"; then
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6218 printf "%s\n" "$DLLTOOL" >&6; }
6219 else
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 printf "%s\n" "no" >&6; }
6222 fi
6223
6224
6225 fi
6226 if test -z "$ac_cv_prog_DLLTOOL"; then
6227 ac_ct_DLLTOOL=$DLLTOOL
6228 # Extract the first word of "dlltool", so it can be a program name with args.
6229 set dummy dlltool; ac_word=$2
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 printf %s "checking for $ac_word... " >&6; }
6232 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6233 then :
6234 printf %s "(cached) " >&6
6235 else $as_nop
6236 if test -n "$ac_ct_DLLTOOL"; then
6237 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242 IFS=$as_save_IFS
6243 case $as_dir in #(((
6244 '') as_dir=./ ;;
6245 */) ;;
6246 *) as_dir=$as_dir/ ;;
6247 esac
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6250 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6261 if test -n "$ac_ct_DLLTOOL"; then
6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6263 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6264 else
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 printf "%s\n" "no" >&6; }
6267 fi
6268
6269 if test "x$ac_ct_DLLTOOL" = x; then
6270 DLLTOOL="false"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278 DLLTOOL=$ac_ct_DLLTOOL
6279 fi
6280 else
6281 DLLTOOL="$ac_cv_prog_DLLTOOL"
6282 fi
6283
6284 test -z "$DLLTOOL" && DLLTOOL=dlltool
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6296 printf %s "checking how to associate runtime and link libraries... " >&6; }
6297 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6298 then :
6299 printf %s "(cached) " >&6
6300 else $as_nop
6301 lt_cv_sharedlib_from_linklib_cmd='unknown'
6302
6303 case $host_os in
6304 cygwin* | mingw* | pw32* | cegcc*)
6305 # two different shell functions defined in ltmain.sh;
6306 # decide which one to use based on capabilities of $DLLTOOL
6307 case `$DLLTOOL --help 2>&1` in
6308 *--identify-strict*)
6309 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6310 ;;
6311 *)
6312 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6313 ;;
6314 esac
6315 ;;
6316 *)
6317 # fallback: assume linklib IS sharedlib
6318 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6319 ;;
6320 esac
6321
6322 fi
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6324 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6325 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6326 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6327
6328
6329
6330
6331
6332
6333
6334
6335 if test -n "$ac_tool_prefix"; then
6336 for ac_prog in ar
6337 do
6338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 printf %s "checking for $ac_word... " >&6; }
6342 if test ${ac_cv_prog_AR+y}
6343 then :
6344 printf %s "(cached) " >&6
6345 else $as_nop
6346 if test -n "$AR"; then
6347 ac_cv_prog_AR="$AR" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352 IFS=$as_save_IFS
6353 case $as_dir in #(((
6354 '') as_dir=./ ;;
6355 */) ;;
6356 *) as_dir=$as_dir/ ;;
6357 esac
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6362 break 2
6363 fi
6364 done
6365 done
6366 IFS=$as_save_IFS
6367
6368 fi
6369 fi
6370 AR=$ac_cv_prog_AR
6371 if test -n "$AR"; then
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6373 printf "%s\n" "$AR" >&6; }
6374 else
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 printf "%s\n" "no" >&6; }
6377 fi
6378
6379
6380 test -n "$AR" && break
6381 done
6382 fi
6383 if test -z "$AR"; then
6384 ac_ct_AR=$AR
6385 for ac_prog in ar
6386 do
6387 # Extract the first word of "$ac_prog", so it can be a program name with args.
6388 set dummy $ac_prog; ac_word=$2
6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 printf %s "checking for $ac_word... " >&6; }
6391 if test ${ac_cv_prog_ac_ct_AR+y}
6392 then :
6393 printf %s "(cached) " >&6
6394 else $as_nop
6395 if test -n "$ac_ct_AR"; then
6396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401 IFS=$as_save_IFS
6402 case $as_dir in #(((
6403 '') as_dir=./ ;;
6404 */) ;;
6405 *) as_dir=$as_dir/ ;;
6406 esac
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_ac_ct_AR="$ac_prog"
6410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6420 if test -n "$ac_ct_AR"; then
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6422 printf "%s\n" "$ac_ct_AR" >&6; }
6423 else
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 printf "%s\n" "no" >&6; }
6426 fi
6427
6428
6429 test -n "$ac_ct_AR" && break
6430 done
6431
6432 if test "x$ac_ct_AR" = x; then
6433 AR="false"
6434 else
6435 case $cross_compiling:$ac_tool_warned in
6436 yes:)
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439 ac_tool_warned=yes ;;
6440 esac
6441 AR=$ac_ct_AR
6442 fi
6443 fi
6444
6445 : ${AR=ar}
6446
6447
6448
6449
6450
6451
6452 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6453 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6454 # higher priority because thats what people were doing historically (setting
6455 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6456 # variable obsoleted/removed.
6457
6458 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6459 lt_ar_flags=$AR_FLAGS
6460
6461
6462
6463
6464
6465
6466 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6467 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6468
6469
6470
6471
6472
6473
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6475 printf %s "checking for archiver @FILE support... " >&6; }
6476 if test ${lt_cv_ar_at_file+y}
6477 then :
6478 printf %s "(cached) " >&6
6479 else $as_nop
6480 lt_cv_ar_at_file=no
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483
6484 int
6485 main (void)
6486 {
6487
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_c_try_compile "$LINENO"
6493 then :
6494 echo conftest.$ac_objext > conftest.lst
6495 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6497 (eval $lt_ar_try) 2>&5
6498 ac_status=$?
6499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500 test $ac_status = 0; }
6501 if test 0 -eq "$ac_status"; then
6502 # Ensure the archiver fails upon bogus file names.
6503 rm -f conftest.$ac_objext libconftest.a
6504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6505 (eval $lt_ar_try) 2>&5
6506 ac_status=$?
6507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508 test $ac_status = 0; }
6509 if test 0 -ne "$ac_status"; then
6510 lt_cv_ar_at_file=@
6511 fi
6512 fi
6513 rm -f conftest.* libconftest.a
6514
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6517
6518 fi
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6520 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6521
6522 if test no = "$lt_cv_ar_at_file"; then
6523 archiver_list_spec=
6524 else
6525 archiver_list_spec=$lt_cv_ar_at_file
6526 fi
6527
6528
6529
6530
6531
6532
6533
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}strip; ac_word=$2
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 printf %s "checking for $ac_word... " >&6; }
6539 if test ${ac_cv_prog_STRIP+y}
6540 then :
6541 printf %s "(cached) " >&6
6542 else $as_nop
6543 if test -n "$STRIP"; then
6544 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6545 else
6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 for as_dir in $PATH
6548 do
6549 IFS=$as_save_IFS
6550 case $as_dir in #(((
6551 '') as_dir=./ ;;
6552 */) ;;
6553 *) as_dir=$as_dir/ ;;
6554 esac
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6557 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 STRIP=$ac_cv_prog_STRIP
6568 if test -n "$STRIP"; then
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6570 printf "%s\n" "$STRIP" >&6; }
6571 else
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 printf "%s\n" "no" >&6; }
6574 fi
6575
6576
6577 fi
6578 if test -z "$ac_cv_prog_STRIP"; then
6579 ac_ct_STRIP=$STRIP
6580 # Extract the first word of "strip", so it can be a program name with args.
6581 set dummy strip; ac_word=$2
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583 printf %s "checking for $ac_word... " >&6; }
6584 if test ${ac_cv_prog_ac_ct_STRIP+y}
6585 then :
6586 printf %s "(cached) " >&6
6587 else $as_nop
6588 if test -n "$ac_ct_STRIP"; then
6589 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594 IFS=$as_save_IFS
6595 case $as_dir in #(((
6596 '') as_dir=./ ;;
6597 */) ;;
6598 *) as_dir=$as_dir/ ;;
6599 esac
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_ac_ct_STRIP="strip"
6603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6613 if test -n "$ac_ct_STRIP"; then
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6615 printf "%s\n" "$ac_ct_STRIP" >&6; }
6616 else
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 printf "%s\n" "no" >&6; }
6619 fi
6620
6621 if test "x$ac_ct_STRIP" = x; then
6622 STRIP=":"
6623 else
6624 case $cross_compiling:$ac_tool_warned in
6625 yes:)
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628 ac_tool_warned=yes ;;
6629 esac
6630 STRIP=$ac_ct_STRIP
6631 fi
6632 else
6633 STRIP="$ac_cv_prog_STRIP"
6634 fi
6635
6636 test -z "$STRIP" && STRIP=:
6637
6638
6639
6640
6641
6642
6643 if test -n "$ac_tool_prefix"; then
6644 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6645 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 printf %s "checking for $ac_word... " >&6; }
6648 if test ${ac_cv_prog_RANLIB+y}
6649 then :
6650 printf %s "(cached) " >&6
6651 else $as_nop
6652 if test -n "$RANLIB"; then
6653 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658 IFS=$as_save_IFS
6659 case $as_dir in #(((
6660 '') as_dir=./ ;;
6661 */) ;;
6662 *) as_dir=$as_dir/ ;;
6663 esac
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6668 break 2
6669 fi
6670 done
6671 done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 RANLIB=$ac_cv_prog_RANLIB
6677 if test -n "$RANLIB"; then
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6679 printf "%s\n" "$RANLIB" >&6; }
6680 else
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 printf "%s\n" "no" >&6; }
6683 fi
6684
6685
6686 fi
6687 if test -z "$ac_cv_prog_RANLIB"; then
6688 ac_ct_RANLIB=$RANLIB
6689 # Extract the first word of "ranlib", so it can be a program name with args.
6690 set dummy ranlib; ac_word=$2
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 printf %s "checking for $ac_word... " >&6; }
6693 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6694 then :
6695 printf %s "(cached) " >&6
6696 else $as_nop
6697 if test -n "$ac_ct_RANLIB"; then
6698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703 IFS=$as_save_IFS
6704 case $as_dir in #(((
6705 '') as_dir=./ ;;
6706 */) ;;
6707 *) as_dir=$as_dir/ ;;
6708 esac
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6711 ac_cv_prog_ac_ct_RANLIB="ranlib"
6712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6722 if test -n "$ac_ct_RANLIB"; then
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6724 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6725 else
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 printf "%s\n" "no" >&6; }
6728 fi
6729
6730 if test "x$ac_ct_RANLIB" = x; then
6731 RANLIB=":"
6732 else
6733 case $cross_compiling:$ac_tool_warned in
6734 yes:)
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6736 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6737 ac_tool_warned=yes ;;
6738 esac
6739 RANLIB=$ac_ct_RANLIB
6740 fi
6741 else
6742 RANLIB="$ac_cv_prog_RANLIB"
6743 fi
6744
6745 test -z "$RANLIB" && RANLIB=:
6746
6747
6748
6749
6750
6751
6752 # Determine commands to create old-style static archives.
6753 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6754 old_postinstall_cmds='chmod 644 $oldlib'
6755 old_postuninstall_cmds=
6756
6757 if test -n "$RANLIB"; then
6758 case $host_os in
6759 bitrig* | openbsd*)
6760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6761 ;;
6762 *)
6763 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6764 ;;
6765 esac
6766 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6767 fi
6768
6769 case $host_os in
6770 darwin*)
6771 lock_old_archive_extraction=yes ;;
6772 *)
6773 lock_old_archive_extraction=no ;;
6774 esac
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814 # If no C compiler was specified, use CC.
6815 LTCC=${LTCC-"$CC"}
6816
6817 # If no C compiler flags were specified, use CFLAGS.
6818 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6819
6820 # Allow CC to be a program name with arguments.
6821 compiler=$CC
6822
6823
6824 # Check for command to grab the raw symbol name followed by C symbol from nm.
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6826 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6827 if test ${lt_cv_sys_global_symbol_pipe+y}
6828 then :
6829 printf %s "(cached) " >&6
6830 else $as_nop
6831
6832 # These are sane defaults that work on at least a few old systems.
6833 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6834
6835 # Character class describing NM global symbol codes.
6836 symcode='[BCDEGRST]'
6837
6838 # Regexp to match symbols that can be accessed directly from C.
6839 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6840
6841 # Define system-specific variables.
6842 case $host_os in
6843 aix*)
6844 symcode='[BCDT]'
6845 ;;
6846 cygwin* | mingw* | pw32* | cegcc*)
6847 symcode='[ABCDGISTW]'
6848 ;;
6849 hpux*)
6850 if test ia64 = "$host_cpu"; then
6851 symcode='[ABCDEGRST]'
6852 fi
6853 ;;
6854 irix* | nonstopux*)
6855 symcode='[BCDEGRST]'
6856 ;;
6857 osf*)
6858 symcode='[BCDEGQRST]'
6859 ;;
6860 solaris*)
6861 symcode='[BDRT]'
6862 ;;
6863 sco3.2v5*)
6864 symcode='[DT]'
6865 ;;
6866 sysv4.2uw2*)
6867 symcode='[DT]'
6868 ;;
6869 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6870 symcode='[ABDT]'
6871 ;;
6872 sysv4)
6873 symcode='[DFNSTU]'
6874 ;;
6875 esac
6876
6877 # If we're using GNU nm, then use its standard symbol codes.
6878 case `$NM -V 2>&1` in
6879 *GNU* | *'with BFD'*)
6880 symcode='[ABCDGIRSTW]' ;;
6881 esac
6882
6883 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6884 # Gets list of data symbols to import.
6885 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6886 # Adjust the below global symbol transforms to fixup imported variables.
6887 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6888 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6889 lt_c_name_lib_hook="\
6890 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6891 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6892 else
6893 # Disable hooks by default.
6894 lt_cv_sys_global_symbol_to_import=
6895 lt_cdecl_hook=
6896 lt_c_name_hook=
6897 lt_c_name_lib_hook=
6898 fi
6899
6900 # Transform an extracted symbol line into a proper C declaration.
6901 # Some systems (esp. on ia64) link data and code symbols differently,
6902 # so use this general approach.
6903 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6904 $lt_cdecl_hook\
6905 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6906 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6907
6908 # Transform an extracted symbol line into symbol name and symbol address
6909 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6910 $lt_c_name_hook\
6911 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6912 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6913
6914 # Transform an extracted symbol line into symbol name with lib prefix and
6915 # symbol address.
6916 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6917 $lt_c_name_lib_hook\
6918 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6919 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6920 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6921
6922 # Handle CRLF in mingw tool chain
6923 opt_cr=
6924 case $build_os in
6925 mingw*)
6926 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6927 ;;
6928 esac
6929
6930 # Try without a prefix underscore, then with it.
6931 for ac_symprfx in "" "_"; do
6932
6933 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6934 symxfrm="\\1 $ac_symprfx\\2 \\2"
6935
6936 # Write the raw and C identifiers.
6937 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6938 # Fake it for dumpbin and say T for any non-static function,
6939 # D for any global variable and I for any imported variable.
6940 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6941 # which start with @ or ?.
6942 lt_cv_sys_global_symbol_pipe="$AWK '"\
6943 " {last_section=section; section=\$ 3};"\
6944 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6945 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6946 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6947 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6948 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6949 " \$ 0!~/External *\|/{next};"\
6950 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6951 " {if(hide[section]) next};"\
6952 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6953 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6954 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6955 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6956 " ' prfx=^$ac_symprfx"
6957 else
6958 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6959 fi
6960 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6961
6962 # Check to see that the pipe works correctly.
6963 pipe_works=no
6964
6965 rm -f conftest*
6966 cat > conftest.$ac_ext <<_LT_EOF
6967 #ifdef __cplusplus
6968 extern "C" {
6969 #endif
6970 char nm_test_var;
6971 void nm_test_func(void);
6972 void nm_test_func(void){}
6973 #ifdef __cplusplus
6974 }
6975 #endif
6976 int main(){nm_test_var='a';nm_test_func();return(0);}
6977 _LT_EOF
6978
6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6980 (eval $ac_compile) 2>&5
6981 ac_status=$?
6982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983 test $ac_status = 0; }; then
6984 # Now try to grab the symbols.
6985 nlist=conftest.nm
6986 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6987 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6988 # Try sorting and uniquifying the output.
6989 if sort "$nlist" | uniq > "$nlist"T; then
6990 mv -f "$nlist"T "$nlist"
6991 else
6992 rm -f "$nlist"T
6993 fi
6994
6995 # Make sure that we snagged all the symbols we need.
6996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6998 cat <<_LT_EOF > conftest.$ac_ext
6999 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7000 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7001 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7002 relocations are performed -- see ld's documentation on pseudo-relocs. */
7003 # define LT_DLSYM_CONST
7004 #elif defined __osf__
7005 /* This system does not cope well with relocations in const data. */
7006 # define LT_DLSYM_CONST
7007 #else
7008 # define LT_DLSYM_CONST const
7009 #endif
7010
7011 #ifdef __cplusplus
7012 extern "C" {
7013 #endif
7014
7015 _LT_EOF
7016 # Now generate the symbol file.
7017 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7018
7019 cat <<_LT_EOF >> conftest.$ac_ext
7020
7021 /* The mapping between symbol names and symbols. */
7022 LT_DLSYM_CONST struct {
7023 const char *name;
7024 void *address;
7025 }
7026 lt__PROGRAM__LTX_preloaded_symbols[] =
7027 {
7028 { "@PROGRAM@", (void *) 0 },
7029 _LT_EOF
7030 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7031 cat <<\_LT_EOF >> conftest.$ac_ext
7032 {0, (void *) 0}
7033 };
7034
7035 /* This works around a problem in FreeBSD linker */
7036 #ifdef FREEBSD_WORKAROUND
7037 static const void *lt_preloaded_setup() {
7038 return lt__PROGRAM__LTX_preloaded_symbols;
7039 }
7040 #endif
7041
7042 #ifdef __cplusplus
7043 }
7044 #endif
7045 _LT_EOF
7046 # Now try linking the two files.
7047 mv conftest.$ac_objext conftstm.$ac_objext
7048 lt_globsym_save_LIBS=$LIBS
7049 lt_globsym_save_CFLAGS=$CFLAGS
7050 LIBS=conftstm.$ac_objext
7051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7053 (eval $ac_link) 2>&5
7054 ac_status=$?
7055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7056 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7057 pipe_works=yes
7058 fi
7059 LIBS=$lt_globsym_save_LIBS
7060 CFLAGS=$lt_globsym_save_CFLAGS
7061 else
7062 echo "cannot find nm_test_func in $nlist" >&5
7063 fi
7064 else
7065 echo "cannot find nm_test_var in $nlist" >&5
7066 fi
7067 else
7068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7069 fi
7070 else
7071 echo "$progname: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 fi
7074 rm -rf conftest* conftst*
7075
7076 # Do not use the global_symbol_pipe unless it works.
7077 if test yes = "$pipe_works"; then
7078 break
7079 else
7080 lt_cv_sys_global_symbol_pipe=
7081 fi
7082 done
7083
7084 fi
7085
7086 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7087 lt_cv_sys_global_symbol_to_cdecl=
7088 fi
7089 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7091 printf "%s\n" "failed" >&6; }
7092 else
7093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7094 printf "%s\n" "ok" >&6; }
7095 fi
7096
7097 # Response file support.
7098 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7099 nm_file_list_spec='@'
7100 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7101 nm_file_list_spec='@'
7102 fi
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7141 printf %s "checking for sysroot... " >&6; }
7142
7143 # Check whether --with-sysroot was given.
7144 if test ${with_sysroot+y}
7145 then :
7146 withval=$with_sysroot;
7147 else $as_nop
7148 with_sysroot=no
7149 fi
7150
7151
7152 lt_sysroot=
7153 case $with_sysroot in #(
7154 yes)
7155 if test yes = "$GCC"; then
7156 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7157 fi
7158 ;; #(
7159 /*)
7160 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7161 ;; #(
7162 no|'')
7163 ;; #(
7164 *)
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7166 printf "%s\n" "$with_sysroot" >&6; }
7167 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7168 ;;
7169 esac
7170
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7172 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7173
7174
7175
7176
7177
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7179 printf %s "checking for a working dd... " >&6; }
7180 if test ${ac_cv_path_lt_DD+y}
7181 then :
7182 printf %s "(cached) " >&6
7183 else $as_nop
7184 printf 0123456789abcdef0123456789abcdef >conftest.i
7185 cat conftest.i conftest.i >conftest2.i
7186 : ${lt_DD:=$DD}
7187 if test -z "$lt_DD"; then
7188 ac_path_lt_DD_found=false
7189 # Loop through the user's path and test for each of PROGNAME-LIST
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193 IFS=$as_save_IFS
7194 case $as_dir in #(((
7195 '') as_dir=./ ;;
7196 */) ;;
7197 *) as_dir=$as_dir/ ;;
7198 esac
7199 for ac_prog in dd
7200 do
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7203 as_fn_executable_p "$ac_path_lt_DD" || continue
7204 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7205 cmp -s conftest.i conftest.out \
7206 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7207 fi
7208 $ac_path_lt_DD_found && break 3
7209 done
7210 done
7211 done
7212 IFS=$as_save_IFS
7213 if test -z "$ac_cv_path_lt_DD"; then
7214 :
7215 fi
7216 else
7217 ac_cv_path_lt_DD=$lt_DD
7218 fi
7219
7220 rm -f conftest.i conftest2.i conftest.out
7221 fi
7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7223 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7224
7225
7226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7227 printf %s "checking how to truncate binary pipes... " >&6; }
7228 if test ${lt_cv_truncate_bin+y}
7229 then :
7230 printf %s "(cached) " >&6
7231 else $as_nop
7232 printf 0123456789abcdef0123456789abcdef >conftest.i
7233 cat conftest.i conftest.i >conftest2.i
7234 lt_cv_truncate_bin=
7235 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7236 cmp -s conftest.i conftest.out \
7237 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7238 fi
7239 rm -f conftest.i conftest2.i conftest.out
7240 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7241 fi
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7243 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7244
7245
7246
7247
7248
7249
7250
7251 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7252 func_cc_basename ()
7253 {
7254 for cc_temp in $*""; do
7255 case $cc_temp in
7256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7258 \-*) ;;
7259 *) break;;
7260 esac
7261 done
7262 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7263 }
7264
7265 # Check whether --enable-libtool-lock was given.
7266 if test ${enable_libtool_lock+y}
7267 then :
7268 enableval=$enable_libtool_lock;
7269 fi
7270
7271 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7272
7273 # Some flags need to be propagated to the compiler or linker for good
7274 # libtool support.
7275 case $host in
7276 ia64-*-hpux*)
7277 # Find out what ABI is being produced by ac_compile, and set mode
7278 # options accordingly.
7279 echo 'int i;' > conftest.$ac_ext
7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7281 (eval $ac_compile) 2>&5
7282 ac_status=$?
7283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284 test $ac_status = 0; }; then
7285 case `$FILECMD conftest.$ac_objext` in
7286 *ELF-32*)
7287 HPUX_IA64_MODE=32
7288 ;;
7289 *ELF-64*)
7290 HPUX_IA64_MODE=64
7291 ;;
7292 esac
7293 fi
7294 rm -rf conftest*
7295 ;;
7296 *-*-irix6*)
7297 # Find out what ABI is being produced by ac_compile, and set linker
7298 # options accordingly.
7299 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7301 (eval $ac_compile) 2>&5
7302 ac_status=$?
7303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304 test $ac_status = 0; }; then
7305 if test yes = "$lt_cv_prog_gnu_ld"; then
7306 case `$FILECMD conftest.$ac_objext` in
7307 *32-bit*)
7308 LD="${LD-ld} -melf32bsmip"
7309 ;;
7310 *N32*)
7311 LD="${LD-ld} -melf32bmipn32"
7312 ;;
7313 *64-bit*)
7314 LD="${LD-ld} -melf64bmip"
7315 ;;
7316 esac
7317 else
7318 case `$FILECMD conftest.$ac_objext` in
7319 *32-bit*)
7320 LD="${LD-ld} -32"
7321 ;;
7322 *N32*)
7323 LD="${LD-ld} -n32"
7324 ;;
7325 *64-bit*)
7326 LD="${LD-ld} -64"
7327 ;;
7328 esac
7329 fi
7330 fi
7331 rm -rf conftest*
7332 ;;
7333
7334 mips64*-*linux*)
7335 # Find out what ABI is being produced by ac_compile, and set linker
7336 # options accordingly.
7337 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7339 (eval $ac_compile) 2>&5
7340 ac_status=$?
7341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342 test $ac_status = 0; }; then
7343 emul=elf
7344 case `$FILECMD conftest.$ac_objext` in
7345 *32-bit*)
7346 emul="${emul}32"
7347 ;;
7348 *64-bit*)
7349 emul="${emul}64"
7350 ;;
7351 esac
7352 case `$FILECMD conftest.$ac_objext` in
7353 *MSB*)
7354 emul="${emul}btsmip"
7355 ;;
7356 *LSB*)
7357 emul="${emul}ltsmip"
7358 ;;
7359 esac
7360 case `$FILECMD conftest.$ac_objext` in
7361 *N32*)
7362 emul="${emul}n32"
7363 ;;
7364 esac
7365 LD="${LD-ld} -m $emul"
7366 fi
7367 rm -rf conftest*
7368 ;;
7369
7370 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7371 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7372 # Find out what ABI is being produced by ac_compile, and set linker
7373 # options accordingly. Note that the listed cases only cover the
7374 # situations where additional linker options are needed (such as when
7375 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7376 # vice versa); the common cases where no linker options are needed do
7377 # not appear in the list.
7378 echo 'int i;' > conftest.$ac_ext
7379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7380 (eval $ac_compile) 2>&5
7381 ac_status=$?
7382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383 test $ac_status = 0; }; then
7384 case `$FILECMD conftest.o` in
7385 *32-bit*)
7386 case $host in
7387 x86_64-*kfreebsd*-gnu)
7388 LD="${LD-ld} -m elf_i386_fbsd"
7389 ;;
7390 x86_64-*linux*)
7391 case `$FILECMD conftest.o` in
7392 *x86-64*)
7393 LD="${LD-ld} -m elf32_x86_64"
7394 ;;
7395 *)
7396 LD="${LD-ld} -m elf_i386"
7397 ;;
7398 esac
7399 ;;
7400 powerpc64le-*linux*)
7401 LD="${LD-ld} -m elf32lppclinux"
7402 ;;
7403 powerpc64-*linux*)
7404 LD="${LD-ld} -m elf32ppclinux"
7405 ;;
7406 s390x-*linux*)
7407 LD="${LD-ld} -m elf_s390"
7408 ;;
7409 sparc64-*linux*)
7410 LD="${LD-ld} -m elf32_sparc"
7411 ;;
7412 esac
7413 ;;
7414 *64-bit*)
7415 case $host in
7416 x86_64-*kfreebsd*-gnu)
7417 LD="${LD-ld} -m elf_x86_64_fbsd"
7418 ;;
7419 x86_64-*linux*)
7420 LD="${LD-ld} -m elf_x86_64"
7421 ;;
7422 powerpcle-*linux*)
7423 LD="${LD-ld} -m elf64lppc"
7424 ;;
7425 powerpc-*linux*)
7426 LD="${LD-ld} -m elf64ppc"
7427 ;;
7428 s390*-*linux*|s390*-*tpf*)
7429 LD="${LD-ld} -m elf64_s390"
7430 ;;
7431 sparc*-*linux*)
7432 LD="${LD-ld} -m elf64_sparc"
7433 ;;
7434 esac
7435 ;;
7436 esac
7437 fi
7438 rm -rf conftest*
7439 ;;
7440
7441 *-*-sco3.2v5*)
7442 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7443 SAVE_CFLAGS=$CFLAGS
7444 CFLAGS="$CFLAGS -belf"
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7446 printf %s "checking whether the C compiler needs -belf... " >&6; }
7447 if test ${lt_cv_cc_needs_belf+y}
7448 then :
7449 printf %s "(cached) " >&6
7450 else $as_nop
7451 ac_ext=c
7452 ac_cpp='$CPP $CPPFLAGS'
7453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7456
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459
7460 int
7461 main (void)
7462 {
7463
7464 ;
7465 return 0;
7466 }
7467 _ACEOF
7468 if ac_fn_c_try_link "$LINENO"
7469 then :
7470 lt_cv_cc_needs_belf=yes
7471 else $as_nop
7472 lt_cv_cc_needs_belf=no
7473 fi
7474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7475 conftest$ac_exeext conftest.$ac_ext
7476 ac_ext=c
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481
7482 fi
7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7484 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7485 if test yes != "$lt_cv_cc_needs_belf"; then
7486 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7487 CFLAGS=$SAVE_CFLAGS
7488 fi
7489 ;;
7490 *-*solaris*)
7491 # Find out what ABI is being produced by ac_compile, and set linker
7492 # options accordingly.
7493 echo 'int i;' > conftest.$ac_ext
7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7495 (eval $ac_compile) 2>&5
7496 ac_status=$?
7497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498 test $ac_status = 0; }; then
7499 case `$FILECMD conftest.o` in
7500 *64-bit*)
7501 case $lt_cv_prog_gnu_ld in
7502 yes*)
7503 case $host in
7504 i?86-*-solaris*|x86_64-*-solaris*)
7505 LD="${LD-ld} -m elf_x86_64"
7506 ;;
7507 sparc*-*-solaris*)
7508 LD="${LD-ld} -m elf64_sparc"
7509 ;;
7510 esac
7511 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7512 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7513 LD=${LD-ld}_sol2
7514 fi
7515 ;;
7516 *)
7517 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7518 LD="${LD-ld} -64"
7519 fi
7520 ;;
7521 esac
7522 ;;
7523 esac
7524 fi
7525 rm -rf conftest*
7526 ;;
7527 esac
7528
7529 need_locks=$enable_libtool_lock
7530
7531 if test -n "$ac_tool_prefix"; then
7532 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7533 set dummy ${ac_tool_prefix}mt; ac_word=$2
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 printf %s "checking for $ac_word... " >&6; }
7536 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7537 then :
7538 printf %s "(cached) " >&6
7539 else $as_nop
7540 if test -n "$MANIFEST_TOOL"; then
7541 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546 IFS=$as_save_IFS
7547 case $as_dir in #(((
7548 '') as_dir=./ ;;
7549 */) ;;
7550 *) as_dir=$as_dir/ ;;
7551 esac
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7565 if test -n "$MANIFEST_TOOL"; then
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7567 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7568 else
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 printf "%s\n" "no" >&6; }
7571 fi
7572
7573
7574 fi
7575 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7576 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7577 # Extract the first word of "mt", so it can be a program name with args.
7578 set dummy mt; ac_word=$2
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 printf %s "checking for $ac_word... " >&6; }
7581 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7582 then :
7583 printf %s "(cached) " >&6
7584 else $as_nop
7585 if test -n "$ac_ct_MANIFEST_TOOL"; then
7586 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7590 do
7591 IFS=$as_save_IFS
7592 case $as_dir in #(((
7593 '') as_dir=./ ;;
7594 */) ;;
7595 *) as_dir=$as_dir/ ;;
7596 esac
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7599 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603 done
7604 done
7605 IFS=$as_save_IFS
7606
7607 fi
7608 fi
7609 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7610 if test -n "$ac_ct_MANIFEST_TOOL"; then
7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7612 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7613 else
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 printf "%s\n" "no" >&6; }
7616 fi
7617
7618 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7619 MANIFEST_TOOL=":"
7620 else
7621 case $cross_compiling:$ac_tool_warned in
7622 yes:)
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625 ac_tool_warned=yes ;;
7626 esac
7627 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7628 fi
7629 else
7630 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7631 fi
7632
7633 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7635 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7636 if test ${lt_cv_path_mainfest_tool+y}
7637 then :
7638 printf %s "(cached) " >&6
7639 else $as_nop
7640 lt_cv_path_mainfest_tool=no
7641 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7642 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7643 cat conftest.err >&5
7644 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7645 lt_cv_path_mainfest_tool=yes
7646 fi
7647 rm -f conftest*
7648 fi
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7650 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7651 if test yes != "$lt_cv_path_mainfest_tool"; then
7652 MANIFEST_TOOL=:
7653 fi
7654
7655
7656
7657
7658
7659
7660 case $host_os in
7661 rhapsody* | darwin*)
7662 if test -n "$ac_tool_prefix"; then
7663 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7664 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 printf %s "checking for $ac_word... " >&6; }
7667 if test ${ac_cv_prog_DSYMUTIL+y}
7668 then :
7669 printf %s "(cached) " >&6
7670 else $as_nop
7671 if test -n "$DSYMUTIL"; then
7672 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7673 else
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 for as_dir in $PATH
7676 do
7677 IFS=$as_save_IFS
7678 case $as_dir in #(((
7679 '') as_dir=./ ;;
7680 */) ;;
7681 *) as_dir=$as_dir/ ;;
7682 esac
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7687 break 2
7688 fi
7689 done
7690 done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7696 if test -n "$DSYMUTIL"; then
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7698 printf "%s\n" "$DSYMUTIL" >&6; }
7699 else
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 printf "%s\n" "no" >&6; }
7702 fi
7703
7704
7705 fi
7706 if test -z "$ac_cv_prog_DSYMUTIL"; then
7707 ac_ct_DSYMUTIL=$DSYMUTIL
7708 # Extract the first word of "dsymutil", so it can be a program name with args.
7709 set dummy dsymutil; ac_word=$2
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 printf %s "checking for $ac_word... " >&6; }
7712 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7713 then :
7714 printf %s "(cached) " >&6
7715 else $as_nop
7716 if test -n "$ac_ct_DSYMUTIL"; then
7717 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 case $as_dir in #(((
7724 '') as_dir=./ ;;
7725 */) ;;
7726 *) as_dir=$as_dir/ ;;
7727 esac
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7732 break 2
7733 fi
7734 done
7735 done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7741 if test -n "$ac_ct_DSYMUTIL"; then
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7743 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7744 else
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 printf "%s\n" "no" >&6; }
7747 fi
7748
7749 if test "x$ac_ct_DSYMUTIL" = x; then
7750 DSYMUTIL=":"
7751 else
7752 case $cross_compiling:$ac_tool_warned in
7753 yes:)
7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756 ac_tool_warned=yes ;;
7757 esac
7758 DSYMUTIL=$ac_ct_DSYMUTIL
7759 fi
7760 else
7761 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7762 fi
7763
7764 if test -n "$ac_tool_prefix"; then
7765 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7766 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 printf %s "checking for $ac_word... " >&6; }
7769 if test ${ac_cv_prog_NMEDIT+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else $as_nop
7773 if test -n "$NMEDIT"; then
7774 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779 IFS=$as_save_IFS
7780 case $as_dir in #(((
7781 '') as_dir=./ ;;
7782 */) ;;
7783 *) as_dir=$as_dir/ ;;
7784 esac
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7787 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 NMEDIT=$ac_cv_prog_NMEDIT
7798 if test -n "$NMEDIT"; then
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7800 printf "%s\n" "$NMEDIT" >&6; }
7801 else
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 printf "%s\n" "no" >&6; }
7804 fi
7805
7806
7807 fi
7808 if test -z "$ac_cv_prog_NMEDIT"; then
7809 ac_ct_NMEDIT=$NMEDIT
7810 # Extract the first word of "nmedit", so it can be a program name with args.
7811 set dummy nmedit; ac_word=$2
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 printf %s "checking for $ac_word... " >&6; }
7814 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7815 then :
7816 printf %s "(cached) " >&6
7817 else $as_nop
7818 if test -n "$ac_ct_NMEDIT"; then
7819 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824 IFS=$as_save_IFS
7825 case $as_dir in #(((
7826 '') as_dir=./ ;;
7827 */) ;;
7828 *) as_dir=$as_dir/ ;;
7829 esac
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7832 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7834 break 2
7835 fi
7836 done
7837 done
7838 IFS=$as_save_IFS
7839
7840 fi
7841 fi
7842 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7843 if test -n "$ac_ct_NMEDIT"; then
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7845 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7846 else
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 printf "%s\n" "no" >&6; }
7849 fi
7850
7851 if test "x$ac_ct_NMEDIT" = x; then
7852 NMEDIT=":"
7853 else
7854 case $cross_compiling:$ac_tool_warned in
7855 yes:)
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7858 ac_tool_warned=yes ;;
7859 esac
7860 NMEDIT=$ac_ct_NMEDIT
7861 fi
7862 else
7863 NMEDIT="$ac_cv_prog_NMEDIT"
7864 fi
7865
7866 if test -n "$ac_tool_prefix"; then
7867 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7868 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 printf %s "checking for $ac_word... " >&6; }
7871 if test ${ac_cv_prog_LIPO+y}
7872 then :
7873 printf %s "(cached) " >&6
7874 else $as_nop
7875 if test -n "$LIPO"; then
7876 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7877 else
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7880 do
7881 IFS=$as_save_IFS
7882 case $as_dir in #(((
7883 '') as_dir=./ ;;
7884 */) ;;
7885 *) as_dir=$as_dir/ ;;
7886 esac
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 LIPO=$ac_cv_prog_LIPO
7900 if test -n "$LIPO"; then
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7902 printf "%s\n" "$LIPO" >&6; }
7903 else
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 printf "%s\n" "no" >&6; }
7906 fi
7907
7908
7909 fi
7910 if test -z "$ac_cv_prog_LIPO"; then
7911 ac_ct_LIPO=$LIPO
7912 # Extract the first word of "lipo", so it can be a program name with args.
7913 set dummy lipo; ac_word=$2
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 printf %s "checking for $ac_word... " >&6; }
7916 if test ${ac_cv_prog_ac_ct_LIPO+y}
7917 then :
7918 printf %s "(cached) " >&6
7919 else $as_nop
7920 if test -n "$ac_ct_LIPO"; then
7921 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7922 else
7923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 for as_dir in $PATH
7925 do
7926 IFS=$as_save_IFS
7927 case $as_dir in #(((
7928 '') as_dir=./ ;;
7929 */) ;;
7930 *) as_dir=$as_dir/ ;;
7931 esac
7932 for ac_exec_ext in '' $ac_executable_extensions; do
7933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7934 ac_cv_prog_ac_ct_LIPO="lipo"
7935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7936 break 2
7937 fi
7938 done
7939 done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7945 if test -n "$ac_ct_LIPO"; then
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7947 printf "%s\n" "$ac_ct_LIPO" >&6; }
7948 else
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 printf "%s\n" "no" >&6; }
7951 fi
7952
7953 if test "x$ac_ct_LIPO" = x; then
7954 LIPO=":"
7955 else
7956 case $cross_compiling:$ac_tool_warned in
7957 yes:)
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7959 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7960 ac_tool_warned=yes ;;
7961 esac
7962 LIPO=$ac_ct_LIPO
7963 fi
7964 else
7965 LIPO="$ac_cv_prog_LIPO"
7966 fi
7967
7968 if test -n "$ac_tool_prefix"; then
7969 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7970 set dummy ${ac_tool_prefix}otool; ac_word=$2
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7972 printf %s "checking for $ac_word... " >&6; }
7973 if test ${ac_cv_prog_OTOOL+y}
7974 then :
7975 printf %s "(cached) " >&6
7976 else $as_nop
7977 if test -n "$OTOOL"; then
7978 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983 IFS=$as_save_IFS
7984 case $as_dir in #(((
7985 '') as_dir=./ ;;
7986 */) ;;
7987 *) as_dir=$as_dir/ ;;
7988 esac
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995 done
7996 done
7997 IFS=$as_save_IFS
7998
7999 fi
8000 fi
8001 OTOOL=$ac_cv_prog_OTOOL
8002 if test -n "$OTOOL"; then
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8004 printf "%s\n" "$OTOOL" >&6; }
8005 else
8006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 printf "%s\n" "no" >&6; }
8008 fi
8009
8010
8011 fi
8012 if test -z "$ac_cv_prog_OTOOL"; then
8013 ac_ct_OTOOL=$OTOOL
8014 # Extract the first word of "otool", so it can be a program name with args.
8015 set dummy otool; ac_word=$2
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 printf %s "checking for $ac_word... " >&6; }
8018 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8019 then :
8020 printf %s "(cached) " >&6
8021 else $as_nop
8022 if test -n "$ac_ct_OTOOL"; then
8023 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 case $as_dir in #(((
8030 '') as_dir=./ ;;
8031 */) ;;
8032 *) as_dir=$as_dir/ ;;
8033 esac
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_ac_ct_OTOOL="otool"
8037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8047 if test -n "$ac_ct_OTOOL"; then
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8049 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8050 else
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 printf "%s\n" "no" >&6; }
8053 fi
8054
8055 if test "x$ac_ct_OTOOL" = x; then
8056 OTOOL=":"
8057 else
8058 case $cross_compiling:$ac_tool_warned in
8059 yes:)
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062 ac_tool_warned=yes ;;
8063 esac
8064 OTOOL=$ac_ct_OTOOL
8065 fi
8066 else
8067 OTOOL="$ac_cv_prog_OTOOL"
8068 fi
8069
8070 if test -n "$ac_tool_prefix"; then
8071 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8072 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 printf %s "checking for $ac_word... " >&6; }
8075 if test ${ac_cv_prog_OTOOL64+y}
8076 then :
8077 printf %s "(cached) " >&6
8078 else $as_nop
8079 if test -n "$OTOOL64"; then
8080 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8081 else
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083 for as_dir in $PATH
8084 do
8085 IFS=$as_save_IFS
8086 case $as_dir in #(((
8087 '') as_dir=./ ;;
8088 */) ;;
8089 *) as_dir=$as_dir/ ;;
8090 esac
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8095 break 2
8096 fi
8097 done
8098 done
8099 IFS=$as_save_IFS
8100
8101 fi
8102 fi
8103 OTOOL64=$ac_cv_prog_OTOOL64
8104 if test -n "$OTOOL64"; then
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8106 printf "%s\n" "$OTOOL64" >&6; }
8107 else
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 printf "%s\n" "no" >&6; }
8110 fi
8111
8112
8113 fi
8114 if test -z "$ac_cv_prog_OTOOL64"; then
8115 ac_ct_OTOOL64=$OTOOL64
8116 # Extract the first word of "otool64", so it can be a program name with args.
8117 set dummy otool64; ac_word=$2
8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 printf %s "checking for $ac_word... " >&6; }
8120 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8121 then :
8122 printf %s "(cached) " >&6
8123 else $as_nop
8124 if test -n "$ac_ct_OTOOL64"; then
8125 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8126 else
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 for as_dir in $PATH
8129 do
8130 IFS=$as_save_IFS
8131 case $as_dir in #(((
8132 '') as_dir=./ ;;
8133 */) ;;
8134 *) as_dir=$as_dir/ ;;
8135 esac
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_ac_ct_OTOOL64="otool64"
8139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8140 break 2
8141 fi
8142 done
8143 done
8144 IFS=$as_save_IFS
8145
8146 fi
8147 fi
8148 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8149 if test -n "$ac_ct_OTOOL64"; then
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8151 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8152 else
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 printf "%s\n" "no" >&6; }
8155 fi
8156
8157 if test "x$ac_ct_OTOOL64" = x; then
8158 OTOOL64=":"
8159 else
8160 case $cross_compiling:$ac_tool_warned in
8161 yes:)
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8165 esac
8166 OTOOL64=$ac_ct_OTOOL64
8167 fi
8168 else
8169 OTOOL64="$ac_cv_prog_OTOOL64"
8170 fi
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8199 printf %s "checking for -single_module linker flag... " >&6; }
8200 if test ${lt_cv_apple_cc_single_mod+y}
8201 then :
8202 printf %s "(cached) " >&6
8203 else $as_nop
8204 lt_cv_apple_cc_single_mod=no
8205 if test -z "$LT_MULTI_MODULE"; then
8206 # By default we will add the -single_module flag. You can override
8207 # by either setting the environment variable LT_MULTI_MODULE
8208 # non-empty at configure time, or by adding -multi_module to the
8209 # link flags.
8210 rm -rf libconftest.dylib*
8211 echo "int foo(void){return 1;}" > conftest.c
8212 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8213 -dynamiclib -Wl,-single_module conftest.c" >&5
8214 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8215 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8216 _lt_result=$?
8217 # If there is a non-empty error log, and "single_module"
8218 # appears in it, assume the flag caused a linker warning
8219 if test -s conftest.err && $GREP single_module conftest.err; then
8220 cat conftest.err >&5
8221 # Otherwise, if the output was created with a 0 exit code from
8222 # the compiler, it worked.
8223 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8224 lt_cv_apple_cc_single_mod=yes
8225 else
8226 cat conftest.err >&5
8227 fi
8228 rm -rf libconftest.dylib*
8229 rm -f conftest.*
8230 fi
8231 fi
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8233 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8234
8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8236 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8237 if test ${lt_cv_ld_exported_symbols_list+y}
8238 then :
8239 printf %s "(cached) " >&6
8240 else $as_nop
8241 lt_cv_ld_exported_symbols_list=no
8242 save_LDFLAGS=$LDFLAGS
8243 echo "_main" > conftest.sym
8244 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8247
8248 int
8249 main (void)
8250 {
8251
8252 ;
8253 return 0;
8254 }
8255 _ACEOF
8256 if ac_fn_c_try_link "$LINENO"
8257 then :
8258 lt_cv_ld_exported_symbols_list=yes
8259 else $as_nop
8260 lt_cv_ld_exported_symbols_list=no
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8263 conftest$ac_exeext conftest.$ac_ext
8264 LDFLAGS=$save_LDFLAGS
8265
8266 fi
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8268 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8269
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8271 printf %s "checking for -force_load linker flag... " >&6; }
8272 if test ${lt_cv_ld_force_load+y}
8273 then :
8274 printf %s "(cached) " >&6
8275 else $as_nop
8276 lt_cv_ld_force_load=no
8277 cat > conftest.c << _LT_EOF
8278 int forced_loaded() { return 2;}
8279 _LT_EOF
8280 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8281 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8282 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8283 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8284 echo "$RANLIB libconftest.a" >&5
8285 $RANLIB libconftest.a 2>&5
8286 cat > conftest.c << _LT_EOF
8287 int main() { return 0;}
8288 _LT_EOF
8289 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8290 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8291 _lt_result=$?
8292 if test -s conftest.err && $GREP force_load conftest.err; then
8293 cat conftest.err >&5
8294 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8295 lt_cv_ld_force_load=yes
8296 else
8297 cat conftest.err >&5
8298 fi
8299 rm -f conftest.err libconftest.a conftest conftest.c
8300 rm -rf conftest.dSYM
8301
8302 fi
8303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8304 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8305 case $host_os in
8306 rhapsody* | darwin1.[012])
8307 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8308 darwin1.*)
8309 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8310 darwin*)
8311 case $MACOSX_DEPLOYMENT_TARGET,$host in
8312 10.[012],*|,*powerpc*-darwin[5-8]*)
8313 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8314 *)
8315 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8316 esac
8317 ;;
8318 esac
8319 if test yes = "$lt_cv_apple_cc_single_mod"; then
8320 _lt_dar_single_mod='$single_module'
8321 fi
8322 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8323 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8324 else
8325 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8326 fi
8327 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8328 _lt_dsymutil='~$DSYMUTIL $lib || :'
8329 else
8330 _lt_dsymutil=
8331 fi
8332 ;;
8333 esac
8334
8335 # func_munge_path_list VARIABLE PATH
8336 # -----------------------------------
8337 # VARIABLE is name of variable containing _space_ separated list of
8338 # directories to be munged by the contents of PATH, which is string
8339 # having a format:
8340 # "DIR[:DIR]:"
8341 # string "DIR[ DIR]" will be prepended to VARIABLE
8342 # ":DIR[:DIR]"
8343 # string "DIR[ DIR]" will be appended to VARIABLE
8344 # "DIRP[:DIRP]::[DIRA:]DIRA"
8345 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8346 # "DIRA[ DIRA]" will be appended to VARIABLE
8347 # "DIR[:DIR]"
8348 # VARIABLE will be replaced by "DIR[ DIR]"
8349 func_munge_path_list ()
8350 {
8351 case x$2 in
8352 x)
8353 ;;
8354 *:)
8355 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8356 ;;
8357 x:*)
8358 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8359 ;;
8360 *::*)
8361 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8362 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8363 ;;
8364 *)
8365 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8366 ;;
8367 esac
8368 }
8369
8370 ac_header= ac_cache=
8371 for ac_item in $ac_header_c_list
8372 do
8373 if test $ac_cache; then
8374 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8375 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8376 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8377 fi
8378 ac_header= ac_cache=
8379 elif test $ac_header; then
8380 ac_cache=$ac_item
8381 else
8382 ac_header=$ac_item
8383 fi
8384 done
8385
8386
8387
8388
8389
8390
8391
8392
8393 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8394 then :
8395
8396 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8397
8398 fi
8399 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8400 "
8401 if test "x$ac_cv_header_dlfcn_h" = xyes
8402 then :
8403 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8404
8405 fi
8406
8407
8408
8409
8410
8411 # Set options
8412
8413
8414
8415 enable_dlopen=no
8416
8417
8418 enable_win32_dll=no
8419
8420
8421 # Check whether --enable-shared was given.
8422 if test ${enable_shared+y}
8423 then :
8424 enableval=$enable_shared; p=${PACKAGE-default}
8425 case $enableval in
8426 yes) enable_shared=yes ;;
8427 no) enable_shared=no ;;
8428 *)
8429 enable_shared=no
8430 # Look at the argument we got. We use all the common list separators.
8431 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8432 for pkg in $enableval; do
8433 IFS=$lt_save_ifs
8434 if test "X$pkg" = "X$p"; then
8435 enable_shared=yes
8436 fi
8437 done
8438 IFS=$lt_save_ifs
8439 ;;
8440 esac
8441 else $as_nop
8442 enable_shared=yes
8443 fi
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453 # Check whether --enable-static was given.
8454 if test ${enable_static+y}
8455 then :
8456 enableval=$enable_static; p=${PACKAGE-default}
8457 case $enableval in
8458 yes) enable_static=yes ;;
8459 no) enable_static=no ;;
8460 *)
8461 enable_static=no
8462 # Look at the argument we got. We use all the common list separators.
8463 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8464 for pkg in $enableval; do
8465 IFS=$lt_save_ifs
8466 if test "X$pkg" = "X$p"; then
8467 enable_static=yes
8468 fi
8469 done
8470 IFS=$lt_save_ifs
8471 ;;
8472 esac
8473 else $as_nop
8474 enable_static=yes
8475 fi
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486 # Check whether --with-pic was given.
8487 if test ${with_pic+y}
8488 then :
8489 withval=$with_pic; lt_p=${PACKAGE-default}
8490 case $withval in
8491 yes|no) pic_mode=$withval ;;
8492 *)
8493 pic_mode=default
8494 # Look at the argument we got. We use all the common list separators.
8495 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8496 for lt_pkg in $withval; do
8497 IFS=$lt_save_ifs
8498 if test "X$lt_pkg" = "X$lt_p"; then
8499 pic_mode=yes
8500 fi
8501 done
8502 IFS=$lt_save_ifs
8503 ;;
8504 esac
8505 else $as_nop
8506 pic_mode=default
8507 fi
8508
8509
8510
8511
8512
8513
8514
8515
8516 # Check whether --enable-fast-install was given.
8517 if test ${enable_fast_install+y}
8518 then :
8519 enableval=$enable_fast_install; p=${PACKAGE-default}
8520 case $enableval in
8521 yes) enable_fast_install=yes ;;
8522 no) enable_fast_install=no ;;
8523 *)
8524 enable_fast_install=no
8525 # Look at the argument we got. We use all the common list separators.
8526 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8527 for pkg in $enableval; do
8528 IFS=$lt_save_ifs
8529 if test "X$pkg" = "X$p"; then
8530 enable_fast_install=yes
8531 fi
8532 done
8533 IFS=$lt_save_ifs
8534 ;;
8535 esac
8536 else $as_nop
8537 enable_fast_install=yes
8538 fi
8539
8540
8541
8542
8543
8544
8545
8546
8547 shared_archive_member_spec=
8548 case $host,$enable_shared in
8549 power*-*-aix[5-9]*,yes)
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8551 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8552
8553 # Check whether --with-aix-soname was given.
8554 if test ${with_aix_soname+y}
8555 then :
8556 withval=$with_aix_soname; case $withval in
8557 aix|svr4|both)
8558 ;;
8559 *)
8560 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8561 ;;
8562 esac
8563 lt_cv_with_aix_soname=$with_aix_soname
8564 else $as_nop
8565 if test ${lt_cv_with_aix_soname+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else $as_nop
8569 lt_cv_with_aix_soname=aix
8570 fi
8571
8572 with_aix_soname=$lt_cv_with_aix_soname
8573 fi
8574
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8576 printf "%s\n" "$with_aix_soname" >&6; }
8577 if test aix != "$with_aix_soname"; then
8578 # For the AIX way of multilib, we name the shared archive member
8579 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8580 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8581 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8582 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8583 if test 64 = "${OBJECT_MODE-32}"; then
8584 shared_archive_member_spec=shr_64
8585 else
8586 shared_archive_member_spec=shr
8587 fi
8588 fi
8589 ;;
8590 *)
8591 with_aix_soname=aix
8592 ;;
8593 esac
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604 # This can be used to rebuild libtool when needed
8605 LIBTOOL_DEPS=$ltmain
8606
8607 # Always use our own libtool.
8608 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639 test -z "$LN_S" && LN_S="ln -s"
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654 if test -n "${ZSH_VERSION+set}"; then
8655 setopt NO_GLOB_SUBST
8656 fi
8657
8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8659 printf %s "checking for objdir... " >&6; }
8660 if test ${lt_cv_objdir+y}
8661 then :
8662 printf %s "(cached) " >&6
8663 else $as_nop
8664 rm -f .libs 2>/dev/null
8665 mkdir .libs 2>/dev/null
8666 if test -d .libs; then
8667 lt_cv_objdir=.libs
8668 else
8669 # MS-DOS does not allow filenames that begin with a dot.
8670 lt_cv_objdir=_libs
8671 fi
8672 rmdir .libs 2>/dev/null
8673 fi
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8675 printf "%s\n" "$lt_cv_objdir" >&6; }
8676 objdir=$lt_cv_objdir
8677
8678
8679
8680
8681
8682 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8683
8684
8685
8686
8687 case $host_os in
8688 aix3*)
8689 # AIX sometimes has problems with the GCC collect2 program. For some
8690 # reason, if we set the COLLECT_NAMES environment variable, the problems
8691 # vanish in a puff of smoke.
8692 if test set != "${COLLECT_NAMES+set}"; then
8693 COLLECT_NAMES=
8694 export COLLECT_NAMES
8695 fi
8696 ;;
8697 esac
8698
8699 # Global variables:
8700 ofile=libtool
8701 can_build_shared=yes
8702
8703 # All known linkers require a '.a' archive for static linking (except MSVC and
8704 # ICC, which need '.lib').
8705 libext=a
8706
8707 with_gnu_ld=$lt_cv_prog_gnu_ld
8708
8709 old_CC=$CC
8710 old_CFLAGS=$CFLAGS
8711
8712 # Set sane defaults for various variables
8713 test -z "$CC" && CC=cc
8714 test -z "$LTCC" && LTCC=$CC
8715 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8716 test -z "$LD" && LD=ld
8717 test -z "$ac_objext" && ac_objext=o
8718
8719 func_cc_basename $compiler
8720 cc_basename=$func_cc_basename_result
8721
8722
8723 # Only perform the check for file, if the check method requires it
8724 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8725 case $deplibs_check_method in
8726 file_magic*)
8727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8729 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8730 if test ${lt_cv_path_MAGIC_CMD+y}
8731 then :
8732 printf %s "(cached) " >&6
8733 else $as_nop
8734 case $MAGIC_CMD in
8735 [\\/*] | ?:[\\/]*)
8736 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8737 ;;
8738 *)
8739 lt_save_MAGIC_CMD=$MAGIC_CMD
8740 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8741 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8742 for ac_dir in $ac_dummy; do
8743 IFS=$lt_save_ifs
8744 test -z "$ac_dir" && ac_dir=.
8745 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8746 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8747 if test -n "$file_magic_test_file"; then
8748 case $deplibs_check_method in
8749 "file_magic "*)
8750 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8751 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8752 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8753 $EGREP "$file_magic_regex" > /dev/null; then
8754 :
8755 else
8756 cat <<_LT_EOF 1>&2
8757
8758 *** Warning: the command libtool uses to detect shared libraries,
8759 *** $file_magic_cmd, produces output that libtool cannot recognize.
8760 *** The result is that libtool may fail to recognize shared libraries
8761 *** as such. This will affect the creation of libtool libraries that
8762 *** depend on shared libraries, but programs linked with such libtool
8763 *** libraries will work regardless of this problem. Nevertheless, you
8764 *** may want to report the problem to your system manager and/or to
8765 *** [email protected]
8766
8767 _LT_EOF
8768 fi ;;
8769 esac
8770 fi
8771 break
8772 fi
8773 done
8774 IFS=$lt_save_ifs
8775 MAGIC_CMD=$lt_save_MAGIC_CMD
8776 ;;
8777 esac
8778 fi
8779
8780 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8781 if test -n "$MAGIC_CMD"; then
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8783 printf "%s\n" "$MAGIC_CMD" >&6; }
8784 else
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786 printf "%s\n" "no" >&6; }
8787 fi
8788
8789
8790
8791
8792
8793 if test -z "$lt_cv_path_MAGIC_CMD"; then
8794 if test -n "$ac_tool_prefix"; then
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8796 printf %s "checking for file... " >&6; }
8797 if test ${lt_cv_path_MAGIC_CMD+y}
8798 then :
8799 printf %s "(cached) " >&6
8800 else $as_nop
8801 case $MAGIC_CMD in
8802 [\\/*] | ?:[\\/]*)
8803 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8804 ;;
8805 *)
8806 lt_save_MAGIC_CMD=$MAGIC_CMD
8807 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8809 for ac_dir in $ac_dummy; do
8810 IFS=$lt_save_ifs
8811 test -z "$ac_dir" && ac_dir=.
8812 if test -f "$ac_dir/file"; then
8813 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8814 if test -n "$file_magic_test_file"; then
8815 case $deplibs_check_method in
8816 "file_magic "*)
8817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8818 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8820 $EGREP "$file_magic_regex" > /dev/null; then
8821 :
8822 else
8823 cat <<_LT_EOF 1>&2
8824
8825 *** Warning: the command libtool uses to detect shared libraries,
8826 *** $file_magic_cmd, produces output that libtool cannot recognize.
8827 *** The result is that libtool may fail to recognize shared libraries
8828 *** as such. This will affect the creation of libtool libraries that
8829 *** depend on shared libraries, but programs linked with such libtool
8830 *** libraries will work regardless of this problem. Nevertheless, you
8831 *** may want to report the problem to your system manager and/or to
8832 *** [email protected]
8833
8834 _LT_EOF
8835 fi ;;
8836 esac
8837 fi
8838 break
8839 fi
8840 done
8841 IFS=$lt_save_ifs
8842 MAGIC_CMD=$lt_save_MAGIC_CMD
8843 ;;
8844 esac
8845 fi
8846
8847 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8848 if test -n "$MAGIC_CMD"; then
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8850 printf "%s\n" "$MAGIC_CMD" >&6; }
8851 else
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 printf "%s\n" "no" >&6; }
8854 fi
8855
8856
8857 else
8858 MAGIC_CMD=:
8859 fi
8860 fi
8861
8862 fi
8863 ;;
8864 esac
8865
8866 # Use C for the default configuration in the libtool script
8867
8868 lt_save_CC=$CC
8869 ac_ext=c
8870 ac_cpp='$CPP $CPPFLAGS'
8871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8874
8875
8876 # Source file extension for C test sources.
8877 ac_ext=c
8878
8879 # Object file extension for compiled C test sources.
8880 objext=o
8881 objext=$objext
8882
8883 # Code to be used in simple compile tests
8884 lt_simple_compile_test_code="int some_variable = 0;"
8885
8886 # Code to be used in simple link tests
8887 lt_simple_link_test_code='int main(){return(0);}'
8888
8889
8890
8891
8892
8893
8894
8895 # If no C compiler was specified, use CC.
8896 LTCC=${LTCC-"$CC"}
8897
8898 # If no C compiler flags were specified, use CFLAGS.
8899 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8900
8901 # Allow CC to be a program name with arguments.
8902 compiler=$CC
8903
8904 # Save the default compiler, since it gets overwritten when the other
8905 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8906 compiler_DEFAULT=$CC
8907
8908 # save warnings/boilerplate of simple test code
8909 ac_outfile=conftest.$ac_objext
8910 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8911 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8912 _lt_compiler_boilerplate=`cat conftest.err`
8913 $RM conftest*
8914
8915 ac_outfile=conftest.$ac_objext
8916 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8917 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8918 _lt_linker_boilerplate=`cat conftest.err`
8919 $RM -r conftest*
8920
8921
8922 if test -n "$compiler"; then
8923
8924 lt_prog_compiler_no_builtin_flag=
8925
8926 if test yes = "$GCC"; then
8927 case $cc_basename in
8928 nvcc*)
8929 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8930 *)
8931 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8932 esac
8933
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8935 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8936 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8937 then :
8938 printf %s "(cached) " >&6
8939 else $as_nop
8940 lt_cv_prog_compiler_rtti_exceptions=no
8941 ac_outfile=conftest.$ac_objext
8942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8943 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8944 # Insert the option either (1) after the last *FLAGS variable, or
8945 # (2) before a word containing "conftest.", or (3) at the end.
8946 # Note that $ac_compile itself does not contain backslashes and begins
8947 # with a dollar sign (not a hyphen), so the echo should work correctly.
8948 # The option is referenced via a variable to avoid confusing sed.
8949 lt_compile=`echo "$ac_compile" | $SED \
8950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8952 -e 's:$: $lt_compiler_flag:'`
8953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8954 (eval "$lt_compile" 2>conftest.err)
8955 ac_status=$?
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 if (exit $ac_status) && test -s "$ac_outfile"; then
8959 # The compiler can only warn and ignore the option if not recognized
8960 # So say no if there are warnings other than the usual output.
8961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8964 lt_cv_prog_compiler_rtti_exceptions=yes
8965 fi
8966 fi
8967 $RM conftest*
8968
8969 fi
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8971 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8972
8973 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8974 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8975 else
8976 :
8977 fi
8978
8979 fi
8980
8981
8982
8983
8984
8985
8986 lt_prog_compiler_wl=
8987 lt_prog_compiler_pic=
8988 lt_prog_compiler_static=
8989
8990
8991 if test yes = "$GCC"; then
8992 lt_prog_compiler_wl='-Wl,'
8993 lt_prog_compiler_static='-static'
8994
8995 case $host_os in
8996 aix*)
8997 # All AIX code is PIC.
8998 if test ia64 = "$host_cpu"; then
8999 # AIX 5 now supports IA64 processor
9000 lt_prog_compiler_static='-Bstatic'
9001 fi
9002 lt_prog_compiler_pic='-fPIC'
9003 ;;
9004
9005 amigaos*)
9006 case $host_cpu in
9007 powerpc)
9008 # see comment about AmigaOS4 .so support
9009 lt_prog_compiler_pic='-fPIC'
9010 ;;
9011 m68k)
9012 # FIXME: we need at least 68020 code to build shared libraries, but
9013 # adding the '-m68020' flag to GCC prevents building anything better,
9014 # like '-m68040'.
9015 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9016 ;;
9017 esac
9018 ;;
9019
9020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9021 # PIC is the default for these OSes.
9022 ;;
9023
9024 mingw* | cygwin* | pw32* | os2* | cegcc*)
9025 # This hack is so that the source file can tell whether it is being
9026 # built for inclusion in a dll (and should export symbols for example).
9027 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9028 # (--disable-auto-import) libraries
9029 lt_prog_compiler_pic='-DDLL_EXPORT'
9030 case $host_os in
9031 os2*)
9032 lt_prog_compiler_static='$wl-static'
9033 ;;
9034 esac
9035 ;;
9036
9037 darwin* | rhapsody*)
9038 # PIC is the default on this platform
9039 # Common symbols not allowed in MH_DYLIB files
9040 lt_prog_compiler_pic='-fno-common'
9041 ;;
9042
9043 haiku*)
9044 # PIC is the default for Haiku.
9045 # The "-static" flag exists, but is broken.
9046 lt_prog_compiler_static=
9047 ;;
9048
9049 hpux*)
9050 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9051 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9052 # sets the default TLS model and affects inlining.
9053 case $host_cpu in
9054 hppa*64*)
9055 # +Z the default
9056 ;;
9057 *)
9058 lt_prog_compiler_pic='-fPIC'
9059 ;;
9060 esac
9061 ;;
9062
9063 interix[3-9]*)
9064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9065 # Instead, we relocate shared libraries at runtime.
9066 ;;
9067
9068 msdosdjgpp*)
9069 # Just because we use GCC doesn't mean we suddenly get shared libraries
9070 # on systems that don't support them.
9071 lt_prog_compiler_can_build_shared=no
9072 enable_shared=no
9073 ;;
9074
9075 *nto* | *qnx*)
9076 # QNX uses GNU C++, but need to define -shared option too, otherwise
9077 # it will coredump.
9078 lt_prog_compiler_pic='-fPIC -shared'
9079 ;;
9080
9081 sysv4*MP*)
9082 if test -d /usr/nec; then
9083 lt_prog_compiler_pic=-Kconform_pic
9084 fi
9085 ;;
9086
9087 *)
9088 lt_prog_compiler_pic='-fPIC'
9089 ;;
9090 esac
9091
9092 case $cc_basename in
9093 nvcc*) # Cuda Compiler Driver 2.2
9094 lt_prog_compiler_wl='-Xlinker '
9095 if test -n "$lt_prog_compiler_pic"; then
9096 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9097 fi
9098 ;;
9099 esac
9100 else
9101 # PORTME Check for flag to pass linker flags through the system compiler.
9102 case $host_os in
9103 aix*)
9104 lt_prog_compiler_wl='-Wl,'
9105 if test ia64 = "$host_cpu"; then
9106 # AIX 5 now supports IA64 processor
9107 lt_prog_compiler_static='-Bstatic'
9108 else
9109 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9110 fi
9111 ;;
9112
9113 darwin* | rhapsody*)
9114 # PIC is the default on this platform
9115 # Common symbols not allowed in MH_DYLIB files
9116 lt_prog_compiler_pic='-fno-common'
9117 case $cc_basename in
9118 nagfor*)
9119 # NAG Fortran compiler
9120 lt_prog_compiler_wl='-Wl,-Wl,,'
9121 lt_prog_compiler_pic='-PIC'
9122 lt_prog_compiler_static='-Bstatic'
9123 ;;
9124 esac
9125 ;;
9126
9127 mingw* | cygwin* | pw32* | os2* | cegcc*)
9128 # This hack is so that the source file can tell whether it is being
9129 # built for inclusion in a dll (and should export symbols for example).
9130 lt_prog_compiler_pic='-DDLL_EXPORT'
9131 case $host_os in
9132 os2*)
9133 lt_prog_compiler_static='$wl-static'
9134 ;;
9135 esac
9136 ;;
9137
9138 hpux9* | hpux10* | hpux11*)
9139 lt_prog_compiler_wl='-Wl,'
9140 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9141 # not for PA HP-UX.
9142 case $host_cpu in
9143 hppa*64*|ia64*)
9144 # +Z the default
9145 ;;
9146 *)
9147 lt_prog_compiler_pic='+Z'
9148 ;;
9149 esac
9150 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9151 lt_prog_compiler_static='$wl-a ${wl}archive'
9152 ;;
9153
9154 irix5* | irix6* | nonstopux*)
9155 lt_prog_compiler_wl='-Wl,'
9156 # PIC (with -KPIC) is the default.
9157 lt_prog_compiler_static='-non_shared'
9158 ;;
9159
9160 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9161 case $cc_basename in
9162 # old Intel for x86_64, which still supported -KPIC.
9163 ecc*)
9164 lt_prog_compiler_wl='-Wl,'
9165 lt_prog_compiler_pic='-KPIC'
9166 lt_prog_compiler_static='-static'
9167 ;;
9168 # flang / f18. f95 an alias for gfortran or flang on Debian
9169 flang* | f18* | f95*)
9170 lt_prog_compiler_wl='-Wl,'
9171 lt_prog_compiler_pic='-fPIC'
9172 lt_prog_compiler_static='-static'
9173 ;;
9174 # icc used to be incompatible with GCC.
9175 # ICC 10 doesn't accept -KPIC any more.
9176 icc* | ifort*)
9177 lt_prog_compiler_wl='-Wl,'
9178 lt_prog_compiler_pic='-fPIC'
9179 lt_prog_compiler_static='-static'
9180 ;;
9181 # Lahey Fortran 8.1.
9182 lf95*)
9183 lt_prog_compiler_wl='-Wl,'
9184 lt_prog_compiler_pic='--shared'
9185 lt_prog_compiler_static='--static'
9186 ;;
9187 nagfor*)
9188 # NAG Fortran compiler
9189 lt_prog_compiler_wl='-Wl,-Wl,,'
9190 lt_prog_compiler_pic='-PIC'
9191 lt_prog_compiler_static='-Bstatic'
9192 ;;
9193 tcc*)
9194 # Fabrice Bellard et al's Tiny C Compiler
9195 lt_prog_compiler_wl='-Wl,'
9196 lt_prog_compiler_pic='-fPIC'
9197 lt_prog_compiler_static='-static'
9198 ;;
9199 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9200 # Portland Group compilers (*not* the Pentium gcc compiler,
9201 # which looks to be a dead project)
9202 lt_prog_compiler_wl='-Wl,'
9203 lt_prog_compiler_pic='-fpic'
9204 lt_prog_compiler_static='-Bstatic'
9205 ;;
9206 ccc*)
9207 lt_prog_compiler_wl='-Wl,'
9208 # All Alpha code is PIC.
9209 lt_prog_compiler_static='-non_shared'
9210 ;;
9211 xl* | bgxl* | bgf* | mpixl*)
9212 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9213 lt_prog_compiler_wl='-Wl,'
9214 lt_prog_compiler_pic='-qpic'
9215 lt_prog_compiler_static='-qstaticlink'
9216 ;;
9217 *)
9218 case `$CC -V 2>&1 | $SED 5q` in
9219 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9220 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9221 lt_prog_compiler_pic='-KPIC'
9222 lt_prog_compiler_static='-Bstatic'
9223 lt_prog_compiler_wl=''
9224 ;;
9225 *Sun\ F* | *Sun*Fortran*)
9226 lt_prog_compiler_pic='-KPIC'
9227 lt_prog_compiler_static='-Bstatic'
9228 lt_prog_compiler_wl='-Qoption ld '
9229 ;;
9230 *Sun\ C*)
9231 # Sun C 5.9
9232 lt_prog_compiler_pic='-KPIC'
9233 lt_prog_compiler_static='-Bstatic'
9234 lt_prog_compiler_wl='-Wl,'
9235 ;;
9236 *Intel*\ [CF]*Compiler*)
9237 lt_prog_compiler_wl='-Wl,'
9238 lt_prog_compiler_pic='-fPIC'
9239 lt_prog_compiler_static='-static'
9240 ;;
9241 *Portland\ Group*)
9242 lt_prog_compiler_wl='-Wl,'
9243 lt_prog_compiler_pic='-fpic'
9244 lt_prog_compiler_static='-Bstatic'
9245 ;;
9246 esac
9247 ;;
9248 esac
9249 ;;
9250
9251 newsos6)
9252 lt_prog_compiler_pic='-KPIC'
9253 lt_prog_compiler_static='-Bstatic'
9254 ;;
9255
9256 *nto* | *qnx*)
9257 # QNX uses GNU C++, but need to define -shared option too, otherwise
9258 # it will coredump.
9259 lt_prog_compiler_pic='-fPIC -shared'
9260 ;;
9261
9262 osf3* | osf4* | osf5*)
9263 lt_prog_compiler_wl='-Wl,'
9264 # All OSF/1 code is PIC.
9265 lt_prog_compiler_static='-non_shared'
9266 ;;
9267
9268 rdos*)
9269 lt_prog_compiler_static='-non_shared'
9270 ;;
9271
9272 solaris*)
9273 lt_prog_compiler_pic='-KPIC'
9274 lt_prog_compiler_static='-Bstatic'
9275 case $cc_basename in
9276 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9277 lt_prog_compiler_wl='-Qoption ld ';;
9278 *)
9279 lt_prog_compiler_wl='-Wl,';;
9280 esac
9281 ;;
9282
9283 sunos4*)
9284 lt_prog_compiler_wl='-Qoption ld '
9285 lt_prog_compiler_pic='-PIC'
9286 lt_prog_compiler_static='-Bstatic'
9287 ;;
9288
9289 sysv4 | sysv4.2uw2* | sysv4.3*)
9290 lt_prog_compiler_wl='-Wl,'
9291 lt_prog_compiler_pic='-KPIC'
9292 lt_prog_compiler_static='-Bstatic'
9293 ;;
9294
9295 sysv4*MP*)
9296 if test -d /usr/nec; then
9297 lt_prog_compiler_pic='-Kconform_pic'
9298 lt_prog_compiler_static='-Bstatic'
9299 fi
9300 ;;
9301
9302 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9303 lt_prog_compiler_wl='-Wl,'
9304 lt_prog_compiler_pic='-KPIC'
9305 lt_prog_compiler_static='-Bstatic'
9306 ;;
9307
9308 unicos*)
9309 lt_prog_compiler_wl='-Wl,'
9310 lt_prog_compiler_can_build_shared=no
9311 ;;
9312
9313 uts4*)
9314 lt_prog_compiler_pic='-pic'
9315 lt_prog_compiler_static='-Bstatic'
9316 ;;
9317
9318 *)
9319 lt_prog_compiler_can_build_shared=no
9320 ;;
9321 esac
9322 fi
9323
9324 case $host_os in
9325 # For platforms that do not support PIC, -DPIC is meaningless:
9326 *djgpp*)
9327 lt_prog_compiler_pic=
9328 ;;
9329 *)
9330 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9331 ;;
9332 esac
9333
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9335 printf %s "checking for $compiler option to produce PIC... " >&6; }
9336 if test ${lt_cv_prog_compiler_pic+y}
9337 then :
9338 printf %s "(cached) " >&6
9339 else $as_nop
9340 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9341 fi
9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9343 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9344 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9345
9346 #
9347 # Check to make sure the PIC flag actually works.
9348 #
9349 if test -n "$lt_prog_compiler_pic"; then
9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9351 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9352 if test ${lt_cv_prog_compiler_pic_works+y}
9353 then :
9354 printf %s "(cached) " >&6
9355 else $as_nop
9356 lt_cv_prog_compiler_pic_works=no
9357 ac_outfile=conftest.$ac_objext
9358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9359 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9360 # Insert the option either (1) after the last *FLAGS variable, or
9361 # (2) before a word containing "conftest.", or (3) at the end.
9362 # Note that $ac_compile itself does not contain backslashes and begins
9363 # with a dollar sign (not a hyphen), so the echo should work correctly.
9364 # The option is referenced via a variable to avoid confusing sed.
9365 lt_compile=`echo "$ac_compile" | $SED \
9366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9368 -e 's:$: $lt_compiler_flag:'`
9369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9370 (eval "$lt_compile" 2>conftest.err)
9371 ac_status=$?
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 if (exit $ac_status) && test -s "$ac_outfile"; then
9375 # The compiler can only warn and ignore the option if not recognized
9376 # So say no if there are warnings other than the usual output.
9377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9380 lt_cv_prog_compiler_pic_works=yes
9381 fi
9382 fi
9383 $RM conftest*
9384
9385 fi
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9387 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9388
9389 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9390 case $lt_prog_compiler_pic in
9391 "" | " "*) ;;
9392 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9393 esac
9394 else
9395 lt_prog_compiler_pic=
9396 lt_prog_compiler_can_build_shared=no
9397 fi
9398
9399 fi
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411 #
9412 # Check to make sure the static flag actually works.
9413 #
9414 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9416 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9417 if test ${lt_cv_prog_compiler_static_works+y}
9418 then :
9419 printf %s "(cached) " >&6
9420 else $as_nop
9421 lt_cv_prog_compiler_static_works=no
9422 save_LDFLAGS=$LDFLAGS
9423 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9426 # The linker can only warn and ignore the option if not recognized
9427 # So say no if there are warnings
9428 if test -s conftest.err; then
9429 # Append any errors to the config.log.
9430 cat conftest.err 1>&5
9431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9433 if diff conftest.exp conftest.er2 >/dev/null; then
9434 lt_cv_prog_compiler_static_works=yes
9435 fi
9436 else
9437 lt_cv_prog_compiler_static_works=yes
9438 fi
9439 fi
9440 $RM -r conftest*
9441 LDFLAGS=$save_LDFLAGS
9442
9443 fi
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9445 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9446
9447 if test yes = "$lt_cv_prog_compiler_static_works"; then
9448 :
9449 else
9450 lt_prog_compiler_static=
9451 fi
9452
9453
9454
9455
9456
9457
9458
9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9460 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9461 if test ${lt_cv_prog_compiler_c_o+y}
9462 then :
9463 printf %s "(cached) " >&6
9464 else $as_nop
9465 lt_cv_prog_compiler_c_o=no
9466 $RM -r conftest 2>/dev/null
9467 mkdir conftest
9468 cd conftest
9469 mkdir out
9470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9471
9472 lt_compiler_flag="-o out/conftest2.$ac_objext"
9473 # Insert the option either (1) after the last *FLAGS variable, or
9474 # (2) before a word containing "conftest.", or (3) at the end.
9475 # Note that $ac_compile itself does not contain backslashes and begins
9476 # with a dollar sign (not a hyphen), so the echo should work correctly.
9477 lt_compile=`echo "$ac_compile" | $SED \
9478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9480 -e 's:$: $lt_compiler_flag:'`
9481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9482 (eval "$lt_compile" 2>out/conftest.err)
9483 ac_status=$?
9484 cat out/conftest.err >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9487 then
9488 # The compiler can only warn and ignore the option if not recognized
9489 # So say no if there are warnings
9490 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9493 lt_cv_prog_compiler_c_o=yes
9494 fi
9495 fi
9496 chmod u+w . 2>&5
9497 $RM conftest*
9498 # SGI C++ compiler will create directory out/ii_files/ for
9499 # template instantiation
9500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9501 $RM out/* && rmdir out
9502 cd ..
9503 $RM -r conftest
9504 $RM conftest*
9505
9506 fi
9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9508 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9509
9510
9511
9512
9513
9514
9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9516 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9517 if test ${lt_cv_prog_compiler_c_o+y}
9518 then :
9519 printf %s "(cached) " >&6
9520 else $as_nop
9521 lt_cv_prog_compiler_c_o=no
9522 $RM -r conftest 2>/dev/null
9523 mkdir conftest
9524 cd conftest
9525 mkdir out
9526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9527
9528 lt_compiler_flag="-o out/conftest2.$ac_objext"
9529 # Insert the option either (1) after the last *FLAGS variable, or
9530 # (2) before a word containing "conftest.", or (3) at the end.
9531 # Note that $ac_compile itself does not contain backslashes and begins
9532 # with a dollar sign (not a hyphen), so the echo should work correctly.
9533 lt_compile=`echo "$ac_compile" | $SED \
9534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9536 -e 's:$: $lt_compiler_flag:'`
9537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9538 (eval "$lt_compile" 2>out/conftest.err)
9539 ac_status=$?
9540 cat out/conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9543 then
9544 # The compiler can only warn and ignore the option if not recognized
9545 # So say no if there are warnings
9546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9549 lt_cv_prog_compiler_c_o=yes
9550 fi
9551 fi
9552 chmod u+w . 2>&5
9553 $RM conftest*
9554 # SGI C++ compiler will create directory out/ii_files/ for
9555 # template instantiation
9556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9557 $RM out/* && rmdir out
9558 cd ..
9559 $RM -r conftest
9560 $RM conftest*
9561
9562 fi
9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9564 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9565
9566
9567
9568
9569 hard_links=nottested
9570 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9571 # do not overwrite the value of need_locks provided by the user
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9573 printf %s "checking if we can lock with hard links... " >&6; }
9574 hard_links=yes
9575 $RM conftest*
9576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9577 touch conftest.a
9578 ln conftest.a conftest.b 2>&5 || hard_links=no
9579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9581 printf "%s\n" "$hard_links" >&6; }
9582 if test no = "$hard_links"; then
9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9584 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9585 need_locks=warn
9586 fi
9587 else
9588 need_locks=no
9589 fi
9590
9591
9592
9593
9594
9595
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9597 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9598
9599 runpath_var=
9600 allow_undefined_flag=
9601 always_export_symbols=no
9602 archive_cmds=
9603 archive_expsym_cmds=
9604 compiler_needs_object=no
9605 enable_shared_with_static_runtimes=no
9606 export_dynamic_flag_spec=
9607 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9608 hardcode_automatic=no
9609 hardcode_direct=no
9610 hardcode_direct_absolute=no
9611 hardcode_libdir_flag_spec=
9612 hardcode_libdir_separator=
9613 hardcode_minus_L=no
9614 hardcode_shlibpath_var=unsupported
9615 inherit_rpath=no
9616 link_all_deplibs=unknown
9617 module_cmds=
9618 module_expsym_cmds=
9619 old_archive_from_new_cmds=
9620 old_archive_from_expsyms_cmds=
9621 thread_safe_flag_spec=
9622 whole_archive_flag_spec=
9623 # include_expsyms should be a list of space-separated symbols to be *always*
9624 # included in the symbol list
9625 include_expsyms=
9626 # exclude_expsyms can be an extended regexp of symbols to exclude
9627 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9628 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9629 # as well as any symbol that contains 'd'.
9630 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9631 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9632 # platforms (ab)use it in PIC code, but their linkers get confused if
9633 # the symbol is explicitly referenced. Since portable code cannot
9634 # rely on this symbol name, it's probably fine to never include it in
9635 # preloaded symbol tables.
9636 # Exclude shared library initialization/finalization symbols.
9637 extract_expsyms_cmds=
9638
9639 case $host_os in
9640 cygwin* | mingw* | pw32* | cegcc*)
9641 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9642 # When not using gcc, we currently assume that we are using
9643 # Microsoft Visual C++ or Intel C++ Compiler.
9644 if test yes != "$GCC"; then
9645 with_gnu_ld=no
9646 fi
9647 ;;
9648 interix*)
9649 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9650 with_gnu_ld=yes
9651 ;;
9652 openbsd* | bitrig*)
9653 with_gnu_ld=no
9654 ;;
9655 linux* | k*bsd*-gnu | gnu*)
9656 link_all_deplibs=no
9657 ;;
9658 esac
9659
9660 ld_shlibs=yes
9661
9662 # On some targets, GNU ld is compatible enough with the native linker
9663 # that we're better off using the native interface for both.
9664 lt_use_gnu_ld_interface=no
9665 if test yes = "$with_gnu_ld"; then
9666 case $host_os in
9667 aix*)
9668 # The AIX port of GNU ld has always aspired to compatibility
9669 # with the native linker. However, as the warning in the GNU ld
9670 # block says, versions before 2.19.5* couldn't really create working
9671 # shared libraries, regardless of the interface used.
9672 case `$LD -v 2>&1` in
9673 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9674 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9675 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9676 *)
9677 lt_use_gnu_ld_interface=yes
9678 ;;
9679 esac
9680 ;;
9681 *)
9682 lt_use_gnu_ld_interface=yes
9683 ;;
9684 esac
9685 fi
9686
9687 if test yes = "$lt_use_gnu_ld_interface"; then
9688 # If archive_cmds runs LD, not CC, wlarc should be empty
9689 wlarc='$wl'
9690
9691 # Set some defaults for GNU ld with shared library support. These
9692 # are reset later if shared libraries are not supported. Putting them
9693 # here allows them to be overridden if necessary.
9694 runpath_var=LD_RUN_PATH
9695 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9696 export_dynamic_flag_spec='$wl--export-dynamic'
9697 # ancient GNU ld didn't support --whole-archive et. al.
9698 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9699 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9700 else
9701 whole_archive_flag_spec=
9702 fi
9703 supports_anon_versioning=no
9704 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9705 *GNU\ gold*) supports_anon_versioning=yes ;;
9706 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9707 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9708 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9709 *\ 2.11.*) ;; # other 2.11 versions
9710 *) supports_anon_versioning=yes ;;
9711 esac
9712
9713 # See if GNU ld supports shared libraries.
9714 case $host_os in
9715 aix[3-9]*)
9716 # On AIX/PPC, the GNU linker is very broken
9717 if test ia64 != "$host_cpu"; then
9718 ld_shlibs=no
9719 cat <<_LT_EOF 1>&2
9720
9721 *** Warning: the GNU linker, at least up to release 2.19, is reported
9722 *** to be unable to reliably create shared libraries on AIX.
9723 *** Therefore, libtool is disabling shared libraries support. If you
9724 *** really care for shared libraries, you may want to install binutils
9725 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9726 *** You will then need to restart the configuration process.
9727
9728 _LT_EOF
9729 fi
9730 ;;
9731
9732 amigaos*)
9733 case $host_cpu in
9734 powerpc)
9735 # see comment about AmigaOS4 .so support
9736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9737 archive_expsym_cmds=''
9738 ;;
9739 m68k)
9740 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)'
9741 hardcode_libdir_flag_spec='-L$libdir'
9742 hardcode_minus_L=yes
9743 ;;
9744 esac
9745 ;;
9746
9747 beos*)
9748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9749 allow_undefined_flag=unsupported
9750 # Joseph Beckenbach <[email protected]> says some releases of gcc
9751 # support --undefined. This deserves some investigation. FIXME
9752 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9753 else
9754 ld_shlibs=no
9755 fi
9756 ;;
9757
9758 cygwin* | mingw* | pw32* | cegcc*)
9759 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9760 # as there is no search path for DLLs.
9761 hardcode_libdir_flag_spec='-L$libdir'
9762 export_dynamic_flag_spec='$wl--export-all-symbols'
9763 allow_undefined_flag=unsupported
9764 always_export_symbols=no
9765 enable_shared_with_static_runtimes=yes
9766 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'
9767 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9768
9769 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9771 # If the export-symbols file already is a .def file, use it as
9772 # is; otherwise, prepend EXPORTS...
9773 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9774 cp $export_symbols $output_objdir/$soname.def;
9775 else
9776 echo EXPORTS > $output_objdir/$soname.def;
9777 cat $export_symbols >> $output_objdir/$soname.def;
9778 fi~
9779 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9780 else
9781 ld_shlibs=no
9782 fi
9783 ;;
9784
9785 haiku*)
9786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9787 link_all_deplibs=yes
9788 ;;
9789
9790 os2*)
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 hardcode_minus_L=yes
9793 allow_undefined_flag=unsupported
9794 shrext_cmds=.dll
9795 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9796 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9797 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9798 $ECHO EXPORTS >> $output_objdir/$libname.def~
9799 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9800 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9801 emximp -o $lib $output_objdir/$libname.def'
9802 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9803 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9804 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9805 $ECHO EXPORTS >> $output_objdir/$libname.def~
9806 prefix_cmds="$SED"~
9807 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9808 prefix_cmds="$prefix_cmds -e 1d";
9809 fi~
9810 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9811 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9812 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9813 emximp -o $lib $output_objdir/$libname.def'
9814 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9815 enable_shared_with_static_runtimes=yes
9816 file_list_spec='@'
9817 ;;
9818
9819 interix[3-9]*)
9820 hardcode_direct=no
9821 hardcode_shlibpath_var=no
9822 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9823 export_dynamic_flag_spec='$wl-E'
9824 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9825 # Instead, shared libraries are loaded at an image base (0x10000000 by
9826 # default) and relocated if they conflict, which is a slow very memory
9827 # consuming and fragmenting process. To avoid this, we pick a random,
9828 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9829 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9830 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9831 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'
9832 ;;
9833
9834 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9835 tmp_diet=no
9836 if test linux-dietlibc = "$host_os"; then
9837 case $cc_basename in
9838 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9839 esac
9840 fi
9841 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9842 && test no = "$tmp_diet"
9843 then
9844 tmp_addflag=' $pic_flag'
9845 tmp_sharedflag='-shared'
9846 case $cc_basename,$host_cpu in
9847 pgcc*) # Portland Group C compiler
9848 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'
9849 tmp_addflag=' $pic_flag'
9850 ;;
9851 pgf77* | pgf90* | pgf95* | pgfortran*)
9852 # Portland Group f77 and f90 compilers
9853 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'
9854 tmp_addflag=' $pic_flag -Mnomain' ;;
9855 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9856 tmp_addflag=' -i_dynamic' ;;
9857 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9858 tmp_addflag=' -i_dynamic -nofor_main' ;;
9859 ifc* | ifort*) # Intel Fortran compiler
9860 tmp_addflag=' -nofor_main' ;;
9861 lf95*) # Lahey Fortran 8.1
9862 whole_archive_flag_spec=
9863 tmp_sharedflag='--shared' ;;
9864 nagfor*) # NAGFOR 5.3
9865 tmp_sharedflag='-Wl,-shared' ;;
9866 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9867 tmp_sharedflag='-qmkshrobj'
9868 tmp_addflag= ;;
9869 nvcc*) # Cuda Compiler Driver 2.2
9870 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'
9871 compiler_needs_object=yes
9872 ;;
9873 esac
9874 case `$CC -V 2>&1 | $SED 5q` in
9875 *Sun\ C*) # Sun C 5.9
9876 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'
9877 compiler_needs_object=yes
9878 tmp_sharedflag='-G' ;;
9879 *Sun\ F*) # Sun Fortran 8.3
9880 tmp_sharedflag='-G' ;;
9881 esac
9882 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9883
9884 if test yes = "$supports_anon_versioning"; then
9885 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9886 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9887 echo "local: *; };" >> $output_objdir/$libname.ver~
9888 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9889 fi
9890
9891 case $cc_basename in
9892 tcc*)
9893 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9894 export_dynamic_flag_spec='-rdynamic'
9895 ;;
9896 xlf* | bgf* | bgxlf* | mpixlf*)
9897 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9898 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9899 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9900 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9901 if test yes = "$supports_anon_versioning"; then
9902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9903 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9904 echo "local: *; };" >> $output_objdir/$libname.ver~
9905 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9906 fi
9907 ;;
9908 esac
9909 else
9910 ld_shlibs=no
9911 fi
9912 ;;
9913
9914 netbsd* | netbsdelf*-gnu)
9915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9916 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9917 wlarc=
9918 else
9919 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9920 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9921 fi
9922 ;;
9923
9924 solaris*)
9925 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9926 ld_shlibs=no
9927 cat <<_LT_EOF 1>&2
9928
9929 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9930 *** create shared libraries on Solaris systems. Therefore, libtool
9931 *** is disabling shared libraries support. We urge you to upgrade GNU
9932 *** binutils to release 2.9.1 or newer. Another option is to modify
9933 *** your PATH or compiler configuration so that the native linker is
9934 *** used, and then restart.
9935
9936 _LT_EOF
9937 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9939 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9940 else
9941 ld_shlibs=no
9942 fi
9943 ;;
9944
9945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9946 case `$LD -v 2>&1` in
9947 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9948 ld_shlibs=no
9949 cat <<_LT_EOF 1>&2
9950
9951 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9952 *** reliably create shared libraries on SCO systems. Therefore, libtool
9953 *** is disabling shared libraries support. We urge you to upgrade GNU
9954 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9955 *** your PATH or compiler configuration so that the native linker is
9956 *** used, and then restart.
9957
9958 _LT_EOF
9959 ;;
9960 *)
9961 # For security reasons, it is highly recommended that you always
9962 # use absolute paths for naming shared libraries, and exclude the
9963 # DT_RUNPATH tag from executables and libraries. But doing so
9964 # requires that you compile everything twice, which is a pain.
9965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9966 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9969 else
9970 ld_shlibs=no
9971 fi
9972 ;;
9973 esac
9974 ;;
9975
9976 sunos4*)
9977 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9978 wlarc=
9979 hardcode_direct=yes
9980 hardcode_shlibpath_var=no
9981 ;;
9982
9983 *)
9984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9985 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9986 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9987 else
9988 ld_shlibs=no
9989 fi
9990 ;;
9991 esac
9992
9993 if test no = "$ld_shlibs"; then
9994 runpath_var=
9995 hardcode_libdir_flag_spec=
9996 export_dynamic_flag_spec=
9997 whole_archive_flag_spec=
9998 fi
9999 else
10000 # PORTME fill in a description of your system's linker (not GNU ld)
10001 case $host_os in
10002 aix3*)
10003 allow_undefined_flag=unsupported
10004 always_export_symbols=yes
10005 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'
10006 # Note: this linker hardcodes the directories in LIBPATH if there
10007 # are no directories specified by -L.
10008 hardcode_minus_L=yes
10009 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10010 # Neither direct hardcoding nor static linking is supported with a
10011 # broken collect2.
10012 hardcode_direct=unsupported
10013 fi
10014 ;;
10015
10016 aix[4-9]*)
10017 if test ia64 = "$host_cpu"; then
10018 # On IA64, the linker does run time linking by default, so we don't
10019 # have to do anything special.
10020 aix_use_runtimelinking=no
10021 exp_sym_flag='-Bexport'
10022 no_entry_flag=
10023 else
10024 # If we're using GNU nm, then we don't want the "-C" option.
10025 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10026 # Without the "-l" option, or with the "-B" option, AIX nm treats
10027 # weak defined symbols like other global defined symbols, whereas
10028 # GNU nm marks them as "W".
10029 # While the 'weak' keyword is ignored in the Export File, we need
10030 # it in the Import File for the 'aix-soname' feature, so we have
10031 # to replace the "-B" option with "-P" for AIX nm.
10032 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10033 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'
10034 else
10035 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10036 fi
10037 aix_use_runtimelinking=no
10038
10039 # Test if we are trying to use run time linking or normal
10040 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10041 # have runtime linking enabled, and use it for executables.
10042 # For shared libraries, we enable/disable runtime linking
10043 # depending on the kind of the shared library created -
10044 # when "with_aix_soname,aix_use_runtimelinking" is:
10045 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10046 # "aix,yes" lib.so shared, rtl:yes, for executables
10047 # lib.a static archive
10048 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10049 # lib.a(lib.so.V) shared, rtl:no, for executables
10050 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10051 # lib.a(lib.so.V) shared, rtl:no
10052 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10053 # lib.a static archive
10054 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10055 for ld_flag in $LDFLAGS; do
10056 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10057 aix_use_runtimelinking=yes
10058 break
10059 fi
10060 done
10061 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10062 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10063 # so we don't have lib.a shared libs to link our executables.
10064 # We have to force runtime linking in this case.
10065 aix_use_runtimelinking=yes
10066 LDFLAGS="$LDFLAGS -Wl,-brtl"
10067 fi
10068 ;;
10069 esac
10070
10071 exp_sym_flag='-bexport'
10072 no_entry_flag='-bnoentry'
10073 fi
10074
10075 # When large executables or shared objects are built, AIX ld can
10076 # have problems creating the table of contents. If linking a library
10077 # or program results in "error TOC overflow" add -mminimal-toc to
10078 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10079 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10080
10081 archive_cmds=''
10082 hardcode_direct=yes
10083 hardcode_direct_absolute=yes
10084 hardcode_libdir_separator=':'
10085 link_all_deplibs=yes
10086 file_list_spec='$wl-f,'
10087 case $with_aix_soname,$aix_use_runtimelinking in
10088 aix,*) ;; # traditional, no import file
10089 svr4,* | *,yes) # use import file
10090 # The Import File defines what to hardcode.
10091 hardcode_direct=no
10092 hardcode_direct_absolute=no
10093 ;;
10094 esac
10095
10096 if test yes = "$GCC"; then
10097 case $host_os in aix4.[012]|aix4.[012].*)
10098 # We only want to do this on AIX 4.2 and lower, the check
10099 # below for broken collect2 doesn't work under 4.3+
10100 collect2name=`$CC -print-prog-name=collect2`
10101 if test -f "$collect2name" &&
10102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10103 then
10104 # We have reworked collect2
10105 :
10106 else
10107 # We have old collect2
10108 hardcode_direct=unsupported
10109 # It fails to find uninstalled libraries when the uninstalled
10110 # path is not listed in the libpath. Setting hardcode_minus_L
10111 # to unsupported forces relinking
10112 hardcode_minus_L=yes
10113 hardcode_libdir_flag_spec='-L$libdir'
10114 hardcode_libdir_separator=
10115 fi
10116 ;;
10117 esac
10118 shared_flag='-shared'
10119 if test yes = "$aix_use_runtimelinking"; then
10120 shared_flag="$shared_flag "'$wl-G'
10121 fi
10122 # Need to ensure runtime linking is disabled for the traditional
10123 # shared library, or the linker may eventually find shared libraries
10124 # /with/ Import File - we do not want to mix them.
10125 shared_flag_aix='-shared'
10126 shared_flag_svr4='-shared $wl-G'
10127 else
10128 # not using gcc
10129 if test ia64 = "$host_cpu"; then
10130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10131 # chokes on -Wl,-G. The following line is correct:
10132 shared_flag='-G'
10133 else
10134 if test yes = "$aix_use_runtimelinking"; then
10135 shared_flag='$wl-G'
10136 else
10137 shared_flag='$wl-bM:SRE'
10138 fi
10139 shared_flag_aix='$wl-bM:SRE'
10140 shared_flag_svr4='$wl-G'
10141 fi
10142 fi
10143
10144 export_dynamic_flag_spec='$wl-bexpall'
10145 # It seems that -bexpall does not export symbols beginning with
10146 # underscore (_), so it is better to generate a list of symbols to export.
10147 always_export_symbols=yes
10148 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10149 # Warning - without using the other runtime loading flags (-brtl),
10150 # -berok will link without error, but may produce a broken library.
10151 allow_undefined_flag='-berok'
10152 # Determine the default libpath from the value encoded in an
10153 # empty executable.
10154 if test set = "${lt_cv_aix_libpath+set}"; then
10155 aix_libpath=$lt_cv_aix_libpath
10156 else
10157 if test ${lt_cv_aix_libpath_+y}
10158 then :
10159 printf %s "(cached) " >&6
10160 else $as_nop
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163
10164 int
10165 main (void)
10166 {
10167
10168 ;
10169 return 0;
10170 }
10171 _ACEOF
10172 if ac_fn_c_try_link "$LINENO"
10173 then :
10174
10175 lt_aix_libpath_sed='
10176 /Import File Strings/,/^$/ {
10177 /^0/ {
10178 s/^0 *\([^ ]*\) *$/\1/
10179 p
10180 }
10181 }'
10182 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10183 # Check for a 64-bit object if we didn't find anything.
10184 if test -z "$lt_cv_aix_libpath_"; then
10185 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10186 fi
10187 fi
10188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10189 conftest$ac_exeext conftest.$ac_ext
10190 if test -z "$lt_cv_aix_libpath_"; then
10191 lt_cv_aix_libpath_=/usr/lib:/lib
10192 fi
10193
10194 fi
10195
10196 aix_libpath=$lt_cv_aix_libpath_
10197 fi
10198
10199 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10200 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
10201 else
10202 if test ia64 = "$host_cpu"; then
10203 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10204 allow_undefined_flag="-z nodefs"
10205 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"
10206 else
10207 # Determine the default libpath from the value encoded in an
10208 # empty executable.
10209 if test set = "${lt_cv_aix_libpath+set}"; then
10210 aix_libpath=$lt_cv_aix_libpath
10211 else
10212 if test ${lt_cv_aix_libpath_+y}
10213 then :
10214 printf %s "(cached) " >&6
10215 else $as_nop
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218
10219 int
10220 main (void)
10221 {
10222
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_link "$LINENO"
10228 then :
10229
10230 lt_aix_libpath_sed='
10231 /Import File Strings/,/^$/ {
10232 /^0/ {
10233 s/^0 *\([^ ]*\) *$/\1/
10234 p
10235 }
10236 }'
10237 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10238 # Check for a 64-bit object if we didn't find anything.
10239 if test -z "$lt_cv_aix_libpath_"; then
10240 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10241 fi
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10244 conftest$ac_exeext conftest.$ac_ext
10245 if test -z "$lt_cv_aix_libpath_"; then
10246 lt_cv_aix_libpath_=/usr/lib:/lib
10247 fi
10248
10249 fi
10250
10251 aix_libpath=$lt_cv_aix_libpath_
10252 fi
10253
10254 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10255 # Warning - without using the other run time loading flags,
10256 # -berok will link without error, but may produce a broken library.
10257 no_undefined_flag=' $wl-bernotok'
10258 allow_undefined_flag=' $wl-berok'
10259 if test yes = "$with_gnu_ld"; then
10260 # We only use this code for GNU lds that support --whole-archive.
10261 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10262 else
10263 # Exported symbols can be pulled into shared objects from archives
10264 whole_archive_flag_spec='$convenience'
10265 fi
10266 archive_cmds_need_lc=yes
10267 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10268 # -brtl affects multiple linker settings, -berok does not and is overridden later
10269 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10270 if test svr4 != "$with_aix_soname"; then
10271 # This is similar to how AIX traditionally builds its shared libraries.
10272 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'
10273 fi
10274 if test aix != "$with_aix_soname"; then
10275 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'
10276 else
10277 # used by -dlpreopen to get the symbols
10278 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10279 fi
10280 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10281 fi
10282 fi
10283 ;;
10284
10285 amigaos*)
10286 case $host_cpu in
10287 powerpc)
10288 # see comment about AmigaOS4 .so support
10289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10290 archive_expsym_cmds=''
10291 ;;
10292 m68k)
10293 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)'
10294 hardcode_libdir_flag_spec='-L$libdir'
10295 hardcode_minus_L=yes
10296 ;;
10297 esac
10298 ;;
10299
10300 bsdi[45]*)
10301 export_dynamic_flag_spec=-rdynamic
10302 ;;
10303
10304 cygwin* | mingw* | pw32* | cegcc*)
10305 # When not using gcc, we currently assume that we are using
10306 # Microsoft Visual C++ or Intel C++ Compiler.
10307 # hardcode_libdir_flag_spec is actually meaningless, as there is
10308 # no search path for DLLs.
10309 case $cc_basename in
10310 cl* | icl*)
10311 # Native MSVC or ICC
10312 hardcode_libdir_flag_spec=' '
10313 allow_undefined_flag=unsupported
10314 always_export_symbols=yes
10315 file_list_spec='@'
10316 # Tell ltmain to make .lib files, not .a files.
10317 libext=lib
10318 # Tell ltmain to make .dll files, not .so files.
10319 shrext_cmds=.dll
10320 # FIXME: Setting linknames here is a bad hack.
10321 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10322 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10323 cp "$export_symbols" "$output_objdir/$soname.def";
10324 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10325 else
10326 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10327 fi~
10328 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10329 linknames='
10330 # The linker will not automatically build a static lib if we build a DLL.
10331 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10332 enable_shared_with_static_runtimes=yes
10333 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10334 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10335 # Don't use ranlib
10336 old_postinstall_cmds='chmod 644 $oldlib'
10337 postlink_cmds='lt_outputfile="@OUTPUT@"~
10338 lt_tool_outputfile="@TOOL_OUTPUT@"~
10339 case $lt_outputfile in
10340 *.exe|*.EXE) ;;
10341 *)
10342 lt_outputfile=$lt_outputfile.exe
10343 lt_tool_outputfile=$lt_tool_outputfile.exe
10344 ;;
10345 esac~
10346 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10347 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10348 $RM "$lt_outputfile.manifest";
10349 fi'
10350 ;;
10351 *)
10352 # Assume MSVC and ICC wrapper
10353 hardcode_libdir_flag_spec=' '
10354 allow_undefined_flag=unsupported
10355 # Tell ltmain to make .lib files, not .a files.
10356 libext=lib
10357 # Tell ltmain to make .dll files, not .so files.
10358 shrext_cmds=.dll
10359 # FIXME: Setting linknames here is a bad hack.
10360 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10361 # The linker will automatically build a .lib file if we build a DLL.
10362 old_archive_from_new_cmds='true'
10363 # FIXME: Should let the user specify the lib program.
10364 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10365 enable_shared_with_static_runtimes=yes
10366 ;;
10367 esac
10368 ;;
10369
10370 darwin* | rhapsody*)
10371
10372
10373 archive_cmds_need_lc=no
10374 hardcode_direct=no
10375 hardcode_automatic=yes
10376 hardcode_shlibpath_var=unsupported
10377 if test yes = "$lt_cv_ld_force_load"; then
10378 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\"`'
10379
10380 else
10381 whole_archive_flag_spec=''
10382 fi
10383 link_all_deplibs=yes
10384 allow_undefined_flag=$_lt_dar_allow_undefined
10385 case $cc_basename in
10386 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10387 *) _lt_dar_can_shared=$GCC ;;
10388 esac
10389 if test yes = "$_lt_dar_can_shared"; then
10390 output_verbose_link_cmd=func_echo_all
10391 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10392 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10393 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"
10394 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"
10395
10396 else
10397 ld_shlibs=no
10398 fi
10399
10400 ;;
10401
10402 dgux*)
10403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10404 hardcode_libdir_flag_spec='-L$libdir'
10405 hardcode_shlibpath_var=no
10406 ;;
10407
10408 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10409 # support. Future versions do this automatically, but an explicit c++rt0.o
10410 # does not break anything, and helps significantly (at the cost of a little
10411 # extra space).
10412 freebsd2.2*)
10413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10414 hardcode_libdir_flag_spec='-R$libdir'
10415 hardcode_direct=yes
10416 hardcode_shlibpath_var=no
10417 ;;
10418
10419 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10420 freebsd2.*)
10421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10422 hardcode_direct=yes
10423 hardcode_minus_L=yes
10424 hardcode_shlibpath_var=no
10425 ;;
10426
10427 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10428 freebsd* | dragonfly* | midnightbsd*)
10429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10430 hardcode_libdir_flag_spec='-R$libdir'
10431 hardcode_direct=yes
10432 hardcode_shlibpath_var=no
10433 ;;
10434
10435 hpux9*)
10436 if test yes = "$GCC"; then
10437 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'
10438 else
10439 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'
10440 fi
10441 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10442 hardcode_libdir_separator=:
10443 hardcode_direct=yes
10444
10445 # hardcode_minus_L: Not really in the search PATH,
10446 # but as the default location of the library.
10447 hardcode_minus_L=yes
10448 export_dynamic_flag_spec='$wl-E'
10449 ;;
10450
10451 hpux10*)
10452 if test yes,no = "$GCC,$with_gnu_ld"; then
10453 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10454 else
10455 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10456 fi
10457 if test no = "$with_gnu_ld"; then
10458 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10459 hardcode_libdir_separator=:
10460 hardcode_direct=yes
10461 hardcode_direct_absolute=yes
10462 export_dynamic_flag_spec='$wl-E'
10463 # hardcode_minus_L: Not really in the search PATH,
10464 # but as the default location of the library.
10465 hardcode_minus_L=yes
10466 fi
10467 ;;
10468
10469 hpux11*)
10470 if test yes,no = "$GCC,$with_gnu_ld"; then
10471 case $host_cpu in
10472 hppa*64*)
10473 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10474 ;;
10475 ia64*)
10476 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10477 ;;
10478 *)
10479 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10480 ;;
10481 esac
10482 else
10483 case $host_cpu in
10484 hppa*64*)
10485 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 ;;
10487 ia64*)
10488 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10489 ;;
10490 *)
10491
10492 # Older versions of the 11.00 compiler do not understand -b yet
10493 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10495 printf %s "checking if $CC understands -b... " >&6; }
10496 if test ${lt_cv_prog_compiler__b+y}
10497 then :
10498 printf %s "(cached) " >&6
10499 else $as_nop
10500 lt_cv_prog_compiler__b=no
10501 save_LDFLAGS=$LDFLAGS
10502 LDFLAGS="$LDFLAGS -b"
10503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10505 # The linker can only warn and ignore the option if not recognized
10506 # So say no if there are warnings
10507 if test -s conftest.err; then
10508 # Append any errors to the config.log.
10509 cat conftest.err 1>&5
10510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10512 if diff conftest.exp conftest.er2 >/dev/null; then
10513 lt_cv_prog_compiler__b=yes
10514 fi
10515 else
10516 lt_cv_prog_compiler__b=yes
10517 fi
10518 fi
10519 $RM -r conftest*
10520 LDFLAGS=$save_LDFLAGS
10521
10522 fi
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10524 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10525
10526 if test yes = "$lt_cv_prog_compiler__b"; then
10527 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10528 else
10529 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10530 fi
10531
10532 ;;
10533 esac
10534 fi
10535 if test no = "$with_gnu_ld"; then
10536 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10537 hardcode_libdir_separator=:
10538
10539 case $host_cpu in
10540 hppa*64*|ia64*)
10541 hardcode_direct=no
10542 hardcode_shlibpath_var=no
10543 ;;
10544 *)
10545 hardcode_direct=yes
10546 hardcode_direct_absolute=yes
10547 export_dynamic_flag_spec='$wl-E'
10548
10549 # hardcode_minus_L: Not really in the search PATH,
10550 # but as the default location of the library.
10551 hardcode_minus_L=yes
10552 ;;
10553 esac
10554 fi
10555 ;;
10556
10557 irix5* | irix6* | nonstopux*)
10558 if test yes = "$GCC"; then
10559 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'
10560 # Try to use the -exported_symbol ld option, if it does not
10561 # work, assume that -exports_file does not work either and
10562 # implicitly export all symbols.
10563 # This should be the same for all languages, so no per-tag cache variable.
10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10565 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10566 if test ${lt_cv_irix_exported_symbol+y}
10567 then :
10568 printf %s "(cached) " >&6
10569 else $as_nop
10570 save_LDFLAGS=$LDFLAGS
10571 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10574 int foo (void) { return 0; }
10575 _ACEOF
10576 if ac_fn_c_try_link "$LINENO"
10577 then :
10578 lt_cv_irix_exported_symbol=yes
10579 else $as_nop
10580 lt_cv_irix_exported_symbol=no
10581 fi
10582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10583 conftest$ac_exeext conftest.$ac_ext
10584 LDFLAGS=$save_LDFLAGS
10585 fi
10586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10587 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10588 if test yes = "$lt_cv_irix_exported_symbol"; then
10589 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'
10590 fi
10591 link_all_deplibs=no
10592 else
10593 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'
10594 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'
10595 fi
10596 archive_cmds_need_lc='no'
10597 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10598 hardcode_libdir_separator=:
10599 inherit_rpath=yes
10600 link_all_deplibs=yes
10601 ;;
10602
10603 linux*)
10604 case $cc_basename in
10605 tcc*)
10606 # Fabrice Bellard et al's Tiny C Compiler
10607 ld_shlibs=yes
10608 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10609 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10610 ;;
10611 esac
10612 ;;
10613
10614 netbsd* | netbsdelf*-gnu)
10615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10617 else
10618 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10619 fi
10620 hardcode_libdir_flag_spec='-R$libdir'
10621 hardcode_direct=yes
10622 hardcode_shlibpath_var=no
10623 ;;
10624
10625 newsos6)
10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10627 hardcode_direct=yes
10628 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10629 hardcode_libdir_separator=:
10630 hardcode_shlibpath_var=no
10631 ;;
10632
10633 *nto* | *qnx*)
10634 ;;
10635
10636 openbsd* | bitrig*)
10637 if test -f /usr/libexec/ld.so; then
10638 hardcode_direct=yes
10639 hardcode_shlibpath_var=no
10640 hardcode_direct_absolute=yes
10641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10644 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10645 export_dynamic_flag_spec='$wl-E'
10646 else
10647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10648 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10649 fi
10650 else
10651 ld_shlibs=no
10652 fi
10653 ;;
10654
10655 os2*)
10656 hardcode_libdir_flag_spec='-L$libdir'
10657 hardcode_minus_L=yes
10658 allow_undefined_flag=unsupported
10659 shrext_cmds=.dll
10660 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10661 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10662 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10663 $ECHO EXPORTS >> $output_objdir/$libname.def~
10664 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10665 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10666 emximp -o $lib $output_objdir/$libname.def'
10667 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10670 $ECHO EXPORTS >> $output_objdir/$libname.def~
10671 prefix_cmds="$SED"~
10672 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10673 prefix_cmds="$prefix_cmds -e 1d";
10674 fi~
10675 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10676 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10678 emximp -o $lib $output_objdir/$libname.def'
10679 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10680 enable_shared_with_static_runtimes=yes
10681 file_list_spec='@'
10682 ;;
10683
10684 osf3*)
10685 if test yes = "$GCC"; then
10686 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10687 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'
10688 else
10689 allow_undefined_flag=' -expect_unresolved \*'
10690 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'
10691 fi
10692 archive_cmds_need_lc='no'
10693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10694 hardcode_libdir_separator=:
10695 ;;
10696
10697 osf4* | osf5*) # as osf3* with the addition of -msym flag
10698 if test yes = "$GCC"; then
10699 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10700 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'
10701 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10702 else
10703 allow_undefined_flag=' -expect_unresolved \*'
10704 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'
10705 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~
10706 $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'
10707
10708 # Both c and cxx compiler support -rpath directly
10709 hardcode_libdir_flag_spec='-rpath $libdir'
10710 fi
10711 archive_cmds_need_lc='no'
10712 hardcode_libdir_separator=:
10713 ;;
10714
10715 solaris*)
10716 no_undefined_flag=' -z defs'
10717 if test yes = "$GCC"; then
10718 wlarc='$wl'
10719 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10721 $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'
10722 else
10723 case `$CC -V 2>&1` in
10724 *"Compilers 5.0"*)
10725 wlarc=''
10726 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10728 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10729 ;;
10730 *)
10731 wlarc='$wl'
10732 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10734 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10735 ;;
10736 esac
10737 fi
10738 hardcode_libdir_flag_spec='-R$libdir'
10739 hardcode_shlibpath_var=no
10740 case $host_os in
10741 solaris2.[0-5] | solaris2.[0-5].*) ;;
10742 *)
10743 # The compiler driver will combine and reorder linker options,
10744 # but understands '-z linker_flag'. GCC discards it without '$wl',
10745 # but is careful enough not to reorder.
10746 # Supported since Solaris 2.6 (maybe 2.5.1?)
10747 if test yes = "$GCC"; then
10748 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10749 else
10750 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10751 fi
10752 ;;
10753 esac
10754 link_all_deplibs=yes
10755 ;;
10756
10757 sunos4*)
10758 if test sequent = "$host_vendor"; then
10759 # Use $CC to link under sequent, because it throws in some extra .o
10760 # files that make .init and .fini sections work.
10761 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10762 else
10763 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10764 fi
10765 hardcode_libdir_flag_spec='-L$libdir'
10766 hardcode_direct=yes
10767 hardcode_minus_L=yes
10768 hardcode_shlibpath_var=no
10769 ;;
10770
10771 sysv4)
10772 case $host_vendor in
10773 sni)
10774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10775 hardcode_direct=yes # is this really true???
10776 ;;
10777 siemens)
10778 ## LD is ld it makes a PLAMLIB
10779 ## CC just makes a GrossModule.
10780 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10781 reload_cmds='$CC -r -o $output$reload_objs'
10782 hardcode_direct=no
10783 ;;
10784 motorola)
10785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10786 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10787 ;;
10788 esac
10789 runpath_var='LD_RUN_PATH'
10790 hardcode_shlibpath_var=no
10791 ;;
10792
10793 sysv4.3*)
10794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10795 hardcode_shlibpath_var=no
10796 export_dynamic_flag_spec='-Bexport'
10797 ;;
10798
10799 sysv4*MP*)
10800 if test -d /usr/nec; then
10801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10802 hardcode_shlibpath_var=no
10803 runpath_var=LD_RUN_PATH
10804 hardcode_runpath_var=yes
10805 ld_shlibs=yes
10806 fi
10807 ;;
10808
10809 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10810 no_undefined_flag='$wl-z,text'
10811 archive_cmds_need_lc=no
10812 hardcode_shlibpath_var=no
10813 runpath_var='LD_RUN_PATH'
10814
10815 if test yes = "$GCC"; then
10816 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818 else
10819 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10820 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10821 fi
10822 ;;
10823
10824 sysv5* | sco3.2v5* | sco5v6*)
10825 # Note: We CANNOT use -z defs as we might desire, because we do not
10826 # link with -lc, and that would cause any symbols used from libc to
10827 # always be unresolved, which means just about no library would
10828 # ever link correctly. If we're not using GNU ld we use -z text
10829 # though, which does catch some bad symbols but isn't as heavy-handed
10830 # as -z defs.
10831 no_undefined_flag='$wl-z,text'
10832 allow_undefined_flag='$wl-z,nodefs'
10833 archive_cmds_need_lc=no
10834 hardcode_shlibpath_var=no
10835 hardcode_libdir_flag_spec='$wl-R,$libdir'
10836 hardcode_libdir_separator=':'
10837 link_all_deplibs=yes
10838 export_dynamic_flag_spec='$wl-Bexport'
10839 runpath_var='LD_RUN_PATH'
10840
10841 if test yes = "$GCC"; then
10842 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10844 else
10845 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10847 fi
10848 ;;
10849
10850 uts4*)
10851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10852 hardcode_libdir_flag_spec='-L$libdir'
10853 hardcode_shlibpath_var=no
10854 ;;
10855
10856 *)
10857 ld_shlibs=no
10858 ;;
10859 esac
10860
10861 if test sni = "$host_vendor"; then
10862 case $host in
10863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10864 export_dynamic_flag_spec='$wl-Blargedynsym'
10865 ;;
10866 esac
10867 fi
10868 fi
10869
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10871 printf "%s\n" "$ld_shlibs" >&6; }
10872 test no = "$ld_shlibs" && can_build_shared=no
10873
10874 with_gnu_ld=$with_gnu_ld
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890 #
10891 # Do we need to explicitly link libc?
10892 #
10893 case "x$archive_cmds_need_lc" in
10894 x|xyes)
10895 # Assume -lc should be added
10896 archive_cmds_need_lc=yes
10897
10898 if test yes,yes = "$GCC,$enable_shared"; then
10899 case $archive_cmds in
10900 *'~'*)
10901 # FIXME: we may have to deal with multi-command sequences.
10902 ;;
10903 '$CC '*)
10904 # Test whether the compiler implicitly links with -lc since on some
10905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10906 # to ld, don't add -lc before -lgcc.
10907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10908 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10909 if test ${lt_cv_archive_cmds_need_lc+y}
10910 then :
10911 printf %s "(cached) " >&6
10912 else $as_nop
10913 $RM conftest*
10914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10915
10916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10917 (eval $ac_compile) 2>&5
10918 ac_status=$?
10919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10920 test $ac_status = 0; } 2>conftest.err; then
10921 soname=conftest
10922 lib=conftest
10923 libobjs=conftest.$ac_objext
10924 deplibs=
10925 wl=$lt_prog_compiler_wl
10926 pic_flag=$lt_prog_compiler_pic
10927 compiler_flags=-v
10928 linker_flags=-v
10929 verstring=
10930 output_objdir=.
10931 libname=conftest
10932 lt_save_allow_undefined_flag=$allow_undefined_flag
10933 allow_undefined_flag=
10934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10935 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10936 ac_status=$?
10937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10938 test $ac_status = 0; }
10939 then
10940 lt_cv_archive_cmds_need_lc=no
10941 else
10942 lt_cv_archive_cmds_need_lc=yes
10943 fi
10944 allow_undefined_flag=$lt_save_allow_undefined_flag
10945 else
10946 cat conftest.err 1>&5
10947 fi
10948 $RM conftest*
10949
10950 fi
10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10952 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10953 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10954 ;;
10955 esac
10956 fi
10957 ;;
10958 esac
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11112 printf %s "checking dynamic linker characteristics... " >&6; }
11113
11114 if test yes = "$GCC"; then
11115 case $host_os in
11116 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11117 *) lt_awk_arg='/^libraries:/' ;;
11118 esac
11119 case $host_os in
11120 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11121 *) lt_sed_strip_eq='s|=/|/|g' ;;
11122 esac
11123 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11124 case $lt_search_path_spec in
11125 *\;*)
11126 # if the path contains ";" then we assume it to be the separator
11127 # otherwise default to the standard path separator (i.e. ":") - it is
11128 # assumed that no part of a normal pathname contains ";" but that should
11129 # okay in the real world where ";" in dirpaths is itself problematic.
11130 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11131 ;;
11132 *)
11133 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11134 ;;
11135 esac
11136 # Ok, now we have the path, separated by spaces, we can step through it
11137 # and add multilib dir if necessary...
11138 lt_tmp_lt_search_path_spec=
11139 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11140 # ...but if some path component already ends with the multilib dir we assume
11141 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11142 case "$lt_multi_os_dir; $lt_search_path_spec " in
11143 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11144 lt_multi_os_dir=
11145 ;;
11146 esac
11147 for lt_sys_path in $lt_search_path_spec; do
11148 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11149 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11150 elif test -n "$lt_multi_os_dir"; then
11151 test -d "$lt_sys_path" && \
11152 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11153 fi
11154 done
11155 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11156 BEGIN {RS = " "; FS = "/|\n";} {
11157 lt_foo = "";
11158 lt_count = 0;
11159 for (lt_i = NF; lt_i > 0; lt_i--) {
11160 if ($lt_i != "" && $lt_i != ".") {
11161 if ($lt_i == "..") {
11162 lt_count++;
11163 } else {
11164 if (lt_count == 0) {
11165 lt_foo = "/" $lt_i lt_foo;
11166 } else {
11167 lt_count--;
11168 }
11169 }
11170 }
11171 }
11172 if (lt_foo != "") { lt_freq[lt_foo]++; }
11173 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11174 }'`
11175 # AWK program above erroneously prepends '/' to C:/dos/paths
11176 # for these hosts.
11177 case $host_os in
11178 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11179 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11180 esac
11181 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11182 else
11183 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11184 fi
11185 library_names_spec=
11186 libname_spec='lib$name'
11187 soname_spec=
11188 shrext_cmds=.so
11189 postinstall_cmds=
11190 postuninstall_cmds=
11191 finish_cmds=
11192 finish_eval=
11193 shlibpath_var=
11194 shlibpath_overrides_runpath=unknown
11195 version_type=none
11196 dynamic_linker="$host_os ld.so"
11197 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11198 need_lib_prefix=unknown
11199 hardcode_into_libs=no
11200
11201 # when you set need_version to no, make sure it does not cause -set_version
11202 # flags to be left without arguments
11203 need_version=unknown
11204
11205
11206
11207 case $host_os in
11208 aix3*)
11209 version_type=linux # correct to gnu/linux during the next big refactor
11210 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11211 shlibpath_var=LIBPATH
11212
11213 # AIX 3 has no versioning support, so we append a major version to the name.
11214 soname_spec='$libname$release$shared_ext$major'
11215 ;;
11216
11217 aix[4-9]*)
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 need_lib_prefix=no
11220 need_version=no
11221 hardcode_into_libs=yes
11222 if test ia64 = "$host_cpu"; then
11223 # AIX 5 supports IA64
11224 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11225 shlibpath_var=LD_LIBRARY_PATH
11226 else
11227 # With GCC up to 2.95.x, collect2 would create an import file
11228 # for dependence libraries. The import file would start with
11229 # the line '#! .'. This would cause the generated library to
11230 # depend on '.', always an invalid library. This was fixed in
11231 # development snapshots of GCC prior to 3.0.
11232 case $host_os in
11233 aix4 | aix4.[01] | aix4.[01].*)
11234 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11235 echo ' yes '
11236 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11237 :
11238 else
11239 can_build_shared=no
11240 fi
11241 ;;
11242 esac
11243 # Using Import Files as archive members, it is possible to support
11244 # filename-based versioning of shared library archives on AIX. While
11245 # this would work for both with and without runtime linking, it will
11246 # prevent static linking of such archives. So we do filename-based
11247 # shared library versioning with .so extension only, which is used
11248 # when both runtime linking and shared linking is enabled.
11249 # Unfortunately, runtime linking may impact performance, so we do
11250 # not want this to be the default eventually. Also, we use the
11251 # versioned .so libs for executables only if there is the -brtl
11252 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11253 # To allow for filename-based versioning support, we need to create
11254 # libNAME.so.V as an archive file, containing:
11255 # *) an Import File, referring to the versioned filename of the
11256 # archive as well as the shared archive member, telling the
11257 # bitwidth (32 or 64) of that shared object, and providing the
11258 # list of exported symbols of that shared object, eventually
11259 # decorated with the 'weak' keyword
11260 # *) the shared object with the F_LOADONLY flag set, to really avoid
11261 # it being seen by the linker.
11262 # At run time we better use the real file rather than another symlink,
11263 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11264
11265 case $with_aix_soname,$aix_use_runtimelinking in
11266 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11267 # soname into executable. Probably we can add versioning support to
11268 # collect2, so additional links can be useful in future.
11269 aix,yes) # traditional libtool
11270 dynamic_linker='AIX unversionable lib.so'
11271 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11272 # instead of lib<name>.a to let people know that these are not
11273 # typical AIX shared libraries.
11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11275 ;;
11276 aix,no) # traditional AIX only
11277 dynamic_linker='AIX lib.a(lib.so.V)'
11278 # We preserve .a as extension for shared libraries through AIX4.2
11279 # and later when we are not doing run time linking.
11280 library_names_spec='$libname$release.a $libname.a'
11281 soname_spec='$libname$release$shared_ext$major'
11282 ;;
11283 svr4,*) # full svr4 only
11284 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11285 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11286 # We do not specify a path in Import Files, so LIBPATH fires.
11287 shlibpath_overrides_runpath=yes
11288 ;;
11289 *,yes) # both, prefer svr4
11290 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11291 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11292 # unpreferred sharedlib libNAME.a needs extra handling
11293 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"'
11294 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"'
11295 # We do not specify a path in Import Files, so LIBPATH fires.
11296 shlibpath_overrides_runpath=yes
11297 ;;
11298 *,no) # both, prefer aix
11299 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11300 library_names_spec='$libname$release.a $libname.a'
11301 soname_spec='$libname$release$shared_ext$major'
11302 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11303 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)'
11304 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"'
11305 ;;
11306 esac
11307 shlibpath_var=LIBPATH
11308 fi
11309 ;;
11310
11311 amigaos*)
11312 case $host_cpu in
11313 powerpc)
11314 # Since July 2007 AmigaOS4 officially supports .so libraries.
11315 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11317 ;;
11318 m68k)
11319 library_names_spec='$libname.ixlibrary $libname.a'
11320 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11321 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'
11322 ;;
11323 esac
11324 ;;
11325
11326 beos*)
11327 library_names_spec='$libname$shared_ext'
11328 dynamic_linker="$host_os ld.so"
11329 shlibpath_var=LIBRARY_PATH
11330 ;;
11331
11332 bsdi[45]*)
11333 version_type=linux # correct to gnu/linux during the next big refactor
11334 need_version=no
11335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11336 soname_spec='$libname$release$shared_ext$major'
11337 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11340 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11341 # the default ld.so.conf also contains /usr/contrib/lib and
11342 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11343 # libtool to hard-code these into programs
11344 ;;
11345
11346 cygwin* | mingw* | pw32* | cegcc*)
11347 version_type=windows
11348 shrext_cmds=.dll
11349 need_version=no
11350 need_lib_prefix=no
11351
11352 case $GCC,$cc_basename in
11353 yes,*)
11354 # gcc
11355 library_names_spec='$libname.dll.a'
11356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11357 postinstall_cmds='base_file=`basename \$file`~
11358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11359 dldir=$destdir/`dirname \$dlpath`~
11360 test -d \$dldir || mkdir -p \$dldir~
11361 $install_prog $dir/$dlname \$dldir/$dlname~
11362 chmod a+x \$dldir/$dlname~
11363 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11364 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11365 fi'
11366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11367 dlpath=$dir/\$dldll~
11368 $RM \$dlpath'
11369 shlibpath_overrides_runpath=yes
11370
11371 case $host_os in
11372 cygwin*)
11373 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11374 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11375
11376 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11377 ;;
11378 mingw* | cegcc*)
11379 # MinGW DLLs use traditional 'lib' prefix
11380 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11381 ;;
11382 pw32*)
11383 # pw32 DLLs use 'pw' prefix rather than 'lib'
11384 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11385 ;;
11386 esac
11387 dynamic_linker='Win32 ld.exe'
11388 ;;
11389
11390 *,cl* | *,icl*)
11391 # Native MSVC or ICC
11392 libname_spec='$name'
11393 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11394 library_names_spec='$libname.dll.lib'
11395
11396 case $build_os in
11397 mingw*)
11398 sys_lib_search_path_spec=
11399 lt_save_ifs=$IFS
11400 IFS=';'
11401 for lt_path in $LIB
11402 do
11403 IFS=$lt_save_ifs
11404 # Let DOS variable expansion print the short 8.3 style file name.
11405 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11406 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11407 done
11408 IFS=$lt_save_ifs
11409 # Convert to MSYS style.
11410 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11411 ;;
11412 cygwin*)
11413 # Convert to unix form, then to dos form, then back to unix form
11414 # but this time dos style (no spaces!) so that the unix form looks
11415 # like /cygdrive/c/PROGRA~1:/cygdr...
11416 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11417 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11418 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11419 ;;
11420 *)
11421 sys_lib_search_path_spec=$LIB
11422 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11423 # It is most probably a Windows format PATH.
11424 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11425 else
11426 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11427 fi
11428 # FIXME: find the short name or the path components, as spaces are
11429 # common. (e.g. "Program Files" -> "PROGRA~1")
11430 ;;
11431 esac
11432
11433 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11434 postinstall_cmds='base_file=`basename \$file`~
11435 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11436 dldir=$destdir/`dirname \$dlpath`~
11437 test -d \$dldir || mkdir -p \$dldir~
11438 $install_prog $dir/$dlname \$dldir/$dlname'
11439 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11440 dlpath=$dir/\$dldll~
11441 $RM \$dlpath'
11442 shlibpath_overrides_runpath=yes
11443 dynamic_linker='Win32 link.exe'
11444 ;;
11445
11446 *)
11447 # Assume MSVC and ICC wrapper
11448 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11449 dynamic_linker='Win32 ld.exe'
11450 ;;
11451 esac
11452 # FIXME: first we should search . and the directory the executable is in
11453 shlibpath_var=PATH
11454 ;;
11455
11456 darwin* | rhapsody*)
11457 dynamic_linker="$host_os dyld"
11458 version_type=darwin
11459 need_lib_prefix=no
11460 need_version=no
11461 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11462 soname_spec='$libname$release$major$shared_ext'
11463 shlibpath_overrides_runpath=yes
11464 shlibpath_var=DYLD_LIBRARY_PATH
11465 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11466
11467 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11469 ;;
11470
11471 dgux*)
11472 version_type=linux # correct to gnu/linux during the next big refactor
11473 need_lib_prefix=no
11474 need_version=no
11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476 soname_spec='$libname$release$shared_ext$major'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 ;;
11479
11480 freebsd* | dragonfly* | midnightbsd*)
11481 # DragonFly does not have aout. When/if they implement a new
11482 # versioning mechanism, adjust this.
11483 if test -x /usr/bin/objformat; then
11484 objformat=`/usr/bin/objformat`
11485 else
11486 case $host_os in
11487 freebsd[23].*) objformat=aout ;;
11488 *) objformat=elf ;;
11489 esac
11490 fi
11491 version_type=freebsd-$objformat
11492 case $version_type in
11493 freebsd-elf*)
11494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11495 soname_spec='$libname$release$shared_ext$major'
11496 need_version=no
11497 need_lib_prefix=no
11498 ;;
11499 freebsd-*)
11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11501 need_version=yes
11502 ;;
11503 esac
11504 shlibpath_var=LD_LIBRARY_PATH
11505 case $host_os in
11506 freebsd2.*)
11507 shlibpath_overrides_runpath=yes
11508 ;;
11509 freebsd3.[01]* | freebsdelf3.[01]*)
11510 shlibpath_overrides_runpath=yes
11511 hardcode_into_libs=yes
11512 ;;
11513 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11514 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11515 shlibpath_overrides_runpath=no
11516 hardcode_into_libs=yes
11517 ;;
11518 *) # from 4.6 on, and DragonFly
11519 shlibpath_overrides_runpath=yes
11520 hardcode_into_libs=yes
11521 ;;
11522 esac
11523 ;;
11524
11525 haiku*)
11526 version_type=linux # correct to gnu/linux during the next big refactor
11527 need_lib_prefix=no
11528 need_version=no
11529 dynamic_linker="$host_os runtime_loader"
11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 soname_spec='$libname$release$shared_ext$major'
11532 shlibpath_var=LIBRARY_PATH
11533 shlibpath_overrides_runpath=no
11534 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11535 hardcode_into_libs=yes
11536 ;;
11537
11538 hpux9* | hpux10* | hpux11*)
11539 # Give a soname corresponding to the major version so that dld.sl refuses to
11540 # link against other versions.
11541 version_type=sunos
11542 need_lib_prefix=no
11543 need_version=no
11544 case $host_cpu in
11545 ia64*)
11546 shrext_cmds='.so'
11547 hardcode_into_libs=yes
11548 dynamic_linker="$host_os dld.so"
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11552 soname_spec='$libname$release$shared_ext$major'
11553 if test 32 = "$HPUX_IA64_MODE"; then
11554 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11555 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11556 else
11557 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11558 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11559 fi
11560 ;;
11561 hppa*64*)
11562 shrext_cmds='.sl'
11563 hardcode_into_libs=yes
11564 dynamic_linker="$host_os dld.sl"
11565 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11568 soname_spec='$libname$release$shared_ext$major'
11569 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11571 ;;
11572 *)
11573 shrext_cmds='.sl'
11574 dynamic_linker="$host_os dld.sl"
11575 shlibpath_var=SHLIB_PATH
11576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11578 soname_spec='$libname$release$shared_ext$major'
11579 ;;
11580 esac
11581 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11582 postinstall_cmds='chmod 555 $lib'
11583 # or fails outright, so override atomically:
11584 install_override_mode=555
11585 ;;
11586
11587 interix[3-9]*)
11588 version_type=linux # correct to gnu/linux during the next big refactor
11589 need_lib_prefix=no
11590 need_version=no
11591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11592 soname_spec='$libname$release$shared_ext$major'
11593 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 shlibpath_overrides_runpath=no
11596 hardcode_into_libs=yes
11597 ;;
11598
11599 irix5* | irix6* | nonstopux*)
11600 case $host_os in
11601 nonstopux*) version_type=nonstopux ;;
11602 *)
11603 if test yes = "$lt_cv_prog_gnu_ld"; then
11604 version_type=linux # correct to gnu/linux during the next big refactor
11605 else
11606 version_type=irix
11607 fi ;;
11608 esac
11609 need_lib_prefix=no
11610 need_version=no
11611 soname_spec='$libname$release$shared_ext$major'
11612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11613 case $host_os in
11614 irix5* | nonstopux*)
11615 libsuff= shlibsuff=
11616 ;;
11617 *)
11618 case $LD in # libtool.m4 will add one of these switches to LD
11619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11620 libsuff= shlibsuff= libmagic=32-bit;;
11621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11622 libsuff=32 shlibsuff=N32 libmagic=N32;;
11623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11624 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11625 *) libsuff= shlibsuff= libmagic=never-match;;
11626 esac
11627 ;;
11628 esac
11629 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11630 shlibpath_overrides_runpath=no
11631 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11632 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11633 hardcode_into_libs=yes
11634 ;;
11635
11636 # No shared lib support for Linux oldld, aout, or coff.
11637 linux*oldld* | linux*aout* | linux*coff*)
11638 dynamic_linker=no
11639 ;;
11640
11641 linux*android*)
11642 version_type=none # Android doesn't support versioned libraries.
11643 need_lib_prefix=no
11644 need_version=no
11645 library_names_spec='$libname$release$shared_ext'
11646 soname_spec='$libname$release$shared_ext'
11647 finish_cmds=
11648 shlibpath_var=LD_LIBRARY_PATH
11649 shlibpath_overrides_runpath=yes
11650
11651 # This implies no fast_install, which is unacceptable.
11652 # Some rework will be needed to allow for fast_install
11653 # before this can be enabled.
11654 hardcode_into_libs=yes
11655
11656 dynamic_linker='Android linker'
11657 # Don't embed -rpath directories since the linker doesn't support them.
11658 hardcode_libdir_flag_spec='-L$libdir'
11659 ;;
11660
11661 # This must be glibc/ELF.
11662 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11663 version_type=linux # correct to gnu/linux during the next big refactor
11664 need_lib_prefix=no
11665 need_version=no
11666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11667 soname_spec='$libname$release$shared_ext$major'
11668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=no
11671
11672 # Some binutils ld are patched to set DT_RUNPATH
11673 if test ${lt_cv_shlibpath_overrides_runpath+y}
11674 then :
11675 printf %s "(cached) " >&6
11676 else $as_nop
11677 lt_cv_shlibpath_overrides_runpath=no
11678 save_LDFLAGS=$LDFLAGS
11679 save_libdir=$libdir
11680 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11681 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684
11685 int
11686 main (void)
11687 {
11688
11689 ;
11690 return 0;
11691 }
11692 _ACEOF
11693 if ac_fn_c_try_link "$LINENO"
11694 then :
11695 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11696 then :
11697 lt_cv_shlibpath_overrides_runpath=yes
11698 fi
11699 fi
11700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11701 conftest$ac_exeext conftest.$ac_ext
11702 LDFLAGS=$save_LDFLAGS
11703 libdir=$save_libdir
11704
11705 fi
11706
11707 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11708
11709 # This implies no fast_install, which is unacceptable.
11710 # Some rework will be needed to allow for fast_install
11711 # before this can be enabled.
11712 hardcode_into_libs=yes
11713
11714 # Ideally, we could use ldconfig to report *all* directores which are
11715 # searched for libraries, however this is still not possible. Aside from not
11716 # being certain /sbin/ldconfig is available, command
11717 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11718 # even though it is searched at run-time. Try to do the best guess by
11719 # appending ld.so.conf contents (and includes) to the search path.
11720 if test -f /etc/ld.so.conf; then
11721 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' ' '`
11722 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11723 fi
11724
11725 # We used to test for /lib/ld.so.1 and disable shared libraries on
11726 # powerpc, because MkLinux only supported shared libraries with the
11727 # GNU dynamic linker. Since this was broken with cross compilers,
11728 # most powerpc-linux boxes support dynamic linking these days and
11729 # people can always --disable-shared, the test was removed, and we
11730 # assume the GNU/Linux dynamic linker is in use.
11731 dynamic_linker='GNU/Linux ld.so'
11732 ;;
11733
11734 netbsdelf*-gnu)
11735 version_type=linux
11736 need_lib_prefix=no
11737 need_version=no
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11739 soname_spec='${libname}${release}${shared_ext}$major'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 shlibpath_overrides_runpath=no
11742 hardcode_into_libs=yes
11743 dynamic_linker='NetBSD ld.elf_so'
11744 ;;
11745
11746 netbsd*)
11747 version_type=sunos
11748 need_lib_prefix=no
11749 need_version=no
11750 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11751 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11753 dynamic_linker='NetBSD (a.out) ld.so'
11754 else
11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11756 soname_spec='$libname$release$shared_ext$major'
11757 dynamic_linker='NetBSD ld.elf_so'
11758 fi
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=yes
11761 hardcode_into_libs=yes
11762 ;;
11763
11764 newsos6)
11765 version_type=linux # correct to gnu/linux during the next big refactor
11766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 shlibpath_overrides_runpath=yes
11769 ;;
11770
11771 *nto* | *qnx*)
11772 version_type=qnx
11773 need_lib_prefix=no
11774 need_version=no
11775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11776 soname_spec='$libname$release$shared_ext$major'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 shlibpath_overrides_runpath=no
11779 hardcode_into_libs=yes
11780 dynamic_linker='ldqnx.so'
11781 ;;
11782
11783 openbsd* | bitrig*)
11784 version_type=sunos
11785 sys_lib_dlsearch_path_spec=/usr/lib
11786 need_lib_prefix=no
11787 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11788 need_version=no
11789 else
11790 need_version=yes
11791 fi
11792 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11794 shlibpath_var=LD_LIBRARY_PATH
11795 shlibpath_overrides_runpath=yes
11796 ;;
11797
11798 os2*)
11799 libname_spec='$name'
11800 version_type=windows
11801 shrext_cmds=.dll
11802 need_version=no
11803 need_lib_prefix=no
11804 # OS/2 can only load a DLL with a base name of 8 characters or less.
11805 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11806 v=$($ECHO $release$versuffix | tr -d .-);
11807 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11808 $ECHO $n$v`$shared_ext'
11809 library_names_spec='${libname}_dll.$libext'
11810 dynamic_linker='OS/2 ld.exe'
11811 shlibpath_var=BEGINLIBPATH
11812 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11814 postinstall_cmds='base_file=`basename \$file`~
11815 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11816 dldir=$destdir/`dirname \$dlpath`~
11817 test -d \$dldir || mkdir -p \$dldir~
11818 $install_prog $dir/$dlname \$dldir/$dlname~
11819 chmod a+x \$dldir/$dlname~
11820 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11821 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11822 fi'
11823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11824 dlpath=$dir/\$dldll~
11825 $RM \$dlpath'
11826 ;;
11827
11828 osf3* | osf4* | osf5*)
11829 version_type=osf
11830 need_lib_prefix=no
11831 need_version=no
11832 soname_spec='$libname$release$shared_ext$major'
11833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11837 ;;
11838
11839 rdos*)
11840 dynamic_linker=no
11841 ;;
11842
11843 solaris*)
11844 version_type=linux # correct to gnu/linux during the next big refactor
11845 need_lib_prefix=no
11846 need_version=no
11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848 soname_spec='$libname$release$shared_ext$major'
11849 shlibpath_var=LD_LIBRARY_PATH
11850 shlibpath_overrides_runpath=yes
11851 hardcode_into_libs=yes
11852 # ldd complains unless libraries are executable
11853 postinstall_cmds='chmod +x $lib'
11854 ;;
11855
11856 sunos4*)
11857 version_type=sunos
11858 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11860 shlibpath_var=LD_LIBRARY_PATH
11861 shlibpath_overrides_runpath=yes
11862 if test yes = "$with_gnu_ld"; then
11863 need_lib_prefix=no
11864 fi
11865 need_version=yes
11866 ;;
11867
11868 sysv4 | sysv4.3*)
11869 version_type=linux # correct to gnu/linux during the next big refactor
11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11871 soname_spec='$libname$release$shared_ext$major'
11872 shlibpath_var=LD_LIBRARY_PATH
11873 case $host_vendor in
11874 sni)
11875 shlibpath_overrides_runpath=no
11876 need_lib_prefix=no
11877 runpath_var=LD_RUN_PATH
11878 ;;
11879 siemens)
11880 need_lib_prefix=no
11881 ;;
11882 motorola)
11883 need_lib_prefix=no
11884 need_version=no
11885 shlibpath_overrides_runpath=no
11886 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11887 ;;
11888 esac
11889 ;;
11890
11891 sysv4*MP*)
11892 if test -d /usr/nec; then
11893 version_type=linux # correct to gnu/linux during the next big refactor
11894 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11895 soname_spec='$libname$shared_ext.$major'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 fi
11898 ;;
11899
11900 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11901 version_type=sco
11902 need_lib_prefix=no
11903 need_version=no
11904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11905 soname_spec='$libname$release$shared_ext$major'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=yes
11908 hardcode_into_libs=yes
11909 if test yes = "$with_gnu_ld"; then
11910 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11911 else
11912 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11913 case $host_os in
11914 sco3.2v5*)
11915 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11916 ;;
11917 esac
11918 fi
11919 sys_lib_dlsearch_path_spec='/usr/lib'
11920 ;;
11921
11922 tpf*)
11923 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11924 version_type=linux # correct to gnu/linux during the next big refactor
11925 need_lib_prefix=no
11926 need_version=no
11927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 shlibpath_overrides_runpath=no
11930 hardcode_into_libs=yes
11931 ;;
11932
11933 uts4*)
11934 version_type=linux # correct to gnu/linux during the next big refactor
11935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11936 soname_spec='$libname$release$shared_ext$major'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 ;;
11939
11940 *)
11941 dynamic_linker=no
11942 ;;
11943 esac
11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11945 printf "%s\n" "$dynamic_linker" >&6; }
11946 test no = "$dynamic_linker" && can_build_shared=no
11947
11948 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11949 if test yes = "$GCC"; then
11950 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11951 fi
11952
11953 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11954 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11955 fi
11956
11957 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11958 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11959 fi
11960
11961 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11962 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11963
11964 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11965 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11966
11967 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11968 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12067 printf %s "checking how to hardcode library paths into programs... " >&6; }
12068 hardcode_action=
12069 if test -n "$hardcode_libdir_flag_spec" ||
12070 test -n "$runpath_var" ||
12071 test yes = "$hardcode_automatic"; then
12072
12073 # We can hardcode non-existent directories.
12074 if test no != "$hardcode_direct" &&
12075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12076 # have to relink, otherwise we might link with an installed library
12077 # when we should be linking with a yet-to-be-installed one
12078 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12079 test no != "$hardcode_minus_L"; then
12080 # Linking always hardcodes the temporary library directory.
12081 hardcode_action=relink
12082 else
12083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12084 hardcode_action=immediate
12085 fi
12086 else
12087 # We cannot hardcode anything, or else we can only hardcode existing
12088 # directories.
12089 hardcode_action=unsupported
12090 fi
12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12092 printf "%s\n" "$hardcode_action" >&6; }
12093
12094 if test relink = "$hardcode_action" ||
12095 test yes = "$inherit_rpath"; then
12096 # Fast installation is not supported
12097 enable_fast_install=no
12098 elif test yes = "$shlibpath_overrides_runpath" ||
12099 test no = "$enable_shared"; then
12100 # Fast installation is not necessary
12101 enable_fast_install=needless
12102 fi
12103
12104
12105
12106
12107
12108
12109 if test yes != "$enable_dlopen"; then
12110 enable_dlopen=unknown
12111 enable_dlopen_self=unknown
12112 enable_dlopen_self_static=unknown
12113 else
12114 lt_cv_dlopen=no
12115 lt_cv_dlopen_libs=
12116
12117 case $host_os in
12118 beos*)
12119 lt_cv_dlopen=load_add_on
12120 lt_cv_dlopen_libs=
12121 lt_cv_dlopen_self=yes
12122 ;;
12123
12124 mingw* | pw32* | cegcc*)
12125 lt_cv_dlopen=LoadLibrary
12126 lt_cv_dlopen_libs=
12127 ;;
12128
12129 cygwin*)
12130 lt_cv_dlopen=dlopen
12131 lt_cv_dlopen_libs=
12132 ;;
12133
12134 darwin*)
12135 # if libdl is installed we need to link against it
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12137 printf %s "checking for dlopen in -ldl... " >&6; }
12138 if test ${ac_cv_lib_dl_dlopen+y}
12139 then :
12140 printf %s "(cached) " >&6
12141 else $as_nop
12142 ac_check_lib_save_LIBS=$LIBS
12143 LIBS="-ldl $LIBS"
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12146
12147 /* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12150 char dlopen ();
12151 int
12152 main (void)
12153 {
12154 return dlopen ();
12155 ;
12156 return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"
12160 then :
12161 ac_cv_lib_dl_dlopen=yes
12162 else $as_nop
12163 ac_cv_lib_dl_dlopen=no
12164 fi
12165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12166 conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12168 fi
12169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12170 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12171 if test "x$ac_cv_lib_dl_dlopen" = xyes
12172 then :
12173 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12174 else $as_nop
12175
12176 lt_cv_dlopen=dyld
12177 lt_cv_dlopen_libs=
12178 lt_cv_dlopen_self=yes
12179
12180 fi
12181
12182 ;;
12183
12184 tpf*)
12185 # Don't try to run any link tests for TPF. We know it's impossible
12186 # because TPF is a cross-compiler, and we know how we open DSOs.
12187 lt_cv_dlopen=dlopen
12188 lt_cv_dlopen_libs=
12189 lt_cv_dlopen_self=no
12190 ;;
12191
12192 *)
12193 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12194 if test "x$ac_cv_func_shl_load" = xyes
12195 then :
12196 lt_cv_dlopen=shl_load
12197 else $as_nop
12198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12199 printf %s "checking for shl_load in -ldld... " >&6; }
12200 if test ${ac_cv_lib_dld_shl_load+y}
12201 then :
12202 printf %s "(cached) " >&6
12203 else $as_nop
12204 ac_check_lib_save_LIBS=$LIBS
12205 LIBS="-ldld $LIBS"
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12212 char shl_load ();
12213 int
12214 main (void)
12215 {
12216 return shl_load ();
12217 ;
12218 return 0;
12219 }
12220 _ACEOF
12221 if ac_fn_c_try_link "$LINENO"
12222 then :
12223 ac_cv_lib_dld_shl_load=yes
12224 else $as_nop
12225 ac_cv_lib_dld_shl_load=no
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12230 fi
12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12232 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12233 if test "x$ac_cv_lib_dld_shl_load" = xyes
12234 then :
12235 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12236 else $as_nop
12237 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12238 if test "x$ac_cv_func_dlopen" = xyes
12239 then :
12240 lt_cv_dlopen=dlopen
12241 else $as_nop
12242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12243 printf %s "checking for dlopen in -ldl... " >&6; }
12244 if test ${ac_cv_lib_dl_dlopen+y}
12245 then :
12246 printf %s "(cached) " >&6
12247 else $as_nop
12248 ac_check_lib_save_LIBS=$LIBS
12249 LIBS="-ldl $LIBS"
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252
12253 /* Override any GCC internal prototype to avoid an error.
12254 Use char because int might match the return type of a GCC
12255 builtin and then its argument prototype would still apply. */
12256 char dlopen ();
12257 int
12258 main (void)
12259 {
12260 return dlopen ();
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 if ac_fn_c_try_link "$LINENO"
12266 then :
12267 ac_cv_lib_dl_dlopen=yes
12268 else $as_nop
12269 ac_cv_lib_dl_dlopen=no
12270 fi
12271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12272 conftest$ac_exeext conftest.$ac_ext
12273 LIBS=$ac_check_lib_save_LIBS
12274 fi
12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12276 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12277 if test "x$ac_cv_lib_dl_dlopen" = xyes
12278 then :
12279 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12280 else $as_nop
12281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12282 printf %s "checking for dlopen in -lsvld... " >&6; }
12283 if test ${ac_cv_lib_svld_dlopen+y}
12284 then :
12285 printf %s "(cached) " >&6
12286 else $as_nop
12287 ac_check_lib_save_LIBS=$LIBS
12288 LIBS="-lsvld $LIBS"
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12291
12292 /* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295 char dlopen ();
12296 int
12297 main (void)
12298 {
12299 return dlopen ();
12300 ;
12301 return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_link "$LINENO"
12305 then :
12306 ac_cv_lib_svld_dlopen=yes
12307 else $as_nop
12308 ac_cv_lib_svld_dlopen=no
12309 fi
12310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12311 conftest$ac_exeext conftest.$ac_ext
12312 LIBS=$ac_check_lib_save_LIBS
12313 fi
12314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12315 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12316 if test "x$ac_cv_lib_svld_dlopen" = xyes
12317 then :
12318 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12319 else $as_nop
12320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12321 printf %s "checking for dld_link in -ldld... " >&6; }
12322 if test ${ac_cv_lib_dld_dld_link+y}
12323 then :
12324 printf %s "(cached) " >&6
12325 else $as_nop
12326 ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-ldld $LIBS"
12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330
12331 /* Override any GCC internal prototype to avoid an error.
12332 Use char because int might match the return type of a GCC
12333 builtin and then its argument prototype would still apply. */
12334 char dld_link ();
12335 int
12336 main (void)
12337 {
12338 return dld_link ();
12339 ;
12340 return 0;
12341 }
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"
12344 then :
12345 ac_cv_lib_dld_dld_link=yes
12346 else $as_nop
12347 ac_cv_lib_dld_dld_link=no
12348 fi
12349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12350 conftest$ac_exeext conftest.$ac_ext
12351 LIBS=$ac_check_lib_save_LIBS
12352 fi
12353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12354 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12355 if test "x$ac_cv_lib_dld_dld_link" = xyes
12356 then :
12357 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12358 fi
12359
12360
12361 fi
12362
12363
12364 fi
12365
12366
12367 fi
12368
12369
12370 fi
12371
12372
12373 fi
12374
12375 ;;
12376 esac
12377
12378 if test no = "$lt_cv_dlopen"; then
12379 enable_dlopen=no
12380 else
12381 enable_dlopen=yes
12382 fi
12383
12384 case $lt_cv_dlopen in
12385 dlopen)
12386 save_CPPFLAGS=$CPPFLAGS
12387 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12388
12389 save_LDFLAGS=$LDFLAGS
12390 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12391
12392 save_LIBS=$LIBS
12393 LIBS="$lt_cv_dlopen_libs $LIBS"
12394
12395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12396 printf %s "checking whether a program can dlopen itself... " >&6; }
12397 if test ${lt_cv_dlopen_self+y}
12398 then :
12399 printf %s "(cached) " >&6
12400 else $as_nop
12401 if test yes = "$cross_compiling"; then :
12402 lt_cv_dlopen_self=cross
12403 else
12404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12405 lt_status=$lt_dlunknown
12406 cat > conftest.$ac_ext <<_LT_EOF
12407 #line $LINENO "configure"
12408 #include "confdefs.h"
12409
12410 #if HAVE_DLFCN_H
12411 #include <dlfcn.h>
12412 #endif
12413
12414 #include <stdio.h>
12415
12416 #ifdef RTLD_GLOBAL
12417 # define LT_DLGLOBAL RTLD_GLOBAL
12418 #else
12419 # ifdef DL_GLOBAL
12420 # define LT_DLGLOBAL DL_GLOBAL
12421 # else
12422 # define LT_DLGLOBAL 0
12423 # endif
12424 #endif
12425
12426 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12427 find out it does not work in some platform. */
12428 #ifndef LT_DLLAZY_OR_NOW
12429 # ifdef RTLD_LAZY
12430 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12431 # else
12432 # ifdef DL_LAZY
12433 # define LT_DLLAZY_OR_NOW DL_LAZY
12434 # else
12435 # ifdef RTLD_NOW
12436 # define LT_DLLAZY_OR_NOW RTLD_NOW
12437 # else
12438 # ifdef DL_NOW
12439 # define LT_DLLAZY_OR_NOW DL_NOW
12440 # else
12441 # define LT_DLLAZY_OR_NOW 0
12442 # endif
12443 # endif
12444 # endif
12445 # endif
12446 #endif
12447
12448 /* When -fvisibility=hidden is used, assume the code has been annotated
12449 correspondingly for the symbols needed. */
12450 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12451 int fnord () __attribute__((visibility("default")));
12452 #endif
12453
12454 int fnord () { return 42; }
12455 int main ()
12456 {
12457 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12458 int status = $lt_dlunknown;
12459
12460 if (self)
12461 {
12462 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12463 else
12464 {
12465 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12466 else puts (dlerror ());
12467 }
12468 /* dlclose (self); */
12469 }
12470 else
12471 puts (dlerror ());
12472
12473 return status;
12474 }
12475 _LT_EOF
12476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12477 (eval $ac_link) 2>&5
12478 ac_status=$?
12479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12480 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12481 (./conftest; exit; ) >&5 2>/dev/null
12482 lt_status=$?
12483 case x$lt_status in
12484 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12485 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12486 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12487 esac
12488 else :
12489 # compilation failed
12490 lt_cv_dlopen_self=no
12491 fi
12492 fi
12493 rm -fr conftest*
12494
12495
12496 fi
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12498 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12499
12500 if test yes = "$lt_cv_dlopen_self"; then
12501 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12503 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12504 if test ${lt_cv_dlopen_self_static+y}
12505 then :
12506 printf %s "(cached) " >&6
12507 else $as_nop
12508 if test yes = "$cross_compiling"; then :
12509 lt_cv_dlopen_self_static=cross
12510 else
12511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12512 lt_status=$lt_dlunknown
12513 cat > conftest.$ac_ext <<_LT_EOF
12514 #line $LINENO "configure"
12515 #include "confdefs.h"
12516
12517 #if HAVE_DLFCN_H
12518 #include <dlfcn.h>
12519 #endif
12520
12521 #include <stdio.h>
12522
12523 #ifdef RTLD_GLOBAL
12524 # define LT_DLGLOBAL RTLD_GLOBAL
12525 #else
12526 # ifdef DL_GLOBAL
12527 # define LT_DLGLOBAL DL_GLOBAL
12528 # else
12529 # define LT_DLGLOBAL 0
12530 # endif
12531 #endif
12532
12533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12534 find out it does not work in some platform. */
12535 #ifndef LT_DLLAZY_OR_NOW
12536 # ifdef RTLD_LAZY
12537 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12538 # else
12539 # ifdef DL_LAZY
12540 # define LT_DLLAZY_OR_NOW DL_LAZY
12541 # else
12542 # ifdef RTLD_NOW
12543 # define LT_DLLAZY_OR_NOW RTLD_NOW
12544 # else
12545 # ifdef DL_NOW
12546 # define LT_DLLAZY_OR_NOW DL_NOW
12547 # else
12548 # define LT_DLLAZY_OR_NOW 0
12549 # endif
12550 # endif
12551 # endif
12552 # endif
12553 #endif
12554
12555 /* When -fvisibility=hidden is used, assume the code has been annotated
12556 correspondingly for the symbols needed. */
12557 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12558 int fnord () __attribute__((visibility("default")));
12559 #endif
12560
12561 int fnord () { return 42; }
12562 int main ()
12563 {
12564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12565 int status = $lt_dlunknown;
12566
12567 if (self)
12568 {
12569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12570 else
12571 {
12572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12573 else puts (dlerror ());
12574 }
12575 /* dlclose (self); */
12576 }
12577 else
12578 puts (dlerror ());
12579
12580 return status;
12581 }
12582 _LT_EOF
12583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12584 (eval $ac_link) 2>&5
12585 ac_status=$?
12586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12587 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12588 (./conftest; exit; ) >&5 2>/dev/null
12589 lt_status=$?
12590 case x$lt_status in
12591 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12592 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12593 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12594 esac
12595 else :
12596 # compilation failed
12597 lt_cv_dlopen_self_static=no
12598 fi
12599 fi
12600 rm -fr conftest*
12601
12602
12603 fi
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12605 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12606 fi
12607
12608 CPPFLAGS=$save_CPPFLAGS
12609 LDFLAGS=$save_LDFLAGS
12610 LIBS=$save_LIBS
12611 ;;
12612 esac
12613
12614 case $lt_cv_dlopen_self in
12615 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12616 *) enable_dlopen_self=unknown ;;
12617 esac
12618
12619 case $lt_cv_dlopen_self_static in
12620 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12621 *) enable_dlopen_self_static=unknown ;;
12622 esac
12623 fi
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641 striplib=
12642 old_striplib=
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12644 printf %s "checking whether stripping libraries is possible... " >&6; }
12645 if test -z "$STRIP"; then
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647 printf "%s\n" "no" >&6; }
12648 else
12649 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12650 old_striplib="$STRIP --strip-debug"
12651 striplib="$STRIP --strip-unneeded"
12652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12653 printf "%s\n" "yes" >&6; }
12654 else
12655 case $host_os in
12656 darwin*)
12657 # FIXME - insert some real tests, host_os isn't really good enough
12658 striplib="$STRIP -x"
12659 old_striplib="$STRIP -S"
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12661 printf "%s\n" "yes" >&6; }
12662 ;;
12663 freebsd*)
12664 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12665 old_striplib="$STRIP --strip-debug"
12666 striplib="$STRIP --strip-unneeded"
12667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12668 printf "%s\n" "yes" >&6; }
12669 else
12670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 printf "%s\n" "no" >&6; }
12672 fi
12673 ;;
12674 *)
12675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 printf "%s\n" "no" >&6; }
12677 ;;
12678 esac
12679 fi
12680 fi
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693 # Report what library types will actually be built
12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12695 printf %s "checking if libtool supports shared libraries... " >&6; }
12696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12697 printf "%s\n" "$can_build_shared" >&6; }
12698
12699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12700 printf %s "checking whether to build shared libraries... " >&6; }
12701 test no = "$can_build_shared" && enable_shared=no
12702
12703 # On AIX, shared libraries and static libraries use the same namespace, and
12704 # are all built from PIC.
12705 case $host_os in
12706 aix3*)
12707 test yes = "$enable_shared" && enable_static=no
12708 if test -n "$RANLIB"; then
12709 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12710 postinstall_cmds='$RANLIB $lib'
12711 fi
12712 ;;
12713
12714 aix[4-9]*)
12715 if test ia64 != "$host_cpu"; then
12716 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12717 yes,aix,yes) ;; # shared object as lib.so file only
12718 yes,svr4,*) ;; # shared object as lib.so archive member only
12719 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12720 esac
12721 fi
12722 ;;
12723 esac
12724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12725 printf "%s\n" "$enable_shared" >&6; }
12726
12727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12728 printf %s "checking whether to build static libraries... " >&6; }
12729 # Make sure either enable_shared or enable_static is yes.
12730 test yes = "$enable_shared" || enable_static=yes
12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12732 printf "%s\n" "$enable_static" >&6; }
12733
12734
12735
12736
12737 fi
12738 ac_ext=c
12739 ac_cpp='$CPP $CPPFLAGS'
12740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12743
12744 CC=$lt_save_CC
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760 ac_config_commands="$ac_config_commands libtool"
12761
12762
12763
12764
12765 # Only expand once:
12766
12767
12768
12769 # Extract the first word of "pkg-config", so it can be a program name with args.
12770 set dummy pkg-config; ac_word=$2
12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772 printf %s "checking for $ac_word... " >&6; }
12773 if test ${ac_cv_path_PKG_CONFIG_INSTALLED+y}
12774 then :
12775 printf %s "(cached) " >&6
12776 else $as_nop
12777 case $PKG_CONFIG_INSTALLED in
12778 [\\/]* | ?:[\\/]*)
12779 ac_cv_path_PKG_CONFIG_INSTALLED="$PKG_CONFIG_INSTALLED" # Let the user override the test with a path.
12780 ;;
12781 *)
12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12784 do
12785 IFS=$as_save_IFS
12786 case $as_dir in #(((
12787 '') as_dir=./ ;;
12788 */) ;;
12789 *) as_dir=$as_dir/ ;;
12790 esac
12791 for ac_exec_ext in '' $ac_executable_extensions; do
12792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12793 ac_cv_path_PKG_CONFIG_INSTALLED="$as_dir$ac_word$ac_exec_ext"
12794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12795 break 2
12796 fi
12797 done
12798 done
12799 IFS=$as_save_IFS
12800
12801 test -z "$ac_cv_path_PKG_CONFIG_INSTALLED" && ac_cv_path_PKG_CONFIG_INSTALLED="no"
12802 ;;
12803 esac
12804 fi
12805 PKG_CONFIG_INSTALLED=$ac_cv_path_PKG_CONFIG_INSTALLED
12806 if test -n "$PKG_CONFIG_INSTALLED"; then
12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG_INSTALLED" >&5
12808 printf "%s\n" "$PKG_CONFIG_INSTALLED" >&6; }
12809 else
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 printf "%s\n" "no" >&6; }
12812 fi
12813
12814
12815 if test "x$PKG_CONFIG_INSTALLED" = "xno"; then
12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need to install pkg-config" >&5
12817 printf "%s\n" "$as_me: WARNING: You need to install pkg-config" >&2;}
12818 fi
12819
12820
12821
12822
12823
12824
12825
12826 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12827 if test -n "$ac_tool_prefix"; then
12828 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12829 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831 printf %s "checking for $ac_word... " >&6; }
12832 if test ${ac_cv_path_PKG_CONFIG+y}
12833 then :
12834 printf %s "(cached) " >&6
12835 else $as_nop
12836 case $PKG_CONFIG in
12837 [\\/]* | ?:[\\/]*)
12838 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12839 ;;
12840 *)
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12843 do
12844 IFS=$as_save_IFS
12845 case $as_dir in #(((
12846 '') as_dir=./ ;;
12847 */) ;;
12848 *) as_dir=$as_dir/ ;;
12849 esac
12850 for ac_exec_ext in '' $ac_executable_extensions; do
12851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12852 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12854 break 2
12855 fi
12856 done
12857 done
12858 IFS=$as_save_IFS
12859
12860 ;;
12861 esac
12862 fi
12863 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12864 if test -n "$PKG_CONFIG"; then
12865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12866 printf "%s\n" "$PKG_CONFIG" >&6; }
12867 else
12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 printf "%s\n" "no" >&6; }
12870 fi
12871
12872
12873 fi
12874 if test -z "$ac_cv_path_PKG_CONFIG"; then
12875 ac_pt_PKG_CONFIG=$PKG_CONFIG
12876 # Extract the first word of "pkg-config", so it can be a program name with args.
12877 set dummy pkg-config; ac_word=$2
12878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12879 printf %s "checking for $ac_word... " >&6; }
12880 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12881 then :
12882 printf %s "(cached) " >&6
12883 else $as_nop
12884 case $ac_pt_PKG_CONFIG in
12885 [\\/]* | ?:[\\/]*)
12886 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12887 ;;
12888 *)
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12891 do
12892 IFS=$as_save_IFS
12893 case $as_dir in #(((
12894 '') as_dir=./ ;;
12895 */) ;;
12896 *) as_dir=$as_dir/ ;;
12897 esac
12898 for ac_exec_ext in '' $ac_executable_extensions; do
12899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12900 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12902 break 2
12903 fi
12904 done
12905 done
12906 IFS=$as_save_IFS
12907
12908 ;;
12909 esac
12910 fi
12911 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12912 if test -n "$ac_pt_PKG_CONFIG"; then
12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12914 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12915 else
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 printf "%s\n" "no" >&6; }
12918 fi
12919
12920 if test "x$ac_pt_PKG_CONFIG" = x; then
12921 PKG_CONFIG=""
12922 else
12923 case $cross_compiling:$ac_tool_warned in
12924 yes:)
12925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12926 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12927 ac_tool_warned=yes ;;
12928 esac
12929 PKG_CONFIG=$ac_pt_PKG_CONFIG
12930 fi
12931 else
12932 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12933 fi
12934
12935 fi
12936 if test -n "$PKG_CONFIG"; then
12937 _pkg_min_version=0.20
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12939 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12940 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12942 printf "%s\n" "yes" >&6; }
12943 else
12944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 printf "%s\n" "no" >&6; }
12946 PKG_CONFIG=""
12947 fi
12948 fi
12949
12950
12951 pkg_failed=no
12952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libosmocore >= 1.10.0" >&5
12953 printf %s "checking for libosmocore >= 1.10.0... " >&6; }
12954
12955 if test -n "$LIBOSMOCORE_CFLAGS"; then
12956 pkg_cv_LIBOSMOCORE_CFLAGS="$LIBOSMOCORE_CFLAGS"
12957 elif test -n "$PKG_CONFIG"; then
12958 if test -n "$PKG_CONFIG" && \
12959 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmocore >= 1.10.0\""; } >&5
12960 ($PKG_CONFIG --exists --print-errors "libosmocore >= 1.10.0") 2>&5
12961 ac_status=$?
12962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; }; then
12964 pkg_cv_LIBOSMOCORE_CFLAGS=`$PKG_CONFIG --cflags "libosmocore >= 1.10.0" 2>/dev/null`
12965 test "x$?" != "x0" && pkg_failed=yes
12966 else
12967 pkg_failed=yes
12968 fi
12969 else
12970 pkg_failed=untried
12971 fi
12972 if test -n "$LIBOSMOCORE_LIBS"; then
12973 pkg_cv_LIBOSMOCORE_LIBS="$LIBOSMOCORE_LIBS"
12974 elif test -n "$PKG_CONFIG"; then
12975 if test -n "$PKG_CONFIG" && \
12976 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmocore >= 1.10.0\""; } >&5
12977 ($PKG_CONFIG --exists --print-errors "libosmocore >= 1.10.0") 2>&5
12978 ac_status=$?
12979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12980 test $ac_status = 0; }; then
12981 pkg_cv_LIBOSMOCORE_LIBS=`$PKG_CONFIG --libs "libosmocore >= 1.10.0" 2>/dev/null`
12982 test "x$?" != "x0" && pkg_failed=yes
12983 else
12984 pkg_failed=yes
12985 fi
12986 else
12987 pkg_failed=untried
12988 fi
12989
12990
12991
12992 if test $pkg_failed = yes; then
12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 printf "%s\n" "no" >&6; }
12995
12996 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12997 _pkg_short_errors_supported=yes
12998 else
12999 _pkg_short_errors_supported=no
13000 fi
13001 if test $_pkg_short_errors_supported = yes; then
13002 LIBOSMOCORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmocore >= 1.10.0" 2>&1`
13003 else
13004 LIBOSMOCORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmocore >= 1.10.0" 2>&1`
13005 fi
13006 # Put the nasty error message in config.log where it belongs
13007 echo "$LIBOSMOCORE_PKG_ERRORS" >&5
13008
13009 as_fn_error $? "Package requirements (libosmocore >= 1.10.0) were not met:
13010
13011 $LIBOSMOCORE_PKG_ERRORS
13012
13013 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13014 installed software in a non-standard prefix.
13015
13016 Alternatively, you may set the environment variables LIBOSMOCORE_CFLAGS
13017 and LIBOSMOCORE_LIBS to avoid the need to call pkg-config.
13018 See the pkg-config man page for more details." "$LINENO" 5
13019 elif test $pkg_failed = untried; then
13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021 printf "%s\n" "no" >&6; }
13022 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13023 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13024 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13025 is in your PATH or set the PKG_CONFIG environment variable to the full
13026 path to pkg-config.
13027
13028 Alternatively, you may set the environment variables LIBOSMOCORE_CFLAGS
13029 and LIBOSMOCORE_LIBS to avoid the need to call pkg-config.
13030 See the pkg-config man page for more details.
13031
13032 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13033 See \`config.log' for more details" "$LINENO" 5; }
13034 else
13035 LIBOSMOCORE_CFLAGS=$pkg_cv_LIBOSMOCORE_CFLAGS
13036 LIBOSMOCORE_LIBS=$pkg_cv_LIBOSMOCORE_LIBS
13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13038 printf "%s\n" "yes" >&6; }
13039
13040 fi
13041
13042 pkg_failed=no
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libosmovty >= 1.10.0" >&5
13044 printf %s "checking for libosmovty >= 1.10.0... " >&6; }
13045
13046 if test -n "$LIBOSMOVTY_CFLAGS"; then
13047 pkg_cv_LIBOSMOVTY_CFLAGS="$LIBOSMOVTY_CFLAGS"
13048 elif test -n "$PKG_CONFIG"; then
13049 if test -n "$PKG_CONFIG" && \
13050 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmovty >= 1.10.0\""; } >&5
13051 ($PKG_CONFIG --exists --print-errors "libosmovty >= 1.10.0") 2>&5
13052 ac_status=$?
13053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13054 test $ac_status = 0; }; then
13055 pkg_cv_LIBOSMOVTY_CFLAGS=`$PKG_CONFIG --cflags "libosmovty >= 1.10.0" 2>/dev/null`
13056 test "x$?" != "x0" && pkg_failed=yes
13057 else
13058 pkg_failed=yes
13059 fi
13060 else
13061 pkg_failed=untried
13062 fi
13063 if test -n "$LIBOSMOVTY_LIBS"; then
13064 pkg_cv_LIBOSMOVTY_LIBS="$LIBOSMOVTY_LIBS"
13065 elif test -n "$PKG_CONFIG"; then
13066 if test -n "$PKG_CONFIG" && \
13067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmovty >= 1.10.0\""; } >&5
13068 ($PKG_CONFIG --exists --print-errors "libosmovty >= 1.10.0") 2>&5
13069 ac_status=$?
13070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13071 test $ac_status = 0; }; then
13072 pkg_cv_LIBOSMOVTY_LIBS=`$PKG_CONFIG --libs "libosmovty >= 1.10.0" 2>/dev/null`
13073 test "x$?" != "x0" && pkg_failed=yes
13074 else
13075 pkg_failed=yes
13076 fi
13077 else
13078 pkg_failed=untried
13079 fi
13080
13081
13082
13083 if test $pkg_failed = yes; then
13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 printf "%s\n" "no" >&6; }
13086
13087 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13088 _pkg_short_errors_supported=yes
13089 else
13090 _pkg_short_errors_supported=no
13091 fi
13092 if test $_pkg_short_errors_supported = yes; then
13093 LIBOSMOVTY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmovty >= 1.10.0" 2>&1`
13094 else
13095 LIBOSMOVTY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmovty >= 1.10.0" 2>&1`
13096 fi
13097 # Put the nasty error message in config.log where it belongs
13098 echo "$LIBOSMOVTY_PKG_ERRORS" >&5
13099
13100 as_fn_error $? "Package requirements (libosmovty >= 1.10.0) were not met:
13101
13102 $LIBOSMOVTY_PKG_ERRORS
13103
13104 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13105 installed software in a non-standard prefix.
13106
13107 Alternatively, you may set the environment variables LIBOSMOVTY_CFLAGS
13108 and LIBOSMOVTY_LIBS to avoid the need to call pkg-config.
13109 See the pkg-config man page for more details." "$LINENO" 5
13110 elif test $pkg_failed = untried; then
13111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112 printf "%s\n" "no" >&6; }
13113 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13114 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13115 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13116 is in your PATH or set the PKG_CONFIG environment variable to the full
13117 path to pkg-config.
13118
13119 Alternatively, you may set the environment variables LIBOSMOVTY_CFLAGS
13120 and LIBOSMOVTY_LIBS to avoid the need to call pkg-config.
13121 See the pkg-config man page for more details.
13122
13123 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13124 See \`config.log' for more details" "$LINENO" 5; }
13125 else
13126 LIBOSMOVTY_CFLAGS=$pkg_cv_LIBOSMOVTY_CFLAGS
13127 LIBOSMOVTY_LIBS=$pkg_cv_LIBOSMOVTY_LIBS
13128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13129 printf "%s\n" "yes" >&6; }
13130
13131 fi
13132
13133 pkg_failed=no
13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libosmogsm >= 1.10.0" >&5
13135 printf %s "checking for libosmogsm >= 1.10.0... " >&6; }
13136
13137 if test -n "$LIBOSMOGSM_CFLAGS"; then
13138 pkg_cv_LIBOSMOGSM_CFLAGS="$LIBOSMOGSM_CFLAGS"
13139 elif test -n "$PKG_CONFIG"; then
13140 if test -n "$PKG_CONFIG" && \
13141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmogsm >= 1.10.0\""; } >&5
13142 ($PKG_CONFIG --exists --print-errors "libosmogsm >= 1.10.0") 2>&5
13143 ac_status=$?
13144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13145 test $ac_status = 0; }; then
13146 pkg_cv_LIBOSMOGSM_CFLAGS=`$PKG_CONFIG --cflags "libosmogsm >= 1.10.0" 2>/dev/null`
13147 test "x$?" != "x0" && pkg_failed=yes
13148 else
13149 pkg_failed=yes
13150 fi
13151 else
13152 pkg_failed=untried
13153 fi
13154 if test -n "$LIBOSMOGSM_LIBS"; then
13155 pkg_cv_LIBOSMOGSM_LIBS="$LIBOSMOGSM_LIBS"
13156 elif test -n "$PKG_CONFIG"; then
13157 if test -n "$PKG_CONFIG" && \
13158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmogsm >= 1.10.0\""; } >&5
13159 ($PKG_CONFIG --exists --print-errors "libosmogsm >= 1.10.0") 2>&5
13160 ac_status=$?
13161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13162 test $ac_status = 0; }; then
13163 pkg_cv_LIBOSMOGSM_LIBS=`$PKG_CONFIG --libs "libosmogsm >= 1.10.0" 2>/dev/null`
13164 test "x$?" != "x0" && pkg_failed=yes
13165 else
13166 pkg_failed=yes
13167 fi
13168 else
13169 pkg_failed=untried
13170 fi
13171
13172
13173
13174 if test $pkg_failed = yes; then
13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 printf "%s\n" "no" >&6; }
13177
13178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13179 _pkg_short_errors_supported=yes
13180 else
13181 _pkg_short_errors_supported=no
13182 fi
13183 if test $_pkg_short_errors_supported = yes; then
13184 LIBOSMOGSM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmogsm >= 1.10.0" 2>&1`
13185 else
13186 LIBOSMOGSM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmogsm >= 1.10.0" 2>&1`
13187 fi
13188 # Put the nasty error message in config.log where it belongs
13189 echo "$LIBOSMOGSM_PKG_ERRORS" >&5
13190
13191 as_fn_error $? "Package requirements (libosmogsm >= 1.10.0) were not met:
13192
13193 $LIBOSMOGSM_PKG_ERRORS
13194
13195 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13196 installed software in a non-standard prefix.
13197
13198 Alternatively, you may set the environment variables LIBOSMOGSM_CFLAGS
13199 and LIBOSMOGSM_LIBS to avoid the need to call pkg-config.
13200 See the pkg-config man page for more details." "$LINENO" 5
13201 elif test $pkg_failed = untried; then
13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 printf "%s\n" "no" >&6; }
13204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13205 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13206 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13207 is in your PATH or set the PKG_CONFIG environment variable to the full
13208 path to pkg-config.
13209
13210 Alternatively, you may set the environment variables LIBOSMOGSM_CFLAGS
13211 and LIBOSMOGSM_LIBS to avoid the need to call pkg-config.
13212 See the pkg-config man page for more details.
13213
13214 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13215 See \`config.log' for more details" "$LINENO" 5; }
13216 else
13217 LIBOSMOGSM_CFLAGS=$pkg_cv_LIBOSMOGSM_CFLAGS
13218 LIBOSMOGSM_LIBS=$pkg_cv_LIBOSMOGSM_LIBS
13219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13220 printf "%s\n" "yes" >&6; }
13221
13222 fi
13223
13224 pkg_failed=no
13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libosmo-netif >= 1.5.0" >&5
13226 printf %s "checking for libosmo-netif >= 1.5.0... " >&6; }
13227
13228 if test -n "$LIBOSMONETIF_CFLAGS"; then
13229 pkg_cv_LIBOSMONETIF_CFLAGS="$LIBOSMONETIF_CFLAGS"
13230 elif test -n "$PKG_CONFIG"; then
13231 if test -n "$PKG_CONFIG" && \
13232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmo-netif >= 1.5.0\""; } >&5
13233 ($PKG_CONFIG --exists --print-errors "libosmo-netif >= 1.5.0") 2>&5
13234 ac_status=$?
13235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13236 test $ac_status = 0; }; then
13237 pkg_cv_LIBOSMONETIF_CFLAGS=`$PKG_CONFIG --cflags "libosmo-netif >= 1.5.0" 2>/dev/null`
13238 test "x$?" != "x0" && pkg_failed=yes
13239 else
13240 pkg_failed=yes
13241 fi
13242 else
13243 pkg_failed=untried
13244 fi
13245 if test -n "$LIBOSMONETIF_LIBS"; then
13246 pkg_cv_LIBOSMONETIF_LIBS="$LIBOSMONETIF_LIBS"
13247 elif test -n "$PKG_CONFIG"; then
13248 if test -n "$PKG_CONFIG" && \
13249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libosmo-netif >= 1.5.0\""; } >&5
13250 ($PKG_CONFIG --exists --print-errors "libosmo-netif >= 1.5.0") 2>&5
13251 ac_status=$?
13252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13253 test $ac_status = 0; }; then
13254 pkg_cv_LIBOSMONETIF_LIBS=`$PKG_CONFIG --libs "libosmo-netif >= 1.5.0" 2>/dev/null`
13255 test "x$?" != "x0" && pkg_failed=yes
13256 else
13257 pkg_failed=yes
13258 fi
13259 else
13260 pkg_failed=untried
13261 fi
13262
13263
13264
13265 if test $pkg_failed = yes; then
13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 printf "%s\n" "no" >&6; }
13268
13269 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13270 _pkg_short_errors_supported=yes
13271 else
13272 _pkg_short_errors_supported=no
13273 fi
13274 if test $_pkg_short_errors_supported = yes; then
13275 LIBOSMONETIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libosmo-netif >= 1.5.0" 2>&1`
13276 else
13277 LIBOSMONETIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libosmo-netif >= 1.5.0" 2>&1`
13278 fi
13279 # Put the nasty error message in config.log where it belongs
13280 echo "$LIBOSMONETIF_PKG_ERRORS" >&5
13281
13282 as_fn_error $? "Package requirements (libosmo-netif >= 1.5.0) were not met:
13283
13284 $LIBOSMONETIF_PKG_ERRORS
13285
13286 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13287 installed software in a non-standard prefix.
13288
13289 Alternatively, you may set the environment variables LIBOSMONETIF_CFLAGS
13290 and LIBOSMONETIF_LIBS to avoid the need to call pkg-config.
13291 See the pkg-config man page for more details." "$LINENO" 5
13292 elif test $pkg_failed = untried; then
13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 printf "%s\n" "no" >&6; }
13295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13296 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13297 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13298 is in your PATH or set the PKG_CONFIG environment variable to the full
13299 path to pkg-config.
13300
13301 Alternatively, you may set the environment variables LIBOSMONETIF_CFLAGS
13302 and LIBOSMONETIF_LIBS to avoid the need to call pkg-config.
13303 See the pkg-config man page for more details.
13304
13305 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13306 See \`config.log' for more details" "$LINENO" 5; }
13307 else
13308 LIBOSMONETIF_CFLAGS=$pkg_cv_LIBOSMONETIF_CFLAGS
13309 LIBOSMONETIF_LIBS=$pkg_cv_LIBOSMONETIF_LIBS
13310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13311 printf "%s\n" "yes" >&6; }
13312
13313 fi
13314
13315 pkg_failed=no
13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libulfius" >&5
13317 printf %s "checking for libulfius... " >&6; }
13318
13319 if test -n "$ULFIUS_CFLAGS"; then
13320 pkg_cv_ULFIUS_CFLAGS="$ULFIUS_CFLAGS"
13321 elif test -n "$PKG_CONFIG"; then
13322 if test -n "$PKG_CONFIG" && \
13323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libulfius\""; } >&5
13324 ($PKG_CONFIG --exists --print-errors "libulfius") 2>&5
13325 ac_status=$?
13326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327 test $ac_status = 0; }; then
13328 pkg_cv_ULFIUS_CFLAGS=`$PKG_CONFIG --cflags "libulfius" 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 if test -n "$ULFIUS_LIBS"; then
13337 pkg_cv_ULFIUS_LIBS="$ULFIUS_LIBS"
13338 elif test -n "$PKG_CONFIG"; then
13339 if test -n "$PKG_CONFIG" && \
13340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libulfius\""; } >&5
13341 ($PKG_CONFIG --exists --print-errors "libulfius") 2>&5
13342 ac_status=$?
13343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13344 test $ac_status = 0; }; then
13345 pkg_cv_ULFIUS_LIBS=`$PKG_CONFIG --libs "libulfius" 2>/dev/null`
13346 test "x$?" != "x0" && pkg_failed=yes
13347 else
13348 pkg_failed=yes
13349 fi
13350 else
13351 pkg_failed=untried
13352 fi
13353
13354
13355
13356 if test $pkg_failed = yes; then
13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13358 printf "%s\n" "no" >&6; }
13359
13360 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13361 _pkg_short_errors_supported=yes
13362 else
13363 _pkg_short_errors_supported=no
13364 fi
13365 if test $_pkg_short_errors_supported = yes; then
13366 ULFIUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libulfius" 2>&1`
13367 else
13368 ULFIUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libulfius" 2>&1`
13369 fi
13370 # Put the nasty error message in config.log where it belongs
13371 echo "$ULFIUS_PKG_ERRORS" >&5
13372
13373 as_fn_error $? "Package requirements (libulfius) were not met:
13374
13375 $ULFIUS_PKG_ERRORS
13376
13377 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13378 installed software in a non-standard prefix.
13379
13380 Alternatively, you may set the environment variables ULFIUS_CFLAGS
13381 and ULFIUS_LIBS to avoid the need to call pkg-config.
13382 See the pkg-config man page for more details." "$LINENO" 5
13383 elif test $pkg_failed = untried; then
13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385 printf "%s\n" "no" >&6; }
13386 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13387 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13388 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13389 is in your PATH or set the PKG_CONFIG environment variable to the full
13390 path to pkg-config.
13391
13392 Alternatively, you may set the environment variables ULFIUS_CFLAGS
13393 and ULFIUS_LIBS to avoid the need to call pkg-config.
13394 See the pkg-config man page for more details.
13395
13396 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13397 See \`config.log' for more details" "$LINENO" 5; }
13398 else
13399 ULFIUS_CFLAGS=$pkg_cv_ULFIUS_CFLAGS
13400 ULFIUS_LIBS=$pkg_cv_ULFIUS_LIBS
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13402 printf "%s\n" "yes" >&6; }
13403
13404 fi
13405
13406 pkg_failed=no
13407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
13408 printf %s "checking for jansson... " >&6; }
13409
13410 if test -n "$JANSSON_CFLAGS"; then
13411 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
13412 elif test -n "$PKG_CONFIG"; then
13413 if test -n "$PKG_CONFIG" && \
13414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
13415 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
13416 ac_status=$?
13417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13418 test $ac_status = 0; }; then
13419 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
13420 test "x$?" != "x0" && pkg_failed=yes
13421 else
13422 pkg_failed=yes
13423 fi
13424 else
13425 pkg_failed=untried
13426 fi
13427 if test -n "$JANSSON_LIBS"; then
13428 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
13429 elif test -n "$PKG_CONFIG"; then
13430 if test -n "$PKG_CONFIG" && \
13431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
13432 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
13433 ac_status=$?
13434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13435 test $ac_status = 0; }; then
13436 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
13437 test "x$?" != "x0" && pkg_failed=yes
13438 else
13439 pkg_failed=yes
13440 fi
13441 else
13442 pkg_failed=untried
13443 fi
13444
13445
13446
13447 if test $pkg_failed = yes; then
13448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 printf "%s\n" "no" >&6; }
13450
13451 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13452 _pkg_short_errors_supported=yes
13453 else
13454 _pkg_short_errors_supported=no
13455 fi
13456 if test $_pkg_short_errors_supported = yes; then
13457 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
13458 else
13459 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
13460 fi
13461 # Put the nasty error message in config.log where it belongs
13462 echo "$JANSSON_PKG_ERRORS" >&5
13463
13464 as_fn_error $? "Package requirements (jansson) were not met:
13465
13466 $JANSSON_PKG_ERRORS
13467
13468 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13469 installed software in a non-standard prefix.
13470
13471 Alternatively, you may set the environment variables JANSSON_CFLAGS
13472 and JANSSON_LIBS to avoid the need to call pkg-config.
13473 See the pkg-config man page for more details." "$LINENO" 5
13474 elif test $pkg_failed = untried; then
13475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13476 printf "%s\n" "no" >&6; }
13477 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13478 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13479 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13480 is in your PATH or set the PKG_CONFIG environment variable to the full
13481 path to pkg-config.
13482
13483 Alternatively, you may set the environment variables JANSSON_CFLAGS
13484 and JANSSON_LIBS to avoid the need to call pkg-config.
13485 See the pkg-config man page for more details.
13486
13487 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13488 See \`config.log' for more details" "$LINENO" 5; }
13489 else
13490 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
13491 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
13492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13493 printf "%s\n" "yes" >&6; }
13494
13495 fi
13496
13497 pkg_failed=no
13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liborcania" >&5
13499 printf %s "checking for liborcania... " >&6; }
13500
13501 if test -n "$ORCANIA_CFLAGS"; then
13502 pkg_cv_ORCANIA_CFLAGS="$ORCANIA_CFLAGS"
13503 elif test -n "$PKG_CONFIG"; then
13504 if test -n "$PKG_CONFIG" && \
13505 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liborcania\""; } >&5
13506 ($PKG_CONFIG --exists --print-errors "liborcania") 2>&5
13507 ac_status=$?
13508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13509 test $ac_status = 0; }; then
13510 pkg_cv_ORCANIA_CFLAGS=`$PKG_CONFIG --cflags "liborcania" 2>/dev/null`
13511 test "x$?" != "x0" && pkg_failed=yes
13512 else
13513 pkg_failed=yes
13514 fi
13515 else
13516 pkg_failed=untried
13517 fi
13518 if test -n "$ORCANIA_LIBS"; then
13519 pkg_cv_ORCANIA_LIBS="$ORCANIA_LIBS"
13520 elif test -n "$PKG_CONFIG"; then
13521 if test -n "$PKG_CONFIG" && \
13522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liborcania\""; } >&5
13523 ($PKG_CONFIG --exists --print-errors "liborcania") 2>&5
13524 ac_status=$?
13525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13526 test $ac_status = 0; }; then
13527 pkg_cv_ORCANIA_LIBS=`$PKG_CONFIG --libs "liborcania" 2>/dev/null`
13528 test "x$?" != "x0" && pkg_failed=yes
13529 else
13530 pkg_failed=yes
13531 fi
13532 else
13533 pkg_failed=untried
13534 fi
13535
13536
13537
13538 if test $pkg_failed = yes; then
13539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13540 printf "%s\n" "no" >&6; }
13541
13542 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13543 _pkg_short_errors_supported=yes
13544 else
13545 _pkg_short_errors_supported=no
13546 fi
13547 if test $_pkg_short_errors_supported = yes; then
13548 ORCANIA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liborcania" 2>&1`
13549 else
13550 ORCANIA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liborcania" 2>&1`
13551 fi
13552 # Put the nasty error message in config.log where it belongs
13553 echo "$ORCANIA_PKG_ERRORS" >&5
13554
13555 as_fn_error $? "Package requirements (liborcania) were not met:
13556
13557 $ORCANIA_PKG_ERRORS
13558
13559 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13560 installed software in a non-standard prefix.
13561
13562 Alternatively, you may set the environment variables ORCANIA_CFLAGS
13563 and ORCANIA_LIBS to avoid the need to call pkg-config.
13564 See the pkg-config man page for more details." "$LINENO" 5
13565 elif test $pkg_failed = untried; then
13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 printf "%s\n" "no" >&6; }
13568 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13569 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13570 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13571 is in your PATH or set the PKG_CONFIG environment variable to the full
13572 path to pkg-config.
13573
13574 Alternatively, you may set the environment variables ORCANIA_CFLAGS
13575 and ORCANIA_LIBS to avoid the need to call pkg-config.
13576 See the pkg-config man page for more details.
13577
13578 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13579 See \`config.log' for more details" "$LINENO" 5; }
13580 else
13581 ORCANIA_CFLAGS=$pkg_cv_ORCANIA_CFLAGS
13582 ORCANIA_LIBS=$pkg_cv_ORCANIA_LIBS
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13584 printf "%s\n" "yes" >&6; }
13585
13586 fi
13587
13588 # Define asn1c skeleton files directory (See "asn1c -S <dir>").
13589 # Used during "make -C src/ regen" to copy header files from there
13590 ASN1C_SKELETON_PATH="/usr/share/asn1c"
13591 ASN1C_BIN_PATH="/usr/bin/asn1c"
13592 ASN_MODULE_CFLAGS="-DASN_DISABLE_BER_SUPPORT -DASN_DISABLE_XER_SUPPORT -DASN_DISABLE_JER_SUPPORT -DASN_DISABLE_OER_SUPPORT -DASN_DISABLE_UPER_SUPPORT"
13593
13594
13595
13596
13597 for ac_header in netinet/sctp.h
13598 do :
13599 ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "$ac_includes_default"
13600 if test "x$ac_cv_header_netinet_sctp_h" = xyes
13601 then :
13602 printf "%s\n" "#define HAVE_NETINET_SCTP_H 1" >>confdefs.h
13603
13604 else $as_nop
13605 as_fn_error $? "netinet/sctp.h not found" "$LINENO" 5
13606 fi
13607
13608 done
13609 old_LIBS=$LIBS
13610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_recvmsg" >&5
13611 printf %s "checking for library containing sctp_recvmsg... " >&6; }
13612 if test ${ac_cv_search_sctp_recvmsg+y}
13613 then :
13614 printf %s "(cached) " >&6
13615 else $as_nop
13616 ac_func_search_save_LIBS=$LIBS
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619
13620 /* Override any GCC internal prototype to avoid an error.
13621 Use char because int might match the return type of a GCC
13622 builtin and then its argument prototype would still apply. */
13623 char sctp_recvmsg ();
13624 int
13625 main (void)
13626 {
13627 return sctp_recvmsg ();
13628 ;
13629 return 0;
13630 }
13631 _ACEOF
13632 for ac_lib in '' sctp
13633 do
13634 if test -z "$ac_lib"; then
13635 ac_res="none required"
13636 else
13637 ac_res=-l$ac_lib
13638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13639 fi
13640 if ac_fn_c_try_link "$LINENO"
13641 then :
13642 ac_cv_search_sctp_recvmsg=$ac_res
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13645 conftest$ac_exeext
13646 if test ${ac_cv_search_sctp_recvmsg+y}
13647 then :
13648 break
13649 fi
13650 done
13651 if test ${ac_cv_search_sctp_recvmsg+y}
13652 then :
13653
13654 else $as_nop
13655 ac_cv_search_sctp_recvmsg=no
13656 fi
13657 rm conftest.$ac_ext
13658 LIBS=$ac_func_search_save_LIBS
13659 fi
13660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_recvmsg" >&5
13661 printf "%s\n" "$ac_cv_search_sctp_recvmsg" >&6; }
13662 ac_res=$ac_cv_search_sctp_recvmsg
13663 if test "$ac_res" != no
13664 then :
13665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13666
13667
13668 printf "%s\n" "#define HAVE_LIBSCTP 1" >>confdefs.h
13669
13670 HAVE_LIBSCTP=1
13671
13672 if test -n "$ac_lib"; then
13673 LIBSCTP_LIBS=-l$ac_lib
13674
13675 fi
13676
13677 else $as_nop
13678
13679 as_fn_error $? "sctp_recvmsg not found in searched libs" "$LINENO" 5
13680 fi
13681
13682 LIBS=$old_LIBS
13683
13684 # Check whether --enable-sanitize was given.
13685 if test ${enable_sanitize+y}
13686 then :
13687 enableval=$enable_sanitize; sanitize=$enableval
13688 else $as_nop
13689 sanitize="no"
13690 fi
13691
13692 if test x"$sanitize" = x"yes"
13693 then
13694 CFLAGS="$CFLAGS -fsanitize=address -fsanitize=undefined"
13695 CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined"
13696 fi
13697
13698 # Check whether --enable-werror was given.
13699 if test ${enable_werror+y}
13700 then :
13701 enableval=$enable_werror; werror=$enableval
13702 else $as_nop
13703 werror="no"
13704 fi
13705
13706 if test x"$werror" = x"yes"
13707 then
13708 WERROR_FLAGS="-Werror"
13709 WERROR_FLAGS+=" -Wno-error=deprecated -Wno-error=deprecated-declarations"
13710 WERROR_FLAGS+=" -Wno-error=cpp" # "#warning"
13711 CFLAGS="$CFLAGS $WERROR_FLAGS"
13712 CPPFLAGS="$CPPFLAGS $WERROR_FLAGS"
13713 fi
13714
13715 # The following test is taken from WebKit's webkit.m4
13716 saved_CFLAGS="$CFLAGS"
13717 CFLAGS="$CFLAGS -fvisibility=hidden "
13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
13719 printf %s "checking if ${CC} supports -fvisibility=hidden... " >&6; }
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722 char foo;
13723 _ACEOF
13724 if ac_fn_c_try_compile "$LINENO"
13725 then :
13726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13727 printf "%s\n" "yes" >&6; }
13728 SYMBOL_VISIBILITY="-fvisibility=hidden"
13729 else $as_nop
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 printf "%s\n" "no" >&6; }
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13734 CFLAGS="$saved_CFLAGS"
13735
13736
13737 CFLAGS="$CFLAGS -Wall"
13738 CPPFLAGS="$CPPFLAGS -Wall"
13739
13740 # Check whether --enable-doxygen was given.
13741 if test ${enable_doxygen+y}
13742 then :
13743 enableval=$enable_doxygen; doxygen=$enableval
13744 else $as_nop
13745 doxygen="yes"
13746 fi
13747
13748 # Extract the first word of "doxygen", so it can be a program name with args.
13749 set dummy doxygen; ac_word=$2
13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751 printf %s "checking for $ac_word... " >&6; }
13752 if test ${ac_cv_path_DOXYGEN+y}
13753 then :
13754 printf %s "(cached) " >&6
13755 else $as_nop
13756 case $DOXYGEN in
13757 [\\/]* | ?:[\\/]*)
13758 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13759 ;;
13760 *)
13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762 for as_dir in $PATH
13763 do
13764 IFS=$as_save_IFS
13765 case $as_dir in #(((
13766 '') as_dir=./ ;;
13767 */) ;;
13768 *) as_dir=$as_dir/ ;;
13769 esac
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13772 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
13773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13774 break 2
13775 fi
13776 done
13777 done
13778 IFS=$as_save_IFS
13779
13780 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false"
13781 ;;
13782 esac
13783 fi
13784 DOXYGEN=$ac_cv_path_DOXYGEN
13785 if test -n "$DOXYGEN"; then
13786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
13787 printf "%s\n" "$DOXYGEN" >&6; }
13788 else
13789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790 printf "%s\n" "no" >&6; }
13791 fi
13792
13793
13794 if test $DOXYGEN != false && test "x$doxygen" = "xyes"; then
13795 HAVE_DOXYGEN_TRUE=
13796 HAVE_DOXYGEN_FALSE='#'
13797 else
13798 HAVE_DOXYGEN_TRUE='#'
13799 HAVE_DOXYGEN_FALSE=
13800 fi
13801
13802
13803 # Generate manuals
13804 # Check whether --enable-manuals was given.
13805 if test ${enable_manuals+y}
13806 then :
13807 enableval=$enable_manuals; osmo_ac_build_manuals=$enableval
13808 else $as_nop
13809 osmo_ac_build_manuals="no"
13810 fi
13811
13812 if test x"$osmo_ac_build_manuals" = x"yes"; then
13813 BUILD_MANUALS_TRUE=
13814 BUILD_MANUALS_FALSE='#'
13815 else
13816 BUILD_MANUALS_TRUE='#'
13817 BUILD_MANUALS_FALSE=
13818 fi
13819
13820
13821 if test x"$osmo_ac_build_manuals" = x"yes"
13822 then
13823 # Find OSMO_GSM_MANUALS_DIR (env, pkg-conf, fallback)
13824 if test -n "$OSMO_GSM_MANUALS_DIR"; then
13825 echo "checking for OSMO_GSM_MANUALS_DIR... $OSMO_GSM_MANUALS_DIR (from env)"
13826 else
13827 OSMO_GSM_MANUALS_DIR="$($PKG_CONFIG osmo-gsm-manuals --variable=osmogsmmanualsdir 2>/dev/null)"
13828 if test -n "$OSMO_GSM_MANUALS_DIR"; then
13829 echo "checking for OSMO_GSM_MANUALS_DIR... $OSMO_GSM_MANUALS_DIR (from pkg-conf)"
13830 else
13831 OSMO_GSM_MANUALS_DIR="../osmo-gsm-manuals"
13832 echo "checking for OSMO_GSM_MANUALS_DIR... $OSMO_GSM_MANUALS_DIR (fallback)"
13833 fi
13834 fi
13835 if ! test -d "$OSMO_GSM_MANUALS_DIR"; then
13836 as_fn_error $? "\"OSMO_GSM_MANUALS_DIR does not exist! Install osmo-gsm-manuals or set OSMO_GSM_MANUALS_DIR.\"" "$LINENO" 5
13837 fi
13838
13839 # Find and run check-depends
13840 CHECK_DEPENDS="$OSMO_GSM_MANUALS_DIR/check-depends.sh"
13841 if ! test -x "$CHECK_DEPENDS"; then
13842 CHECK_DEPENDS="osmo-gsm-manuals-check-depends"
13843 fi
13844 if ! $CHECK_DEPENDS; then
13845 as_fn_error $? "\"missing dependencies for --enable-manuals\"" "$LINENO" 5
13846 fi
13847
13848 # Put in Makefile with absolute path
13849 OSMO_GSM_MANUALS_DIR="$(realpath "$OSMO_GSM_MANUALS_DIR")"
13850
13851 fi
13852
13853 # https://www.freedesktop.org/software/systemd/man/daemon.html
13854
13855 # Check whether --with-systemdsystemunitdir was given.
13856 if test ${with_systemdsystemunitdir+y}
13857 then :
13858 withval=$with_systemdsystemunitdir;
13859 else $as_nop
13860 with_systemdsystemunitdir=auto
13861 fi
13862
13863 if test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"
13864 then :
13865
13866 def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
13867 if test "x$def_systemdsystemunitdir" = "x"
13868 then :
13869 if test "x$with_systemdsystemunitdir" = "xyes"
13870 then :
13871 as_fn_error $? "systemd support requested but pkg-config unable to query systemd package" "$LINENO" 5
13872 fi
13873 with_systemdsystemunitdir=no
13874 else $as_nop
13875 with_systemdsystemunitdir="$def_systemdsystemunitdir"
13876 fi
13877 fi
13878 if test "x$with_systemdsystemunitdir" != "xno"
13879 then :
13880 systemdsystemunitdir=$with_systemdsystemunitdir
13881
13882 fi
13883 if test "x$with_systemdsystemunitdir" != "xno"; then
13884 HAVE_SYSTEMD_TRUE=
13885 HAVE_SYSTEMD_FALSE='#'
13886 else
13887 HAVE_SYSTEMD_TRUE='#'
13888 HAVE_SYSTEMD_FALSE=
13889 fi
13890
13891
13892 # Check whether --enable-external_tests was given.
13893 if test ${enable_external_tests+y}
13894 then :
13895 enableval=$enable_external_tests; enable_ext_tests="$enableval"
13896 else $as_nop
13897 enable_ext_tests="no"
13898 fi
13899
13900 if test "x$enable_ext_tests" = "xyes" ; then
13901
13902
13903
13904
13905
13906
13907 # Find any Python interpreter.
13908 if test -z "$PYTHON"; then
13909 for ac_prog in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
13910 do
13911 # Extract the first word of "$ac_prog", so it can be a program name with args.
13912 set dummy $ac_prog; ac_word=$2
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13914 printf %s "checking for $ac_word... " >&6; }
13915 if test ${ac_cv_path_PYTHON+y}
13916 then :
13917 printf %s "(cached) " >&6
13918 else $as_nop
13919 case $PYTHON in
13920 [\\/]* | ?:[\\/]*)
13921 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13922 ;;
13923 *)
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13926 do
13927 IFS=$as_save_IFS
13928 case $as_dir in #(((
13929 '') as_dir=./ ;;
13930 */) ;;
13931 *) as_dir=$as_dir/ ;;
13932 esac
13933 for ac_exec_ext in '' $ac_executable_extensions; do
13934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13935 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
13936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13937 break 2
13938 fi
13939 done
13940 done
13941 IFS=$as_save_IFS
13942
13943 ;;
13944 esac
13945 fi
13946 PYTHON=$ac_cv_path_PYTHON
13947 if test -n "$PYTHON"; then
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13949 printf "%s\n" "$PYTHON" >&6; }
13950 else
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 printf "%s\n" "no" >&6; }
13953 fi
13954
13955
13956 test -n "$PYTHON" && break
13957 done
13958 test -n "$PYTHON" || PYTHON=":"
13959
13960 fi
13961 am_display_PYTHON=python
13962
13963
13964 if test "$PYTHON" = :; then
13965 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13966 else
13967
13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13969 printf %s "checking for $am_display_PYTHON version... " >&6; }
13970 if test ${am_cv_python_version+y}
13971 then :
13972 printf %s "(cached) " >&6
13973 else $as_nop
13974 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
13975 fi
13976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13977 printf "%s\n" "$am_cv_python_version" >&6; }
13978 PYTHON_VERSION=$am_cv_python_version
13979
13980
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13982 printf %s "checking for $am_display_PYTHON platform... " >&6; }
13983 if test ${am_cv_python_platform+y}
13984 then :
13985 printf %s "(cached) " >&6
13986 else $as_nop
13987 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13988 fi
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13990 printf "%s\n" "$am_cv_python_platform" >&6; }
13991 PYTHON_PLATFORM=$am_cv_python_platform
13992
13993
13994 if test "x$prefix" = xNONE; then
13995 am__usable_prefix=$ac_default_prefix
13996 else
13997 am__usable_prefix=$prefix
13998 fi
13999
14000 # Allow user to request using sys.* values from Python,
14001 # instead of the GNU $prefix values.
14002
14003 # Check whether --with-python-sys-prefix was given.
14004 if test ${with_python_sys_prefix+y}
14005 then :
14006 withval=$with_python_sys_prefix; am_use_python_sys=:
14007 else $as_nop
14008 am_use_python_sys=false
14009 fi
14010
14011
14012 # Allow user to override whatever the default Python prefix is.
14013
14014 # Check whether --with-python_prefix was given.
14015 if test ${with_python_prefix+y}
14016 then :
14017 withval=$with_python_prefix; am_python_prefix_subst=$withval
14018 am_cv_python_prefix=$withval
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
14020 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
14022 printf "%s\n" "$am_cv_python_prefix" >&6; }
14023 else $as_nop
14024
14025 if $am_use_python_sys; then
14026 # using python sys.prefix value, not GNU
14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
14028 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
14029 if test ${am_cv_python_prefix+y}
14030 then :
14031 printf %s "(cached) " >&6
14032 else $as_nop
14033 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
14034 fi
14035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
14036 printf "%s\n" "$am_cv_python_prefix" >&6; }
14037
14038 case $am_cv_python_prefix in
14039 $am__usable_prefix*)
14040 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
14041 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
14042 ;;
14043 *)
14044 am_python_prefix_subst=$am_cv_python_prefix
14045 ;;
14046 esac
14047 else # using GNU prefix value, not python sys.prefix
14048 am_python_prefix_subst='${prefix}'
14049 am_python_prefix=$am_python_prefix_subst
14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
14051 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
14053 printf "%s\n" "$am_python_prefix" >&6; }
14054 fi
14055 fi
14056
14057 # Substituting python_prefix_subst value.
14058 PYTHON_PREFIX=$am_python_prefix_subst
14059
14060
14061 # emacs-page Now do it all over again for Python exec_prefix, but with yet
14062 # another conditional: fall back to regular prefix if that was specified.
14063
14064 # Check whether --with-python_exec_prefix was given.
14065 if test ${with_python_exec_prefix+y}
14066 then :
14067 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
14068 am_cv_python_exec_prefix=$withval
14069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
14070 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
14071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14072 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14073 else $as_nop
14074
14075 # no explicit --with-python_exec_prefix, but if
14076 # --with-python_prefix was given, use its value for python_exec_prefix too.
14077 if test -n "$with_python_prefix"
14078 then :
14079 am_python_exec_prefix_subst=$with_python_prefix
14080 am_cv_python_exec_prefix=$with_python_prefix
14081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
14082 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
14083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14084 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14085 else $as_nop
14086
14087 # Set am__usable_exec_prefix whether using GNU or Python values,
14088 # since we use that variable for pyexecdir.
14089 if test "x$exec_prefix" = xNONE; then
14090 am__usable_exec_prefix=$am__usable_prefix
14091 else
14092 am__usable_exec_prefix=$exec_prefix
14093 fi
14094 #
14095 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
14097 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
14098 if test ${am_cv_python_exec_prefix+y}
14099 then :
14100 printf %s "(cached) " >&6
14101 else $as_nop
14102 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
14103 fi
14104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14105 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14106 case $am_cv_python_exec_prefix in
14107 $am__usable_exec_prefix*)
14108 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
14109 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
14110 ;;
14111 *)
14112 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
14113 ;;
14114 esac
14115 else # using GNU $exec_prefix, not python sys.exec_prefix
14116 am_python_exec_prefix_subst='${exec_prefix}'
14117 am_python_exec_prefix=$am_python_exec_prefix_subst
14118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
14119 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
14120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
14121 printf "%s\n" "$am_python_exec_prefix" >&6; }
14122 fi
14123 fi
14124 fi
14125
14126 # Substituting python_exec_prefix_subst.
14127 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
14128
14129
14130 # Factor out some code duplication into this shell variable.
14131 am_python_setup_sysconfig="\
14132 import sys
14133 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14134 # with python 3.x. See automake bug#10227.
14135 try:
14136 import sysconfig
14137 except ImportError:
14138 can_use_sysconfig = 0
14139 else:
14140 can_use_sysconfig = 1
14141 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14142 # <https://github.com/pypa/virtualenv/issues/118>
14143 try:
14144 from platform import python_implementation
14145 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14146 can_use_sysconfig = 0
14147 except ImportError:
14148 pass"
14149
14150
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
14152 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
14153 if test ${am_cv_python_pythondir+y}
14154 then :
14155 printf %s "(cached) " >&6
14156 else $as_nop
14157 if test "x$am_cv_python_prefix" = x; then
14158 am_py_prefix=$am__usable_prefix
14159 else
14160 am_py_prefix=$am_cv_python_prefix
14161 fi
14162 am_cv_python_pythondir=`$PYTHON -c "
14163 $am_python_setup_sysconfig
14164 if can_use_sysconfig:
14165 if hasattr(sysconfig, 'get_default_scheme'):
14166 scheme = sysconfig.get_default_scheme()
14167 else:
14168 scheme = sysconfig._get_default_scheme()
14169 if scheme == 'posix_local':
14170 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
14171 scheme = 'posix_prefix'
14172 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
14173 else:
14174 from distutils import sysconfig
14175 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14176 sys.stdout.write(sitedir)"`
14177 #
14178 case $am_cv_python_pythondir in
14179 $am_py_prefix*)
14180 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14181 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
14182 ;;
14183 *)
14184 case $am_py_prefix in
14185 /usr|/System*) ;;
14186 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
14187 ;;
14188 esac
14189 ;;
14190 esac
14191
14192 fi
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14194 printf "%s\n" "$am_cv_python_pythondir" >&6; }
14195 pythondir=$am_cv_python_pythondir
14196
14197
14198 pkgpythondir=\${pythondir}/$PACKAGE
14199
14200
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
14202 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
14203 if test ${am_cv_python_pyexecdir+y}
14204 then :
14205 printf %s "(cached) " >&6
14206 else $as_nop
14207 if test "x$am_cv_python_exec_prefix" = x; then
14208 am_py_exec_prefix=$am__usable_exec_prefix
14209 else
14210 am_py_exec_prefix=$am_cv_python_exec_prefix
14211 fi
14212 am_cv_python_pyexecdir=`$PYTHON -c "
14213 $am_python_setup_sysconfig
14214 if can_use_sysconfig:
14215 if hasattr(sysconfig, 'get_default_scheme'):
14216 scheme = sysconfig.get_default_scheme()
14217 else:
14218 scheme = sysconfig._get_default_scheme()
14219 if scheme == 'posix_local':
14220 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
14221 scheme = 'posix_prefix'
14222 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
14223 else:
14224 from distutils import sysconfig
14225 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
14226 sys.stdout.write(sitedir)"`
14227 #
14228 case $am_cv_python_pyexecdir in
14229 $am_py_exec_prefix*)
14230 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14231 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
14232 ;;
14233 *)
14234 case $am_py_exec_prefix in
14235 /usr|/System*) ;;
14236 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
14237 ;;
14238 esac
14239 ;;
14240 esac
14241
14242 fi
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14244 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
14245 pyexecdir=$am_cv_python_pyexecdir
14246
14247
14248 pkgpyexecdir=\${pyexecdir}/$PACKAGE
14249
14250
14251
14252 fi
14253
14254 # Extract the first word of "osmo_verify_transcript_vty.py", so it can be a program name with args.
14255 set dummy osmo_verify_transcript_vty.py; ac_word=$2
14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14257 printf %s "checking for $ac_word... " >&6; }
14258 if test ${ac_cv_prog_OSMOTESTEXT_CHECK+y}
14259 then :
14260 printf %s "(cached) " >&6
14261 else $as_nop
14262 if test -n "$OSMOTESTEXT_CHECK"; then
14263 ac_cv_prog_OSMOTESTEXT_CHECK="$OSMOTESTEXT_CHECK" # Let the user override the test.
14264 else
14265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14266 for as_dir in $PATH
14267 do
14268 IFS=$as_save_IFS
14269 case $as_dir in #(((
14270 '') as_dir=./ ;;
14271 */) ;;
14272 *) as_dir=$as_dir/ ;;
14273 esac
14274 for ac_exec_ext in '' $ac_executable_extensions; do
14275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14276 ac_cv_prog_OSMOTESTEXT_CHECK="yes"
14277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14278 break 2
14279 fi
14280 done
14281 done
14282 IFS=$as_save_IFS
14283
14284 fi
14285 fi
14286 OSMOTESTEXT_CHECK=$ac_cv_prog_OSMOTESTEXT_CHECK
14287 if test -n "$OSMOTESTEXT_CHECK"; then
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OSMOTESTEXT_CHECK" >&5
14289 printf "%s\n" "$OSMOTESTEXT_CHECK" >&6; }
14290 else
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292 printf "%s\n" "no" >&6; }
14293 fi
14294
14295
14296 if test "x$OSMOTESTEXT_CHECK" != "xyes" ; then
14297 as_fn_error $? "Please install https://gitea.osmocom.org/cellular-infrastructure/osmo-python-tests to run the VTY/CTRL tests." "$LINENO" 5
14298 fi
14299 fi
14300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable VTY/CTRL tests" >&5
14301 printf %s "checking whether to enable VTY/CTRL tests... " >&6; }
14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ext_tests" >&5
14303 printf "%s\n" "$enable_ext_tests" >&6; }
14304 if test "x$enable_ext_tests" = "xyes"; then
14305 ENABLE_EXT_TESTS_TRUE=
14306 ENABLE_EXT_TESTS_FALSE='#'
14307 else
14308 ENABLE_EXT_TESTS_TRUE='#'
14309 ENABLE_EXT_TESTS_FALSE=
14310 fi
14311
14312
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CFLAGS=\"$CFLAGS\"" >&5
14314 printf "%s\n" "CFLAGS=\"$CFLAGS\"" >&6; }
14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS=\"$CPPFLAGS\"" >&5
14316 printf "%s\n" "CPPFLAGS=\"$CPPFLAGS\"" >&6; }
14317
14318 ac_config_files="$ac_config_files src/Makefile src/sbcap/Makefile include/Makefile include/osmocom/Makefile include/osmocom/cbc/Makefile include/osmocom/sbcap/Makefile contrib/Makefile tests/Makefile tests/sbcap/Makefile doc/Makefile doc/examples/Makefile doc/manuals/Makefile contrib/systemd/Makefile libosmo-sbcap.pc Makefile"
14319
14320 cat >confcache <<\_ACEOF
14321 # This file is a shell script that caches the results of configure
14322 # tests run on this system so they can be shared between configure
14323 # scripts and configure runs, see configure's option --config-cache.
14324 # It is not useful on other systems. If it contains results you don't
14325 # want to keep, you may remove or edit it.
14326 #
14327 # config.status only pays attention to the cache file if you give it
14328 # the --recheck option to rerun configure.
14329 #
14330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14332 # following values.
14333
14334 _ACEOF
14335
14336 # The following way of writing the cache mishandles newlines in values,
14337 # but we know of no workaround that is simple, portable, and efficient.
14338 # So, we kill variables containing newlines.
14339 # Ultrix sh set writes to stderr and can't be redirected directly,
14340 # and sets the high bit in the cache file unless we assign to the vars.
14341 (
14342 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14343 eval ac_val=\$$ac_var
14344 case $ac_val in #(
14345 *${as_nl}*)
14346 case $ac_var in #(
14347 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14348 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14349 esac
14350 case $ac_var in #(
14351 _ | IFS | as_nl) ;; #(
14352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14353 *) { eval $ac_var=; unset $ac_var;} ;;
14354 esac ;;
14355 esac
14356 done
14357
14358 (set) 2>&1 |
14359 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14360 *${as_nl}ac_space=\ *)
14361 # `set' does not quote correctly, so add quotes: double-quote
14362 # substitution turns \\\\ into \\, and sed turns \\ into \.
14363 sed -n \
14364 "s/'/'\\\\''/g;
14365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14366 ;; #(
14367 *)
14368 # `set' quotes correctly as required by POSIX, so do not add quotes.
14369 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14370 ;;
14371 esac |
14372 sort
14373 ) |
14374 sed '
14375 /^ac_cv_env_/b end
14376 t clear
14377 :clear
14378 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14379 t end
14380 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14381 :end' >>confcache
14382 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14383 if test -w "$cache_file"; then
14384 if test "x$cache_file" != "x/dev/null"; then
14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14386 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14387 if test ! -f "$cache_file" || test -h "$cache_file"; then
14388 cat confcache >"$cache_file"
14389 else
14390 case $cache_file in #(
14391 */* | ?:*)
14392 mv -f confcache "$cache_file"$$ &&
14393 mv -f "$cache_file"$$ "$cache_file" ;; #(
14394 *)
14395 mv -f confcache "$cache_file" ;;
14396 esac
14397 fi
14398 fi
14399 else
14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14401 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14402 fi
14403 fi
14404 rm -f confcache
14405
14406 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14407 # Let make expand exec_prefix.
14408 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14409
14410 # Transform confdefs.h into DEFS.
14411 # Protect against shell expansion while executing Makefile rules.
14412 # Protect against Makefile macro expansion.
14413 #
14414 # If the first sed substitution is executed (which looks for macros that
14415 # take arguments), then branch to the quote section. Otherwise,
14416 # look for a macro that doesn't take arguments.
14417 ac_script='
14418 :mline
14419 /\\$/{
14420 N
14421 s,\\\n,,
14422 b mline
14423 }
14424 t clear
14425 :clear
14426 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14427 t quote
14428 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14429 t quote
14430 b any
14431 :quote
14432 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14433 s/\[/\\&/g
14434 s/\]/\\&/g
14435 s/\$/$$/g
14436 H
14437 :any
14438 ${
14439 g
14440 s/^\n//
14441 s/\n/ /g
14442 p
14443 }
14444 '
14445 DEFS=`sed -n "$ac_script" confdefs.h`
14446
14447
14448 ac_libobjs=
14449 ac_ltlibobjs=
14450 U=
14451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14452 # 1. Remove the extension, and $U if already installed.
14453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14454 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14456 # will be set to the directory where LIBOBJS objects are built.
14457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14459 done
14460 LIBOBJS=$ac_libobjs
14461
14462 LTLIBOBJS=$ac_ltlibobjs
14463
14464
14465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14466 printf %s "checking that generated files are newer than configure... " >&6; }
14467 if test -n "$am_sleep_pid"; then
14468 # Hide warnings about reused PIDs.
14469 wait $am_sleep_pid 2>/dev/null
14470 fi
14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14472 printf "%s\n" "done" >&6; }
14473 if test -n "$EXEEXT"; then
14474 am__EXEEXT_TRUE=
14475 am__EXEEXT_FALSE='#'
14476 else
14477 am__EXEEXT_TRUE='#'
14478 am__EXEEXT_FALSE=
14479 fi
14480
14481 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14482 as_fn_error $? "conditional \"AMDEP\" was never defined.
14483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14484 fi
14485 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14486 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14488 fi
14489 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
14490 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
14491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14492 fi
14493 if test -z "${BUILD_MANUALS_TRUE}" && test -z "${BUILD_MANUALS_FALSE}"; then
14494 as_fn_error $? "conditional \"BUILD_MANUALS\" was never defined.
14495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14496 fi
14497 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
14498 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
14499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14500 fi
14501 if test -z "${ENABLE_EXT_TESTS_TRUE}" && test -z "${ENABLE_EXT_TESTS_FALSE}"; then
14502 as_fn_error $? "conditional \"ENABLE_EXT_TESTS\" was never defined.
14503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14504 fi
14505
14506 : "${CONFIG_STATUS=./config.status}"
14507 ac_write_fail=0
14508 ac_clean_files_save=$ac_clean_files
14509 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14511 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14512 as_write_fail=0
14513 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14514 #! $SHELL
14515 # Generated by $as_me.
14516 # Run this file to recreate the current configuration.
14517 # Compiler output produced by configure, useful for debugging
14518 # configure, is in config.log if it exists.
14519
14520 debug=false
14521 ac_cs_recheck=false
14522 ac_cs_silent=false
14523
14524 SHELL=\${CONFIG_SHELL-$SHELL}
14525 export SHELL
14526 _ASEOF
14527 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14528 ## -------------------- ##
14529 ## M4sh Initialization. ##
14530 ## -------------------- ##
14531
14532 # Be more Bourne compatible
14533 DUALCASE=1; export DUALCASE # for MKS sh
14534 as_nop=:
14535 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14536 then :
14537 emulate sh
14538 NULLCMD=:
14539 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14540 # is contrary to our usage. Disable this feature.
14541 alias -g '${1+"$@"}'='"$@"'
14542 setopt NO_GLOB_SUBST
14543 else $as_nop
14544 case `(set -o) 2>/dev/null` in #(
14545 *posix*) :
14546 set -o posix ;; #(
14547 *) :
14548 ;;
14549 esac
14550 fi
14551
14552
14553
14554 # Reset variables that may have inherited troublesome values from
14555 # the environment.
14556
14557 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14558 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14559 # side effect of setting IFS to empty, thus disabling word splitting.)
14560 # Quoting is to prevent editors from complaining about space-tab.
14561 as_nl='
14562 '
14563 export as_nl
14564 IFS=" "" $as_nl"
14565
14566 PS1='$ '
14567 PS2='> '
14568 PS4='+ '
14569
14570 # Ensure predictable behavior from utilities with locale-dependent output.
14571 LC_ALL=C
14572 export LC_ALL
14573 LANGUAGE=C
14574 export LANGUAGE
14575
14576 # We cannot yet rely on "unset" to work, but we need these variables
14577 # to be unset--not just set to an empty or harmless value--now, to
14578 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
14579 # also avoids known problems related to "unset" and subshell syntax
14580 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14581 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14582 do eval test \${$as_var+y} \
14583 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14584 done
14585
14586 # Ensure that fds 0, 1, and 2 are open.
14587 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14588 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14589 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
14590
14591 # The user is always right.
14592 if ${PATH_SEPARATOR+false} :; then
14593 PATH_SEPARATOR=:
14594 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14595 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14596 PATH_SEPARATOR=';'
14597 }
14598 fi
14599
14600
14601 # Find who we are. Look in the path if we contain no directory separator.
14602 as_myself=
14603 case $0 in #((
14604 *[\\/]* ) as_myself=$0 ;;
14605 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14606 for as_dir in $PATH
14607 do
14608 IFS=$as_save_IFS
14609 case $as_dir in #(((
14610 '') as_dir=./ ;;
14611 */) ;;
14612 *) as_dir=$as_dir/ ;;
14613 esac
14614 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14615 done
14616 IFS=$as_save_IFS
14617
14618 ;;
14619 esac
14620 # We did not find ourselves, most probably we were run as `sh COMMAND'
14621 # in which case we are not to be found in the path.
14622 if test "x$as_myself" = x; then
14623 as_myself=$0
14624 fi
14625 if test ! -f "$as_myself"; then
14626 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14627 exit 1
14628 fi
14629
14630
14631
14632 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14633 # ----------------------------------------
14634 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14635 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14636 # script with STATUS, using 1 if that was 0.
14637 as_fn_error ()
14638 {
14639 as_status=$1; test $as_status -eq 0 && as_status=1
14640 if test "$4"; then
14641 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14643 fi
14644 printf "%s\n" "$as_me: error: $2" >&2
14645 as_fn_exit $as_status
14646 } # as_fn_error
14647
14648
14649
14650 # as_fn_set_status STATUS
14651 # -----------------------
14652 # Set $? to STATUS, without forking.
14653 as_fn_set_status ()
14654 {
14655 return $1
14656 } # as_fn_set_status
14657
14658 # as_fn_exit STATUS
14659 # -----------------
14660 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14661 as_fn_exit ()
14662 {
14663 set +e
14664 as_fn_set_status $1
14665 exit $1
14666 } # as_fn_exit
14667
14668 # as_fn_unset VAR
14669 # ---------------
14670 # Portably unset VAR.
14671 as_fn_unset ()
14672 {
14673 { eval $1=; unset $1;}
14674 }
14675 as_unset=as_fn_unset
14676
14677 # as_fn_append VAR VALUE
14678 # ----------------------
14679 # Append the text in VALUE to the end of the definition contained in VAR. Take
14680 # advantage of any shell optimizations that allow amortized linear growth over
14681 # repeated appends, instead of the typical quadratic growth present in naive
14682 # implementations.
14683 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
14684 then :
14685 eval 'as_fn_append ()
14686 {
14687 eval $1+=\$2
14688 }'
14689 else $as_nop
14690 as_fn_append ()
14691 {
14692 eval $1=\$$1\$2
14693 }
14694 fi # as_fn_append
14695
14696 # as_fn_arith ARG...
14697 # ------------------
14698 # Perform arithmetic evaluation on the ARGs, and store the result in the
14699 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14700 # must be portable across $(()) and expr.
14701 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
14702 then :
14703 eval 'as_fn_arith ()
14704 {
14705 as_val=$(( $* ))
14706 }'
14707 else $as_nop
14708 as_fn_arith ()
14709 {
14710 as_val=`expr "$@" || test $? -eq 1`
14711 }
14712 fi # as_fn_arith
14713
14714
14715 if expr a : '\(a\)' >/dev/null 2>&1 &&
14716 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14717 as_expr=expr
14718 else
14719 as_expr=false
14720 fi
14721
14722 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14723 as_basename=basename
14724 else
14725 as_basename=false
14726 fi
14727
14728 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14729 as_dirname=dirname
14730 else
14731 as_dirname=false
14732 fi
14733
14734 as_me=`$as_basename -- "$0" ||
14735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14736 X"$0" : 'X\(//\)$' \| \
14737 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14738 printf "%s\n" X/"$0" |
14739 sed '/^.*\/\([^/][^/]*\)\/*$/{
14740 s//\1/
14741 q
14742 }
14743 /^X\/\(\/\/\)$/{
14744 s//\1/
14745 q
14746 }
14747 /^X\/\(\/\).*/{
14748 s//\1/
14749 q
14750 }
14751 s/.*/./; q'`
14752
14753 # Avoid depending upon Character Ranges.
14754 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14755 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14756 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14757 as_cr_digits='0123456789'
14758 as_cr_alnum=$as_cr_Letters$as_cr_digits
14759
14760
14761 # Determine whether it's possible to make 'echo' print without a newline.
14762 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
14763 # for compatibility with existing Makefiles.
14764 ECHO_C= ECHO_N= ECHO_T=
14765 case `echo -n x` in #(((((
14766 -n*)
14767 case `echo 'xy\c'` in
14768 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14769 xy) ECHO_C='\c';;
14770 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14771 ECHO_T=' ';;
14772 esac;;
14773 *)
14774 ECHO_N='-n';;
14775 esac
14776
14777 # For backward compatibility with old third-party macros, we provide
14778 # the shell variables $as_echo and $as_echo_n. New code should use
14779 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
14780 as_echo='printf %s\n'
14781 as_echo_n='printf %s'
14782
14783 rm -f conf$$ conf$$.exe conf$$.file
14784 if test -d conf$$.dir; then
14785 rm -f conf$$.dir/conf$$.file
14786 else
14787 rm -f conf$$.dir
14788 mkdir conf$$.dir 2>/dev/null
14789 fi
14790 if (echo >conf$$.file) 2>/dev/null; then
14791 if ln -s conf$$.file conf$$ 2>/dev/null; then
14792 as_ln_s='ln -s'
14793 # ... but there are two gotchas:
14794 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14795 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14796 # In both cases, we have to default to `cp -pR'.
14797 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14798 as_ln_s='cp -pR'
14799 elif ln conf$$.file conf$$ 2>/dev/null; then
14800 as_ln_s=ln
14801 else
14802 as_ln_s='cp -pR'
14803 fi
14804 else
14805 as_ln_s='cp -pR'
14806 fi
14807 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14808 rmdir conf$$.dir 2>/dev/null
14809
14810
14811 # as_fn_mkdir_p
14812 # -------------
14813 # Create "$as_dir" as a directory, including parents if necessary.
14814 as_fn_mkdir_p ()
14815 {
14816
14817 case $as_dir in #(
14818 -*) as_dir=./$as_dir;;
14819 esac
14820 test -d "$as_dir" || eval $as_mkdir_p || {
14821 as_dirs=
14822 while :; do
14823 case $as_dir in #(
14824 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14825 *) as_qdir=$as_dir;;
14826 esac
14827 as_dirs="'$as_qdir' $as_dirs"
14828 as_dir=`$as_dirname -- "$as_dir" ||
14829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14830 X"$as_dir" : 'X\(//\)[^/]' \| \
14831 X"$as_dir" : 'X\(//\)$' \| \
14832 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14833 printf "%s\n" X"$as_dir" |
14834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14835 s//\1/
14836 q
14837 }
14838 /^X\(\/\/\)[^/].*/{
14839 s//\1/
14840 q
14841 }
14842 /^X\(\/\/\)$/{
14843 s//\1/
14844 q
14845 }
14846 /^X\(\/\).*/{
14847 s//\1/
14848 q
14849 }
14850 s/.*/./; q'`
14851 test -d "$as_dir" && break
14852 done
14853 test -z "$as_dirs" || eval "mkdir $as_dirs"
14854 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14855
14856
14857 } # as_fn_mkdir_p
14858 if mkdir -p . 2>/dev/null; then
14859 as_mkdir_p='mkdir -p "$as_dir"'
14860 else
14861 test -d ./-p && rmdir ./-p
14862 as_mkdir_p=false
14863 fi
14864
14865
14866 # as_fn_executable_p FILE
14867 # -----------------------
14868 # Test if FILE is an executable regular file.
14869 as_fn_executable_p ()
14870 {
14871 test -f "$1" && test -x "$1"
14872 } # as_fn_executable_p
14873 as_test_x='test -x'
14874 as_executable_p=as_fn_executable_p
14875
14876 # Sed expression to map a string onto a valid CPP name.
14877 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14878
14879 # Sed expression to map a string onto a valid variable name.
14880 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14881
14882
14883 exec 6>&1
14884 ## ----------------------------------- ##
14885 ## Main body of $CONFIG_STATUS script. ##
14886 ## ----------------------------------- ##
14887 _ASEOF
14888 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14889
14890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14891 # Save the log message, to keep $0 and so on meaningful, and to
14892 # report actual input values of CONFIG_FILES etc. instead of their
14893 # values after options handling.
14894 ac_log="
14895 This file was extended by osmo-cbc $as_me 0.5.1, which was
14896 generated by GNU Autoconf 2.71. Invocation command line was
14897
14898 CONFIG_FILES = $CONFIG_FILES
14899 CONFIG_HEADERS = $CONFIG_HEADERS
14900 CONFIG_LINKS = $CONFIG_LINKS
14901 CONFIG_COMMANDS = $CONFIG_COMMANDS
14902 $ $0 $@
14903
14904 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14905 "
14906
14907 _ACEOF
14908
14909 case $ac_config_files in *"
14910 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14911 esac
14912
14913
14914
14915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14916 # Files that config.status was made for.
14917 config_files="$ac_config_files"
14918 config_commands="$ac_config_commands"
14919
14920 _ACEOF
14921
14922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14923 ac_cs_usage="\
14924 \`$as_me' instantiates files and other configuration actions
14925 from templates according to the current configuration. Unless the files
14926 and actions are specified as TAGs, all are instantiated by default.
14927
14928 Usage: $0 [OPTION]... [TAG]...
14929
14930 -h, --help print this help, then exit
14931 -V, --version print version number and configuration settings, then exit
14932 --config print configuration, then exit
14933 -q, --quiet, --silent
14934 do not print progress messages
14935 -d, --debug don't remove temporary files
14936 --recheck update $as_me by reconfiguring in the same conditions
14937 --file=FILE[:TEMPLATE]
14938 instantiate the configuration file FILE
14939
14940 Configuration files:
14941 $config_files
14942
14943 Configuration commands:
14944 $config_commands
14945
14946 Report bugs to <[email protected]>."
14947
14948 _ACEOF
14949 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14950 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14952 ac_cs_config='$ac_cs_config_escaped'
14953 ac_cs_version="\\
14954 osmo-cbc config.status 0.5.1
14955 configured by $0, generated by GNU Autoconf 2.71,
14956 with options \\"\$ac_cs_config\\"
14957
14958 Copyright (C) 2021 Free Software Foundation, Inc.
14959 This config.status script is free software; the Free Software Foundation
14960 gives unlimited permission to copy, distribute and modify it."
14961
14962 ac_pwd='$ac_pwd'
14963 srcdir='$srcdir'
14964 INSTALL='$INSTALL'
14965 MKDIR_P='$MKDIR_P'
14966 AWK='$AWK'
14967 test -n "\$AWK" || AWK=awk
14968 _ACEOF
14969
14970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14971 # The default lists apply if the user does not specify any file.
14972 ac_need_defaults=:
14973 while test $# != 0
14974 do
14975 case $1 in
14976 --*=?*)
14977 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14978 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14979 ac_shift=:
14980 ;;
14981 --*=)
14982 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14983 ac_optarg=
14984 ac_shift=:
14985 ;;
14986 *)
14987 ac_option=$1
14988 ac_optarg=$2
14989 ac_shift=shift
14990 ;;
14991 esac
14992
14993 case $ac_option in
14994 # Handling of the options.
14995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14996 ac_cs_recheck=: ;;
14997 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14998 printf "%s\n" "$ac_cs_version"; exit ;;
14999 --config | --confi | --conf | --con | --co | --c )
15000 printf "%s\n" "$ac_cs_config"; exit ;;
15001 --debug | --debu | --deb | --de | --d | -d )
15002 debug=: ;;
15003 --file | --fil | --fi | --f )
15004 $ac_shift
15005 case $ac_optarg in
15006 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15007 '') as_fn_error $? "missing file argument" ;;
15008 esac
15009 as_fn_append CONFIG_FILES " '$ac_optarg'"
15010 ac_need_defaults=false;;
15011 --he | --h | --help | --hel | -h )
15012 printf "%s\n" "$ac_cs_usage"; exit ;;
15013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15015 ac_cs_silent=: ;;
15016
15017 # This is an error.
15018 -*) as_fn_error $? "unrecognized option: \`$1'
15019 Try \`$0 --help' for more information." ;;
15020
15021 *) as_fn_append ac_config_targets " $1"
15022 ac_need_defaults=false ;;
15023
15024 esac
15025 shift
15026 done
15027
15028 ac_configure_extra_args=
15029
15030 if $ac_cs_silent; then
15031 exec 6>/dev/null
15032 ac_configure_extra_args="$ac_configure_extra_args --silent"
15033 fi
15034
15035 _ACEOF
15036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15037 if \$ac_cs_recheck; then
15038 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15039 shift
15040 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15041 CONFIG_SHELL='$SHELL'
15042 export CONFIG_SHELL
15043 exec "\$@"
15044 fi
15045
15046 _ACEOF
15047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15048 exec 5>>config.log
15049 {
15050 echo
15051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15052 ## Running $as_me. ##
15053 _ASBOX
15054 printf "%s\n" "$ac_log"
15055 } >&5
15056
15057 _ACEOF
15058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15059 #
15060 # INIT-COMMANDS
15061 #
15062 ac_cv_exeext="$ac_cv_exeext"
15063
15064 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15065
15066
15067 # The HP-UX ksh and POSIX shell print the target directory to stdout
15068 # if CDPATH is set.
15069 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15070
15071 sed_quote_subst='$sed_quote_subst'
15072 double_quote_subst='$double_quote_subst'
15073 delay_variable_subst='$delay_variable_subst'
15074 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15075 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15076 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15077 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15078 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15079 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15080 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15081 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15082 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15083 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15084 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15085 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15086 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15087 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15088 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15089 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15090 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15091 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15092 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15093 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15094 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15095 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15096 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15097 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15098 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15099 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15100 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15101 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15102 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15103 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15104 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15105 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15106 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15107 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15108 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15109 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15110 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15111 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15112 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15113 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15114 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15115 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15116 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15117 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15118 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15119 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15120 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15121 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15122 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15123 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15124 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15125 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15126 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15127 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15128 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15129 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15130 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15131 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15132 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15133 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15134 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"`'
15135 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15136 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15137 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15138 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15139 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15140 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15141 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15142 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15143 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15144 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15145 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15146 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15147 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15148 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15149 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15150 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15151 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15152 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15153 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15154 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15155 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15156 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15157 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15158 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15159 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15160 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15161 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15162 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15163 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15164 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15165 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15166 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15167 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15168 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15169 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15170 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15171 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15172 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15173 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15174 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15175 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15176 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15177 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15178 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15179 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15180 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15181 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15182 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15183 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15184 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15185 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15186 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15187 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15188 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15189 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15190 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15191 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15192 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15193 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15194 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15195 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15196 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15197 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15198 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15199 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15200 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15201 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15202 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15203 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15204 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15205 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15206 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15207 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15208 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15209 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15210 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15211
15212 LTCC='$LTCC'
15213 LTCFLAGS='$LTCFLAGS'
15214 compiler='$compiler_DEFAULT'
15215
15216 # A function that is used when there is no print builtin or printf.
15217 func_fallback_echo ()
15218 {
15219 eval 'cat <<_LTECHO_EOF
15220 \$1
15221 _LTECHO_EOF'
15222 }
15223
15224 # Quote evaled strings.
15225 for var in SHELL \
15226 ECHO \
15227 PATH_SEPARATOR \
15228 SED \
15229 GREP \
15230 EGREP \
15231 FGREP \
15232 LD \
15233 NM \
15234 LN_S \
15235 lt_SP2NL \
15236 lt_NL2SP \
15237 reload_flag \
15238 FILECMD \
15239 OBJDUMP \
15240 deplibs_check_method \
15241 file_magic_cmd \
15242 file_magic_glob \
15243 want_nocaseglob \
15244 DLLTOOL \
15245 sharedlib_from_linklib_cmd \
15246 AR \
15247 archiver_list_spec \
15248 STRIP \
15249 RANLIB \
15250 CC \
15251 CFLAGS \
15252 compiler \
15253 lt_cv_sys_global_symbol_pipe \
15254 lt_cv_sys_global_symbol_to_cdecl \
15255 lt_cv_sys_global_symbol_to_import \
15256 lt_cv_sys_global_symbol_to_c_name_address \
15257 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15258 lt_cv_nm_interface \
15259 nm_file_list_spec \
15260 lt_cv_truncate_bin \
15261 lt_prog_compiler_no_builtin_flag \
15262 lt_prog_compiler_pic \
15263 lt_prog_compiler_wl \
15264 lt_prog_compiler_static \
15265 lt_cv_prog_compiler_c_o \
15266 need_locks \
15267 MANIFEST_TOOL \
15268 DSYMUTIL \
15269 NMEDIT \
15270 LIPO \
15271 OTOOL \
15272 OTOOL64 \
15273 shrext_cmds \
15274 export_dynamic_flag_spec \
15275 whole_archive_flag_spec \
15276 compiler_needs_object \
15277 with_gnu_ld \
15278 allow_undefined_flag \
15279 no_undefined_flag \
15280 hardcode_libdir_flag_spec \
15281 hardcode_libdir_separator \
15282 exclude_expsyms \
15283 include_expsyms \
15284 file_list_spec \
15285 variables_saved_for_relink \
15286 libname_spec \
15287 library_names_spec \
15288 soname_spec \
15289 install_override_mode \
15290 finish_eval \
15291 old_striplib \
15292 striplib; do
15293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15294 *[\\\\\\\`\\"\\\$]*)
15295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15296 ;;
15297 *)
15298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15299 ;;
15300 esac
15301 done
15302
15303 # Double-quote double-evaled strings.
15304 for var in reload_cmds \
15305 old_postinstall_cmds \
15306 old_postuninstall_cmds \
15307 old_archive_cmds \
15308 extract_expsyms_cmds \
15309 old_archive_from_new_cmds \
15310 old_archive_from_expsyms_cmds \
15311 archive_cmds \
15312 archive_expsym_cmds \
15313 module_cmds \
15314 module_expsym_cmds \
15315 export_symbols_cmds \
15316 prelink_cmds \
15317 postlink_cmds \
15318 postinstall_cmds \
15319 postuninstall_cmds \
15320 finish_cmds \
15321 sys_lib_search_path_spec \
15322 configure_time_dlsearch_path \
15323 configure_time_lt_sys_library_path; do
15324 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15325 *[\\\\\\\`\\"\\\$]*)
15326 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15327 ;;
15328 *)
15329 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15330 ;;
15331 esac
15332 done
15333
15334 ac_aux_dir='$ac_aux_dir'
15335
15336 # See if we are running on zsh, and set the options that allow our
15337 # commands through without removal of \ escapes INIT.
15338 if test -n "\${ZSH_VERSION+set}"; then
15339 setopt NO_GLOB_SUBST
15340 fi
15341
15342
15343 PACKAGE='$PACKAGE'
15344 VERSION='$VERSION'
15345 RM='$RM'
15346 ofile='$ofile'
15347
15348
15349
15350
15351 _ACEOF
15352
15353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15354
15355 # Handling of arguments.
15356 for ac_config_target in $ac_config_targets
15357 do
15358 case $ac_config_target in
15359 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
15360 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15361 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15362 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15363 "src/sbcap/Makefile") CONFIG_FILES="$CONFIG_FILES src/sbcap/Makefile" ;;
15364 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15365 "include/osmocom/Makefile") CONFIG_FILES="$CONFIG_FILES include/osmocom/Makefile" ;;
15366 "include/osmocom/cbc/Makefile") CONFIG_FILES="$CONFIG_FILES include/osmocom/cbc/Makefile" ;;
15367 "include/osmocom/sbcap/Makefile") CONFIG_FILES="$CONFIG_FILES include/osmocom/sbcap/Makefile" ;;
15368 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15369 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15370 "tests/sbcap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sbcap/Makefile" ;;
15371 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15372 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
15373 "doc/manuals/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manuals/Makefile" ;;
15374 "contrib/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/systemd/Makefile" ;;
15375 "libosmo-sbcap.pc") CONFIG_FILES="$CONFIG_FILES libosmo-sbcap.pc" ;;
15376 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15377
15378 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15379 esac
15380 done
15381
15382
15383 # If the user did not use the arguments to specify the items to instantiate,
15384 # then the envvar interface is used. Set only those that are not.
15385 # We use the long form for the default assignment because of an extremely
15386 # bizarre bug on SunOS 4.1.3.
15387 if $ac_need_defaults; then
15388 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15389 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15390 fi
15391
15392 # Have a temporary directory for convenience. Make it in the build tree
15393 # simply because there is no reason against having it here, and in addition,
15394 # creating and moving files from /tmp can sometimes cause problems.
15395 # Hook for its removal unless debugging.
15396 # Note that there is a small window in which the directory will not be cleaned:
15397 # after its creation but before its name has been assigned to `$tmp'.
15398 $debug ||
15399 {
15400 tmp= ac_tmp=
15401 trap 'exit_status=$?
15402 : "${ac_tmp:=$tmp}"
15403 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15404 ' 0
15405 trap 'as_fn_exit 1' 1 2 13 15
15406 }
15407 # Create a (secure) tmp directory for tmp files.
15408
15409 {
15410 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15411 test -d "$tmp"
15412 } ||
15413 {
15414 tmp=./conf$$-$RANDOM
15415 (umask 077 && mkdir "$tmp")
15416 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15417 ac_tmp=$tmp
15418
15419 # Set up the scripts for CONFIG_FILES section.
15420 # No need to generate them if there are no CONFIG_FILES.
15421 # This happens for instance with `./config.status config.h'.
15422 if test -n "$CONFIG_FILES"; then
15423
15424
15425 ac_cr=`echo X | tr X '\015'`
15426 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15427 # But we know of no other shell where ac_cr would be empty at this
15428 # point, so we can use a bashism as a fallback.
15429 if test "x$ac_cr" = x; then
15430 eval ac_cr=\$\'\\r\'
15431 fi
15432 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15433 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15434 ac_cs_awk_cr='\\r'
15435 else
15436 ac_cs_awk_cr=$ac_cr
15437 fi
15438
15439 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15440 _ACEOF
15441
15442
15443 {
15444 echo "cat >conf$$subs.awk <<_ACEOF" &&
15445 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15446 echo "_ACEOF"
15447 } >conf$$subs.sh ||
15448 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15449 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15450 ac_delim='%!_!# '
15451 for ac_last_try in false false false false false :; do
15452 . ./conf$$subs.sh ||
15453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15454
15455 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15456 if test $ac_delim_n = $ac_delim_num; then
15457 break
15458 elif $ac_last_try; then
15459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15460 else
15461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15462 fi
15463 done
15464 rm -f conf$$subs.sh
15465
15466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15467 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15468 _ACEOF
15469 sed -n '
15470 h
15471 s/^/S["/; s/!.*/"]=/
15472 p
15473 g
15474 s/^[^!]*!//
15475 :repl
15476 t repl
15477 s/'"$ac_delim"'$//
15478 t delim
15479 :nl
15480 h
15481 s/\(.\{148\}\)..*/\1/
15482 t more1
15483 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15484 p
15485 n
15486 b repl
15487 :more1
15488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15489 p
15490 g
15491 s/.\{148\}//
15492 t nl
15493 :delim
15494 h
15495 s/\(.\{148\}\)..*/\1/
15496 t more2
15497 s/["\\]/\\&/g; s/^/"/; s/$/"/
15498 p
15499 b
15500 :more2
15501 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15502 p
15503 g
15504 s/.\{148\}//
15505 t delim
15506 ' <conf$$subs.awk | sed '
15507 /^[^""]/{
15508 N
15509 s/\n//
15510 }
15511 ' >>$CONFIG_STATUS || ac_write_fail=1
15512 rm -f conf$$subs.awk
15513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15514 _ACAWK
15515 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15516 for (key in S) S_is_set[key] = 1
15517 FS = ""
15518
15519 }
15520 {
15521 line = $ 0
15522 nfields = split(line, field, "@")
15523 substed = 0
15524 len = length(field[1])
15525 for (i = 2; i < nfields; i++) {
15526 key = field[i]
15527 keylen = length(key)
15528 if (S_is_set[key]) {
15529 value = S[key]
15530 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15531 len += length(value) + length(field[++i])
15532 substed = 1
15533 } else
15534 len += 1 + keylen
15535 }
15536
15537 print line
15538 }
15539
15540 _ACAWK
15541 _ACEOF
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15544 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15545 else
15546 cat
15547 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15548 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15549 _ACEOF
15550
15551 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15552 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15553 # trailing colons and then remove the whole line if VPATH becomes empty
15554 # (actually we leave an empty line to preserve line numbers).
15555 if test "x$srcdir" = x.; then
15556 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15557 h
15558 s///
15559 s/^/:/
15560 s/[ ]*$/:/
15561 s/:\$(srcdir):/:/g
15562 s/:\${srcdir}:/:/g
15563 s/:@srcdir@:/:/g
15564 s/^:*//
15565 s/:*$//
15566 x
15567 s/\(=[ ]*\).*/\1/
15568 G
15569 s/\n//
15570 s/^[^=]*=[ ]*$//
15571 }'
15572 fi
15573
15574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15575 fi # test -n "$CONFIG_FILES"
15576
15577
15578 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15579 shift
15580 for ac_tag
15581 do
15582 case $ac_tag in
15583 :[FHLC]) ac_mode=$ac_tag; continue;;
15584 esac
15585 case $ac_mode$ac_tag in
15586 :[FHL]*:*);;
15587 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15588 :[FH]-) ac_tag=-:-;;
15589 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15590 esac
15591 ac_save_IFS=$IFS
15592 IFS=:
15593 set x $ac_tag
15594 IFS=$ac_save_IFS
15595 shift
15596 ac_file=$1
15597 shift
15598
15599 case $ac_mode in
15600 :L) ac_source=$1;;
15601 :[FH])
15602 ac_file_inputs=
15603 for ac_f
15604 do
15605 case $ac_f in
15606 -) ac_f="$ac_tmp/stdin";;
15607 *) # Look for the file first in the build tree, then in the source tree
15608 # (if the path is not absolute). The absolute path cannot be DOS-style,
15609 # because $ac_f cannot contain `:'.
15610 test -f "$ac_f" ||
15611 case $ac_f in
15612 [\\/$]*) false;;
15613 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15614 esac ||
15615 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15616 esac
15617 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15618 as_fn_append ac_file_inputs " '$ac_f'"
15619 done
15620
15621 # Let's still pretend it is `configure' which instantiates (i.e., don't
15622 # use $as_me), people would be surprised to read:
15623 # /* config.h. Generated by config.status. */
15624 configure_input='Generated from '`
15625 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15626 `' by configure.'
15627 if test x"$ac_file" != x-; then
15628 configure_input="$ac_file. $configure_input"
15629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15630 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15631 fi
15632 # Neutralize special characters interpreted by sed in replacement strings.
15633 case $configure_input in #(
15634 *\&* | *\|* | *\\* )
15635 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15636 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15637 *) ac_sed_conf_input=$configure_input;;
15638 esac
15639
15640 case $ac_tag in
15641 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15643 esac
15644 ;;
15645 esac
15646
15647 ac_dir=`$as_dirname -- "$ac_file" ||
15648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15649 X"$ac_file" : 'X\(//\)[^/]' \| \
15650 X"$ac_file" : 'X\(//\)$' \| \
15651 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15652 printf "%s\n" X"$ac_file" |
15653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15654 s//\1/
15655 q
15656 }
15657 /^X\(\/\/\)[^/].*/{
15658 s//\1/
15659 q
15660 }
15661 /^X\(\/\/\)$/{
15662 s//\1/
15663 q
15664 }
15665 /^X\(\/\).*/{
15666 s//\1/
15667 q
15668 }
15669 s/.*/./; q'`
15670 as_dir="$ac_dir"; as_fn_mkdir_p
15671 ac_builddir=.
15672
15673 case "$ac_dir" in
15674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15675 *)
15676 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15677 # A ".." for each directory in $ac_dir_suffix.
15678 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15679 case $ac_top_builddir_sub in
15680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15682 esac ;;
15683 esac
15684 ac_abs_top_builddir=$ac_pwd
15685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15686 # for backward compatibility:
15687 ac_top_builddir=$ac_top_build_prefix
15688
15689 case $srcdir in
15690 .) # We are building in place.
15691 ac_srcdir=.
15692 ac_top_srcdir=$ac_top_builddir_sub
15693 ac_abs_top_srcdir=$ac_pwd ;;
15694 [\\/]* | ?:[\\/]* ) # Absolute name.
15695 ac_srcdir=$srcdir$ac_dir_suffix;
15696 ac_top_srcdir=$srcdir
15697 ac_abs_top_srcdir=$srcdir ;;
15698 *) # Relative name.
15699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15700 ac_top_srcdir=$ac_top_build_prefix$srcdir
15701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15702 esac
15703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15704
15705
15706 case $ac_mode in
15707 :F)
15708 #
15709 # CONFIG_FILE
15710 #
15711
15712 case $INSTALL in
15713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15714 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15715 esac
15716 ac_MKDIR_P=$MKDIR_P
15717 case $MKDIR_P in
15718 [\\/$]* | ?:[\\/]* ) ;;
15719 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15720 esac
15721 _ACEOF
15722
15723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15724 # If the template does not know about datarootdir, expand it.
15725 # FIXME: This hack should be removed a few years after 2.60.
15726 ac_datarootdir_hack=; ac_datarootdir_seen=
15727 ac_sed_dataroot='
15728 /datarootdir/ {
15729 p
15730 q
15731 }
15732 /@datadir@/p
15733 /@docdir@/p
15734 /@infodir@/p
15735 /@localedir@/p
15736 /@mandir@/p'
15737 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15738 *datarootdir*) ac_datarootdir_seen=yes;;
15739 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15741 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15742 _ACEOF
15743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15744 ac_datarootdir_hack='
15745 s&@datadir@&$datadir&g
15746 s&@docdir@&$docdir&g
15747 s&@infodir@&$infodir&g
15748 s&@localedir@&$localedir&g
15749 s&@mandir@&$mandir&g
15750 s&\\\${datarootdir}&$datarootdir&g' ;;
15751 esac
15752 _ACEOF
15753
15754 # Neutralize VPATH when `$srcdir' = `.'.
15755 # Shell code in configure.ac might set extrasub.
15756 # FIXME: do we really want to maintain this feature?
15757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758 ac_sed_extra="$ac_vpsub
15759 $extrasub
15760 _ACEOF
15761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762 :t
15763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15764 s|@configure_input@|$ac_sed_conf_input|;t t
15765 s&@top_builddir@&$ac_top_builddir_sub&;t t
15766 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15767 s&@srcdir@&$ac_srcdir&;t t
15768 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15769 s&@top_srcdir@&$ac_top_srcdir&;t t
15770 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15771 s&@builddir@&$ac_builddir&;t t
15772 s&@abs_builddir@&$ac_abs_builddir&;t t
15773 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15774 s&@INSTALL@&$ac_INSTALL&;t t
15775 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15776 $ac_datarootdir_hack
15777 "
15778 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15779 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15780
15781 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15782 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15783 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15784 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15786 which seems to be undefined. Please make sure it is defined" >&5
15787 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15788 which seems to be undefined. Please make sure it is defined" >&2;}
15789
15790 rm -f "$ac_tmp/stdin"
15791 case $ac_file in
15792 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15793 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15794 esac \
15795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15796 ;;
15797
15798
15799 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15800 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15801 ;;
15802 esac
15803
15804
15805 case $ac_file$ac_mode in
15806 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
15807 # Configurable variable values for building test suites.
15808 # Generated by $0.
15809 # Copyright (C) 2021 Free Software Foundation, Inc.
15810
15811 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
15812 at_testdir='tests'
15813 abs_builddir='$ac_abs_builddir'
15814 at_srcdir='$ac_srcdir'
15815 abs_srcdir='$ac_abs_srcdir'
15816 at_top_srcdir='$ac_top_srcdir'
15817 abs_top_srcdir='$ac_abs_top_srcdir'
15818 at_top_build_prefix='$ac_top_build_prefix'
15819 abs_top_builddir='$ac_abs_top_builddir'
15820
15821 # Backward compatibility with Autotest <= 2.59b:
15822 at_top_builddir=\$at_top_build_prefix
15823
15824
15825 EXEEXT='$ac_cv_exeext'
15826 AUTOTEST_PATH='tests'
15827
15828 SHELL=\${CONFIG_SHELL-'$SHELL'}
15829 ATEOF
15830 ;;
15831 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15832 # Older Autoconf quotes --file arguments for eval, but not when files
15833 # are listed without --file. Let's play safe and only enable the eval
15834 # if we detect the quoting.
15835 # TODO: see whether this extra hack can be removed once we start
15836 # requiring Autoconf 2.70 or later.
15837 case $CONFIG_FILES in #(
15838 *\'*) :
15839 eval set x "$CONFIG_FILES" ;; #(
15840 *) :
15841 set x $CONFIG_FILES ;; #(
15842 *) :
15843 ;;
15844 esac
15845 shift
15846 # Used to flag and report bootstrapping failures.
15847 am_rc=0
15848 for am_mf
15849 do
15850 # Strip MF so we end up with the name of the file.
15851 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15852 # Check whether this is an Automake generated Makefile which includes
15853 # dependency-tracking related rules and includes.
15854 # Grep'ing the whole file directly is not great: AIX grep has a line
15855 # limit of 2048, but all sed's we know have understand at least 4000.
15856 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15857 || continue
15858 am_dirpart=`$as_dirname -- "$am_mf" ||
15859 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15860 X"$am_mf" : 'X\(//\)[^/]' \| \
15861 X"$am_mf" : 'X\(//\)$' \| \
15862 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15863 printf "%s\n" X"$am_mf" |
15864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15865 s//\1/
15866 q
15867 }
15868 /^X\(\/\/\)[^/].*/{
15869 s//\1/
15870 q
15871 }
15872 /^X\(\/\/\)$/{
15873 s//\1/
15874 q
15875 }
15876 /^X\(\/\).*/{
15877 s//\1/
15878 q
15879 }
15880 s/.*/./; q'`
15881 am_filepart=`$as_basename -- "$am_mf" ||
15882 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15883 X"$am_mf" : 'X\(//\)$' \| \
15884 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15885 printf "%s\n" X/"$am_mf" |
15886 sed '/^.*\/\([^/][^/]*\)\/*$/{
15887 s//\1/
15888 q
15889 }
15890 /^X\/\(\/\/\)$/{
15891 s//\1/
15892 q
15893 }
15894 /^X\/\(\/\).*/{
15895 s//\1/
15896 q
15897 }
15898 s/.*/./; q'`
15899 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15900 && sed -e '/# am--include-marker/d' "$am_filepart" \
15901 | $MAKE -f - am--depfiles" >&5
15902 (cd "$am_dirpart" \
15903 && sed -e '/# am--include-marker/d' "$am_filepart" \
15904 | $MAKE -f - am--depfiles) >&5 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } || am_rc=$?
15908 done
15909 if test $am_rc -ne 0; then
15910 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15911 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15912 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15913 for automatic dependency tracking. If GNU make was not used, consider
15914 re-running the configure script with MAKE=\"gmake\" (or whatever is
15915 necessary). You can also try re-running configure with the
15916 '--disable-dependency-tracking' option to at least be able to build
15917 the package (albeit without support for automatic dependency tracking).
15918 See \`config.log' for more details" "$LINENO" 5; }
15919 fi
15920 { am_dirpart=; unset am_dirpart;}
15921 { am_filepart=; unset am_filepart;}
15922 { am_mf=; unset am_mf;}
15923 { am_rc=; unset am_rc;}
15924 rm -f conftest-deps.mk
15925 }
15926 ;;
15927 "libtool":C)
15928
15929 # See if we are running on zsh, and set the options that allow our
15930 # commands through without removal of \ escapes.
15931 if test -n "${ZSH_VERSION+set}"; then
15932 setopt NO_GLOB_SUBST
15933 fi
15934
15935 cfgfile=${ofile}T
15936 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15937 $RM "$cfgfile"
15938
15939 cat <<_LT_EOF >> "$cfgfile"
15940 #! $SHELL
15941 # Generated automatically by $as_me ($PACKAGE) $VERSION
15942 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15943
15944 # Provide generalized library-building support services.
15945 # Written by Gordon Matzigkeit, 1996
15946
15947 # Copyright (C) 2014 Free Software Foundation, Inc.
15948 # This is free software; see the source for copying conditions. There is NO
15949 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15950
15951 # GNU Libtool is free software; you can redistribute it and/or modify
15952 # it under the terms of the GNU General Public License as published by
15953 # the Free Software Foundation; either version 2 of of the License, or
15954 # (at your option) any later version.
15955 #
15956 # As a special exception to the GNU General Public License, if you
15957 # distribute this file as part of a program or library that is built
15958 # using GNU Libtool, you may include this file under the same
15959 # distribution terms that you use for the rest of that program.
15960 #
15961 # GNU Libtool is distributed in the hope that it will be useful, but
15962 # WITHOUT ANY WARRANTY; without even the implied warranty of
15963 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15964 # GNU General Public License for more details.
15965 #
15966 # You should have received a copy of the GNU General Public License
15967 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15968
15969
15970 # The names of the tagged configurations supported by this script.
15971 available_tags=''
15972
15973 # Configured defaults for sys_lib_dlsearch_path munging.
15974 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15975
15976 # ### BEGIN LIBTOOL CONFIG
15977
15978 # Which release of libtool.m4 was used?
15979 macro_version=$macro_version
15980 macro_revision=$macro_revision
15981
15982 # Whether or not to build shared libraries.
15983 build_libtool_libs=$enable_shared
15984
15985 # Whether or not to build static libraries.
15986 build_old_libs=$enable_static
15987
15988 # What type of objects to build.
15989 pic_mode=$pic_mode
15990
15991 # Whether or not to optimize for fast installation.
15992 fast_install=$enable_fast_install
15993
15994 # Shared archive member basename,for filename based shared library versioning on AIX.
15995 shared_archive_member_spec=$shared_archive_member_spec
15996
15997 # Shell to use when invoking shell scripts.
15998 SHELL=$lt_SHELL
15999
16000 # An echo program that protects backslashes.
16001 ECHO=$lt_ECHO
16002
16003 # The PATH separator for the build system.
16004 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16005
16006 # The host system.
16007 host_alias=$host_alias
16008 host=$host
16009 host_os=$host_os
16010
16011 # The build system.
16012 build_alias=$build_alias
16013 build=$build
16014 build_os=$build_os
16015
16016 # A sed program that does not truncate output.
16017 SED=$lt_SED
16018
16019 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16020 Xsed="\$SED -e 1s/^X//"
16021
16022 # A grep program that handles long lines.
16023 GREP=$lt_GREP
16024
16025 # An ERE matcher.
16026 EGREP=$lt_EGREP
16027
16028 # A literal string matcher.
16029 FGREP=$lt_FGREP
16030
16031 # A BSD- or MS-compatible name lister.
16032 NM=$lt_NM
16033
16034 # Whether we need soft or hard links.
16035 LN_S=$lt_LN_S
16036
16037 # What is the maximum length of a command?
16038 max_cmd_len=$max_cmd_len
16039
16040 # Object file suffix (normally "o").
16041 objext=$ac_objext
16042
16043 # Executable file suffix (normally "").
16044 exeext=$exeext
16045
16046 # whether the shell understands "unset".
16047 lt_unset=$lt_unset
16048
16049 # turn spaces into newlines.
16050 SP2NL=$lt_lt_SP2NL
16051
16052 # turn newlines into spaces.
16053 NL2SP=$lt_lt_NL2SP
16054
16055 # convert \$build file names to \$host format.
16056 to_host_file_cmd=$lt_cv_to_host_file_cmd
16057
16058 # convert \$build files to toolchain format.
16059 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16060
16061 # A file(cmd) program that detects file types.
16062 FILECMD=$lt_FILECMD
16063
16064 # An object symbol dumper.
16065 OBJDUMP=$lt_OBJDUMP
16066
16067 # Method to check whether dependent libraries are shared objects.
16068 deplibs_check_method=$lt_deplibs_check_method
16069
16070 # Command to use when deplibs_check_method = "file_magic".
16071 file_magic_cmd=$lt_file_magic_cmd
16072
16073 # How to find potential files when deplibs_check_method = "file_magic".
16074 file_magic_glob=$lt_file_magic_glob
16075
16076 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16077 want_nocaseglob=$lt_want_nocaseglob
16078
16079 # DLL creation program.
16080 DLLTOOL=$lt_DLLTOOL
16081
16082 # Command to associate shared and link libraries.
16083 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16084
16085 # The archiver.
16086 AR=$lt_AR
16087
16088 # Flags to create an archive (by configure).
16089 lt_ar_flags=$lt_ar_flags
16090
16091 # Flags to create an archive.
16092 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16093
16094 # How to feed a file listing to the archiver.
16095 archiver_list_spec=$lt_archiver_list_spec
16096
16097 # A symbol stripping program.
16098 STRIP=$lt_STRIP
16099
16100 # Commands used to install an old-style archive.
16101 RANLIB=$lt_RANLIB
16102 old_postinstall_cmds=$lt_old_postinstall_cmds
16103 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16104
16105 # Whether to use a lock for old archive extraction.
16106 lock_old_archive_extraction=$lock_old_archive_extraction
16107
16108 # A C compiler.
16109 LTCC=$lt_CC
16110
16111 # LTCC compiler flags.
16112 LTCFLAGS=$lt_CFLAGS
16113
16114 # Take the output of nm and produce a listing of raw symbols and C names.
16115 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16116
16117 # Transform the output of nm in a proper C declaration.
16118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16119
16120 # Transform the output of nm into a list of symbols to manually relocate.
16121 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16122
16123 # Transform the output of nm in a C name address pair.
16124 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16125
16126 # Transform the output of nm in a C name address pair when lib prefix is needed.
16127 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16128
16129 # The name lister interface.
16130 nm_interface=$lt_lt_cv_nm_interface
16131
16132 # Specify filename containing input files for \$NM.
16133 nm_file_list_spec=$lt_nm_file_list_spec
16134
16135 # The root where to search for dependent libraries,and where our libraries should be installed.
16136 lt_sysroot=$lt_sysroot
16137
16138 # Command to truncate a binary pipe.
16139 lt_truncate_bin=$lt_lt_cv_truncate_bin
16140
16141 # The name of the directory that contains temporary libtool files.
16142 objdir=$objdir
16143
16144 # Used to examine libraries when file_magic_cmd begins with "file".
16145 MAGIC_CMD=$MAGIC_CMD
16146
16147 # Must we lock files when doing compilation?
16148 need_locks=$lt_need_locks
16149
16150 # Manifest tool.
16151 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16152
16153 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16154 DSYMUTIL=$lt_DSYMUTIL
16155
16156 # Tool to change global to local symbols on Mac OS X.
16157 NMEDIT=$lt_NMEDIT
16158
16159 # Tool to manipulate fat objects and archives on Mac OS X.
16160 LIPO=$lt_LIPO
16161
16162 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16163 OTOOL=$lt_OTOOL
16164
16165 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16166 OTOOL64=$lt_OTOOL64
16167
16168 # Old archive suffix (normally "a").
16169 libext=$libext
16170
16171 # Shared library suffix (normally ".so").
16172 shrext_cmds=$lt_shrext_cmds
16173
16174 # The commands to extract the exported symbol list from a shared archive.
16175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16176
16177 # Variables whose values should be saved in libtool wrapper scripts and
16178 # restored at link time.
16179 variables_saved_for_relink=$lt_variables_saved_for_relink
16180
16181 # Do we need the "lib" prefix for modules?
16182 need_lib_prefix=$need_lib_prefix
16183
16184 # Do we need a version for libraries?
16185 need_version=$need_version
16186
16187 # Library versioning type.
16188 version_type=$version_type
16189
16190 # Shared library runtime path variable.
16191 runpath_var=$runpath_var
16192
16193 # Shared library path variable.
16194 shlibpath_var=$shlibpath_var
16195
16196 # Is shlibpath searched before the hard-coded library search path?
16197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16198
16199 # Format of library name prefix.
16200 libname_spec=$lt_libname_spec
16201
16202 # List of archive names. First name is the real one, the rest are links.
16203 # The last name is the one that the linker finds with -lNAME
16204 library_names_spec=$lt_library_names_spec
16205
16206 # The coded name of the library, if different from the real name.
16207 soname_spec=$lt_soname_spec
16208
16209 # Permission mode override for installation of shared libraries.
16210 install_override_mode=$lt_install_override_mode
16211
16212 # Command to use after installation of a shared archive.
16213 postinstall_cmds=$lt_postinstall_cmds
16214
16215 # Command to use after uninstallation of a shared archive.
16216 postuninstall_cmds=$lt_postuninstall_cmds
16217
16218 # Commands used to finish a libtool library installation in a directory.
16219 finish_cmds=$lt_finish_cmds
16220
16221 # As "finish_cmds", except a single script fragment to be evaled but
16222 # not shown.
16223 finish_eval=$lt_finish_eval
16224
16225 # Whether we should hardcode library paths into libraries.
16226 hardcode_into_libs=$hardcode_into_libs
16227
16228 # Compile-time system search path for libraries.
16229 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16230
16231 # Detected run-time system search path for libraries.
16232 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16233
16234 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16235 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16236
16237 # Whether dlopen is supported.
16238 dlopen_support=$enable_dlopen
16239
16240 # Whether dlopen of programs is supported.
16241 dlopen_self=$enable_dlopen_self
16242
16243 # Whether dlopen of statically linked programs is supported.
16244 dlopen_self_static=$enable_dlopen_self_static
16245
16246 # Commands to strip libraries.
16247 old_striplib=$lt_old_striplib
16248 striplib=$lt_striplib
16249
16250
16251 # The linker used to build libraries.
16252 LD=$lt_LD
16253
16254 # How to create reloadable object files.
16255 reload_flag=$lt_reload_flag
16256 reload_cmds=$lt_reload_cmds
16257
16258 # Commands used to build an old-style archive.
16259 old_archive_cmds=$lt_old_archive_cmds
16260
16261 # A language specific compiler.
16262 CC=$lt_compiler
16263
16264 # Is the compiler the GNU compiler?
16265 with_gcc=$GCC
16266
16267 # Compiler flag to turn off builtin functions.
16268 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16269
16270 # Additional compiler flags for building library objects.
16271 pic_flag=$lt_lt_prog_compiler_pic
16272
16273 # How to pass a linker flag through the compiler.
16274 wl=$lt_lt_prog_compiler_wl
16275
16276 # Compiler flag to prevent dynamic linking.
16277 link_static_flag=$lt_lt_prog_compiler_static
16278
16279 # Does compiler simultaneously support -c and -o options?
16280 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16281
16282 # Whether or not to add -lc for building shared libraries.
16283 build_libtool_need_lc=$archive_cmds_need_lc
16284
16285 # Whether or not to disallow shared libs when runtime libs are static.
16286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16287
16288 # Compiler flag to allow reflexive dlopens.
16289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16290
16291 # Compiler flag to generate shared objects directly from archives.
16292 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16293
16294 # Whether the compiler copes with passing no objects directly.
16295 compiler_needs_object=$lt_compiler_needs_object
16296
16297 # Create an old-style archive from a shared archive.
16298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16299
16300 # Create a temporary old-style archive to link instead of a shared archive.
16301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16302
16303 # Commands used to build a shared archive.
16304 archive_cmds=$lt_archive_cmds
16305 archive_expsym_cmds=$lt_archive_expsym_cmds
16306
16307 # Commands used to build a loadable module if different from building
16308 # a shared archive.
16309 module_cmds=$lt_module_cmds
16310 module_expsym_cmds=$lt_module_expsym_cmds
16311
16312 # Whether we are building with GNU ld or not.
16313 with_gnu_ld=$lt_with_gnu_ld
16314
16315 # Flag that allows shared libraries with undefined symbols to be built.
16316 allow_undefined_flag=$lt_allow_undefined_flag
16317
16318 # Flag that enforces no undefined symbols.
16319 no_undefined_flag=$lt_no_undefined_flag
16320
16321 # Flag to hardcode \$libdir into a binary during linking.
16322 # This must work even if \$libdir does not exist
16323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16324
16325 # Whether we need a single "-rpath" flag with a separated argument.
16326 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16327
16328 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16329 # DIR into the resulting binary.
16330 hardcode_direct=$hardcode_direct
16331
16332 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16333 # DIR into the resulting binary and the resulting library dependency is
16334 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16335 # library is relocated.
16336 hardcode_direct_absolute=$hardcode_direct_absolute
16337
16338 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16339 # into the resulting binary.
16340 hardcode_minus_L=$hardcode_minus_L
16341
16342 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16343 # into the resulting binary.
16344 hardcode_shlibpath_var=$hardcode_shlibpath_var
16345
16346 # Set to "yes" if building a shared library automatically hardcodes DIR
16347 # into the library and all subsequent libraries and executables linked
16348 # against it.
16349 hardcode_automatic=$hardcode_automatic
16350
16351 # Set to yes if linker adds runtime paths of dependent libraries
16352 # to runtime path list.
16353 inherit_rpath=$inherit_rpath
16354
16355 # Whether libtool must link a program against all its dependency libraries.
16356 link_all_deplibs=$link_all_deplibs
16357
16358 # Set to "yes" if exported symbols are required.
16359 always_export_symbols=$always_export_symbols
16360
16361 # The commands to list exported symbols.
16362 export_symbols_cmds=$lt_export_symbols_cmds
16363
16364 # Symbols that should not be listed in the preloaded symbols.
16365 exclude_expsyms=$lt_exclude_expsyms
16366
16367 # Symbols that must always be exported.
16368 include_expsyms=$lt_include_expsyms
16369
16370 # Commands necessary for linking programs (against libraries) with templates.
16371 prelink_cmds=$lt_prelink_cmds
16372
16373 # Commands necessary for finishing linking programs.
16374 postlink_cmds=$lt_postlink_cmds
16375
16376 # Specify filename containing input files.
16377 file_list_spec=$lt_file_list_spec
16378
16379 # How to hardcode a shared library path into an executable.
16380 hardcode_action=$hardcode_action
16381
16382 # ### END LIBTOOL CONFIG
16383
16384 _LT_EOF
16385
16386 cat <<'_LT_EOF' >> "$cfgfile"
16387
16388 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16389
16390 # func_munge_path_list VARIABLE PATH
16391 # -----------------------------------
16392 # VARIABLE is name of variable containing _space_ separated list of
16393 # directories to be munged by the contents of PATH, which is string
16394 # having a format:
16395 # "DIR[:DIR]:"
16396 # string "DIR[ DIR]" will be prepended to VARIABLE
16397 # ":DIR[:DIR]"
16398 # string "DIR[ DIR]" will be appended to VARIABLE
16399 # "DIRP[:DIRP]::[DIRA:]DIRA"
16400 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16401 # "DIRA[ DIRA]" will be appended to VARIABLE
16402 # "DIR[:DIR]"
16403 # VARIABLE will be replaced by "DIR[ DIR]"
16404 func_munge_path_list ()
16405 {
16406 case x$2 in
16407 x)
16408 ;;
16409 *:)
16410 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16411 ;;
16412 x:*)
16413 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16414 ;;
16415 *::*)
16416 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16417 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16418 ;;
16419 *)
16420 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16421 ;;
16422 esac
16423 }
16424
16425
16426 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16427 func_cc_basename ()
16428 {
16429 for cc_temp in $*""; do
16430 case $cc_temp in
16431 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16432 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16433 \-*) ;;
16434 *) break;;
16435 esac
16436 done
16437 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16438 }
16439
16440
16441 # ### END FUNCTIONS SHARED WITH CONFIGURE
16442
16443 _LT_EOF
16444
16445 case $host_os in
16446 aix3*)
16447 cat <<\_LT_EOF >> "$cfgfile"
16448 # AIX sometimes has problems with the GCC collect2 program. For some
16449 # reason, if we set the COLLECT_NAMES environment variable, the problems
16450 # vanish in a puff of smoke.
16451 if test set != "${COLLECT_NAMES+set}"; then
16452 COLLECT_NAMES=
16453 export COLLECT_NAMES
16454 fi
16455 _LT_EOF
16456 ;;
16457 esac
16458
16459
16460
16461 ltmain=$ac_aux_dir/ltmain.sh
16462
16463
16464 # We use sed instead of cat because bash on DJGPP gets confused if
16465 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16466 # text mode, it properly converts lines to CR/LF. This bash problem
16467 # is reportedly fixed, but why not run on old versions too?
16468 $SED '$q' "$ltmain" >> "$cfgfile" \
16469 || (rm -f "$cfgfile"; exit 1)
16470
16471 mv -f "$cfgfile" "$ofile" ||
16472 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16473 chmod +x "$ofile"
16474
16475 ;;
16476
16477 esac
16478 done # for ac_tag
16479
16480
16481 as_fn_exit 0
16482 _ACEOF
16483 ac_clean_files=$ac_clean_files_save
16484
16485 test $ac_write_fail = 0 ||
16486 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16487
16488
16489 # configure is writing to config.log, and then calls config.status.
16490 # config.status does its own redirection, appending to config.log.
16491 # Unfortunately, on DOS this fails, as config.log is still kept open
16492 # by configure, so config.status won't be able to write to it; its
16493 # output is simply discarded. So we exec the FD to /dev/null,
16494 # effectively closing config.log, so it can be properly (re)opened and
16495 # appended to by config.status. When coming back to configure, we
16496 # need to make the FD available again.
16497 if test "$no_create" != yes; then
16498 ac_cs_success=:
16499 ac_config_status_args=
16500 test "$silent" = yes &&
16501 ac_config_status_args="$ac_config_status_args --quiet"
16502 exec 5>/dev/null
16503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16504 exec 5>>config.log
16505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16506 # would make configure fail if this is the last instruction.
16507 $ac_cs_success || as_fn_exit 1
16508 fi
16509 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16511 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16512 fi
16513
16514