]> jfr.im git - irc/ircd-hybrid/hopm.git/blob - configure
Merge pull request #50 from ircd-hybrid/dependabot/github_actions/1.1.x/actions/check...
[irc/ircd-hybrid/hopm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for hopm 1.1.11.
4 #
5 # Report bugs to <bugs@ircd-hybrid.org>.
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 bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: 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='hopm'
623 PACKAGE_TARNAME='hopm'
624 PACKAGE_VERSION='1.1.11'
625 PACKAGE_STRING='hopm 1.1.11'
626 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
627 PACKAGE_URL=''
628
629 ac_unique_file="src/opercmd.h"
630 ac_default_prefix=\${HOME}/hopm
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 LEXLIB
668 LEX_OUTPUT_ROOT
669 LEX
670 YFLAGS
671 YACC
672 LT_SYS_LIBRARY_PATH
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 ac_ct_AR
681 AR
682 DLLTOOL
683 OBJDUMP
684 FILECMD
685 LN_S
686 NM
687 ac_ct_DUMPBIN
688 DUMPBIN
689 LD
690 FGREP
691 EGREP
692 GREP
693 SED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LIBTOOL
703 am__fastdepCC_FALSE
704 am__fastdepCC_TRUE
705 CCDEPMODE
706 am__nodep
707 AMDEPBACKSLASH
708 AMDEP_FALSE
709 AMDEP_TRUE
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 MAINT
720 MAINTAINER_MODE_FALSE
721 MAINTAINER_MODE_TRUE
722 AM_BACKSLASH
723 AM_DEFAULT_VERBOSITY
724 AM_DEFAULT_V
725 AM_V
726 CSCOPE
727 ETAGS
728 CTAGS
729 am__untar
730 am__tar
731 AMTAR
732 am__leading_dot
733 SET_MAKE
734 AWK
735 mkdir_p
736 MKDIR_P
737 INSTALL_STRIP_PROGRAM
738 STRIP
739 install_sh
740 MAKEINFO
741 AUTOHEADER
742 AUTOMAKE
743 AUTOCONF
744 ACLOCAL
745 VERSION
746 PACKAGE
747 CYGPATH_W
748 am__isrc
749 INSTALL_DATA
750 INSTALL_SCRIPT
751 INSTALL_PROGRAM
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 runstatedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL
791 am__quote'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_silent_rules
796 enable_maintainer_mode
797 enable_dependency_tracking
798 enable_shared
799 enable_static
800 with_pic
801 enable_fast_install
802 with_aix_soname
803 with_gnu_ld
804 with_sysroot
805 enable_libtool_lock
806 enable_openssl
807 enable_assert
808 enable_warnings
809 enable_efence
810 '
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 LT_SYS_LIBRARY_PATH
820 YACC
821 YFLAGS'
822
823
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
845
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 runstatedir='${localstatedir}/run'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
872
873 ac_prev=
874 ac_dashdash=
875 for ac_option
876 do
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
880 ac_prev=
881 continue
882 fi
883
884 case $ac_option in
885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *=) ac_optarg= ;;
887 *) ac_optarg=yes ;;
888 esac
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: \`$ac_useropt'"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
941
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
946
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
951
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: \`$ac_useropt'"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
960 *"
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
967
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
976
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
980
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
987
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
992
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
998
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1005
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1010
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1015
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1022
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1027
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1034
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1039
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1043
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1047
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1051
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1060
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1065
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1072
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1079
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1096
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1101
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1106
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1110
1111 -runstatedir | --runstatedir | --runstatedi | --runstated \
1112 | --runstate | --runstat | --runsta | --runst | --runs \
1113 | --run | --ru | --r)
1114 ac_prev=runstatedir ;;
1115 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1116 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1117 | --run=* | --ru=* | --r=*)
1118 runstatedir=$ac_optarg ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: \`$ac_useropt'"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: \`$ac_useropt'"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir runstatedir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 printf "%s\n" X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures hopm 1.1.11 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of hopm 1.1.11:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional).
1464 --disable-openssl Disable LibreSSL/OpenSSL support.
1465 --enable-assert Enable assert() statements
1466 --enable-warnings Enable compiler warnings.
1467 --enable-efence Enable linking with Electric Fence 'efence' memory
1468 debugger library.
1469
1470 Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1474 both]
1475 --with-aix-soname=aix|svr4|both
1476 shared library versioning (aka "SONAME") variant to
1477 provide on AIX, [default=aix].
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1480 compiler's sysroot if not specified).
1481
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 LT_SYS_LIBRARY_PATH
1491 User-defined run-time library search path.
1492 YACC The `Yet Another Compiler Compiler' implementation to use.
1493 Defaults to the first program found out of: `bison -y', `byacc',
1494 `yacc'.
1495 YFLAGS The list of arguments that will be passed by default to $YACC.
1496 This script will default YFLAGS to the empty string to avoid a
1497 default value of `-d' given by some make applications.
1498
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 Report bugs to <bugs@ircd-hybrid.org>.
1503 _ACEOF
1504 ac_status=$?
1505 fi
1506
1507 if test "$ac_init_help" = "recursive"; then
1508 # If there are subdirs, report their specific --help.
1509 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510 test -d "$ac_dir" ||
1511 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512 continue
1513 ac_builddir=.
1514
1515 case "$ac_dir" in
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *)
1518 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1519 # A ".." for each directory in $ac_dir_suffix.
1520 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521 case $ac_top_builddir_sub in
1522 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 esac ;;
1525 esac
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1530
1531 case $srcdir in
1532 .) # We are building in place.
1533 ac_srcdir=.
1534 ac_top_srcdir=$ac_top_builddir_sub
1535 ac_abs_top_srcdir=$ac_pwd ;;
1536 [\\/]* | ?:[\\/]* ) # Absolute name.
1537 ac_srcdir=$srcdir$ac_dir_suffix;
1538 ac_top_srcdir=$srcdir
1539 ac_abs_top_srcdir=$srcdir ;;
1540 *) # Relative name.
1541 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542 ac_top_srcdir=$ac_top_build_prefix$srcdir
1543 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 esac
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547 cd "$ac_dir" || { ac_status=$?; continue; }
1548 # Check for configure.gnu first; this name is used for a wrapper for
1549 # Metaconfig's "Configure" on case-insensitive file systems.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 hopm configure 1.1.11
1567 generated by GNU Autoconf 2.71
1568
1569 Copyright (C) 2021 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573 exit
1574 fi
1575
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1579
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext conftest.beam
1587 if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 printf "%s\n" "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext
1606 then :
1607 ac_retval=0
1608 else $as_nop
1609 printf "%s\n" "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_c_try_link LINENO
1620 # -----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_link ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1626 if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 printf "%s\n" "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest$ac_exeext && {
1645 test "$cross_compiling" = yes ||
1646 test -x conftest$ac_exeext
1647 }
1648 then :
1649 ac_retval=0
1650 else $as_nop
1651 printf "%s\n" "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655 fi
1656 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1657 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1658 # interfere with the next link command; also delete a directory that is
1659 # left behind by Apple's compiler. We do this before executing the actions.
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1663
1664 } # ac_fn_c_try_link
1665
1666 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1667 # -------------------------------------------------------
1668 # Tests whether HEADER exists and can be compiled using the include files in
1669 # INCLUDES, setting the cache variable VAR accordingly.
1670 ac_fn_c_check_header_compile ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 printf %s "checking for $2... " >&6; }
1675 if eval test \${$3+y}
1676 then :
1677 printf %s "(cached) " >&6
1678 else $as_nop
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 $4
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"
1685 then :
1686 eval "$3=yes"
1687 else $as_nop
1688 eval "$3=no"
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1691 fi
1692 eval ac_res=\$$3
1693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 printf "%s\n" "$ac_res" >&6; }
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_c_check_header_compile
1698
1699 # ac_fn_c_check_func LINENO FUNC VAR
1700 # ----------------------------------
1701 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1702 ac_fn_c_check_func ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 printf %s "checking for $2... " >&6; }
1707 if eval test \${$3+y}
1708 then :
1709 printf %s "(cached) " >&6
1710 else $as_nop
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1713 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1715 #define $2 innocuous_$2
1716
1717 /* System header to define __stub macros and hopefully few prototypes,
1718 which can conflict with char $2 (); below. */
1719
1720 #include <limits.h>
1721 #undef $2
1722
1723 /* Override any GCC internal prototype to avoid an error.
1724 Use char because int might match the return type of a GCC
1725 builtin and then its argument prototype would still apply. */
1726 #ifdef __cplusplus
1727 extern "C"
1728 #endif
1729 char $2 ();
1730 /* The GNU C library defines this for functions which it implements
1731 to always fail with ENOSYS. Some functions are actually named
1732 something starting with __ and the normal name is an alias. */
1733 #if defined __stub_$2 || defined __stub___$2
1734 choke me
1735 #endif
1736
1737 int
1738 main (void)
1739 {
1740 return $2 ();
1741 ;
1742 return 0;
1743 }
1744 _ACEOF
1745 if ac_fn_c_try_link "$LINENO"
1746 then :
1747 eval "$3=yes"
1748 else $as_nop
1749 eval "$3=no"
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1752 conftest$ac_exeext conftest.$ac_ext
1753 fi
1754 eval ac_res=\$$3
1755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 printf "%s\n" "$ac_res" >&6; }
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759 } # ac_fn_c_check_func
1760
1761 # ac_fn_c_try_run LINENO
1762 # ----------------------
1763 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1764 # executables *can* be run.
1765 ac_fn_c_try_run ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 printf "%s\n" "$ac_try_echo"; } >&5
1775 (eval "$ac_link") 2>&5
1776 ac_status=$?
1777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1779 { { case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 printf "%s\n" "$ac_try_echo"; } >&5
1785 (eval "$ac_try") 2>&5
1786 ac_status=$?
1787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; }; }
1789 then :
1790 ac_retval=0
1791 else $as_nop
1792 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1793 printf "%s\n" "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=$ac_status
1797 fi
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1801
1802 } # ac_fn_c_try_run
1803 ac_configure_args_raw=
1804 for ac_arg
1805 do
1806 case $ac_arg in
1807 *\'*)
1808 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1809 esac
1810 as_fn_append ac_configure_args_raw " '$ac_arg'"
1811 done
1812
1813 case $ac_configure_args_raw in
1814 *$as_nl*)
1815 ac_safe_unquote= ;;
1816 *)
1817 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1818 ac_unsafe_a="$ac_unsafe_z#~"
1819 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1820 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1821 esac
1822
1823 cat >config.log <<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1826
1827 It was created by hopm $as_me 1.1.11, which was
1828 generated by GNU Autoconf 2.71. Invocation command line was
1829
1830 $ $0$ac_configure_args_raw
1831
1832 _ACEOF
1833 exec 5>>config.log
1834 {
1835 cat <<_ASUNAME
1836 ## --------- ##
1837 ## Platform. ##
1838 ## --------- ##
1839
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1848
1849 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1853 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1856
1857 _ASUNAME
1858
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862 IFS=$as_save_IFS
1863 case $as_dir in #(((
1864 '') as_dir=./ ;;
1865 */) ;;
1866 *) as_dir=$as_dir/ ;;
1867 esac
1868 printf "%s\n" "PATH: $as_dir"
1869 done
1870 IFS=$as_save_IFS
1871
1872 } >&5
1873
1874 cat >&5 <<_ACEOF
1875
1876
1877 ## ----------- ##
1878 ## Core tests. ##
1879 ## ----------- ##
1880
1881 _ACEOF
1882
1883
1884 # Keep a trace of the command line.
1885 # Strip out --no-create and --no-recursion so they do not pile up.
1886 # Strip out --silent because we don't want to record it for future runs.
1887 # Also quote any args containing shell meta-characters.
1888 # Make two passes to allow for proper duplicate-argument suppression.
1889 ac_configure_args=
1890 ac_configure_args0=
1891 ac_configure_args1=
1892 ac_must_keep_next=false
1893 for ac_pass in 1 2
1894 do
1895 for ac_arg
1896 do
1897 case $ac_arg in
1898 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1900 | -silent | --silent | --silen | --sile | --sil)
1901 continue ;;
1902 *\'*)
1903 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1904 esac
1905 case $ac_pass in
1906 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1907 2)
1908 as_fn_append ac_configure_args1 " '$ac_arg'"
1909 if test $ac_must_keep_next = true; then
1910 ac_must_keep_next=false # Got value, back to normal.
1911 else
1912 case $ac_arg in
1913 *=* | --config-cache | -C | -disable-* | --disable-* \
1914 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1915 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1916 | -with-* | --with-* | -without-* | --without-* | --x)
1917 case "$ac_configure_args0 " in
1918 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1919 esac
1920 ;;
1921 -* ) ac_must_keep_next=true ;;
1922 esac
1923 fi
1924 as_fn_append ac_configure_args " '$ac_arg'"
1925 ;;
1926 esac
1927 done
1928 done
1929 { ac_configure_args0=; unset ac_configure_args0;}
1930 { ac_configure_args1=; unset ac_configure_args1;}
1931
1932 # When interrupted or exit'd, cleanup temporary files, and complete
1933 # config.log. We remove comments because anyway the quotes in there
1934 # would cause problems or look ugly.
1935 # WARNING: Use '\'' to represent an apostrophe within the trap.
1936 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1937 trap 'exit_status=$?
1938 # Sanitize IFS.
1939 IFS=" "" $as_nl"
1940 # Save into config.log some information that might help in debugging.
1941 {
1942 echo
1943
1944 printf "%s\n" "## ---------------- ##
1945 ## Cache variables. ##
1946 ## ---------------- ##"
1947 echo
1948 # The following way of writing the cache mishandles newlines in values,
1949 (
1950 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1951 eval ac_val=\$$ac_var
1952 case $ac_val in #(
1953 *${as_nl}*)
1954 case $ac_var in #(
1955 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1956 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1957 esac
1958 case $ac_var in #(
1959 _ | IFS | as_nl) ;; #(
1960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1961 *) { eval $ac_var=; unset $ac_var;} ;;
1962 esac ;;
1963 esac
1964 done
1965 (set) 2>&1 |
1966 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1967 *${as_nl}ac_space=\ *)
1968 sed -n \
1969 "s/'\''/'\''\\\\'\'''\''/g;
1970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1971 ;; #(
1972 *)
1973 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1974 ;;
1975 esac |
1976 sort
1977 )
1978 echo
1979
1980 printf "%s\n" "## ----------------- ##
1981 ## Output variables. ##
1982 ## ----------------- ##"
1983 echo
1984 for ac_var in $ac_subst_vars
1985 do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 printf "%s\n" "$ac_var='\''$ac_val'\''"
1991 done | sort
1992 echo
1993
1994 if test -n "$ac_subst_files"; then
1995 printf "%s\n" "## ------------------- ##
1996 ## File substitutions. ##
1997 ## ------------------- ##"
1998 echo
1999 for ac_var in $ac_subst_files
2000 do
2001 eval ac_val=\$$ac_var
2002 case $ac_val in
2003 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2004 esac
2005 printf "%s\n" "$ac_var='\''$ac_val'\''"
2006 done | sort
2007 echo
2008 fi
2009
2010 if test -s confdefs.h; then
2011 printf "%s\n" "## ----------- ##
2012 ## confdefs.h. ##
2013 ## ----------- ##"
2014 echo
2015 cat confdefs.h
2016 echo
2017 fi
2018 test "$ac_signal" != 0 &&
2019 printf "%s\n" "$as_me: caught signal $ac_signal"
2020 printf "%s\n" "$as_me: exit $exit_status"
2021 } >&5
2022 rm -f core *.core core.conftest.* &&
2023 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2024 exit $exit_status
2025 ' 0
2026 for ac_signal in 1 2 13 15; do
2027 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2028 done
2029 ac_signal=0
2030
2031 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2032 rm -f -r conftest* confdefs.h
2033
2034 printf "%s\n" "/* confdefs.h */" > confdefs.h
2035
2036 # Predefined preprocessor variables.
2037
2038 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2039
2040 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2041
2042 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2043
2044 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2045
2046 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2047
2048 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2049
2050
2051 # Let the site file select an alternate cache file if it wants to.
2052 # Prefer an explicitly selected file to automatically selected ones.
2053 if test -n "$CONFIG_SITE"; then
2054 ac_site_files="$CONFIG_SITE"
2055 elif test "x$prefix" != xNONE; then
2056 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2057 else
2058 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2059 fi
2060
2061 for ac_site_file in $ac_site_files
2062 do
2063 case $ac_site_file in #(
2064 */*) :
2065 ;; #(
2066 *) :
2067 ac_site_file=./$ac_site_file ;;
2068 esac
2069 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2071 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2072 sed 's/^/| /' "$ac_site_file" >&5
2073 . "$ac_site_file" \
2074 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2075 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2076 as_fn_error $? "failed to load site script $ac_site_file
2077 See \`config.log' for more details" "$LINENO" 5; }
2078 fi
2079 done
2080
2081 if test -r "$cache_file"; then
2082 # Some versions of bash will fail to source /dev/null (special files
2083 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2084 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2087 case $cache_file in
2088 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089 *) . "./$cache_file";;
2090 esac
2091 fi
2092 else
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2095 >$cache_file
2096 fi
2097
2098 # Test code for whether the C compiler supports C89 (global declarations)
2099 ac_c_conftest_c89_globals='
2100 /* Does the compiler advertise C89 conformance?
2101 Do not test the value of __STDC__, because some compilers set it to 0
2102 while being otherwise adequately conformant. */
2103 #if !defined __STDC__
2104 # error "Compiler does not advertise C89 conformance"
2105 #endif
2106
2107 #include <stddef.h>
2108 #include <stdarg.h>
2109 struct stat;
2110 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2111 struct buf { int x; };
2112 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2114 char **p;
2115 int i;
2116 {
2117 return p[i];
2118 }
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2120 {
2121 char *s;
2122 va_list v;
2123 va_start (v,p);
2124 s = g (p, va_arg (v,int));
2125 va_end (v);
2126 return s;
2127 }
2128
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2130 function prototypes and stuff, but not \xHH hex character constants.
2131 These do not provoke an error unfortunately, instead are silently treated
2132 as an "x". The following induces an error, until -std is added to get
2133 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2134 array size at least. It is necessary to write \x00 == 0 to get something
2135 that is true only with -std. */
2136 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2137
2138 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2139 inside strings and character constants. */
2140 #define FOO(x) '\''x'\''
2141 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2142
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2147 int, int);'
2148
2149 # Test code for whether the C compiler supports C89 (body of main).
2150 ac_c_conftest_c89_main='
2151 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2152 '
2153
2154 # Test code for whether the C compiler supports C99 (global declarations)
2155 ac_c_conftest_c99_globals='
2156 // Does the compiler advertise C99 conformance?
2157 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2158 # error "Compiler does not advertise C99 conformance"
2159 #endif
2160
2161 #include <stdbool.h>
2162 extern int puts (const char *);
2163 extern int printf (const char *, ...);
2164 extern int dprintf (int, const char *, ...);
2165 extern void *malloc (size_t);
2166
2167 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2168 // dprintf is used instead of fprintf to avoid needing to declare
2169 // FILE and stderr.
2170 #define debug(...) dprintf (2, __VA_ARGS__)
2171 #define showlist(...) puts (#__VA_ARGS__)
2172 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2173 static void
2174 test_varargs_macros (void)
2175 {
2176 int x = 1234;
2177 int y = 5678;
2178 debug ("Flag");
2179 debug ("X = %d\n", x);
2180 showlist (The first, second, and third items.);
2181 report (x>y, "x is %d but y is %d", x, y);
2182 }
2183
2184 // Check long long types.
2185 #define BIG64 18446744073709551615ull
2186 #define BIG32 4294967295ul
2187 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2188 #if !BIG_OK
2189 #error "your preprocessor is broken"
2190 #endif
2191 #if BIG_OK
2192 #else
2193 #error "your preprocessor is broken"
2194 #endif
2195 static long long int bignum = -9223372036854775807LL;
2196 static unsigned long long int ubignum = BIG64;
2197
2198 struct incomplete_array
2199 {
2200 int datasize;
2201 double data[];
2202 };
2203
2204 struct named_init {
2205 int number;
2206 const wchar_t *name;
2207 double average;
2208 };
2209
2210 typedef const char *ccp;
2211
2212 static inline int
2213 test_restrict (ccp restrict text)
2214 {
2215 // See if C++-style comments work.
2216 // Iterate through items via the restricted pointer.
2217 // Also check for declarations in for loops.
2218 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2219 continue;
2220 return 0;
2221 }
2222
2223 // Check varargs and va_copy.
2224 static bool
2225 test_varargs (const char *format, ...)
2226 {
2227 va_list args;
2228 va_start (args, format);
2229 va_list args_copy;
2230 va_copy (args_copy, args);
2231
2232 const char *str = "";
2233 int number = 0;
2234 float fnumber = 0;
2235
2236 while (*format)
2237 {
2238 switch (*format++)
2239 {
2240 case '\''s'\'': // string
2241 str = va_arg (args_copy, const char *);
2242 break;
2243 case '\''d'\'': // int
2244 number = va_arg (args_copy, int);
2245 break;
2246 case '\''f'\'': // float
2247 fnumber = va_arg (args_copy, double);
2248 break;
2249 default:
2250 break;
2251 }
2252 }
2253 va_end (args_copy);
2254 va_end (args);
2255
2256 return *str && number && fnumber;
2257 }
2258 '
2259
2260 # Test code for whether the C compiler supports C99 (body of main).
2261 ac_c_conftest_c99_main='
2262 // Check bool.
2263 _Bool success = false;
2264 success |= (argc != 0);
2265
2266 // Check restrict.
2267 if (test_restrict ("String literal") == 0)
2268 success = true;
2269 char *restrict newvar = "Another string";
2270
2271 // Check varargs.
2272 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2273 test_varargs_macros ();
2274
2275 // Check flexible array members.
2276 struct incomplete_array *ia =
2277 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2278 ia->datasize = 10;
2279 for (int i = 0; i < ia->datasize; ++i)
2280 ia->data[i] = i * 1.234;
2281
2282 // Check named initializers.
2283 struct named_init ni = {
2284 .number = 34,
2285 .name = L"Test wide string",
2286 .average = 543.34343,
2287 };
2288
2289 ni.number = 58;
2290
2291 int dynamic_array[ni.number];
2292 dynamic_array[0] = argv[0][0];
2293 dynamic_array[ni.number - 1] = 543;
2294
2295 // work around unused variable warnings
2296 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2297 || dynamic_array[ni.number - 1] != 543);
2298 '
2299
2300 # Test code for whether the C compiler supports C11 (global declarations)
2301 ac_c_conftest_c11_globals='
2302 // Does the compiler advertise C11 conformance?
2303 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2304 # error "Compiler does not advertise C11 conformance"
2305 #endif
2306
2307 // Check _Alignas.
2308 char _Alignas (double) aligned_as_double;
2309 char _Alignas (0) no_special_alignment;
2310 extern char aligned_as_int;
2311 char _Alignas (0) _Alignas (int) aligned_as_int;
2312
2313 // Check _Alignof.
2314 enum
2315 {
2316 int_alignment = _Alignof (int),
2317 int_array_alignment = _Alignof (int[100]),
2318 char_alignment = _Alignof (char)
2319 };
2320 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2321
2322 // Check _Noreturn.
2323 int _Noreturn does_not_return (void) { for (;;) continue; }
2324
2325 // Check _Static_assert.
2326 struct test_static_assert
2327 {
2328 int x;
2329 _Static_assert (sizeof (int) <= sizeof (long int),
2330 "_Static_assert does not work in struct");
2331 long int y;
2332 };
2333
2334 // Check UTF-8 literals.
2335 #define u8 syntax error!
2336 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2337
2338 // Check duplicate typedefs.
2339 typedef long *long_ptr;
2340 typedef long int *long_ptr;
2341 typedef long_ptr long_ptr;
2342
2343 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2344 struct anonymous
2345 {
2346 union {
2347 struct { int i; int j; };
2348 struct { int k; long int l; } w;
2349 };
2350 int m;
2351 } v1;
2352 '
2353
2354 # Test code for whether the C compiler supports C11 (body of main).
2355 ac_c_conftest_c11_main='
2356 _Static_assert ((offsetof (struct anonymous, i)
2357 == offsetof (struct anonymous, w.k)),
2358 "Anonymous union alignment botch");
2359 v1.i = 2;
2360 v1.w.k = 5;
2361 ok |= v1.i != 5;
2362 '
2363
2364 # Test code for whether the C compiler supports C11 (complete).
2365 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2366 ${ac_c_conftest_c99_globals}
2367 ${ac_c_conftest_c11_globals}
2368
2369 int
2370 main (int argc, char **argv)
2371 {
2372 int ok = 0;
2373 ${ac_c_conftest_c89_main}
2374 ${ac_c_conftest_c99_main}
2375 ${ac_c_conftest_c11_main}
2376 return ok;
2377 }
2378 "
2379
2380 # Test code for whether the C compiler supports C99 (complete).
2381 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2382 ${ac_c_conftest_c99_globals}
2383
2384 int
2385 main (int argc, char **argv)
2386 {
2387 int ok = 0;
2388 ${ac_c_conftest_c89_main}
2389 ${ac_c_conftest_c99_main}
2390 return ok;
2391 }
2392 "
2393
2394 # Test code for whether the C compiler supports C89 (complete).
2395 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2396
2397 int
2398 main (int argc, char **argv)
2399 {
2400 int ok = 0;
2401 ${ac_c_conftest_c89_main}
2402 return ok;
2403 }
2404 "
2405
2406 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2407 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2408 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2409 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2410 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2411 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2412 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2413 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2414 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2415
2416 # Auxiliary files required by this configure script.
2417 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2418
2419 # Locations in which to look for auxiliary files.
2420 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2421
2422 # Search for a directory containing all of the required auxiliary files,
2423 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2424 # If we don't find one directory that contains all the files we need,
2425 # we report the set of missing files from the *first* directory in
2426 # $ac_aux_dir_candidates and give up.
2427 ac_missing_aux_files=""
2428 ac_first_candidate=:
2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 as_found=false
2432 for as_dir in $ac_aux_dir_candidates
2433 do
2434 IFS=$as_save_IFS
2435 case $as_dir in #(((
2436 '') as_dir=./ ;;
2437 */) ;;
2438 *) as_dir=$as_dir/ ;;
2439 esac
2440 as_found=:
2441
2442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2443 ac_aux_dir_found=yes
2444 ac_install_sh=
2445 for ac_aux in $ac_aux_files
2446 do
2447 # As a special case, if "install-sh" is required, that requirement
2448 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2449 # and $ac_install_sh is set appropriately for whichever one is found.
2450 if test x"$ac_aux" = x"install-sh"
2451 then
2452 if test -f "${as_dir}install-sh"; then
2453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2454 ac_install_sh="${as_dir}install-sh -c"
2455 elif test -f "${as_dir}install.sh"; then
2456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2457 ac_install_sh="${as_dir}install.sh -c"
2458 elif test -f "${as_dir}shtool"; then
2459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2460 ac_install_sh="${as_dir}shtool install -c"
2461 else
2462 ac_aux_dir_found=no
2463 if $ac_first_candidate; then
2464 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2465 else
2466 break
2467 fi
2468 fi
2469 else
2470 if test -f "${as_dir}${ac_aux}"; then
2471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2472 else
2473 ac_aux_dir_found=no
2474 if $ac_first_candidate; then
2475 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2476 else
2477 break
2478 fi
2479 fi
2480 fi
2481 done
2482 if test "$ac_aux_dir_found" = yes; then
2483 ac_aux_dir="$as_dir"
2484 break
2485 fi
2486 ac_first_candidate=false
2487
2488 as_found=false
2489 done
2490 IFS=$as_save_IFS
2491 if $as_found
2492 then :
2493
2494 else $as_nop
2495 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2496 fi
2497
2498
2499 # These three variables are undocumented and unsupported,
2500 # and are intended to be withdrawn in a future Autoconf release.
2501 # They can cause serious problems if a builder's source tree is in a directory
2502 # whose full name contains unusual characters.
2503 if test -f "${ac_aux_dir}config.guess"; then
2504 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2505 fi
2506 if test -f "${ac_aux_dir}config.sub"; then
2507 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2508 fi
2509 if test -f "$ac_aux_dir/configure"; then
2510 ac_configure="$SHELL ${ac_aux_dir}configure"
2511 fi
2512
2513 # Check that the precious variables saved in the cache have kept the same
2514 # value.
2515 ac_cache_corrupted=false
2516 for ac_var in $ac_precious_vars; do
2517 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2518 eval ac_new_set=\$ac_env_${ac_var}_set
2519 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2520 eval ac_new_val=\$ac_env_${ac_var}_value
2521 case $ac_old_set,$ac_new_set in
2522 set,)
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2524 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2525 ac_cache_corrupted=: ;;
2526 ,set)
2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2528 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2529 ac_cache_corrupted=: ;;
2530 ,);;
2531 *)
2532 if test "x$ac_old_val" != "x$ac_new_val"; then
2533 # differences in whitespace do not lead to failure.
2534 ac_old_val_w=`echo x $ac_old_val`
2535 ac_new_val_w=`echo x $ac_new_val`
2536 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2538 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2539 ac_cache_corrupted=:
2540 else
2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2542 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2543 eval $ac_var=\$ac_old_val
2544 fi
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2546 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2548 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2549 fi;;
2550 esac
2551 # Pass precious variables to config.status.
2552 if test "$ac_new_set" = set; then
2553 case $ac_new_val in
2554 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2555 *) ac_arg=$ac_var=$ac_new_val ;;
2556 esac
2557 case " $ac_configure_args " in
2558 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2559 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2560 esac
2561 fi
2562 done
2563 if $ac_cache_corrupted; then
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2567 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2568 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2569 and start over" "$LINENO" 5
2570 fi
2571 ## -------------------- ##
2572 ## Main body of script. ##
2573 ## -------------------- ##
2574
2575 ac_ext=c
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580
2581
2582 am__api_version='1.16'
2583
2584
2585
2586 # Find a good install program. We prefer a C program (faster),
2587 # so one script is as good as another. But avoid the broken or
2588 # incompatible versions:
2589 # SysV /etc/install, /usr/sbin/install
2590 # SunOS /usr/etc/install
2591 # IRIX /sbin/install
2592 # AIX /bin/install
2593 # AmigaOS /C/install, which installs bootblocks on floppy discs
2594 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2597 # OS/2's system install, which has a completely different semantic
2598 # ./install, which can be erroneously created by make from ./install.sh.
2599 # Reject install programs that cannot install multiple files.
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2601 printf %s "checking for a BSD-compatible install... " >&6; }
2602 if test -z "$INSTALL"; then
2603 if test ${ac_cv_path_install+y}
2604 then :
2605 printf %s "(cached) " >&6
2606 else $as_nop
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2609 do
2610 IFS=$as_save_IFS
2611 case $as_dir in #(((
2612 '') as_dir=./ ;;
2613 */) ;;
2614 *) as_dir=$as_dir/ ;;
2615 esac
2616 # Account for fact that we put trailing slashes in our PATH walk.
2617 case $as_dir in #((
2618 ./ | /[cC]/* | \
2619 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2620 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2621 /usr/ucb/* ) ;;
2622 *)
2623 # OSF1 and SCO ODT 3.0 have their own names for install.
2624 # Don't use installbsd from OSF since it installs stuff as root
2625 # by default.
2626 for ac_prog in ginstall scoinst install; do
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2629 if test $ac_prog = install &&
2630 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631 # AIX install. It has an incompatible calling convention.
2632 :
2633 elif test $ac_prog = install &&
2634 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635 # program-specific install script used by HP pwplus--don't use.
2636 :
2637 else
2638 rm -rf conftest.one conftest.two conftest.dir
2639 echo one > conftest.one
2640 echo two > conftest.two
2641 mkdir conftest.dir
2642 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2643 test -s conftest.one && test -s conftest.two &&
2644 test -s conftest.dir/conftest.one &&
2645 test -s conftest.dir/conftest.two
2646 then
2647 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2648 break 3
2649 fi
2650 fi
2651 fi
2652 done
2653 done
2654 ;;
2655 esac
2656
2657 done
2658 IFS=$as_save_IFS
2659
2660 rm -rf conftest.one conftest.two conftest.dir
2661
2662 fi
2663 if test ${ac_cv_path_install+y}; then
2664 INSTALL=$ac_cv_path_install
2665 else
2666 # As a last resort, use the slow shell script. Don't cache a
2667 # value for INSTALL within a source directory, because that will
2668 # break other packages using the cache if that directory is
2669 # removed, or if the value is a relative name.
2670 INSTALL=$ac_install_sh
2671 fi
2672 fi
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2674 printf "%s\n" "$INSTALL" >&6; }
2675
2676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2677 # It thinks the first close brace ends the variable substitution.
2678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679
2680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2681
2682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683
2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2685 printf %s "checking whether build environment is sane... " >&6; }
2686 # Reject unsafe characters in $srcdir or the absolute working directory
2687 # name. Accept space and tab only in the latter.
2688 am_lf='
2689 '
2690 case `pwd` in
2691 *[\\\"\#\$\&\'\`$am_lf]*)
2692 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2693 esac
2694 case $srcdir in
2695 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2696 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2697 esac
2698
2699 # Do 'set' in a subshell so we don't clobber the current shell's
2700 # arguments. Must try -L first in case configure is actually a
2701 # symlink; some systems play weird games with the mod time of symlinks
2702 # (eg FreeBSD returns the mod time of the symlink's containing
2703 # directory).
2704 if (
2705 am_has_slept=no
2706 for am_try in 1 2; do
2707 echo "timestamp, slept: $am_has_slept" > conftest.file
2708 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2709 if test "$*" = "X"; then
2710 # -L didn't work.
2711 set X `ls -t "$srcdir/configure" conftest.file`
2712 fi
2713 if test "$*" != "X $srcdir/configure conftest.file" \
2714 && test "$*" != "X conftest.file $srcdir/configure"; then
2715
2716 # If neither matched, then we have a broken ls. This can happen
2717 # if, for instance, CONFIG_SHELL is bash and it inherits a
2718 # broken ls alias from the environment. This has actually
2719 # happened. Such a system could not be considered "sane".
2720 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2721 alias in your environment" "$LINENO" 5
2722 fi
2723 if test "$2" = conftest.file || test $am_try -eq 2; then
2724 break
2725 fi
2726 # Just in case.
2727 sleep 1
2728 am_has_slept=yes
2729 done
2730 test "$2" = conftest.file
2731 )
2732 then
2733 # Ok.
2734 :
2735 else
2736 as_fn_error $? "newly created file is older than distributed files!
2737 Check your system clock" "$LINENO" 5
2738 fi
2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740 printf "%s\n" "yes" >&6; }
2741 # If we didn't sleep, we still need to ensure time stamps of config.status and
2742 # generated files are strictly newer.
2743 am_sleep_pid=
2744 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2745 ( sleep 1 ) &
2746 am_sleep_pid=$!
2747 fi
2748
2749 rm -f conftest.file
2750
2751 test "$program_prefix" != NONE &&
2752 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2753 # Use a double $ so make ignores it.
2754 test "$program_suffix" != NONE &&
2755 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2756 # Double any \ or $.
2757 # By default was `s,x,x', remove it if useless.
2758 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2759 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2760
2761
2762 # Expand $ac_aux_dir to an absolute path.
2763 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2764
2765
2766 if test x"${MISSING+set}" != xset; then
2767 MISSING="\${SHELL} '$am_aux_dir/missing'"
2768 fi
2769 # Use eval to expand $SHELL
2770 if eval "$MISSING --is-lightweight"; then
2771 am_missing_run="$MISSING "
2772 else
2773 am_missing_run=
2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2775 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2776 fi
2777
2778 if test x"${install_sh+set}" != xset; then
2779 case $am_aux_dir in
2780 *\ * | *\ *)
2781 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2782 *)
2783 install_sh="\${SHELL} $am_aux_dir/install-sh"
2784 esac
2785 fi
2786
2787 # Installed binaries are usually stripped using 'strip' when the user
2788 # run "make install-strip". However 'strip' might not be the right
2789 # tool to use in cross-compilation environments, therefore Automake
2790 # will honor the 'STRIP' environment variable to overrule this program.
2791 if test "$cross_compiling" != no; then
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}strip; ac_word=$2
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 printf %s "checking for $ac_word... " >&6; }
2797 if test ${ac_cv_prog_STRIP+y}
2798 then :
2799 printf %s "(cached) " >&6
2800 else $as_nop
2801 if test -n "$STRIP"; then
2802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 case $as_dir in #(((
2809 '') as_dir=./ ;;
2810 */) ;;
2811 *) as_dir=$as_dir/ ;;
2812 esac
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2817 break 2
2818 fi
2819 done
2820 done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 STRIP=$ac_cv_prog_STRIP
2826 if test -n "$STRIP"; then
2827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2828 printf "%s\n" "$STRIP" >&6; }
2829 else
2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 printf "%s\n" "no" >&6; }
2832 fi
2833
2834
2835 fi
2836 if test -z "$ac_cv_prog_STRIP"; then
2837 ac_ct_STRIP=$STRIP
2838 # Extract the first word of "strip", so it can be a program name with args.
2839 set dummy strip; ac_word=$2
2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 printf %s "checking for $ac_word... " >&6; }
2842 if test ${ac_cv_prog_ac_ct_STRIP+y}
2843 then :
2844 printf %s "(cached) " >&6
2845 else $as_nop
2846 if test -n "$ac_ct_STRIP"; then
2847 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852 IFS=$as_save_IFS
2853 case $as_dir in #(((
2854 '') as_dir=./ ;;
2855 */) ;;
2856 *) as_dir=$as_dir/ ;;
2857 esac
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_ac_ct_STRIP="strip"
2861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2871 if test -n "$ac_ct_STRIP"; then
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2873 printf "%s\n" "$ac_ct_STRIP" >&6; }
2874 else
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 printf "%s\n" "no" >&6; }
2877 fi
2878
2879 if test "x$ac_ct_STRIP" = x; then
2880 STRIP=":"
2881 else
2882 case $cross_compiling:$ac_tool_warned in
2883 yes:)
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2885 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888 STRIP=$ac_ct_STRIP
2889 fi
2890 else
2891 STRIP="$ac_cv_prog_STRIP"
2892 fi
2893
2894 fi
2895 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2896
2897
2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2899 printf %s "checking for a race-free mkdir -p... " >&6; }
2900 if test -z "$MKDIR_P"; then
2901 if test ${ac_cv_path_mkdir+y}
2902 then :
2903 printf %s "(cached) " >&6
2904 else $as_nop
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2907 do
2908 IFS=$as_save_IFS
2909 case $as_dir in #(((
2910 '') as_dir=./ ;;
2911 */) ;;
2912 *) as_dir=$as_dir/ ;;
2913 esac
2914 for ac_prog in mkdir gmkdir; do
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2917 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2918 'mkdir ('*'coreutils) '* | \
2919 'BusyBox '* | \
2920 'mkdir (fileutils) '4.1*)
2921 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2922 break 3;;
2923 esac
2924 done
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 fi
2930
2931 test -d ./--version && rmdir ./--version
2932 if test ${ac_cv_path_mkdir+y}; then
2933 MKDIR_P="$ac_cv_path_mkdir -p"
2934 else
2935 # As a last resort, use the slow shell script. Don't cache a
2936 # value for MKDIR_P within a source directory, because that will
2937 # break other packages using the cache if that directory is
2938 # removed, or if the value is a relative name.
2939 MKDIR_P="$ac_install_sh -d"
2940 fi
2941 fi
2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2943 printf "%s\n" "$MKDIR_P" >&6; }
2944
2945 for ac_prog in gawk mawk nawk awk
2946 do
2947 # Extract the first word of "$ac_prog", so it can be a program name with args.
2948 set dummy $ac_prog; ac_word=$2
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 printf %s "checking for $ac_word... " >&6; }
2951 if test ${ac_cv_prog_AWK+y}
2952 then :
2953 printf %s "(cached) " >&6
2954 else $as_nop
2955 if test -n "$AWK"; then
2956 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961 IFS=$as_save_IFS
2962 case $as_dir in #(((
2963 '') as_dir=./ ;;
2964 */) ;;
2965 *) as_dir=$as_dir/ ;;
2966 esac
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_AWK="$ac_prog"
2970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973 done
2974 done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 AWK=$ac_cv_prog_AWK
2980 if test -n "$AWK"; then
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2982 printf "%s\n" "$AWK" >&6; }
2983 else
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 printf "%s\n" "no" >&6; }
2986 fi
2987
2988
2989 test -n "$AWK" && break
2990 done
2991
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2993 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2994 set x ${MAKE-make}
2995 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2996 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2997 then :
2998 printf %s "(cached) " >&6
2999 else $as_nop
3000 cat >conftest.make <<\_ACEOF
3001 SHELL = /bin/sh
3002 all:
3003 @echo '@@@%%%=$(MAKE)=@@@%%%'
3004 _ACEOF
3005 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3006 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3007 *@@@%%%=?*=@@@%%%*)
3008 eval ac_cv_prog_make_${ac_make}_set=yes;;
3009 *)
3010 eval ac_cv_prog_make_${ac_make}_set=no;;
3011 esac
3012 rm -f conftest.make
3013 fi
3014 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3016 printf "%s\n" "yes" >&6; }
3017 SET_MAKE=
3018 else
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 printf "%s\n" "no" >&6; }
3021 SET_MAKE="MAKE=${MAKE-make}"
3022 fi
3023
3024 rm -rf .tst 2>/dev/null
3025 mkdir .tst 2>/dev/null
3026 if test -d .tst; then
3027 am__leading_dot=.
3028 else
3029 am__leading_dot=_
3030 fi
3031 rmdir .tst 2>/dev/null
3032
3033 # Check whether --enable-silent-rules was given.
3034 if test ${enable_silent_rules+y}
3035 then :
3036 enableval=$enable_silent_rules;
3037 fi
3038
3039 case $enable_silent_rules in # (((
3040 yes) AM_DEFAULT_VERBOSITY=0;;
3041 no) AM_DEFAULT_VERBOSITY=1;;
3042 *) AM_DEFAULT_VERBOSITY=1;;
3043 esac
3044 am_make=${MAKE-make}
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3046 printf %s "checking whether $am_make supports nested variables... " >&6; }
3047 if test ${am_cv_make_support_nested_variables+y}
3048 then :
3049 printf %s "(cached) " >&6
3050 else $as_nop
3051 if printf "%s\n" 'TRUE=$(BAR$(V))
3052 BAR0=false
3053 BAR1=true
3054 V=1
3055 am__doit:
3056 @$(TRUE)
3057 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3058 am_cv_make_support_nested_variables=yes
3059 else
3060 am_cv_make_support_nested_variables=no
3061 fi
3062 fi
3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3064 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3065 if test $am_cv_make_support_nested_variables = yes; then
3066 AM_V='$(V)'
3067 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3068 else
3069 AM_V=$AM_DEFAULT_VERBOSITY
3070 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3071 fi
3072 AM_BACKSLASH='\'
3073
3074 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3075 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3076 # is not polluted with repeated "-I."
3077 am__isrc=' -I$(srcdir)'
3078 # test to see if srcdir already configured
3079 if test -f $srcdir/config.status; then
3080 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3081 fi
3082 fi
3083
3084 # test whether we have cygpath
3085 if test -z "$CYGPATH_W"; then
3086 if (cygpath --version) >/dev/null 2>/dev/null; then
3087 CYGPATH_W='cygpath -w'
3088 else
3089 CYGPATH_W=echo
3090 fi
3091 fi
3092
3093
3094 # Define the identity of the package.
3095 PACKAGE='hopm'
3096 VERSION='1.1.11'
3097
3098
3099 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3100
3101
3102 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3103
3104 # Some tools Automake needs.
3105
3106 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3107
3108
3109 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3110
3111
3112 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3113
3114
3115 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3116
3117
3118 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3119
3120 # For better backward compatibility. To be removed once Automake 1.9.x
3121 # dies out for good. For more background, see:
3122 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3123 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3124 mkdir_p='$(MKDIR_P)'
3125
3126 # We need awk for the "check" target (and possibly the TAP driver). The
3127 # system "awk" is bad on some platforms.
3128 # Always define AMTAR for backward compatibility. Yes, it's still used
3129 # in the wild :-( We should find a proper way to deprecate it ...
3130 AMTAR='$${TAR-tar}'
3131
3132
3133 # We'll loop over all known methods to create a tar archive until one works.
3134 _am_tools='gnutar pax cpio none'
3135
3136 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3137
3138
3139
3140
3141
3142 # Variables for tags utilities; see am/tags.am
3143 if test -z "$CTAGS"; then
3144 CTAGS=ctags
3145 fi
3146
3147 if test -z "$ETAGS"; then
3148 ETAGS=etags
3149 fi
3150
3151 if test -z "$CSCOPE"; then
3152 CSCOPE=cscope
3153 fi
3154
3155
3156
3157 # POSIX will say in a future version that running "rm -f" with no argument
3158 # is OK; and we want to be able to make that assumption in our Makefile
3159 # recipes. So use an aggressive probe to check that the usage we want is
3160 # actually supported "in the wild" to an acceptable degree.
3161 # See automake bug#10828.
3162 # To make any issue more visible, cause the running configure to be aborted
3163 # by default if the 'rm' program in use doesn't match our expectations; the
3164 # user can still override this though.
3165 if rm -f && rm -fr && rm -rf; then : OK; else
3166 cat >&2 <<'END'
3167 Oops!
3168
3169 Your 'rm' program seems unable to run without file operands specified
3170 on the command line, even when the '-f' option is present. This is contrary
3171 to the behaviour of most rm programs out there, and not conforming with
3172 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3173
3174 Please tell bug-automake@gnu.org about your system, including the value
3175 of your $PATH and any error possibly output before this message. This
3176 can help us improve future automake versions.
3177
3178 END
3179 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3180 echo 'Configuration will proceed anyway, since you have set the' >&2
3181 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3182 echo >&2
3183 else
3184 cat >&2 <<'END'
3185 Aborting the configuration process, to ensure you take notice of the issue.
3186
3187 You can download and install GNU coreutils to get an 'rm' implementation
3188 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3189
3190 If you want to complete the configuration process using your problematic
3191 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3192 to "yes", and re-run configure.
3193
3194 END
3195 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3196 fi
3197 fi
3198
3199
3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3201 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3202 # Check whether --enable-maintainer-mode was given.
3203 if test ${enable_maintainer_mode+y}
3204 then :
3205 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3206 else $as_nop
3207 USE_MAINTAINER_MODE=no
3208 fi
3209
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3211 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3212 if test $USE_MAINTAINER_MODE = yes; then
3213 MAINTAINER_MODE_TRUE=
3214 MAINTAINER_MODE_FALSE='#'
3215 else
3216 MAINTAINER_MODE_TRUE='#'
3217 MAINTAINER_MODE_FALSE=
3218 fi
3219
3220 MAINT=$MAINTAINER_MODE_TRUE
3221
3222
3223
3224 ac_config_headers="$ac_config_headers src/setup.h"
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 printf %s "checking for $ac_word... " >&6; }
3248 if test ${ac_cv_prog_CC+y}
3249 then :
3250 printf %s "(cached) " >&6
3251 else $as_nop
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 case $as_dir in #(((
3260 '') as_dir=./ ;;
3261 */) ;;
3262 *) as_dir=$as_dir/ ;;
3263 esac
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 printf "%s\n" "$CC" >&6; }
3280 else
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 printf "%s\n" "no" >&6; }
3283 fi
3284
3285
3286 fi
3287 if test -z "$ac_cv_prog_CC"; then
3288 ac_ct_CC=$CC
3289 # Extract the first word of "gcc", so it can be a program name with args.
3290 set dummy gcc; ac_word=$2
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 printf %s "checking for $ac_word... " >&6; }
3293 if test ${ac_cv_prog_ac_ct_CC+y}
3294 then :
3295 printf %s "(cached) " >&6
3296 else $as_nop
3297 if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 case $as_dir in #(((
3305 '') as_dir=./ ;;
3306 */) ;;
3307 *) as_dir=$as_dir/ ;;
3308 esac
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_ac_ct_CC="gcc"
3312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315 done
3316 done
3317 IFS=$as_save_IFS
3318
3319 fi
3320 fi
3321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3322 if test -n "$ac_ct_CC"; then
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3324 printf "%s\n" "$ac_ct_CC" >&6; }
3325 else
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 printf "%s\n" "no" >&6; }
3328 fi
3329
3330 if test "x$ac_ct_CC" = x; then
3331 CC=""
3332 else
3333 case $cross_compiling:$ac_tool_warned in
3334 yes:)
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned=yes ;;
3338 esac
3339 CC=$ac_ct_CC
3340 fi
3341 else
3342 CC="$ac_cv_prog_CC"
3343 fi
3344
3345 if test -z "$CC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3348 set dummy ${ac_tool_prefix}cc; ac_word=$2
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 printf %s "checking for $ac_word... " >&6; }
3351 if test ${ac_cv_prog_CC+y}
3352 then :
3353 printf %s "(cached) " >&6
3354 else $as_nop
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361 IFS=$as_save_IFS
3362 case $as_dir in #(((
3363 '') as_dir=./ ;;
3364 */) ;;
3365 *) as_dir=$as_dir/ ;;
3366 esac
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_CC="${ac_tool_prefix}cc"
3370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 printf "%s\n" "$CC" >&6; }
3383 else
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 printf "%s\n" "no" >&6; }
3386 fi
3387
3388
3389 fi
3390 fi
3391 if test -z "$CC"; then
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 printf %s "checking for $ac_word... " >&6; }
3396 if test ${ac_cv_prog_CC+y}
3397 then :
3398 printf %s "(cached) " >&6
3399 else $as_nop
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 ac_prog_rejected=no
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 case $as_dir in #(((
3409 '') as_dir=./ ;;
3410 */) ;;
3411 *) as_dir=$as_dir/ ;;
3412 esac
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3415 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416 ac_prog_rejected=yes
3417 continue
3418 fi
3419 ac_cv_prog_CC="cc"
3420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 if test $ac_prog_rejected = yes; then
3428 # We found a bogon in the path, so make sure we never use it.
3429 set dummy $ac_cv_prog_CC
3430 shift
3431 if test $# != 0; then
3432 # We chose a different compiler from the bogus one.
3433 # However, it has the same basename, so the bogon will be chosen
3434 # first if we set CC to just the basename; use the full file name.
3435 shift
3436 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3437 fi
3438 fi
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 printf "%s\n" "$CC" >&6; }
3445 else
3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 printf "%s\n" "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$CC"; then
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog in cl.exe
3455 do
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 printf %s "checking for $ac_word... " >&6; }
3460 if test ${ac_cv_prog_CC+y}
3461 then :
3462 printf %s "(cached) " >&6
3463 else $as_nop
3464 if test -n "$CC"; then
3465 ac_cv_prog_CC="$CC" # Let the user override the test.
3466 else
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3469 do
3470 IFS=$as_save_IFS
3471 case $as_dir in #(((
3472 '') as_dir=./ ;;
3473 */) ;;
3474 *) as_dir=$as_dir/ ;;
3475 esac
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3480 break 2
3481 fi
3482 done
3483 done
3484 IFS=$as_save_IFS
3485
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 printf "%s\n" "$CC" >&6; }
3492 else
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 printf "%s\n" "no" >&6; }
3495 fi
3496
3497
3498 test -n "$CC" && break
3499 done
3500 fi
3501 if test -z "$CC"; then
3502 ac_ct_CC=$CC
3503 for ac_prog in cl.exe
3504 do
3505 # Extract the first word of "$ac_prog", so it can be a program name with args.
3506 set dummy $ac_prog; ac_word=$2
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 printf %s "checking for $ac_word... " >&6; }
3509 if test ${ac_cv_prog_ac_ct_CC+y}
3510 then :
3511 printf %s "(cached) " >&6
3512 else $as_nop
3513 if test -n "$ac_ct_CC"; then
3514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519 IFS=$as_save_IFS
3520 case $as_dir in #(((
3521 '') as_dir=./ ;;
3522 */) ;;
3523 *) as_dir=$as_dir/ ;;
3524 esac
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3527 ac_cv_prog_ac_ct_CC="$ac_prog"
3528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3529 break 2
3530 fi
3531 done
3532 done
3533 IFS=$as_save_IFS
3534
3535 fi
3536 fi
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3540 printf "%s\n" "$ac_ct_CC" >&6; }
3541 else
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 printf "%s\n" "no" >&6; }
3544 fi
3545
3546
3547 test -n "$ac_ct_CC" && break
3548 done
3549
3550 if test "x$ac_ct_CC" = x; then
3551 CC=""
3552 else
3553 case $cross_compiling:$ac_tool_warned in
3554 yes:)
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3556 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3557 ac_tool_warned=yes ;;
3558 esac
3559 CC=$ac_ct_CC
3560 fi
3561 fi
3562
3563 fi
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3567 set dummy ${ac_tool_prefix}clang; ac_word=$2
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 printf %s "checking for $ac_word... " >&6; }
3570 if test ${ac_cv_prog_CC+y}
3571 then :
3572 printf %s "(cached) " >&6
3573 else $as_nop
3574 if test -n "$CC"; then
3575 ac_cv_prog_CC="$CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580 IFS=$as_save_IFS
3581 case $as_dir in #(((
3582 '') as_dir=./ ;;
3583 */) ;;
3584 *) as_dir=$as_dir/ ;;
3585 esac
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3588 ac_cv_prog_CC="${ac_tool_prefix}clang"
3589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3590 break 2
3591 fi
3592 done
3593 done
3594 IFS=$as_save_IFS
3595
3596 fi
3597 fi
3598 CC=$ac_cv_prog_CC
3599 if test -n "$CC"; then
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601 printf "%s\n" "$CC" >&6; }
3602 else
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 printf "%s\n" "no" >&6; }
3605 fi
3606
3607
3608 fi
3609 if test -z "$ac_cv_prog_CC"; then
3610 ac_ct_CC=$CC
3611 # Extract the first word of "clang", so it can be a program name with args.
3612 set dummy clang; ac_word=$2
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 printf %s "checking for $ac_word... " >&6; }
3615 if test ${ac_cv_prog_ac_ct_CC+y}
3616 then :
3617 printf %s "(cached) " >&6
3618 else $as_nop
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625 IFS=$as_save_IFS
3626 case $as_dir in #(((
3627 '') as_dir=./ ;;
3628 */) ;;
3629 *) as_dir=$as_dir/ ;;
3630 esac
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3633 ac_cv_prog_ac_ct_CC="clang"
3634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3635 break 2
3636 fi
3637 done
3638 done
3639 IFS=$as_save_IFS
3640
3641 fi
3642 fi
3643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3644 if test -n "$ac_ct_CC"; then
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646 printf "%s\n" "$ac_ct_CC" >&6; }
3647 else
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 printf "%s\n" "no" >&6; }
3650 fi
3651
3652 if test "x$ac_ct_CC" = x; then
3653 CC=""
3654 else
3655 case $cross_compiling:$ac_tool_warned in
3656 yes:)
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3658 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3659 ac_tool_warned=yes ;;
3660 esac
3661 CC=$ac_ct_CC
3662 fi
3663 else
3664 CC="$ac_cv_prog_CC"
3665 fi
3666
3667 fi
3668
3669
3670 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error $? "no acceptable C compiler found in \$PATH
3673 See \`config.log' for more details" "$LINENO" 5; }
3674
3675 # Provide some information about the compiler.
3676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3677 set X $ac_compile
3678 ac_compiler=$2
3679 for ac_option in --version -v -V -qversion -version; do
3680 { { ac_try="$ac_compiler $ac_option >&5"
3681 case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684 esac
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 printf "%s\n" "$ac_try_echo"; } >&5
3687 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3688 ac_status=$?
3689 if test -s conftest.err; then
3690 sed '10a\
3691 ... rest of stderr output deleted ...
3692 10q' conftest.err >conftest.er1
3693 cat conftest.er1 >&5
3694 fi
3695 rm -f conftest.er1 conftest.err
3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }
3698 done
3699
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3702
3703 int
3704 main (void)
3705 {
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 ac_clean_files_save=$ac_clean_files
3712 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3713 # Try to create an executable without -o first, disregard a.out.
3714 # It will help us diagnose broken compilers, and finding out an intuition
3715 # of exeext.
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3717 printf %s "checking whether the C compiler works... " >&6; }
3718 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3719
3720 # The possible output files:
3721 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3722
3723 ac_rmfiles=
3724 for ac_file in $ac_files
3725 do
3726 case $ac_file in
3727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3728 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3729 esac
3730 done
3731 rm -f $ac_rmfiles
3732
3733 if { { ac_try="$ac_link_default"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 printf "%s\n" "$ac_try_echo"; } >&5
3740 (eval "$ac_link_default") 2>&5
3741 ac_status=$?
3742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743 test $ac_status = 0; }
3744 then :
3745 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3746 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3747 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3748 # so that the user can short-circuit this test for compilers unknown to
3749 # Autoconf.
3750 for ac_file in $ac_files ''
3751 do
3752 test -f "$ac_file" || continue
3753 case $ac_file in
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3755 ;;
3756 [ab].out )
3757 # We found the default executable, but exeext='' is most
3758 # certainly right.
3759 break;;
3760 *.* )
3761 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3762 then :; else
3763 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3764 fi
3765 # We set ac_cv_exeext here because the later test for it is not
3766 # safe: cross compilers may not add the suffix if given an `-o'
3767 # argument, so we may need to know it at that point already.
3768 # Even if this section looks crufty: it has the advantage of
3769 # actually working.
3770 break;;
3771 * )
3772 break;;
3773 esac
3774 done
3775 test "$ac_cv_exeext" = no && ac_cv_exeext=
3776
3777 else $as_nop
3778 ac_file=''
3779 fi
3780 if test -z "$ac_file"
3781 then :
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 printf "%s\n" "no" >&6; }
3784 printf "%s\n" "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error 77 "C compiler cannot create executables
3790 See \`config.log' for more details" "$LINENO" 5; }
3791 else $as_nop
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3793 printf "%s\n" "yes" >&6; }
3794 fi
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3796 printf %s "checking for C compiler default output file name... " >&6; }
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3798 printf "%s\n" "$ac_file" >&6; }
3799 ac_exeext=$ac_cv_exeext
3800
3801 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3802 ac_clean_files=$ac_clean_files_save
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3804 printf %s "checking for suffix of executables... " >&6; }
3805 if { { ac_try="$ac_link"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 printf "%s\n" "$ac_try_echo"; } >&5
3812 (eval "$ac_link") 2>&5
3813 ac_status=$?
3814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }
3816 then :
3817 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3818 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3819 # work properly (i.e., refer to `conftest.exe'), while it won't with
3820 # `rm'.
3821 for ac_file in conftest.exe conftest conftest.*; do
3822 test -f "$ac_file" || continue
3823 case $ac_file in
3824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3825 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3826 break;;
3827 * ) break;;
3828 esac
3829 done
3830 else $as_nop
3831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3833 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3834 See \`config.log' for more details" "$LINENO" 5; }
3835 fi
3836 rm -f conftest conftest$ac_cv_exeext
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3838 printf "%s\n" "$ac_cv_exeext" >&6; }
3839
3840 rm -f conftest.$ac_ext
3841 EXEEXT=$ac_cv_exeext
3842 ac_exeext=$EXEEXT
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3845 #include <stdio.h>
3846 int
3847 main (void)
3848 {
3849 FILE *f = fopen ("conftest.out", "w");
3850 return ferror (f) || fclose (f) != 0;
3851
3852 ;
3853 return 0;
3854 }
3855 _ACEOF
3856 ac_clean_files="$ac_clean_files conftest.out"
3857 # Check that the compiler produces executables we can run. If not, either
3858 # the compiler is broken, or we cross compile.
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3860 printf %s "checking whether we are cross compiling... " >&6; }
3861 if test "$cross_compiling" != yes; then
3862 { { ac_try="$ac_link"
3863 case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 printf "%s\n" "$ac_try_echo"; } >&5
3869 (eval "$ac_link") 2>&5
3870 ac_status=$?
3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }
3873 if { ac_try='./conftest$ac_cv_exeext'
3874 { { case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 printf "%s\n" "$ac_try_echo"; } >&5
3880 (eval "$ac_try") 2>&5
3881 ac_status=$?
3882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; }; then
3884 cross_compiling=no
3885 else
3886 if test "$cross_compiling" = maybe; then
3887 cross_compiling=yes
3888 else
3889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error 77 "cannot run C compiled programs.
3892 If you meant to cross compile, use \`--host'.
3893 See \`config.log' for more details" "$LINENO" 5; }
3894 fi
3895 fi
3896 fi
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3898 printf "%s\n" "$cross_compiling" >&6; }
3899
3900 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3901 ac_clean_files=$ac_clean_files_save
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3903 printf %s "checking for suffix of object files... " >&6; }
3904 if test ${ac_cv_objext+y}
3905 then :
3906 printf %s "(cached) " >&6
3907 else $as_nop
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3910
3911 int
3912 main (void)
3913 {
3914
3915 ;
3916 return 0;
3917 }
3918 _ACEOF
3919 rm -f conftest.o conftest.obj
3920 if { { ac_try="$ac_compile"
3921 case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 printf "%s\n" "$ac_try_echo"; } >&5
3927 (eval "$ac_compile") 2>&5
3928 ac_status=$?
3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }
3931 then :
3932 for ac_file in conftest.o conftest.obj conftest.*; do
3933 test -f "$ac_file" || continue;
3934 case $ac_file in
3935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3936 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3937 break;;
3938 esac
3939 done
3940 else $as_nop
3941 printf "%s\n" "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error $? "cannot compute suffix of object files: cannot compile
3947 See \`config.log' for more details" "$LINENO" 5; }
3948 fi
3949 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3950 fi
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3952 printf "%s\n" "$ac_cv_objext" >&6; }
3953 OBJEXT=$ac_cv_objext
3954 ac_objext=$OBJEXT
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3956 printf %s "checking whether the compiler supports GNU C... " >&6; }
3957 if test ${ac_cv_c_compiler_gnu+y}
3958 then :
3959 printf %s "(cached) " >&6
3960 else $as_nop
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963
3964 int
3965 main (void)
3966 {
3967 #ifndef __GNUC__
3968 choke me
3969 #endif
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"
3976 then :
3977 ac_compiler_gnu=yes
3978 else $as_nop
3979 ac_compiler_gnu=no
3980 fi
3981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3982 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3983
3984 fi
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3986 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988
3989 if test $ac_compiler_gnu = yes; then
3990 GCC=yes
3991 else
3992 GCC=
3993 fi
3994 ac_test_CFLAGS=${CFLAGS+y}
3995 ac_save_CFLAGS=$CFLAGS
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3997 printf %s "checking whether $CC accepts -g... " >&6; }
3998 if test ${ac_cv_prog_cc_g+y}
3999 then :
4000 printf %s "(cached) " >&6
4001 else $as_nop
4002 ac_save_c_werror_flag=$ac_c_werror_flag
4003 ac_c_werror_flag=yes
4004 ac_cv_prog_cc_g=no
4005 CFLAGS="-g"
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008
4009 int
4010 main (void)
4011 {
4012
4013 ;
4014 return 0;
4015 }
4016 _ACEOF
4017 if ac_fn_c_try_compile "$LINENO"
4018 then :
4019 ac_cv_prog_cc_g=yes
4020 else $as_nop
4021 CFLAGS=""
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024
4025 int
4026 main (void)
4027 {
4028
4029 ;
4030 return 0;
4031 }
4032 _ACEOF
4033 if ac_fn_c_try_compile "$LINENO"
4034 then :
4035
4036 else $as_nop
4037 ac_c_werror_flag=$ac_save_c_werror_flag
4038 CFLAGS="-g"
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041
4042 int
4043 main (void)
4044 {
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"
4051 then :
4052 ac_cv_prog_cc_g=yes
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4059 ac_c_werror_flag=$ac_save_c_werror_flag
4060 fi
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4062 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4063 if test $ac_test_CFLAGS; then
4064 CFLAGS=$ac_save_CFLAGS
4065 elif test $ac_cv_prog_cc_g = yes; then
4066 if test "$GCC" = yes; then
4067 CFLAGS="-g -O2"
4068 else
4069 CFLAGS="-g"
4070 fi
4071 else
4072 if test "$GCC" = yes; then
4073 CFLAGS="-O2"
4074 else
4075 CFLAGS=
4076 fi
4077 fi
4078 ac_prog_cc_stdc=no
4079 if test x$ac_prog_cc_stdc = xno
4080 then :
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4082 printf %s "checking for $CC option to enable C11 features... " >&6; }
4083 if test ${ac_cv_prog_cc_c11+y}
4084 then :
4085 printf %s "(cached) " >&6
4086 else $as_nop
4087 ac_cv_prog_cc_c11=no
4088 ac_save_CC=$CC
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4091 $ac_c_conftest_c11_program
4092 _ACEOF
4093 for ac_arg in '' -std=gnu11
4094 do
4095 CC="$ac_save_CC $ac_arg"
4096 if ac_fn_c_try_compile "$LINENO"
4097 then :
4098 ac_cv_prog_cc_c11=$ac_arg
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext conftest.beam
4101 test "x$ac_cv_prog_cc_c11" != "xno" && break
4102 done
4103 rm -f conftest.$ac_ext
4104 CC=$ac_save_CC
4105 fi
4106
4107 if test "x$ac_cv_prog_cc_c11" = xno
4108 then :
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4110 printf "%s\n" "unsupported" >&6; }
4111 else $as_nop
4112 if test "x$ac_cv_prog_cc_c11" = x
4113 then :
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4115 printf "%s\n" "none needed" >&6; }
4116 else $as_nop
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4118 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4119 CC="$CC $ac_cv_prog_cc_c11"
4120 fi
4121 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4122 ac_prog_cc_stdc=c11
4123 fi
4124 fi
4125 if test x$ac_prog_cc_stdc = xno
4126 then :
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4128 printf %s "checking for $CC option to enable C99 features... " >&6; }
4129 if test ${ac_cv_prog_cc_c99+y}
4130 then :
4131 printf %s "(cached) " >&6
4132 else $as_nop
4133 ac_cv_prog_cc_c99=no
4134 ac_save_CC=$CC
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 $ac_c_conftest_c99_program
4138 _ACEOF
4139 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4140 do
4141 CC="$ac_save_CC $ac_arg"
4142 if ac_fn_c_try_compile "$LINENO"
4143 then :
4144 ac_cv_prog_cc_c99=$ac_arg
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.beam
4147 test "x$ac_cv_prog_cc_c99" != "xno" && break
4148 done
4149 rm -f conftest.$ac_ext
4150 CC=$ac_save_CC
4151 fi
4152
4153 if test "x$ac_cv_prog_cc_c99" = xno
4154 then :
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4156 printf "%s\n" "unsupported" >&6; }
4157 else $as_nop
4158 if test "x$ac_cv_prog_cc_c99" = x
4159 then :
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161 printf "%s\n" "none needed" >&6; }
4162 else $as_nop
4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4164 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4165 CC="$CC $ac_cv_prog_cc_c99"
4166 fi
4167 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4168 ac_prog_cc_stdc=c99
4169 fi
4170 fi
4171 if test x$ac_prog_cc_stdc = xno
4172 then :
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4174 printf %s "checking for $CC option to enable C89 features... " >&6; }
4175 if test ${ac_cv_prog_cc_c89+y}
4176 then :
4177 printf %s "(cached) " >&6
4178 else $as_nop
4179 ac_cv_prog_cc_c89=no
4180 ac_save_CC=$CC
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 $ac_c_conftest_c89_program
4184 _ACEOF
4185 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4186 do
4187 CC="$ac_save_CC $ac_arg"
4188 if ac_fn_c_try_compile "$LINENO"
4189 then :
4190 ac_cv_prog_cc_c89=$ac_arg
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext conftest.beam
4193 test "x$ac_cv_prog_cc_c89" != "xno" && break
4194 done
4195 rm -f conftest.$ac_ext
4196 CC=$ac_save_CC
4197 fi
4198
4199 if test "x$ac_cv_prog_cc_c89" = xno
4200 then :
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4202 printf "%s\n" "unsupported" >&6; }
4203 else $as_nop
4204 if test "x$ac_cv_prog_cc_c89" = x
4205 then :
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4207 printf "%s\n" "none needed" >&6; }
4208 else $as_nop
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4210 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4211 CC="$CC $ac_cv_prog_cc_c89"
4212 fi
4213 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4214 ac_prog_cc_stdc=c89
4215 fi
4216 fi
4217
4218 ac_ext=c
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
4224
4225 ac_ext=c
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4231 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4232 if test ${am_cv_prog_cc_c_o+y}
4233 then :
4234 printf %s "(cached) " >&6
4235 else $as_nop
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238
4239 int
4240 main (void)
4241 {
4242
4243 ;
4244 return 0;
4245 }
4246 _ACEOF
4247 # Make sure it works both with $CC and with simple cc.
4248 # Following AC_PROG_CC_C_O, we do the test twice because some
4249 # compilers refuse to overwrite an existing .o file with -o,
4250 # though they will create one.
4251 am_cv_prog_cc_c_o=yes
4252 for am_i in 1 2; do
4253 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4254 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } \
4258 && test -f conftest2.$ac_objext; then
4259 : OK
4260 else
4261 am_cv_prog_cc_c_o=no
4262 break
4263 fi
4264 done
4265 rm -f core conftest*
4266 unset am_i
4267 fi
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4269 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4270 if test "$am_cv_prog_cc_c_o" != yes; then
4271 # Losing compiler, so override with the script.
4272 # FIXME: It is wrong to rewrite CC.
4273 # But if we don't then we get into trouble of one sort or another.
4274 # A longer-term fix would be to have automake use am__CC in this case,
4275 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4276 CC="$am_aux_dir/compile $CC"
4277 fi
4278 ac_ext=c
4279 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283
4284 DEPDIR="${am__leading_dot}deps"
4285
4286 ac_config_commands="$ac_config_commands depfiles"
4287
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4289 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4290 cat > confinc.mk << 'END'
4291 am__doit:
4292 @echo this is the am__doit target >confinc.out
4293 .PHONY: am__doit
4294 END
4295 am__include="#"
4296 am__quote=
4297 # BSD make does it like this.
4298 echo '.include "confinc.mk" # ignored' > confmf.BSD
4299 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4300 echo 'include confinc.mk # ignored' > confmf.GNU
4301 _am_result=no
4302 for s in GNU BSD; do
4303 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4304 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }
4308 case $?:`cat confinc.out 2>/dev/null` in #(
4309 '0:this is the am__doit target') :
4310 case $s in #(
4311 BSD) :
4312 am__include='.include' am__quote='"' ;; #(
4313 *) :
4314 am__include='include' am__quote='' ;;
4315 esac ;; #(
4316 *) :
4317 ;;
4318 esac
4319 if test "$am__include" != "#"; then
4320 _am_result="yes ($s style)"
4321 break
4322 fi
4323 done
4324 rm -f confinc.* confmf.*
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4326 printf "%s\n" "${_am_result}" >&6; }
4327
4328 # Check whether --enable-dependency-tracking was given.
4329 if test ${enable_dependency_tracking+y}
4330 then :
4331 enableval=$enable_dependency_tracking;
4332 fi
4333
4334 if test "x$enable_dependency_tracking" != xno; then
4335 am_depcomp="$ac_aux_dir/depcomp"
4336 AMDEPBACKSLASH='\'
4337 am__nodep='_no'
4338 fi
4339 if test "x$enable_dependency_tracking" != xno; then
4340 AMDEP_TRUE=
4341 AMDEP_FALSE='#'
4342 else
4343 AMDEP_TRUE='#'
4344 AMDEP_FALSE=
4345 fi
4346
4347
4348
4349 depcc="$CC" am_compiler_list=
4350
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4352 printf %s "checking dependency style of $depcc... " >&6; }
4353 if test ${am_cv_CC_dependencies_compiler_type+y}
4354 then :
4355 printf %s "(cached) " >&6
4356 else $as_nop
4357 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4358 # We make a subdir and do the tests there. Otherwise we can end up
4359 # making bogus files that we don't know about and never remove. For
4360 # instance it was reported that on HP-UX the gcc test will end up
4361 # making a dummy file named 'D' -- because '-MD' means "put the output
4362 # in D".
4363 rm -rf conftest.dir
4364 mkdir conftest.dir
4365 # Copy depcomp to subdir because otherwise we won't find it if we're
4366 # using a relative directory.
4367 cp "$am_depcomp" conftest.dir
4368 cd conftest.dir
4369 # We will build objects and dependencies in a subdirectory because
4370 # it helps to detect inapplicable dependency modes. For instance
4371 # both Tru64's cc and ICC support -MD to output dependencies as a
4372 # side effect of compilation, but ICC will put the dependencies in
4373 # the current directory while Tru64 will put them in the object
4374 # directory.
4375 mkdir sub
4376
4377 am_cv_CC_dependencies_compiler_type=none
4378 if test "$am_compiler_list" = ""; then
4379 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4380 fi
4381 am__universal=false
4382 case " $depcc " in #(
4383 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4384 esac
4385
4386 for depmode in $am_compiler_list; do
4387 # Setup a source with many dependencies, because some compilers
4388 # like to wrap large dependency lists on column 80 (with \), and
4389 # we should not choose a depcomp mode which is confused by this.
4390 #
4391 # We need to recreate these files for each test, as the compiler may
4392 # overwrite some of them when testing with obscure command lines.
4393 # This happens at least with the AIX C compiler.
4394 : > sub/conftest.c
4395 for i in 1 2 3 4 5 6; do
4396 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4397 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4398 # Solaris 10 /bin/sh.
4399 echo '/* dummy */' > sub/conftst$i.h
4400 done
4401 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4402
4403 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4404 # mode. It turns out that the SunPro C++ compiler does not properly
4405 # handle '-M -o', and we need to detect this. Also, some Intel
4406 # versions had trouble with output in subdirs.
4407 am__obj=sub/conftest.${OBJEXT-o}
4408 am__minus_obj="-o $am__obj"
4409 case $depmode in
4410 gcc)
4411 # This depmode causes a compiler race in universal mode.
4412 test "$am__universal" = false || continue
4413 ;;
4414 nosideeffect)
4415 # After this tag, mechanisms are not by side-effect, so they'll
4416 # only be used when explicitly requested.
4417 if test "x$enable_dependency_tracking" = xyes; then
4418 continue
4419 else
4420 break
4421 fi
4422 ;;
4423 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4424 # This compiler won't grok '-c -o', but also, the minuso test has
4425 # not run yet. These depmodes are late enough in the game, and
4426 # so weak that their functioning should not be impacted.
4427 am__obj=conftest.${OBJEXT-o}
4428 am__minus_obj=
4429 ;;
4430 none) break ;;
4431 esac
4432 if depmode=$depmode \
4433 source=sub/conftest.c object=$am__obj \
4434 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4435 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4436 >/dev/null 2>conftest.err &&
4437 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4438 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4439 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4440 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4441 # icc doesn't choke on unknown options, it will just issue warnings
4442 # or remarks (even with -Werror). So we grep stderr for any message
4443 # that says an option was ignored or not supported.
4444 # When given -MP, icc 7.0 and 7.1 complain thusly:
4445 # icc: Command line warning: ignoring option '-M'; no argument required
4446 # The diagnosis changed in icc 8.0:
4447 # icc: Command line remark: option '-MP' not supported
4448 if (grep 'ignoring option' conftest.err ||
4449 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4450 am_cv_CC_dependencies_compiler_type=$depmode
4451 break
4452 fi
4453 fi
4454 done
4455
4456 cd ..
4457 rm -rf conftest.dir
4458 else
4459 am_cv_CC_dependencies_compiler_type=none
4460 fi
4461
4462 fi
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4464 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4465 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4466
4467 if
4468 test "x$enable_dependency_tracking" != xno \
4469 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4470 am__fastdepCC_TRUE=
4471 am__fastdepCC_FALSE='#'
4472 else
4473 am__fastdepCC_TRUE='#'
4474 am__fastdepCC_FALSE=
4475 fi
4476
4477
4478 case `pwd` in
4479 *\ * | *\ *)
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4481 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4482 esac
4483
4484
4485
4486 macro_version='2.4.7'
4487 macro_revision='2.4.7'
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502 ltmain=$ac_aux_dir/ltmain.sh
4503
4504
4505
4506 # Make sure we can run config.sub.
4507 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4508 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4509
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4511 printf %s "checking build system type... " >&6; }
4512 if test ${ac_cv_build+y}
4513 then :
4514 printf %s "(cached) " >&6
4515 else $as_nop
4516 ac_build_alias=$build_alias
4517 test "x$ac_build_alias" = x &&
4518 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4519 test "x$ac_build_alias" = x &&
4520 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4521 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4522 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4523
4524 fi
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4526 printf "%s\n" "$ac_cv_build" >&6; }
4527 case $ac_cv_build in
4528 *-*-*) ;;
4529 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4530 esac
4531 build=$ac_cv_build
4532 ac_save_IFS=$IFS; IFS='-'
4533 set x $ac_cv_build
4534 shift
4535 build_cpu=$1
4536 build_vendor=$2
4537 shift; shift
4538 # Remember, the first character of IFS is used to create $*,
4539 # except with old shells:
4540 build_os=$*
4541 IFS=$ac_save_IFS
4542 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4543
4544
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4546 printf %s "checking host system type... " >&6; }
4547 if test ${ac_cv_host+y}
4548 then :
4549 printf %s "(cached) " >&6
4550 else $as_nop
4551 if test "x$host_alias" = x; then
4552 ac_cv_host=$ac_cv_build
4553 else
4554 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4555 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4556 fi
4557
4558 fi
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4560 printf "%s\n" "$ac_cv_host" >&6; }
4561 case $ac_cv_host in
4562 *-*-*) ;;
4563 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4564 esac
4565 host=$ac_cv_host
4566 ac_save_IFS=$IFS; IFS='-'
4567 set x $ac_cv_host
4568 shift
4569 host_cpu=$1
4570 host_vendor=$2
4571 shift; shift
4572 # Remember, the first character of IFS is used to create $*,
4573 # except with old shells:
4574 host_os=$*
4575 IFS=$ac_save_IFS
4576 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4577
4578
4579 # Backslashify metacharacters that are still active within
4580 # double-quoted strings.
4581 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4582
4583 # Same as above, but do not quote variable references.
4584 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4585
4586 # Sed substitution to delay expansion of an escaped shell variable in a
4587 # double_quote_subst'ed string.
4588 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4589
4590 # Sed substitution to delay expansion of an escaped single quote.
4591 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4592
4593 # Sed substitution to avoid accidental globbing in evaled expressions
4594 no_glob_subst='s/\*/\\\*/g'
4595
4596 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4597 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4598 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4599
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4601 printf %s "checking how to print strings... " >&6; }
4602 # Test print first, because it will be a builtin if present.
4603 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4604 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4605 ECHO='print -r --'
4606 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4607 ECHO='printf %s\n'
4608 else
4609 # Use this function as a fallback that always works.
4610 func_fallback_echo ()
4611 {
4612 eval 'cat <<_LTECHO_EOF
4613 $1
4614 _LTECHO_EOF'
4615 }
4616 ECHO='func_fallback_echo'
4617 fi
4618
4619 # func_echo_all arg...
4620 # Invoke $ECHO with all args, space-separated.
4621 func_echo_all ()
4622 {
4623 $ECHO ""
4624 }
4625
4626 case $ECHO in
4627 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4628 printf "%s\n" "printf" >&6; } ;;
4629 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4630 printf "%s\n" "print -r" >&6; } ;;
4631 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4632 printf "%s\n" "cat" >&6; } ;;
4633 esac
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4649 printf %s "checking for a sed that does not truncate output... " >&6; }
4650 if test ${ac_cv_path_SED+y}
4651 then :
4652 printf %s "(cached) " >&6
4653 else $as_nop
4654 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4655 for ac_i in 1 2 3 4 5 6 7; do
4656 ac_script="$ac_script$as_nl$ac_script"
4657 done
4658 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4659 { ac_script=; unset ac_script;}
4660 if test -z "$SED"; then
4661 ac_path_SED_found=false
4662 # Loop through the user's path and test for each of PROGNAME-LIST
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666 IFS=$as_save_IFS
4667 case $as_dir in #(((
4668 '') as_dir=./ ;;
4669 */) ;;
4670 *) as_dir=$as_dir/ ;;
4671 esac
4672 for ac_prog in sed gsed
4673 do
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4676 as_fn_executable_p "$ac_path_SED" || continue
4677 # Check for GNU ac_path_SED and select it if it is found.
4678 # Check for GNU $ac_path_SED
4679 case `"$ac_path_SED" --version 2>&1` in
4680 *GNU*)
4681 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4682 *)
4683 ac_count=0
4684 printf %s 0123456789 >"conftest.in"
4685 while :
4686 do
4687 cat "conftest.in" "conftest.in" >"conftest.tmp"
4688 mv "conftest.tmp" "conftest.in"
4689 cp "conftest.in" "conftest.nl"
4690 printf "%s\n" '' >> "conftest.nl"
4691 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693 as_fn_arith $ac_count + 1 && ac_count=$as_val
4694 if test $ac_count -gt ${ac_path_SED_max-0}; then
4695 # Best one so far, save it but keep looking for a better one
4696 ac_cv_path_SED="$ac_path_SED"
4697 ac_path_SED_max=$ac_count
4698 fi
4699 # 10*(2^10) chars as input seems more than enough
4700 test $ac_count -gt 10 && break
4701 done
4702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703 esac
4704
4705 $ac_path_SED_found && break 3
4706 done
4707 done
4708 done
4709 IFS=$as_save_IFS
4710 if test -z "$ac_cv_path_SED"; then
4711 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4712 fi
4713 else
4714 ac_cv_path_SED=$SED
4715 fi
4716
4717 fi
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4719 printf "%s\n" "$ac_cv_path_SED" >&6; }
4720 SED="$ac_cv_path_SED"
4721 rm -f conftest.sed
4722
4723 test -z "$SED" && SED=sed
4724 Xsed="$SED -e 1s/^X//"
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4737 printf %s "checking for grep that handles long lines and -e... " >&6; }
4738 if test ${ac_cv_path_GREP+y}
4739 then :
4740 printf %s "(cached) " >&6
4741 else $as_nop
4742 if test -z "$GREP"; then
4743 ac_path_GREP_found=false
4744 # Loop through the user's path and test for each of PROGNAME-LIST
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4747 do
4748 IFS=$as_save_IFS
4749 case $as_dir in #(((
4750 '') as_dir=./ ;;
4751 */) ;;
4752 *) as_dir=$as_dir/ ;;
4753 esac
4754 for ac_prog in grep ggrep
4755 do
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4758 as_fn_executable_p "$ac_path_GREP" || continue
4759 # Check for GNU ac_path_GREP and select it if it is found.
4760 # Check for GNU $ac_path_GREP
4761 case `"$ac_path_GREP" --version 2>&1` in
4762 *GNU*)
4763 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4764 *)
4765 ac_count=0
4766 printf %s 0123456789 >"conftest.in"
4767 while :
4768 do
4769 cat "conftest.in" "conftest.in" >"conftest.tmp"
4770 mv "conftest.tmp" "conftest.in"
4771 cp "conftest.in" "conftest.nl"
4772 printf "%s\n" 'GREP' >> "conftest.nl"
4773 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775 as_fn_arith $ac_count + 1 && ac_count=$as_val
4776 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4777 # Best one so far, save it but keep looking for a better one
4778 ac_cv_path_GREP="$ac_path_GREP"
4779 ac_path_GREP_max=$ac_count
4780 fi
4781 # 10*(2^10) chars as input seems more than enough
4782 test $ac_count -gt 10 && break
4783 done
4784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785 esac
4786
4787 $ac_path_GREP_found && break 3
4788 done
4789 done
4790 done
4791 IFS=$as_save_IFS
4792 if test -z "$ac_cv_path_GREP"; then
4793 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4794 fi
4795 else
4796 ac_cv_path_GREP=$GREP
4797 fi
4798
4799 fi
4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4801 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4802 GREP="$ac_cv_path_GREP"
4803
4804
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4806 printf %s "checking for egrep... " >&6; }
4807 if test ${ac_cv_path_EGREP+y}
4808 then :
4809 printf %s "(cached) " >&6
4810 else $as_nop
4811 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4812 then ac_cv_path_EGREP="$GREP -E"
4813 else
4814 if test -z "$EGREP"; then
4815 ac_path_EGREP_found=false
4816 # Loop through the user's path and test for each of PROGNAME-LIST
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4819 do
4820 IFS=$as_save_IFS
4821 case $as_dir in #(((
4822 '') as_dir=./ ;;
4823 */) ;;
4824 *) as_dir=$as_dir/ ;;
4825 esac
4826 for ac_prog in egrep
4827 do
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4830 as_fn_executable_p "$ac_path_EGREP" || continue
4831 # Check for GNU ac_path_EGREP and select it if it is found.
4832 # Check for GNU $ac_path_EGREP
4833 case `"$ac_path_EGREP" --version 2>&1` in
4834 *GNU*)
4835 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4836 *)
4837 ac_count=0
4838 printf %s 0123456789 >"conftest.in"
4839 while :
4840 do
4841 cat "conftest.in" "conftest.in" >"conftest.tmp"
4842 mv "conftest.tmp" "conftest.in"
4843 cp "conftest.in" "conftest.nl"
4844 printf "%s\n" 'EGREP' >> "conftest.nl"
4845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4847 as_fn_arith $ac_count + 1 && ac_count=$as_val
4848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4849 # Best one so far, save it but keep looking for a better one
4850 ac_cv_path_EGREP="$ac_path_EGREP"
4851 ac_path_EGREP_max=$ac_count
4852 fi
4853 # 10*(2^10) chars as input seems more than enough
4854 test $ac_count -gt 10 && break
4855 done
4856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4857 esac
4858
4859 $ac_path_EGREP_found && break 3
4860 done
4861 done
4862 done
4863 IFS=$as_save_IFS
4864 if test -z "$ac_cv_path_EGREP"; then
4865 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4866 fi
4867 else
4868 ac_cv_path_EGREP=$EGREP
4869 fi
4870
4871 fi
4872 fi
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4874 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4875 EGREP="$ac_cv_path_EGREP"
4876
4877
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4879 printf %s "checking for fgrep... " >&6; }
4880 if test ${ac_cv_path_FGREP+y}
4881 then :
4882 printf %s "(cached) " >&6
4883 else $as_nop
4884 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4885 then ac_cv_path_FGREP="$GREP -F"
4886 else
4887 if test -z "$FGREP"; then
4888 ac_path_FGREP_found=false
4889 # Loop through the user's path and test for each of PROGNAME-LIST
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4892 do
4893 IFS=$as_save_IFS
4894 case $as_dir in #(((
4895 '') as_dir=./ ;;
4896 */) ;;
4897 *) as_dir=$as_dir/ ;;
4898 esac
4899 for ac_prog in fgrep
4900 do
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4903 as_fn_executable_p "$ac_path_FGREP" || continue
4904 # Check for GNU ac_path_FGREP and select it if it is found.
4905 # Check for GNU $ac_path_FGREP
4906 case `"$ac_path_FGREP" --version 2>&1` in
4907 *GNU*)
4908 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4909 *)
4910 ac_count=0
4911 printf %s 0123456789 >"conftest.in"
4912 while :
4913 do
4914 cat "conftest.in" "conftest.in" >"conftest.tmp"
4915 mv "conftest.tmp" "conftest.in"
4916 cp "conftest.in" "conftest.nl"
4917 printf "%s\n" 'FGREP' >> "conftest.nl"
4918 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4920 as_fn_arith $ac_count + 1 && ac_count=$as_val
4921 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4922 # Best one so far, save it but keep looking for a better one
4923 ac_cv_path_FGREP="$ac_path_FGREP"
4924 ac_path_FGREP_max=$ac_count
4925 fi
4926 # 10*(2^10) chars as input seems more than enough
4927 test $ac_count -gt 10 && break
4928 done
4929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4930 esac
4931
4932 $ac_path_FGREP_found && break 3
4933 done
4934 done
4935 done
4936 IFS=$as_save_IFS
4937 if test -z "$ac_cv_path_FGREP"; then
4938 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4939 fi
4940 else
4941 ac_cv_path_FGREP=$FGREP
4942 fi
4943
4944 fi
4945 fi
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4947 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4948 FGREP="$ac_cv_path_FGREP"
4949
4950
4951 test -z "$GREP" && GREP=grep
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971 # Check whether --with-gnu-ld was given.
4972 if test ${with_gnu_ld+y}
4973 then :
4974 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4975 else $as_nop
4976 with_gnu_ld=no
4977 fi
4978
4979 ac_prog=ld
4980 if test yes = "$GCC"; then
4981 # Check if gcc -print-prog-name=ld gives a path.
4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4983 printf %s "checking for ld used by $CC... " >&6; }
4984 case $host in
4985 *-*-mingw*)
4986 # gcc leaves a trailing carriage return, which upsets mingw
4987 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4988 *)
4989 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4990 esac
4991 case $ac_prog in
4992 # Accept absolute paths.
4993 [\\/]* | ?:[\\/]*)
4994 re_direlt='/[^/][^/]*/\.\./'
4995 # Canonicalize the pathname of ld
4996 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4997 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4998 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4999 done
5000 test -z "$LD" && LD=$ac_prog
5001 ;;
5002 "")
5003 # If it fails, then pretend we aren't using GCC.
5004 ac_prog=ld
5005 ;;
5006 *)
5007 # If it is relative, then search for the first ld in PATH.
5008 with_gnu_ld=unknown
5009 ;;
5010 esac
5011 elif test yes = "$with_gnu_ld"; then
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5013 printf %s "checking for GNU ld... " >&6; }
5014 else
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5016 printf %s "checking for non-GNU ld... " >&6; }
5017 fi
5018 if test ${lt_cv_path_LD+y}
5019 then :
5020 printf %s "(cached) " >&6
5021 else $as_nop
5022 if test -z "$LD"; then
5023 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5024 for ac_dir in $PATH; do
5025 IFS=$lt_save_ifs
5026 test -z "$ac_dir" && ac_dir=.
5027 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5028 lt_cv_path_LD=$ac_dir/$ac_prog
5029 # Check to see if the program is GNU ld. I'd rather use --version,
5030 # but apparently some variants of GNU ld only accept -v.
5031 # Break only if it was the GNU/non-GNU ld that we prefer.
5032 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5033 *GNU* | *'with BFD'*)
5034 test no != "$with_gnu_ld" && break
5035 ;;
5036 *)
5037 test yes != "$with_gnu_ld" && break
5038 ;;
5039 esac
5040 fi
5041 done
5042 IFS=$lt_save_ifs
5043 else
5044 lt_cv_path_LD=$LD # Let the user override the test with a path.
5045 fi
5046 fi
5047
5048 LD=$lt_cv_path_LD
5049 if test -n "$LD"; then
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5051 printf "%s\n" "$LD" >&6; }
5052 else
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 printf "%s\n" "no" >&6; }
5055 fi
5056 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5058 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5059 if test ${lt_cv_prog_gnu_ld+y}
5060 then :
5061 printf %s "(cached) " >&6
5062 else $as_nop
5063 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5064 case `$LD -v 2>&1 </dev/null` in
5065 *GNU* | *'with BFD'*)
5066 lt_cv_prog_gnu_ld=yes
5067 ;;
5068 *)
5069 lt_cv_prog_gnu_ld=no
5070 ;;
5071 esac
5072 fi
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5074 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5075 with_gnu_ld=$lt_cv_prog_gnu_ld
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5086 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5087 if test ${lt_cv_path_NM+y}
5088 then :
5089 printf %s "(cached) " >&6
5090 else $as_nop
5091 if test -n "$NM"; then
5092 # Let the user override the test.
5093 lt_cv_path_NM=$NM
5094 else
5095 lt_nm_to_check=${ac_tool_prefix}nm
5096 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5097 lt_nm_to_check="$lt_nm_to_check nm"
5098 fi
5099 for lt_tmp_nm in $lt_nm_to_check; do
5100 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5101 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5102 IFS=$lt_save_ifs
5103 test -z "$ac_dir" && ac_dir=.
5104 tmp_nm=$ac_dir/$lt_tmp_nm
5105 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5106 # Check to see if the nm accepts a BSD-compat flag.
5107 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5108 # nm: unknown option "B" ignored
5109 # Tru64's nm complains that /dev/null is an invalid object file
5110 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5111 case $build_os in
5112 mingw*) lt_bad_file=conftest.nm/nofile ;;
5113 *) lt_bad_file=/dev/null ;;
5114 esac
5115 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5116 *$lt_bad_file* | *'Invalid file or object type'*)
5117 lt_cv_path_NM="$tmp_nm -B"
5118 break 2
5119 ;;
5120 *)
5121 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5122 */dev/null*)
5123 lt_cv_path_NM="$tmp_nm -p"
5124 break 2
5125 ;;
5126 *)
5127 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5128 continue # so that we can try to find one that supports BSD flags
5129 ;;
5130 esac
5131 ;;
5132 esac
5133 fi
5134 done
5135 IFS=$lt_save_ifs
5136 done
5137 : ${lt_cv_path_NM=no}
5138 fi
5139 fi
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5141 printf "%s\n" "$lt_cv_path_NM" >&6; }
5142 if test no != "$lt_cv_path_NM"; then
5143 NM=$lt_cv_path_NM
5144 else
5145 # Didn't find any BSD compatible name lister, look for dumpbin.
5146 if test -n "$DUMPBIN"; then :
5147 # Let the user override the test.
5148 else
5149 if test -n "$ac_tool_prefix"; then
5150 for ac_prog in dumpbin "link -dump"
5151 do
5152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 printf %s "checking for $ac_word... " >&6; }
5156 if test ${ac_cv_prog_DUMPBIN+y}
5157 then :
5158 printf %s "(cached) " >&6
5159 else $as_nop
5160 if test -n "$DUMPBIN"; then
5161 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 case $as_dir in #(((
5168 '') as_dir=./ ;;
5169 */) ;;
5170 *) as_dir=$as_dir/ ;;
5171 esac
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 DUMPBIN=$ac_cv_prog_DUMPBIN
5185 if test -n "$DUMPBIN"; then
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5187 printf "%s\n" "$DUMPBIN" >&6; }
5188 else
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 printf "%s\n" "no" >&6; }
5191 fi
5192
5193
5194 test -n "$DUMPBIN" && break
5195 done
5196 fi
5197 if test -z "$DUMPBIN"; then
5198 ac_ct_DUMPBIN=$DUMPBIN
5199 for ac_prog in dumpbin "link -dump"
5200 do
5201 # Extract the first word of "$ac_prog", so it can be a program name with args.
5202 set dummy $ac_prog; ac_word=$2
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 printf %s "checking for $ac_word... " >&6; }
5205 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5206 then :
5207 printf %s "(cached) " >&6
5208 else $as_nop
5209 if test -n "$ac_ct_DUMPBIN"; then
5210 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5211 else
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213 for as_dir in $PATH
5214 do
5215 IFS=$as_save_IFS
5216 case $as_dir in #(((
5217 '') as_dir=./ ;;
5218 */) ;;
5219 *) as_dir=$as_dir/ ;;
5220 esac
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5223 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5225 break 2
5226 fi
5227 done
5228 done
5229 IFS=$as_save_IFS
5230
5231 fi
5232 fi
5233 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5234 if test -n "$ac_ct_DUMPBIN"; then
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5236 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5237 else
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 printf "%s\n" "no" >&6; }
5240 fi
5241
5242
5243 test -n "$ac_ct_DUMPBIN" && break
5244 done
5245
5246 if test "x$ac_ct_DUMPBIN" = x; then
5247 DUMPBIN=":"
5248 else
5249 case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253 ac_tool_warned=yes ;;
5254 esac
5255 DUMPBIN=$ac_ct_DUMPBIN
5256 fi
5257 fi
5258
5259 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5260 *COFF*)
5261 DUMPBIN="$DUMPBIN -symbols -headers"
5262 ;;
5263 *)
5264 DUMPBIN=:
5265 ;;
5266 esac
5267 fi
5268
5269 if test : != "$DUMPBIN"; then
5270 NM=$DUMPBIN
5271 fi
5272 fi
5273 test -z "$NM" && NM=nm
5274
5275
5276
5277
5278
5279
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5281 printf %s "checking the name lister ($NM) interface... " >&6; }
5282 if test ${lt_cv_nm_interface+y}
5283 then :
5284 printf %s "(cached) " >&6
5285 else $as_nop
5286 lt_cv_nm_interface="BSD nm"
5287 echo "int some_variable = 0;" > conftest.$ac_ext
5288 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5289 (eval "$ac_compile" 2>conftest.err)
5290 cat conftest.err >&5
5291 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5292 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5293 cat conftest.err >&5
5294 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5295 cat conftest.out >&5
5296 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5297 lt_cv_nm_interface="MS dumpbin"
5298 fi
5299 rm -f conftest*
5300 fi
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5302 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5303
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5305 printf %s "checking whether ln -s works... " >&6; }
5306 LN_S=$as_ln_s
5307 if test "$LN_S" = "ln -s"; then
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309 printf "%s\n" "yes" >&6; }
5310 else
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5312 printf "%s\n" "no, using $LN_S" >&6; }
5313 fi
5314
5315 # find the maximum length of command line arguments
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5317 printf %s "checking the maximum length of command line arguments... " >&6; }
5318 if test ${lt_cv_sys_max_cmd_len+y}
5319 then :
5320 printf %s "(cached) " >&6
5321 else $as_nop
5322 i=0
5323 teststring=ABCD
5324
5325 case $build_os in
5326 msdosdjgpp*)
5327 # On DJGPP, this test can blow up pretty badly due to problems in libc
5328 # (any single argument exceeding 2000 bytes causes a buffer overrun
5329 # during glob expansion). Even if it were fixed, the result of this
5330 # check would be larger than it should be.
5331 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5332 ;;
5333
5334 gnu*)
5335 # Under GNU Hurd, this test is not required because there is
5336 # no limit to the length of command line arguments.
5337 # Libtool will interpret -1 as no limit whatsoever
5338 lt_cv_sys_max_cmd_len=-1;
5339 ;;
5340
5341 cygwin* | mingw* | cegcc*)
5342 # On Win9x/ME, this test blows up -- it succeeds, but takes
5343 # about 5 minutes as the teststring grows exponentially.
5344 # Worse, since 9x/ME are not pre-emptively multitasking,
5345 # you end up with a "frozen" computer, even though with patience
5346 # the test eventually succeeds (with a max line length of 256k).
5347 # Instead, let's just punt: use the minimum linelength reported by
5348 # all of the supported platforms: 8192 (on NT/2K/XP).
5349 lt_cv_sys_max_cmd_len=8192;
5350 ;;
5351
5352 mint*)
5353 # On MiNT this can take a long time and run out of memory.
5354 lt_cv_sys_max_cmd_len=8192;
5355 ;;
5356
5357 amigaos*)
5358 # On AmigaOS with pdksh, this test takes hours, literally.
5359 # So we just punt and use a minimum line length of 8192.
5360 lt_cv_sys_max_cmd_len=8192;
5361 ;;
5362
5363 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5364 # This has been around since 386BSD, at least. Likely further.
5365 if test -x /sbin/sysctl; then
5366 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5367 elif test -x /usr/sbin/sysctl; then
5368 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5369 else
5370 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5371 fi
5372 # And add a safety zone
5373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5375 ;;
5376
5377 interix*)
5378 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5379 lt_cv_sys_max_cmd_len=196608
5380 ;;
5381
5382 os2*)
5383 # The test takes a long time on OS/2.
5384 lt_cv_sys_max_cmd_len=8192
5385 ;;
5386
5387 osf*)
5388 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5389 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5390 # nice to cause kernel panics so lets avoid the loop below.
5391 # First set a reasonable default.
5392 lt_cv_sys_max_cmd_len=16384
5393 #
5394 if test -x /sbin/sysconfig; then
5395 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5396 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5397 esac
5398 fi
5399 ;;
5400 sco3.2v5*)
5401 lt_cv_sys_max_cmd_len=102400
5402 ;;
5403 sysv5* | sco5v6* | sysv4.2uw2*)
5404 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5405 if test -n "$kargmax"; then
5406 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5407 else
5408 lt_cv_sys_max_cmd_len=32768
5409 fi
5410 ;;
5411 *)
5412 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5413 if test -n "$lt_cv_sys_max_cmd_len" && \
5414 test undefined != "$lt_cv_sys_max_cmd_len"; then
5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5417 else
5418 # Make teststring a little bigger before we do anything with it.
5419 # a 1K string should be a reasonable start.
5420 for i in 1 2 3 4 5 6 7 8; do
5421 teststring=$teststring$teststring
5422 done
5423 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5424 # If test is not a shell built-in, we'll probably end up computing a
5425 # maximum length that is only half of the actual maximum length, but
5426 # we can't tell.
5427 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5428 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5429 test 17 != "$i" # 1/2 MB should be enough
5430 do
5431 i=`expr $i + 1`
5432 teststring=$teststring$teststring
5433 done
5434 # Only check the string length outside the loop.
5435 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5436 teststring=
5437 # Add a significant safety factor because C++ compilers can tack on
5438 # massive amounts of additional arguments before passing them to the
5439 # linker. It appears as though 1/2 is a usable value.
5440 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5441 fi
5442 ;;
5443 esac
5444
5445 fi
5446
5447 if test -n "$lt_cv_sys_max_cmd_len"; then
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5449 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5450 else
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5452 printf "%s\n" "none" >&6; }
5453 fi
5454 max_cmd_len=$lt_cv_sys_max_cmd_len
5455
5456
5457
5458
5459
5460
5461 : ${CP="cp -f"}
5462 : ${MV="mv -f"}
5463 : ${RM="rm -f"}
5464
5465 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5466 lt_unset=unset
5467 else
5468 lt_unset=false
5469 fi
5470
5471
5472
5473
5474
5475 # test EBCDIC or ASCII
5476 case `echo X|tr X '\101'` in
5477 A) # ASCII based system
5478 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5479 lt_SP2NL='tr \040 \012'
5480 lt_NL2SP='tr \015\012 \040\040'
5481 ;;
5482 *) # EBCDIC based system
5483 lt_SP2NL='tr \100 \n'
5484 lt_NL2SP='tr \r\n \100\100'
5485 ;;
5486 esac
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5497 printf %s "checking how to convert $build file names to $host format... " >&6; }
5498 if test ${lt_cv_to_host_file_cmd+y}
5499 then :
5500 printf %s "(cached) " >&6
5501 else $as_nop
5502 case $host in
5503 *-*-mingw* )
5504 case $build in
5505 *-*-mingw* ) # actually msys
5506 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5507 ;;
5508 *-*-cygwin* )
5509 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5510 ;;
5511 * ) # otherwise, assume *nix
5512 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5513 ;;
5514 esac
5515 ;;
5516 *-*-cygwin* )
5517 case $build in
5518 *-*-mingw* ) # actually msys
5519 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5520 ;;
5521 *-*-cygwin* )
5522 lt_cv_to_host_file_cmd=func_convert_file_noop
5523 ;;
5524 * ) # otherwise, assume *nix
5525 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5526 ;;
5527 esac
5528 ;;
5529 * ) # unhandled hosts (and "normal" native builds)
5530 lt_cv_to_host_file_cmd=func_convert_file_noop
5531 ;;
5532 esac
5533
5534 fi
5535
5536 to_host_file_cmd=$lt_cv_to_host_file_cmd
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5538 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5539
5540
5541
5542
5543
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5545 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5546 if test ${lt_cv_to_tool_file_cmd+y}
5547 then :
5548 printf %s "(cached) " >&6
5549 else $as_nop
5550 #assume ordinary cross tools, or native build.
5551 lt_cv_to_tool_file_cmd=func_convert_file_noop
5552 case $host in
5553 *-*-mingw* )
5554 case $build in
5555 *-*-mingw* ) # actually msys
5556 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5557 ;;
5558 esac
5559 ;;
5560 esac
5561
5562 fi
5563
5564 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5566 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5567
5568
5569
5570
5571
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5573 printf %s "checking for $LD option to reload object files... " >&6; }
5574 if test ${lt_cv_ld_reload_flag+y}
5575 then :
5576 printf %s "(cached) " >&6
5577 else $as_nop
5578 lt_cv_ld_reload_flag='-r'
5579 fi
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5581 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5582 reload_flag=$lt_cv_ld_reload_flag
5583 case $reload_flag in
5584 "" | " "*) ;;
5585 *) reload_flag=" $reload_flag" ;;
5586 esac
5587 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5588 case $host_os in
5589 cygwin* | mingw* | pw32* | cegcc*)
5590 if test yes != "$GCC"; then
5591 reload_cmds=false
5592 fi
5593 ;;
5594 darwin*)
5595 if test yes = "$GCC"; then
5596 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5597 else
5598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5599 fi
5600 ;;
5601 esac
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611 if test -n "$ac_tool_prefix"; then
5612 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5613 set dummy ${ac_tool_prefix}file; ac_word=$2
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 printf %s "checking for $ac_word... " >&6; }
5616 if test ${ac_cv_prog_FILECMD+y}
5617 then :
5618 printf %s "(cached) " >&6
5619 else $as_nop
5620 if test -n "$FILECMD"; then
5621 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626 IFS=$as_save_IFS
5627 case $as_dir in #(((
5628 '') as_dir=./ ;;
5629 */) ;;
5630 *) as_dir=$as_dir/ ;;
5631 esac
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638 done
5639 done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 FILECMD=$ac_cv_prog_FILECMD
5645 if test -n "$FILECMD"; then
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5647 printf "%s\n" "$FILECMD" >&6; }
5648 else
5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 printf "%s\n" "no" >&6; }
5651 fi
5652
5653
5654 fi
5655 if test -z "$ac_cv_prog_FILECMD"; then
5656 ac_ct_FILECMD=$FILECMD
5657 # Extract the first word of "file", so it can be a program name with args.
5658 set dummy file; ac_word=$2
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 printf %s "checking for $ac_word... " >&6; }
5661 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5662 then :
5663 printf %s "(cached) " >&6
5664 else $as_nop
5665 if test -n "$ac_ct_FILECMD"; then
5666 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671 IFS=$as_save_IFS
5672 case $as_dir in #(((
5673 '') as_dir=./ ;;
5674 */) ;;
5675 *) as_dir=$as_dir/ ;;
5676 esac
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_FILECMD="file"
5680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5690 if test -n "$ac_ct_FILECMD"; then
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5692 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5693 else
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 printf "%s\n" "no" >&6; }
5696 fi
5697
5698 if test "x$ac_ct_FILECMD" = x; then
5699 FILECMD=":"
5700 else
5701 case $cross_compiling:$ac_tool_warned in
5702 yes:)
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5706 esac
5707 FILECMD=$ac_ct_FILECMD
5708 fi
5709 else
5710 FILECMD="$ac_cv_prog_FILECMD"
5711 fi
5712
5713
5714
5715
5716
5717
5718
5719 if test -n "$ac_tool_prefix"; then
5720 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5721 set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+y}
5725 then :
5726 printf %s "(cached) " >&6
5727 else $as_nop
5728 if test -n "$OBJDUMP"; then
5729 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump"
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 OBJDUMP=$ac_cv_prog_OBJDUMP
5753 if test -n "$OBJDUMP"; then
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5755 printf "%s\n" "$OBJDUMP" >&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_OBJDUMP"; then
5764 ac_ct_OBJDUMP=$OBJDUMP
5765 # Extract the first word of "objdump", so it can be a program name with args.
5766 set dummy objdump; 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_OBJDUMP+y}
5770 then :
5771 printf %s "(cached) " >&6
5772 else $as_nop
5773 if test -n "$ac_ct_OBJDUMP"; then
5774 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_OBJDUMP="objdump"
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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5798 if test -n "$ac_ct_OBJDUMP"; then
5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5800 printf "%s\n" "$ac_ct_OBJDUMP" >&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_OBJDUMP" = x; then
5807 OBJDUMP="false"
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 OBJDUMP=$ac_ct_OBJDUMP
5816 fi
5817 else
5818 OBJDUMP="$ac_cv_prog_OBJDUMP"
5819 fi
5820
5821 test -z "$OBJDUMP" && OBJDUMP=objdump
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5832 printf %s "checking how to recognize dependent libraries... " >&6; }
5833 if test ${lt_cv_deplibs_check_method+y}
5834 then :
5835 printf %s "(cached) " >&6
5836 else $as_nop
5837 lt_cv_file_magic_cmd='$MAGIC_CMD'
5838 lt_cv_file_magic_test_file=
5839 lt_cv_deplibs_check_method='unknown'
5840 # Need to set the preceding variable on all platforms that support
5841 # interlibrary dependencies.
5842 # 'none' -- dependencies not supported.
5843 # 'unknown' -- same as none, but documents that we really don't know.
5844 # 'pass_all' -- all dependencies passed with no checks.
5845 # 'test_compile' -- check by making test program.
5846 # 'file_magic [[regex]]' -- check by looking for files in library path
5847 # that responds to the $file_magic_cmd with a given extended regex.
5848 # If you have 'file' or equivalent on your system and you're not sure
5849 # whether 'pass_all' will *always* work, you probably want this one.
5850
5851 case $host_os in
5852 aix[4-9]*)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855
5856 beos*)
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859
5860 bsdi[45]*)
5861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5862 lt_cv_file_magic_cmd='$FILECMD -L'
5863 lt_cv_file_magic_test_file=/shlib/libc.so
5864 ;;
5865
5866 cygwin*)
5867 # func_win32_libid is a shell function defined in ltmain.sh
5868 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5869 lt_cv_file_magic_cmd='func_win32_libid'
5870 ;;
5871
5872 mingw* | pw32*)
5873 # Base MSYS/MinGW do not provide the 'file' command needed by
5874 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5875 # unless we find 'file', for example because we are cross-compiling.
5876 if ( file / ) >/dev/null 2>&1; then
5877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5878 lt_cv_file_magic_cmd='func_win32_libid'
5879 else
5880 # Keep this pattern in sync with the one in func_win32_libid.
5881 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5882 lt_cv_file_magic_cmd='$OBJDUMP -f'
5883 fi
5884 ;;
5885
5886 cegcc*)
5887 # use the weaker test based on 'objdump'. See mingw*.
5888 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5889 lt_cv_file_magic_cmd='$OBJDUMP -f'
5890 ;;
5891
5892 darwin* | rhapsody*)
5893 lt_cv_deplibs_check_method=pass_all
5894 ;;
5895
5896 freebsd* | dragonfly* | midnightbsd*)
5897 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5898 case $host_cpu in
5899 i*86 )
5900 # Not sure whether the presence of OpenBSD here was a mistake.
5901 # Let's accept both of them until this is cleared up.
5902 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5903 lt_cv_file_magic_cmd=$FILECMD
5904 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5905 ;;
5906 esac
5907 else
5908 lt_cv_deplibs_check_method=pass_all
5909 fi
5910 ;;
5911
5912 haiku*)
5913 lt_cv_deplibs_check_method=pass_all
5914 ;;
5915
5916 hpux10.20* | hpux11*)
5917 lt_cv_file_magic_cmd=$FILECMD
5918 case $host_cpu in
5919 ia64*)
5920 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5921 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5922 ;;
5923 hppa*64*)
5924 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]'
5925 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5926 ;;
5927 *)
5928 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5929 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5930 ;;
5931 esac
5932 ;;
5933
5934 interix[3-9]*)
5935 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5937 ;;
5938
5939 irix5* | irix6* | nonstopux*)
5940 case $LD in
5941 *-32|*"-32 ") libmagic=32-bit;;
5942 *-n32|*"-n32 ") libmagic=N32;;
5943 *-64|*"-64 ") libmagic=64-bit;;
5944 *) libmagic=never-match;;
5945 esac
5946 lt_cv_deplibs_check_method=pass_all
5947 ;;
5948
5949 # This must be glibc/ELF.
5950 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
5953
5954 netbsd*)
5955 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5957 else
5958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5959 fi
5960 ;;
5961
5962 newos6*)
5963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5964 lt_cv_file_magic_cmd=$FILECMD
5965 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5966 ;;
5967
5968 *nto* | *qnx*)
5969 lt_cv_deplibs_check_method=pass_all
5970 ;;
5971
5972 openbsd* | bitrig*)
5973 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5975 else
5976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5977 fi
5978 ;;
5979
5980 osf3* | osf4* | osf5*)
5981 lt_cv_deplibs_check_method=pass_all
5982 ;;
5983
5984 rdos*)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987
5988 solaris*)
5989 lt_cv_deplibs_check_method=pass_all
5990 ;;
5991
5992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995
5996 sysv4 | sysv4.3*)
5997 case $host_vendor in
5998 motorola)
5999 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]'
6000 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6001 ;;
6002 ncr)
6003 lt_cv_deplibs_check_method=pass_all
6004 ;;
6005 sequent)
6006 lt_cv_file_magic_cmd='/bin/file'
6007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6008 ;;
6009 sni)
6010 lt_cv_file_magic_cmd='/bin/file'
6011 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6012 lt_cv_file_magic_test_file=/lib/libc.so
6013 ;;
6014 siemens)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017 pc)
6018 lt_cv_deplibs_check_method=pass_all
6019 ;;
6020 esac
6021 ;;
6022
6023 tpf*)
6024 lt_cv_deplibs_check_method=pass_all
6025 ;;
6026 os2*)
6027 lt_cv_deplibs_check_method=pass_all
6028 ;;
6029 esac
6030
6031 fi
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6033 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6034
6035 file_magic_glob=
6036 want_nocaseglob=no
6037 if test "$build" = "$host"; then
6038 case $host_os in
6039 mingw* | pw32*)
6040 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6041 want_nocaseglob=yes
6042 else
6043 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6044 fi
6045 ;;
6046 esac
6047 fi
6048
6049 file_magic_cmd=$lt_cv_file_magic_cmd
6050 deplibs_check_method=$lt_cv_deplibs_check_method
6051 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 printf %s "checking for $ac_word... " >&6; }
6079 if test ${ac_cv_prog_DLLTOOL+y}
6080 then :
6081 printf %s "(cached) " >&6
6082 else $as_nop
6083 if test -n "$DLLTOOL"; then
6084 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089 IFS=$as_save_IFS
6090 case $as_dir in #(((
6091 '') as_dir=./ ;;
6092 */) ;;
6093 *) as_dir=$as_dir/ ;;
6094 esac
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6097 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6099 break 2
6100 fi
6101 done
6102 done
6103 IFS=$as_save_IFS
6104
6105 fi
6106 fi
6107 DLLTOOL=$ac_cv_prog_DLLTOOL
6108 if test -n "$DLLTOOL"; then
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6110 printf "%s\n" "$DLLTOOL" >&6; }
6111 else
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113 printf "%s\n" "no" >&6; }
6114 fi
6115
6116
6117 fi
6118 if test -z "$ac_cv_prog_DLLTOOL"; then
6119 ac_ct_DLLTOOL=$DLLTOOL
6120 # Extract the first word of "dlltool", so it can be a program name with args.
6121 set dummy dlltool; ac_word=$2
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 printf %s "checking for $ac_word... " >&6; }
6124 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6125 then :
6126 printf %s "(cached) " >&6
6127 else $as_nop
6128 if test -n "$ac_ct_DLLTOOL"; then
6129 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134 IFS=$as_save_IFS
6135 case $as_dir in #(((
6136 '') as_dir=./ ;;
6137 */) ;;
6138 *) as_dir=$as_dir/ ;;
6139 esac
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6142 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146 done
6147 done
6148 IFS=$as_save_IFS
6149
6150 fi
6151 fi
6152 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6153 if test -n "$ac_ct_DLLTOOL"; then
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6155 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6156 else
6157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 printf "%s\n" "no" >&6; }
6159 fi
6160
6161 if test "x$ac_ct_DLLTOOL" = x; then
6162 DLLTOOL="false"
6163 else
6164 case $cross_compiling:$ac_tool_warned in
6165 yes:)
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6167 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6168 ac_tool_warned=yes ;;
6169 esac
6170 DLLTOOL=$ac_ct_DLLTOOL
6171 fi
6172 else
6173 DLLTOOL="$ac_cv_prog_DLLTOOL"
6174 fi
6175
6176 test -z "$DLLTOOL" && DLLTOOL=dlltool
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6188 printf %s "checking how to associate runtime and link libraries... " >&6; }
6189 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6190 then :
6191 printf %s "(cached) " >&6
6192 else $as_nop
6193 lt_cv_sharedlib_from_linklib_cmd='unknown'
6194
6195 case $host_os in
6196 cygwin* | mingw* | pw32* | cegcc*)
6197 # two different shell functions defined in ltmain.sh;
6198 # decide which one to use based on capabilities of $DLLTOOL
6199 case `$DLLTOOL --help 2>&1` in
6200 *--identify-strict*)
6201 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6202 ;;
6203 *)
6204 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6205 ;;
6206 esac
6207 ;;
6208 *)
6209 # fallback: assume linklib IS sharedlib
6210 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6211 ;;
6212 esac
6213
6214 fi
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6216 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6217 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6218 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6219
6220
6221
6222
6223
6224
6225
6226
6227 if test -n "$ac_tool_prefix"; then
6228 for ac_prog in ar
6229 do
6230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 printf %s "checking for $ac_word... " >&6; }
6234 if test ${ac_cv_prog_AR+y}
6235 then :
6236 printf %s "(cached) " >&6
6237 else $as_nop
6238 if test -n "$AR"; then
6239 ac_cv_prog_AR="$AR" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244 IFS=$as_save_IFS
6245 case $as_dir in #(((
6246 '') as_dir=./ ;;
6247 */) ;;
6248 *) as_dir=$as_dir/ ;;
6249 esac
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 AR=$ac_cv_prog_AR
6263 if test -n "$AR"; then
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6265 printf "%s\n" "$AR" >&6; }
6266 else
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 printf "%s\n" "no" >&6; }
6269 fi
6270
6271
6272 test -n "$AR" && break
6273 done
6274 fi
6275 if test -z "$AR"; then
6276 ac_ct_AR=$AR
6277 for ac_prog in ar
6278 do
6279 # Extract the first word of "$ac_prog", so it can be a program name with args.
6280 set dummy $ac_prog; ac_word=$2
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282 printf %s "checking for $ac_word... " >&6; }
6283 if test ${ac_cv_prog_ac_ct_AR+y}
6284 then :
6285 printf %s "(cached) " >&6
6286 else $as_nop
6287 if test -n "$ac_ct_AR"; then
6288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 case $as_dir in #(((
6295 '') as_dir=./ ;;
6296 */) ;;
6297 *) as_dir=$as_dir/ ;;
6298 esac
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6301 ac_cv_prog_ac_ct_AR="$ac_prog"
6302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6303 break 2
6304 fi
6305 done
6306 done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6312 if test -n "$ac_ct_AR"; then
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6314 printf "%s\n" "$ac_ct_AR" >&6; }
6315 else
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 printf "%s\n" "no" >&6; }
6318 fi
6319
6320
6321 test -n "$ac_ct_AR" && break
6322 done
6323
6324 if test "x$ac_ct_AR" = x; then
6325 AR="false"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328 yes:)
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331 ac_tool_warned=yes ;;
6332 esac
6333 AR=$ac_ct_AR
6334 fi
6335 fi
6336
6337 : ${AR=ar}
6338
6339
6340
6341
6342
6343
6344 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6345 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6346 # higher priority because thats what people were doing historically (setting
6347 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6348 # variable obsoleted/removed.
6349
6350 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6351 lt_ar_flags=$AR_FLAGS
6352
6353
6354
6355
6356
6357
6358 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6359 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6360
6361
6362
6363
6364
6365
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6367 printf %s "checking for archiver @FILE support... " >&6; }
6368 if test ${lt_cv_ar_at_file+y}
6369 then :
6370 printf %s "(cached) " >&6
6371 else $as_nop
6372 lt_cv_ar_at_file=no
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375
6376 int
6377 main (void)
6378 {
6379
6380 ;
6381 return 0;
6382 }
6383 _ACEOF
6384 if ac_fn_c_try_compile "$LINENO"
6385 then :
6386 echo conftest.$ac_objext > conftest.lst
6387 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6389 (eval $lt_ar_try) 2>&5
6390 ac_status=$?
6391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; }
6393 if test 0 -eq "$ac_status"; then
6394 # Ensure the archiver fails upon bogus file names.
6395 rm -f conftest.$ac_objext libconftest.a
6396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6397 (eval $lt_ar_try) 2>&5
6398 ac_status=$?
6399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6400 test $ac_status = 0; }
6401 if test 0 -ne "$ac_status"; then
6402 lt_cv_ar_at_file=@
6403 fi
6404 fi
6405 rm -f conftest.* libconftest.a
6406
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6409
6410 fi
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6412 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6413
6414 if test no = "$lt_cv_ar_at_file"; then
6415 archiver_list_spec=
6416 else
6417 archiver_list_spec=$lt_cv_ar_at_file
6418 fi
6419
6420
6421
6422
6423
6424
6425
6426 if test -n "$ac_tool_prefix"; then
6427 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6428 set dummy ${ac_tool_prefix}strip; ac_word=$2
6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 printf %s "checking for $ac_word... " >&6; }
6431 if test ${ac_cv_prog_STRIP+y}
6432 then :
6433 printf %s "(cached) " >&6
6434 else $as_nop
6435 if test -n "$STRIP"; then
6436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441 IFS=$as_save_IFS
6442 case $as_dir in #(((
6443 '') as_dir=./ ;;
6444 */) ;;
6445 *) as_dir=$as_dir/ ;;
6446 esac
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6449 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453 done
6454 done
6455 IFS=$as_save_IFS
6456
6457 fi
6458 fi
6459 STRIP=$ac_cv_prog_STRIP
6460 if test -n "$STRIP"; then
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6462 printf "%s\n" "$STRIP" >&6; }
6463 else
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 printf "%s\n" "no" >&6; }
6466 fi
6467
6468
6469 fi
6470 if test -z "$ac_cv_prog_STRIP"; then
6471 ac_ct_STRIP=$STRIP
6472 # Extract the first word of "strip", so it can be a program name with args.
6473 set dummy strip; ac_word=$2
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 printf %s "checking for $ac_word... " >&6; }
6476 if test ${ac_cv_prog_ac_ct_STRIP+y}
6477 then :
6478 printf %s "(cached) " >&6
6479 else $as_nop
6480 if test -n "$ac_ct_STRIP"; then
6481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486 IFS=$as_save_IFS
6487 case $as_dir in #(((
6488 '') as_dir=./ ;;
6489 */) ;;
6490 *) as_dir=$as_dir/ ;;
6491 esac
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6494 ac_cv_prog_ac_ct_STRIP="strip"
6495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6496 break 2
6497 fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502 fi
6503 fi
6504 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6505 if test -n "$ac_ct_STRIP"; then
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6507 printf "%s\n" "$ac_ct_STRIP" >&6; }
6508 else
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 printf "%s\n" "no" >&6; }
6511 fi
6512
6513 if test "x$ac_ct_STRIP" = x; then
6514 STRIP=":"
6515 else
6516 case $cross_compiling:$ac_tool_warned in
6517 yes:)
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6519 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520 ac_tool_warned=yes ;;
6521 esac
6522 STRIP=$ac_ct_STRIP
6523 fi
6524 else
6525 STRIP="$ac_cv_prog_STRIP"
6526 fi
6527
6528 test -z "$STRIP" && STRIP=:
6529
6530
6531
6532
6533
6534
6535 if test -n "$ac_tool_prefix"; then
6536 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6537 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 printf %s "checking for $ac_word... " >&6; }
6540 if test ${ac_cv_prog_RANLIB+y}
6541 then :
6542 printf %s "(cached) " >&6
6543 else $as_nop
6544 if test -n "$RANLIB"; then
6545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550 IFS=$as_save_IFS
6551 case $as_dir in #(((
6552 '') as_dir=./ ;;
6553 */) ;;
6554 *) as_dir=$as_dir/ ;;
6555 esac
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6558 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6560 break 2
6561 fi
6562 done
6563 done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 RANLIB=$ac_cv_prog_RANLIB
6569 if test -n "$RANLIB"; then
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6571 printf "%s\n" "$RANLIB" >&6; }
6572 else
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 printf "%s\n" "no" >&6; }
6575 fi
6576
6577
6578 fi
6579 if test -z "$ac_cv_prog_RANLIB"; then
6580 ac_ct_RANLIB=$RANLIB
6581 # Extract the first word of "ranlib", so it can be a program name with args.
6582 set dummy ranlib; ac_word=$2
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 printf %s "checking for $ac_word... " >&6; }
6585 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6586 then :
6587 printf %s "(cached) " >&6
6588 else $as_nop
6589 if test -n "$ac_ct_RANLIB"; then
6590 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595 IFS=$as_save_IFS
6596 case $as_dir in #(((
6597 '') as_dir=./ ;;
6598 */) ;;
6599 *) as_dir=$as_dir/ ;;
6600 esac
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_ac_ct_RANLIB="ranlib"
6604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6605 break 2
6606 fi
6607 done
6608 done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6614 if test -n "$ac_ct_RANLIB"; then
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6616 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6617 else
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 printf "%s\n" "no" >&6; }
6620 fi
6621
6622 if test "x$ac_ct_RANLIB" = x; then
6623 RANLIB=":"
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631 RANLIB=$ac_ct_RANLIB
6632 fi
6633 else
6634 RANLIB="$ac_cv_prog_RANLIB"
6635 fi
6636
6637 test -z "$RANLIB" && RANLIB=:
6638
6639
6640
6641
6642
6643
6644 # Determine commands to create old-style static archives.
6645 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6646 old_postinstall_cmds='chmod 644 $oldlib'
6647 old_postuninstall_cmds=
6648
6649 if test -n "$RANLIB"; then
6650 case $host_os in
6651 bitrig* | openbsd*)
6652 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6653 ;;
6654 *)
6655 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6656 ;;
6657 esac
6658 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6659 fi
6660
6661 case $host_os in
6662 darwin*)
6663 lock_old_archive_extraction=yes ;;
6664 *)
6665 lock_old_archive_extraction=no ;;
6666 esac
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706 # If no C compiler was specified, use CC.
6707 LTCC=${LTCC-"$CC"}
6708
6709 # If no C compiler flags were specified, use CFLAGS.
6710 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6711
6712 # Allow CC to be a program name with arguments.
6713 compiler=$CC
6714
6715
6716 # Check for command to grab the raw symbol name followed by C symbol from nm.
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6718 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6719 if test ${lt_cv_sys_global_symbol_pipe+y}
6720 then :
6721 printf %s "(cached) " >&6
6722 else $as_nop
6723
6724 # These are sane defaults that work on at least a few old systems.
6725 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6726
6727 # Character class describing NM global symbol codes.
6728 symcode='[BCDEGRST]'
6729
6730 # Regexp to match symbols that can be accessed directly from C.
6731 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6732
6733 # Define system-specific variables.
6734 case $host_os in
6735 aix*)
6736 symcode='[BCDT]'
6737 ;;
6738 cygwin* | mingw* | pw32* | cegcc*)
6739 symcode='[ABCDGISTW]'
6740 ;;
6741 hpux*)
6742 if test ia64 = "$host_cpu"; then
6743 symcode='[ABCDEGRST]'
6744 fi
6745 ;;
6746 irix* | nonstopux*)
6747 symcode='[BCDEGRST]'
6748 ;;
6749 osf*)
6750 symcode='[BCDEGQRST]'
6751 ;;
6752 solaris*)
6753 symcode='[BDRT]'
6754 ;;
6755 sco3.2v5*)
6756 symcode='[DT]'
6757 ;;
6758 sysv4.2uw2*)
6759 symcode='[DT]'
6760 ;;
6761 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6762 symcode='[ABDT]'
6763 ;;
6764 sysv4)
6765 symcode='[DFNSTU]'
6766 ;;
6767 esac
6768
6769 # If we're using GNU nm, then use its standard symbol codes.
6770 case `$NM -V 2>&1` in
6771 *GNU* | *'with BFD'*)
6772 symcode='[ABCDGIRSTW]' ;;
6773 esac
6774
6775 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6776 # Gets list of data symbols to import.
6777 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6778 # Adjust the below global symbol transforms to fixup imported variables.
6779 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6780 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6781 lt_c_name_lib_hook="\
6782 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6783 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6784 else
6785 # Disable hooks by default.
6786 lt_cv_sys_global_symbol_to_import=
6787 lt_cdecl_hook=
6788 lt_c_name_hook=
6789 lt_c_name_lib_hook=
6790 fi
6791
6792 # Transform an extracted symbol line into a proper C declaration.
6793 # Some systems (esp. on ia64) link data and code symbols differently,
6794 # so use this general approach.
6795 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6796 $lt_cdecl_hook\
6797 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6798 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6799
6800 # Transform an extracted symbol line into symbol name and symbol address
6801 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6802 $lt_c_name_hook\
6803 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6804 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6805
6806 # Transform an extracted symbol line into symbol name with lib prefix and
6807 # symbol address.
6808 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6809 $lt_c_name_lib_hook\
6810 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6811 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6812 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6813
6814 # Handle CRLF in mingw tool chain
6815 opt_cr=
6816 case $build_os in
6817 mingw*)
6818 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6819 ;;
6820 esac
6821
6822 # Try without a prefix underscore, then with it.
6823 for ac_symprfx in "" "_"; do
6824
6825 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6826 symxfrm="\\1 $ac_symprfx\\2 \\2"
6827
6828 # Write the raw and C identifiers.
6829 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6830 # Fake it for dumpbin and say T for any non-static function,
6831 # D for any global variable and I for any imported variable.
6832 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6833 # which start with @ or ?.
6834 lt_cv_sys_global_symbol_pipe="$AWK '"\
6835 " {last_section=section; section=\$ 3};"\
6836 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6837 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6838 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6839 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6840 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6841 " \$ 0!~/External *\|/{next};"\
6842 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6843 " {if(hide[section]) next};"\
6844 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6845 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6846 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6847 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6848 " ' prfx=^$ac_symprfx"
6849 else
6850 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6851 fi
6852 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6853
6854 # Check to see that the pipe works correctly.
6855 pipe_works=no
6856
6857 rm -f conftest*
6858 cat > conftest.$ac_ext <<_LT_EOF
6859 #ifdef __cplusplus
6860 extern "C" {
6861 #endif
6862 char nm_test_var;
6863 void nm_test_func(void);
6864 void nm_test_func(void){}
6865 #ifdef __cplusplus
6866 }
6867 #endif
6868 int main(){nm_test_var='a';nm_test_func();return(0);}
6869 _LT_EOF
6870
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872 (eval $ac_compile) 2>&5
6873 ac_status=$?
6874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }; then
6876 # Now try to grab the symbols.
6877 nlist=conftest.nm
6878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6879 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6880 ac_status=$?
6881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882 test $ac_status = 0; } && test -s "$nlist"; then
6883 # Try sorting and uniquifying the output.
6884 if sort "$nlist" | uniq > "$nlist"T; then
6885 mv -f "$nlist"T "$nlist"
6886 else
6887 rm -f "$nlist"T
6888 fi
6889
6890 # Make sure that we snagged all the symbols we need.
6891 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6892 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6893 cat <<_LT_EOF > conftest.$ac_ext
6894 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6895 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6896 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6897 relocations are performed -- see ld's documentation on pseudo-relocs. */
6898 # define LT_DLSYM_CONST
6899 #elif defined __osf__
6900 /* This system does not cope well with relocations in const data. */
6901 # define LT_DLSYM_CONST
6902 #else
6903 # define LT_DLSYM_CONST const
6904 #endif
6905
6906 #ifdef __cplusplus
6907 extern "C" {
6908 #endif
6909
6910 _LT_EOF
6911 # Now generate the symbol file.
6912 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6913
6914 cat <<_LT_EOF >> conftest.$ac_ext
6915
6916 /* The mapping between symbol names and symbols. */
6917 LT_DLSYM_CONST struct {
6918 const char *name;
6919 void *address;
6920 }
6921 lt__PROGRAM__LTX_preloaded_symbols[] =
6922 {
6923 { "@PROGRAM@", (void *) 0 },
6924 _LT_EOF
6925 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6926 cat <<\_LT_EOF >> conftest.$ac_ext
6927 {0, (void *) 0}
6928 };
6929
6930 /* This works around a problem in FreeBSD linker */
6931 #ifdef FREEBSD_WORKAROUND
6932 static const void *lt_preloaded_setup() {
6933 return lt__PROGRAM__LTX_preloaded_symbols;
6934 }
6935 #endif
6936
6937 #ifdef __cplusplus
6938 }
6939 #endif
6940 _LT_EOF
6941 # Now try linking the two files.
6942 mv conftest.$ac_objext conftstm.$ac_objext
6943 lt_globsym_save_LIBS=$LIBS
6944 lt_globsym_save_CFLAGS=$CFLAGS
6945 LIBS=conftstm.$ac_objext
6946 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6948 (eval $ac_link) 2>&5
6949 ac_status=$?
6950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6952 pipe_works=yes
6953 fi
6954 LIBS=$lt_globsym_save_LIBS
6955 CFLAGS=$lt_globsym_save_CFLAGS
6956 else
6957 echo "cannot find nm_test_func in $nlist" >&5
6958 fi
6959 else
6960 echo "cannot find nm_test_var in $nlist" >&5
6961 fi
6962 else
6963 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6964 fi
6965 else
6966 echo "$progname: failed program was:" >&5
6967 cat conftest.$ac_ext >&5
6968 fi
6969 rm -rf conftest* conftst*
6970
6971 # Do not use the global_symbol_pipe unless it works.
6972 if test yes = "$pipe_works"; then
6973 break
6974 else
6975 lt_cv_sys_global_symbol_pipe=
6976 fi
6977 done
6978
6979 fi
6980
6981 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6982 lt_cv_sys_global_symbol_to_cdecl=
6983 fi
6984 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6986 printf "%s\n" "failed" >&6; }
6987 else
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6989 printf "%s\n" "ok" >&6; }
6990 fi
6991
6992 # Response file support.
6993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6994 nm_file_list_spec='@'
6995 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6996 nm_file_list_spec='@'
6997 fi
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7036 printf %s "checking for sysroot... " >&6; }
7037
7038 # Check whether --with-sysroot was given.
7039 if test ${with_sysroot+y}
7040 then :
7041 withval=$with_sysroot;
7042 else $as_nop
7043 with_sysroot=no
7044 fi
7045
7046
7047 lt_sysroot=
7048 case $with_sysroot in #(
7049 yes)
7050 if test yes = "$GCC"; then
7051 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7052 fi
7053 ;; #(
7054 /*)
7055 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7056 ;; #(
7057 no|'')
7058 ;; #(
7059 *)
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7061 printf "%s\n" "$with_sysroot" >&6; }
7062 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7063 ;;
7064 esac
7065
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7067 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7068
7069
7070
7071
7072
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7074 printf %s "checking for a working dd... " >&6; }
7075 if test ${ac_cv_path_lt_DD+y}
7076 then :
7077 printf %s "(cached) " >&6
7078 else $as_nop
7079 printf 0123456789abcdef0123456789abcdef >conftest.i
7080 cat conftest.i conftest.i >conftest2.i
7081 : ${lt_DD:=$DD}
7082 if test -z "$lt_DD"; then
7083 ac_path_lt_DD_found=false
7084 # Loop through the user's path and test for each of PROGNAME-LIST
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 case $as_dir in #(((
7090 '') as_dir=./ ;;
7091 */) ;;
7092 *) as_dir=$as_dir/ ;;
7093 esac
7094 for ac_prog in dd
7095 do
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7098 as_fn_executable_p "$ac_path_lt_DD" || continue
7099 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7100 cmp -s conftest.i conftest.out \
7101 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7102 fi
7103 $ac_path_lt_DD_found && break 3
7104 done
7105 done
7106 done
7107 IFS=$as_save_IFS
7108 if test -z "$ac_cv_path_lt_DD"; then
7109 :
7110 fi
7111 else
7112 ac_cv_path_lt_DD=$lt_DD
7113 fi
7114
7115 rm -f conftest.i conftest2.i conftest.out
7116 fi
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7118 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7119
7120
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7122 printf %s "checking how to truncate binary pipes... " >&6; }
7123 if test ${lt_cv_truncate_bin+y}
7124 then :
7125 printf %s "(cached) " >&6
7126 else $as_nop
7127 printf 0123456789abcdef0123456789abcdef >conftest.i
7128 cat conftest.i conftest.i >conftest2.i
7129 lt_cv_truncate_bin=
7130 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7131 cmp -s conftest.i conftest.out \
7132 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7133 fi
7134 rm -f conftest.i conftest2.i conftest.out
7135 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7136 fi
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7138 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7139
7140
7141
7142
7143
7144
7145
7146 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7147 func_cc_basename ()
7148 {
7149 for cc_temp in $*""; do
7150 case $cc_temp in
7151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7153 \-*) ;;
7154 *) break;;
7155 esac
7156 done
7157 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7158 }
7159
7160 # Check whether --enable-libtool-lock was given.
7161 if test ${enable_libtool_lock+y}
7162 then :
7163 enableval=$enable_libtool_lock;
7164 fi
7165
7166 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7167
7168 # Some flags need to be propagated to the compiler or linker for good
7169 # libtool support.
7170 case $host in
7171 ia64-*-hpux*)
7172 # Find out what ABI is being produced by ac_compile, and set mode
7173 # options accordingly.
7174 echo 'int i;' > conftest.$ac_ext
7175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7176 (eval $ac_compile) 2>&5
7177 ac_status=$?
7178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7179 test $ac_status = 0; }; then
7180 case `$FILECMD conftest.$ac_objext` in
7181 *ELF-32*)
7182 HPUX_IA64_MODE=32
7183 ;;
7184 *ELF-64*)
7185 HPUX_IA64_MODE=64
7186 ;;
7187 esac
7188 fi
7189 rm -rf conftest*
7190 ;;
7191 *-*-irix6*)
7192 # Find out what ABI is being produced by ac_compile, and set linker
7193 # options accordingly.
7194 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7196 (eval $ac_compile) 2>&5
7197 ac_status=$?
7198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7199 test $ac_status = 0; }; then
7200 if test yes = "$lt_cv_prog_gnu_ld"; then
7201 case `$FILECMD conftest.$ac_objext` in
7202 *32-bit*)
7203 LD="${LD-ld} -melf32bsmip"
7204 ;;
7205 *N32*)
7206 LD="${LD-ld} -melf32bmipn32"
7207 ;;
7208 *64-bit*)
7209 LD="${LD-ld} -melf64bmip"
7210 ;;
7211 esac
7212 else
7213 case `$FILECMD conftest.$ac_objext` in
7214 *32-bit*)
7215 LD="${LD-ld} -32"
7216 ;;
7217 *N32*)
7218 LD="${LD-ld} -n32"
7219 ;;
7220 *64-bit*)
7221 LD="${LD-ld} -64"
7222 ;;
7223 esac
7224 fi
7225 fi
7226 rm -rf conftest*
7227 ;;
7228
7229 mips64*-*linux*)
7230 # Find out what ABI is being produced by ac_compile, and set linker
7231 # options accordingly.
7232 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7234 (eval $ac_compile) 2>&5
7235 ac_status=$?
7236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7237 test $ac_status = 0; }; then
7238 emul=elf
7239 case `$FILECMD conftest.$ac_objext` in
7240 *32-bit*)
7241 emul="${emul}32"
7242 ;;
7243 *64-bit*)
7244 emul="${emul}64"
7245 ;;
7246 esac
7247 case `$FILECMD conftest.$ac_objext` in
7248 *MSB*)
7249 emul="${emul}btsmip"
7250 ;;
7251 *LSB*)
7252 emul="${emul}ltsmip"
7253 ;;
7254 esac
7255 case `$FILECMD conftest.$ac_objext` in
7256 *N32*)
7257 emul="${emul}n32"
7258 ;;
7259 esac
7260 LD="${LD-ld} -m $emul"
7261 fi
7262 rm -rf conftest*
7263 ;;
7264
7265 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7266 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7267 # Find out what ABI is being produced by ac_compile, and set linker
7268 # options accordingly. Note that the listed cases only cover the
7269 # situations where additional linker options are needed (such as when
7270 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7271 # vice versa); the common cases where no linker options are needed do
7272 # not appear in the list.
7273 echo 'int i;' > conftest.$ac_ext
7274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7275 (eval $ac_compile) 2>&5
7276 ac_status=$?
7277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7278 test $ac_status = 0; }; then
7279 case `$FILECMD conftest.o` in
7280 *32-bit*)
7281 case $host in
7282 x86_64-*kfreebsd*-gnu)
7283 LD="${LD-ld} -m elf_i386_fbsd"
7284 ;;
7285 x86_64-*linux*)
7286 case `$FILECMD conftest.o` in
7287 *x86-64*)
7288 LD="${LD-ld} -m elf32_x86_64"
7289 ;;
7290 *)
7291 LD="${LD-ld} -m elf_i386"
7292 ;;
7293 esac
7294 ;;
7295 powerpc64le-*linux*)
7296 LD="${LD-ld} -m elf32lppclinux"
7297 ;;
7298 powerpc64-*linux*)
7299 LD="${LD-ld} -m elf32ppclinux"
7300 ;;
7301 s390x-*linux*)
7302 LD="${LD-ld} -m elf_s390"
7303 ;;
7304 sparc64-*linux*)
7305 LD="${LD-ld} -m elf32_sparc"
7306 ;;
7307 esac
7308 ;;
7309 *64-bit*)
7310 case $host in
7311 x86_64-*kfreebsd*-gnu)
7312 LD="${LD-ld} -m elf_x86_64_fbsd"
7313 ;;
7314 x86_64-*linux*)
7315 LD="${LD-ld} -m elf_x86_64"
7316 ;;
7317 powerpcle-*linux*)
7318 LD="${LD-ld} -m elf64lppc"
7319 ;;
7320 powerpc-*linux*)
7321 LD="${LD-ld} -m elf64ppc"
7322 ;;
7323 s390*-*linux*|s390*-*tpf*)
7324 LD="${LD-ld} -m elf64_s390"
7325 ;;
7326 sparc*-*linux*)
7327 LD="${LD-ld} -m elf64_sparc"
7328 ;;
7329 esac
7330 ;;
7331 esac
7332 fi
7333 rm -rf conftest*
7334 ;;
7335
7336 *-*-sco3.2v5*)
7337 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7338 SAVE_CFLAGS=$CFLAGS
7339 CFLAGS="$CFLAGS -belf"
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7341 printf %s "checking whether the C compiler needs -belf... " >&6; }
7342 if test ${lt_cv_cc_needs_belf+y}
7343 then :
7344 printf %s "(cached) " >&6
7345 else $as_nop
7346 ac_ext=c
7347 ac_cpp='$CPP $CPPFLAGS'
7348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7351
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354
7355 int
7356 main (void)
7357 {
7358
7359 ;
7360 return 0;
7361 }
7362 _ACEOF
7363 if ac_fn_c_try_link "$LINENO"
7364 then :
7365 lt_cv_cc_needs_belf=yes
7366 else $as_nop
7367 lt_cv_cc_needs_belf=no
7368 fi
7369 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7370 conftest$ac_exeext conftest.$ac_ext
7371 ac_ext=c
7372 ac_cpp='$CPP $CPPFLAGS'
7373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376
7377 fi
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7379 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7380 if test yes != "$lt_cv_cc_needs_belf"; then
7381 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7382 CFLAGS=$SAVE_CFLAGS
7383 fi
7384 ;;
7385 *-*solaris*)
7386 # Find out what ABI is being produced by ac_compile, and set linker
7387 # options accordingly.
7388 echo 'int i;' > conftest.$ac_ext
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390 (eval $ac_compile) 2>&5
7391 ac_status=$?
7392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; }; then
7394 case `$FILECMD conftest.o` in
7395 *64-bit*)
7396 case $lt_cv_prog_gnu_ld in
7397 yes*)
7398 case $host in
7399 i?86-*-solaris*|x86_64-*-solaris*)
7400 LD="${LD-ld} -m elf_x86_64"
7401 ;;
7402 sparc*-*-solaris*)
7403 LD="${LD-ld} -m elf64_sparc"
7404 ;;
7405 esac
7406 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7407 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7408 LD=${LD-ld}_sol2
7409 fi
7410 ;;
7411 *)
7412 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7413 LD="${LD-ld} -64"
7414 fi
7415 ;;
7416 esac
7417 ;;
7418 esac
7419 fi
7420 rm -rf conftest*
7421 ;;
7422 esac
7423
7424 need_locks=$enable_libtool_lock
7425
7426 if test -n "$ac_tool_prefix"; then
7427 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7428 set dummy ${ac_tool_prefix}mt; ac_word=$2
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7430 printf %s "checking for $ac_word... " >&6; }
7431 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7432 then :
7433 printf %s "(cached) " >&6
7434 else $as_nop
7435 if test -n "$MANIFEST_TOOL"; then
7436 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7437 else
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 for as_dir in $PATH
7440 do
7441 IFS=$as_save_IFS
7442 case $as_dir in #(((
7443 '') as_dir=./ ;;
7444 */) ;;
7445 *) as_dir=$as_dir/ ;;
7446 esac
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7449 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453 done
7454 done
7455 IFS=$as_save_IFS
7456
7457 fi
7458 fi
7459 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7460 if test -n "$MANIFEST_TOOL"; then
7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7462 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7463 else
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 printf "%s\n" "no" >&6; }
7466 fi
7467
7468
7469 fi
7470 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7471 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7472 # Extract the first word of "mt", so it can be a program name with args.
7473 set dummy mt; ac_word=$2
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 printf %s "checking for $ac_word... " >&6; }
7476 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7477 then :
7478 printf %s "(cached) " >&6
7479 else $as_nop
7480 if test -n "$ac_ct_MANIFEST_TOOL"; then
7481 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486 IFS=$as_save_IFS
7487 case $as_dir in #(((
7488 '') as_dir=./ ;;
7489 */) ;;
7490 *) as_dir=$as_dir/ ;;
7491 esac
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7494 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7496 break 2
7497 fi
7498 done
7499 done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7505 if test -n "$ac_ct_MANIFEST_TOOL"; then
7506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7507 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7508 else
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 printf "%s\n" "no" >&6; }
7511 fi
7512
7513 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7514 MANIFEST_TOOL=":"
7515 else
7516 case $cross_compiling:$ac_tool_warned in
7517 yes:)
7518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520 ac_tool_warned=yes ;;
7521 esac
7522 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7523 fi
7524 else
7525 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7526 fi
7527
7528 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7530 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7531 if test ${lt_cv_path_mainfest_tool+y}
7532 then :
7533 printf %s "(cached) " >&6
7534 else $as_nop
7535 lt_cv_path_mainfest_tool=no
7536 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7537 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7538 cat conftest.err >&5
7539 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7540 lt_cv_path_mainfest_tool=yes
7541 fi
7542 rm -f conftest*
7543 fi
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7545 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7546 if test yes != "$lt_cv_path_mainfest_tool"; then
7547 MANIFEST_TOOL=:
7548 fi
7549
7550
7551
7552
7553
7554
7555 case $host_os in
7556 rhapsody* | darwin*)
7557 if test -n "$ac_tool_prefix"; then
7558 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7559 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 printf %s "checking for $ac_word... " >&6; }
7562 if test ${ac_cv_prog_DSYMUTIL+y}
7563 then :
7564 printf %s "(cached) " >&6
7565 else $as_nop
7566 if test -n "$DSYMUTIL"; then
7567 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572 IFS=$as_save_IFS
7573 case $as_dir in #(((
7574 '') as_dir=./ ;;
7575 */) ;;
7576 *) as_dir=$as_dir/ ;;
7577 esac
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584 done
7585 done
7586 IFS=$as_save_IFS
7587
7588 fi
7589 fi
7590 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7591 if test -n "$DSYMUTIL"; then
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7593 printf "%s\n" "$DSYMUTIL" >&6; }
7594 else
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 printf "%s\n" "no" >&6; }
7597 fi
7598
7599
7600 fi
7601 if test -z "$ac_cv_prog_DSYMUTIL"; then
7602 ac_ct_DSYMUTIL=$DSYMUTIL
7603 # Extract the first word of "dsymutil", so it can be a program name with args.
7604 set dummy dsymutil; ac_word=$2
7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 printf %s "checking for $ac_word... " >&6; }
7607 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7608 then :
7609 printf %s "(cached) " >&6
7610 else $as_nop
7611 if test -n "$ac_ct_DSYMUTIL"; then
7612 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617 IFS=$as_save_IFS
7618 case $as_dir in #(((
7619 '') as_dir=./ ;;
7620 */) ;;
7621 *) as_dir=$as_dir/ ;;
7622 esac
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629 done
7630 done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7636 if test -n "$ac_ct_DSYMUTIL"; then
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7638 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7639 else
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 printf "%s\n" "no" >&6; }
7642 fi
7643
7644 if test "x$ac_ct_DSYMUTIL" = x; then
7645 DSYMUTIL=":"
7646 else
7647 case $cross_compiling:$ac_tool_warned in
7648 yes:)
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7652 esac
7653 DSYMUTIL=$ac_ct_DSYMUTIL
7654 fi
7655 else
7656 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7657 fi
7658
7659 if test -n "$ac_tool_prefix"; then
7660 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 printf %s "checking for $ac_word... " >&6; }
7664 if test ${ac_cv_prog_NMEDIT+y}
7665 then :
7666 printf %s "(cached) " >&6
7667 else $as_nop
7668 if test -n "$NMEDIT"; then
7669 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674 IFS=$as_save_IFS
7675 case $as_dir in #(((
7676 '') as_dir=./ ;;
7677 */) ;;
7678 *) as_dir=$as_dir/ ;;
7679 esac
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7682 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690 fi
7691 fi
7692 NMEDIT=$ac_cv_prog_NMEDIT
7693 if test -n "$NMEDIT"; then
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7695 printf "%s\n" "$NMEDIT" >&6; }
7696 else
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 printf "%s\n" "no" >&6; }
7699 fi
7700
7701
7702 fi
7703 if test -z "$ac_cv_prog_NMEDIT"; then
7704 ac_ct_NMEDIT=$NMEDIT
7705 # Extract the first word of "nmedit", so it can be a program name with args.
7706 set dummy nmedit; ac_word=$2
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 printf %s "checking for $ac_word... " >&6; }
7709 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7710 then :
7711 printf %s "(cached) " >&6
7712 else $as_nop
7713 if test -n "$ac_ct_NMEDIT"; then
7714 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719 IFS=$as_save_IFS
7720 case $as_dir in #(((
7721 '') as_dir=./ ;;
7722 */) ;;
7723 *) as_dir=$as_dir/ ;;
7724 esac
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735 fi
7736 fi
7737 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7738 if test -n "$ac_ct_NMEDIT"; then
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7740 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7741 else
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 printf "%s\n" "no" >&6; }
7744 fi
7745
7746 if test "x$ac_ct_NMEDIT" = x; then
7747 NMEDIT=":"
7748 else
7749 case $cross_compiling:$ac_tool_warned in
7750 yes:)
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7752 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7753 ac_tool_warned=yes ;;
7754 esac
7755 NMEDIT=$ac_ct_NMEDIT
7756 fi
7757 else
7758 NMEDIT="$ac_cv_prog_NMEDIT"
7759 fi
7760
7761 if test -n "$ac_tool_prefix"; then
7762 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7765 printf %s "checking for $ac_word... " >&6; }
7766 if test ${ac_cv_prog_LIPO+y}
7767 then :
7768 printf %s "(cached) " >&6
7769 else $as_nop
7770 if test -n "$LIPO"; then
7771 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776 IFS=$as_save_IFS
7777 case $as_dir in #(((
7778 '') as_dir=./ ;;
7779 */) ;;
7780 *) as_dir=$as_dir/ ;;
7781 esac
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7784 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7786 break 2
7787 fi
7788 done
7789 done
7790 IFS=$as_save_IFS
7791
7792 fi
7793 fi
7794 LIPO=$ac_cv_prog_LIPO
7795 if test -n "$LIPO"; then
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7797 printf "%s\n" "$LIPO" >&6; }
7798 else
7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 printf "%s\n" "no" >&6; }
7801 fi
7802
7803
7804 fi
7805 if test -z "$ac_cv_prog_LIPO"; then
7806 ac_ct_LIPO=$LIPO
7807 # Extract the first word of "lipo", so it can be a program name with args.
7808 set dummy lipo; ac_word=$2
7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 printf %s "checking for $ac_word... " >&6; }
7811 if test ${ac_cv_prog_ac_ct_LIPO+y}
7812 then :
7813 printf %s "(cached) " >&6
7814 else $as_nop
7815 if test -n "$ac_ct_LIPO"; then
7816 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7817 else
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 for as_dir in $PATH
7820 do
7821 IFS=$as_save_IFS
7822 case $as_dir in #(((
7823 '') as_dir=./ ;;
7824 */) ;;
7825 *) as_dir=$as_dir/ ;;
7826 esac
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7829 ac_cv_prog_ac_ct_LIPO="lipo"
7830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7831 break 2
7832 fi
7833 done
7834 done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7840 if test -n "$ac_ct_LIPO"; then
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7842 printf "%s\n" "$ac_ct_LIPO" >&6; }
7843 else
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 printf "%s\n" "no" >&6; }
7846 fi
7847
7848 if test "x$ac_ct_LIPO" = x; then
7849 LIPO=":"
7850 else
7851 case $cross_compiling:$ac_tool_warned in
7852 yes:)
7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7855 ac_tool_warned=yes ;;
7856 esac
7857 LIPO=$ac_ct_LIPO
7858 fi
7859 else
7860 LIPO="$ac_cv_prog_LIPO"
7861 fi
7862
7863 if test -n "$ac_tool_prefix"; then
7864 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7865 set dummy ${ac_tool_prefix}otool; ac_word=$2
7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 printf %s "checking for $ac_word... " >&6; }
7868 if test ${ac_cv_prog_OTOOL+y}
7869 then :
7870 printf %s "(cached) " >&6
7871 else $as_nop
7872 if test -n "$OTOOL"; then
7873 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878 IFS=$as_save_IFS
7879 case $as_dir in #(((
7880 '') as_dir=./ ;;
7881 */) ;;
7882 *) as_dir=$as_dir/ ;;
7883 esac
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7886 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7888 break 2
7889 fi
7890 done
7891 done
7892 IFS=$as_save_IFS
7893
7894 fi
7895 fi
7896 OTOOL=$ac_cv_prog_OTOOL
7897 if test -n "$OTOOL"; then
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7899 printf "%s\n" "$OTOOL" >&6; }
7900 else
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 printf "%s\n" "no" >&6; }
7903 fi
7904
7905
7906 fi
7907 if test -z "$ac_cv_prog_OTOOL"; then
7908 ac_ct_OTOOL=$OTOOL
7909 # Extract the first word of "otool", so it can be a program name with args.
7910 set dummy otool; ac_word=$2
7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912 printf %s "checking for $ac_word... " >&6; }
7913 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7914 then :
7915 printf %s "(cached) " >&6
7916 else $as_nop
7917 if test -n "$ac_ct_OTOOL"; then
7918 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923 IFS=$as_save_IFS
7924 case $as_dir in #(((
7925 '') as_dir=./ ;;
7926 */) ;;
7927 *) as_dir=$as_dir/ ;;
7928 esac
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_ac_ct_OTOOL="otool"
7932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7942 if test -n "$ac_ct_OTOOL"; then
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7944 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7945 else
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 printf "%s\n" "no" >&6; }
7948 fi
7949
7950 if test "x$ac_ct_OTOOL" = x; then
7951 OTOOL=":"
7952 else
7953 case $cross_compiling:$ac_tool_warned in
7954 yes:)
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957 ac_tool_warned=yes ;;
7958 esac
7959 OTOOL=$ac_ct_OTOOL
7960 fi
7961 else
7962 OTOOL="$ac_cv_prog_OTOOL"
7963 fi
7964
7965 if test -n "$ac_tool_prefix"; then
7966 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7967 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 printf %s "checking for $ac_word... " >&6; }
7970 if test ${ac_cv_prog_OTOOL64+y}
7971 then :
7972 printf %s "(cached) " >&6
7973 else $as_nop
7974 if test -n "$OTOOL64"; then
7975 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980 IFS=$as_save_IFS
7981 case $as_dir in #(((
7982 '') as_dir=./ ;;
7983 */) ;;
7984 *) as_dir=$as_dir/ ;;
7985 esac
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7990 break 2
7991 fi
7992 done
7993 done
7994 IFS=$as_save_IFS
7995
7996 fi
7997 fi
7998 OTOOL64=$ac_cv_prog_OTOOL64
7999 if test -n "$OTOOL64"; then
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8001 printf "%s\n" "$OTOOL64" >&6; }
8002 else
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 printf "%s\n" "no" >&6; }
8005 fi
8006
8007
8008 fi
8009 if test -z "$ac_cv_prog_OTOOL64"; then
8010 ac_ct_OTOOL64=$OTOOL64
8011 # Extract the first word of "otool64", so it can be a program name with args.
8012 set dummy otool64; ac_word=$2
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 printf %s "checking for $ac_word... " >&6; }
8015 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8016 then :
8017 printf %s "(cached) " >&6
8018 else $as_nop
8019 if test -n "$ac_ct_OTOOL64"; then
8020 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8021 else
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023 for as_dir in $PATH
8024 do
8025 IFS=$as_save_IFS
8026 case $as_dir in #(((
8027 '') as_dir=./ ;;
8028 */) ;;
8029 *) as_dir=$as_dir/ ;;
8030 esac
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8033 ac_cv_prog_ac_ct_OTOOL64="otool64"
8034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037 done
8038 done
8039 IFS=$as_save_IFS
8040
8041 fi
8042 fi
8043 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8044 if test -n "$ac_ct_OTOOL64"; then
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8046 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8047 else
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 printf "%s\n" "no" >&6; }
8050 fi
8051
8052 if test "x$ac_ct_OTOOL64" = x; then
8053 OTOOL64=":"
8054 else
8055 case $cross_compiling:$ac_tool_warned in
8056 yes:)
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8058 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8059 ac_tool_warned=yes ;;
8060 esac
8061 OTOOL64=$ac_ct_OTOOL64
8062 fi
8063 else
8064 OTOOL64="$ac_cv_prog_OTOOL64"
8065 fi
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8094 printf %s "checking for -single_module linker flag... " >&6; }
8095 if test ${lt_cv_apple_cc_single_mod+y}
8096 then :
8097 printf %s "(cached) " >&6
8098 else $as_nop
8099 lt_cv_apple_cc_single_mod=no
8100 if test -z "$LT_MULTI_MODULE"; then
8101 # By default we will add the -single_module flag. You can override
8102 # by either setting the environment variable LT_MULTI_MODULE
8103 # non-empty at configure time, or by adding -multi_module to the
8104 # link flags.
8105 rm -rf libconftest.dylib*
8106 echo "int foo(void){return 1;}" > conftest.c
8107 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8108 -dynamiclib -Wl,-single_module conftest.c" >&5
8109 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8110 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8111 _lt_result=$?
8112 # If there is a non-empty error log, and "single_module"
8113 # appears in it, assume the flag caused a linker warning
8114 if test -s conftest.err && $GREP single_module conftest.err; then
8115 cat conftest.err >&5
8116 # Otherwise, if the output was created with a 0 exit code from
8117 # the compiler, it worked.
8118 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8119 lt_cv_apple_cc_single_mod=yes
8120 else
8121 cat conftest.err >&5
8122 fi
8123 rm -rf libconftest.dylib*
8124 rm -f conftest.*
8125 fi
8126 fi
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8128 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8129
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8131 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8132 if test ${lt_cv_ld_exported_symbols_list+y}
8133 then :
8134 printf %s "(cached) " >&6
8135 else $as_nop
8136 lt_cv_ld_exported_symbols_list=no
8137 save_LDFLAGS=$LDFLAGS
8138 echo "_main" > conftest.sym
8139 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8142
8143 int
8144 main (void)
8145 {
8146
8147 ;
8148 return 0;
8149 }
8150 _ACEOF
8151 if ac_fn_c_try_link "$LINENO"
8152 then :
8153 lt_cv_ld_exported_symbols_list=yes
8154 else $as_nop
8155 lt_cv_ld_exported_symbols_list=no
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8158 conftest$ac_exeext conftest.$ac_ext
8159 LDFLAGS=$save_LDFLAGS
8160
8161 fi
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8163 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8164
8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8166 printf %s "checking for -force_load linker flag... " >&6; }
8167 if test ${lt_cv_ld_force_load+y}
8168 then :
8169 printf %s "(cached) " >&6
8170 else $as_nop
8171 lt_cv_ld_force_load=no
8172 cat > conftest.c << _LT_EOF
8173 int forced_loaded() { return 2;}
8174 _LT_EOF
8175 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8176 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8177 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8178 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8179 echo "$RANLIB libconftest.a" >&5
8180 $RANLIB libconftest.a 2>&5
8181 cat > conftest.c << _LT_EOF
8182 int main() { return 0;}
8183 _LT_EOF
8184 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8185 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8186 _lt_result=$?
8187 if test -s conftest.err && $GREP force_load conftest.err; then
8188 cat conftest.err >&5
8189 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8190 lt_cv_ld_force_load=yes
8191 else
8192 cat conftest.err >&5
8193 fi
8194 rm -f conftest.err libconftest.a conftest conftest.c
8195 rm -rf conftest.dSYM
8196
8197 fi
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8199 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8200 case $host_os in
8201 rhapsody* | darwin1.[012])
8202 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8203 darwin1.*)
8204 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8205 darwin*)
8206 case $MACOSX_DEPLOYMENT_TARGET,$host in
8207 10.[012],*|,*powerpc*-darwin[5-8]*)
8208 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8209 *)
8210 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8211 esac
8212 ;;
8213 esac
8214 if test yes = "$lt_cv_apple_cc_single_mod"; then
8215 _lt_dar_single_mod='$single_module'
8216 fi
8217 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8218 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8219 else
8220 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8221 fi
8222 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8223 _lt_dsymutil='~$DSYMUTIL $lib || :'
8224 else
8225 _lt_dsymutil=
8226 fi
8227 ;;
8228 esac
8229
8230 # func_munge_path_list VARIABLE PATH
8231 # -----------------------------------
8232 # VARIABLE is name of variable containing _space_ separated list of
8233 # directories to be munged by the contents of PATH, which is string
8234 # having a format:
8235 # "DIR[:DIR]:"
8236 # string "DIR[ DIR]" will be prepended to VARIABLE
8237 # ":DIR[:DIR]"
8238 # string "DIR[ DIR]" will be appended to VARIABLE
8239 # "DIRP[:DIRP]::[DIRA:]DIRA"
8240 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8241 # "DIRA[ DIRA]" will be appended to VARIABLE
8242 # "DIR[:DIR]"
8243 # VARIABLE will be replaced by "DIR[ DIR]"
8244 func_munge_path_list ()
8245 {
8246 case x$2 in
8247 x)
8248 ;;
8249 *:)
8250 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8251 ;;
8252 x:*)
8253 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8254 ;;
8255 *::*)
8256 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8257 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8258 ;;
8259 *)
8260 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8261 ;;
8262 esac
8263 }
8264
8265 ac_header= ac_cache=
8266 for ac_item in $ac_header_c_list
8267 do
8268 if test $ac_cache; then
8269 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8270 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8271 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8272 fi
8273 ac_header= ac_cache=
8274 elif test $ac_header; then
8275 ac_cache=$ac_item
8276 else
8277 ac_header=$ac_item
8278 fi
8279 done
8280
8281
8282
8283
8284
8285
8286
8287
8288 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8289 then :
8290
8291 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8292
8293 fi
8294 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8295 "
8296 if test "x$ac_cv_header_dlfcn_h" = xyes
8297 then :
8298 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8299
8300 fi
8301
8302
8303
8304
8305
8306 # Set options
8307
8308
8309
8310 enable_dlopen=no
8311
8312
8313 enable_win32_dll=no
8314
8315
8316 # Check whether --enable-shared was given.
8317 if test ${enable_shared+y}
8318 then :
8319 enableval=$enable_shared; p=${PACKAGE-default}
8320 case $enableval in
8321 yes) enable_shared=yes ;;
8322 no) enable_shared=no ;;
8323 *)
8324 enable_shared=no
8325 # Look at the argument we got. We use all the common list separators.
8326 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8327 for pkg in $enableval; do
8328 IFS=$lt_save_ifs
8329 if test "X$pkg" = "X$p"; then
8330 enable_shared=yes
8331 fi
8332 done
8333 IFS=$lt_save_ifs
8334 ;;
8335 esac
8336 else $as_nop
8337 enable_shared=yes
8338 fi
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348 # Check whether --enable-static was given.
8349 if test ${enable_static+y}
8350 then :
8351 enableval=$enable_static; p=${PACKAGE-default}
8352 case $enableval in
8353 yes) enable_static=yes ;;
8354 no) enable_static=no ;;
8355 *)
8356 enable_static=no
8357 # Look at the argument we got. We use all the common list separators.
8358 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8359 for pkg in $enableval; do
8360 IFS=$lt_save_ifs
8361 if test "X$pkg" = "X$p"; then
8362 enable_static=yes
8363 fi
8364 done
8365 IFS=$lt_save_ifs
8366 ;;
8367 esac
8368 else $as_nop
8369 enable_static=yes
8370 fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381 # Check whether --with-pic was given.
8382 if test ${with_pic+y}
8383 then :
8384 withval=$with_pic; lt_p=${PACKAGE-default}
8385 case $withval in
8386 yes|no) pic_mode=$withval ;;
8387 *)
8388 pic_mode=default
8389 # Look at the argument we got. We use all the common list separators.
8390 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8391 for lt_pkg in $withval; do
8392 IFS=$lt_save_ifs
8393 if test "X$lt_pkg" = "X$lt_p"; then
8394 pic_mode=yes
8395 fi
8396 done
8397 IFS=$lt_save_ifs
8398 ;;
8399 esac
8400 else $as_nop
8401 pic_mode=default
8402 fi
8403
8404
8405
8406
8407
8408
8409
8410
8411 # Check whether --enable-fast-install was given.
8412 if test ${enable_fast_install+y}
8413 then :
8414 enableval=$enable_fast_install; p=${PACKAGE-default}
8415 case $enableval in
8416 yes) enable_fast_install=yes ;;
8417 no) enable_fast_install=no ;;
8418 *)
8419 enable_fast_install=no
8420 # Look at the argument we got. We use all the common list separators.
8421 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8422 for pkg in $enableval; do
8423 IFS=$lt_save_ifs
8424 if test "X$pkg" = "X$p"; then
8425 enable_fast_install=yes
8426 fi
8427 done
8428 IFS=$lt_save_ifs
8429 ;;
8430 esac
8431 else $as_nop
8432 enable_fast_install=yes
8433 fi
8434
8435
8436
8437
8438
8439
8440
8441
8442 shared_archive_member_spec=
8443 case $host,$enable_shared in
8444 power*-*-aix[5-9]*,yes)
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8446 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8447
8448 # Check whether --with-aix-soname was given.
8449 if test ${with_aix_soname+y}
8450 then :
8451 withval=$with_aix_soname; case $withval in
8452 aix|svr4|both)
8453 ;;
8454 *)
8455 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8456 ;;
8457 esac
8458 lt_cv_with_aix_soname=$with_aix_soname
8459 else $as_nop
8460 if test ${lt_cv_with_aix_soname+y}
8461 then :
8462 printf %s "(cached) " >&6
8463 else $as_nop
8464 lt_cv_with_aix_soname=aix
8465 fi
8466
8467 with_aix_soname=$lt_cv_with_aix_soname
8468 fi
8469
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8471 printf "%s\n" "$with_aix_soname" >&6; }
8472 if test aix != "$with_aix_soname"; then
8473 # For the AIX way of multilib, we name the shared archive member
8474 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8475 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8476 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8477 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8478 if test 64 = "${OBJECT_MODE-32}"; then
8479 shared_archive_member_spec=shr_64
8480 else
8481 shared_archive_member_spec=shr
8482 fi
8483 fi
8484 ;;
8485 *)
8486 with_aix_soname=aix
8487 ;;
8488 esac
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499 # This can be used to rebuild libtool when needed
8500 LIBTOOL_DEPS=$ltmain
8501
8502 # Always use our own libtool.
8503 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534 test -z "$LN_S" && LN_S="ln -s"
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549 if test -n "${ZSH_VERSION+set}"; then
8550 setopt NO_GLOB_SUBST
8551 fi
8552
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8554 printf %s "checking for objdir... " >&6; }
8555 if test ${lt_cv_objdir+y}
8556 then :
8557 printf %s "(cached) " >&6
8558 else $as_nop
8559 rm -f .libs 2>/dev/null
8560 mkdir .libs 2>/dev/null
8561 if test -d .libs; then
8562 lt_cv_objdir=.libs
8563 else
8564 # MS-DOS does not allow filenames that begin with a dot.
8565 lt_cv_objdir=_libs
8566 fi
8567 rmdir .libs 2>/dev/null
8568 fi
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8570 printf "%s\n" "$lt_cv_objdir" >&6; }
8571 objdir=$lt_cv_objdir
8572
8573
8574
8575
8576
8577 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8578
8579
8580
8581
8582 case $host_os in
8583 aix3*)
8584 # AIX sometimes has problems with the GCC collect2 program. For some
8585 # reason, if we set the COLLECT_NAMES environment variable, the problems
8586 # vanish in a puff of smoke.
8587 if test set != "${COLLECT_NAMES+set}"; then
8588 COLLECT_NAMES=
8589 export COLLECT_NAMES
8590 fi
8591 ;;
8592 esac
8593
8594 # Global variables:
8595 ofile=libtool
8596 can_build_shared=yes
8597
8598 # All known linkers require a '.a' archive for static linking (except MSVC and
8599 # ICC, which need '.lib').
8600 libext=a
8601
8602 with_gnu_ld=$lt_cv_prog_gnu_ld
8603
8604 old_CC=$CC
8605 old_CFLAGS=$CFLAGS
8606
8607 # Set sane defaults for various variables
8608 test -z "$CC" && CC=cc
8609 test -z "$LTCC" && LTCC=$CC
8610 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8611 test -z "$LD" && LD=ld
8612 test -z "$ac_objext" && ac_objext=o
8613
8614 func_cc_basename $compiler
8615 cc_basename=$func_cc_basename_result
8616
8617
8618 # Only perform the check for file, if the check method requires it
8619 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8620 case $deplibs_check_method in
8621 file_magic*)
8622 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8624 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8625 if test ${lt_cv_path_MAGIC_CMD+y}
8626 then :
8627 printf %s "(cached) " >&6
8628 else $as_nop
8629 case $MAGIC_CMD in
8630 [\\/*] | ?:[\\/]*)
8631 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8632 ;;
8633 *)
8634 lt_save_MAGIC_CMD=$MAGIC_CMD
8635 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8637 for ac_dir in $ac_dummy; do
8638 IFS=$lt_save_ifs
8639 test -z "$ac_dir" && ac_dir=.
8640 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8641 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8642 if test -n "$file_magic_test_file"; then
8643 case $deplibs_check_method in
8644 "file_magic "*)
8645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8646 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8648 $EGREP "$file_magic_regex" > /dev/null; then
8649 :
8650 else
8651 cat <<_LT_EOF 1>&2
8652
8653 *** Warning: the command libtool uses to detect shared libraries,
8654 *** $file_magic_cmd, produces output that libtool cannot recognize.
8655 *** The result is that libtool may fail to recognize shared libraries
8656 *** as such. This will affect the creation of libtool libraries that
8657 *** depend on shared libraries, but programs linked with such libtool
8658 *** libraries will work regardless of this problem. Nevertheless, you
8659 *** may want to report the problem to your system manager and/or to
8660 *** bug-libtool@gnu.org
8661
8662 _LT_EOF
8663 fi ;;
8664 esac
8665 fi
8666 break
8667 fi
8668 done
8669 IFS=$lt_save_ifs
8670 MAGIC_CMD=$lt_save_MAGIC_CMD
8671 ;;
8672 esac
8673 fi
8674
8675 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8676 if test -n "$MAGIC_CMD"; then
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8678 printf "%s\n" "$MAGIC_CMD" >&6; }
8679 else
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 printf "%s\n" "no" >&6; }
8682 fi
8683
8684
8685
8686
8687
8688 if test -z "$lt_cv_path_MAGIC_CMD"; then
8689 if test -n "$ac_tool_prefix"; then
8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8691 printf %s "checking for file... " >&6; }
8692 if test ${lt_cv_path_MAGIC_CMD+y}
8693 then :
8694 printf %s "(cached) " >&6
8695 else $as_nop
8696 case $MAGIC_CMD in
8697 [\\/*] | ?:[\\/]*)
8698 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8699 ;;
8700 *)
8701 lt_save_MAGIC_CMD=$MAGIC_CMD
8702 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8704 for ac_dir in $ac_dummy; do
8705 IFS=$lt_save_ifs
8706 test -z "$ac_dir" && ac_dir=.
8707 if test -f "$ac_dir/file"; then
8708 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8709 if test -n "$file_magic_test_file"; then
8710 case $deplibs_check_method in
8711 "file_magic "*)
8712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8713 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8715 $EGREP "$file_magic_regex" > /dev/null; then
8716 :
8717 else
8718 cat <<_LT_EOF 1>&2
8719
8720 *** Warning: the command libtool uses to detect shared libraries,
8721 *** $file_magic_cmd, produces output that libtool cannot recognize.
8722 *** The result is that libtool may fail to recognize shared libraries
8723 *** as such. This will affect the creation of libtool libraries that
8724 *** depend on shared libraries, but programs linked with such libtool
8725 *** libraries will work regardless of this problem. Nevertheless, you
8726 *** may want to report the problem to your system manager and/or to
8727 *** bug-libtool@gnu.org
8728
8729 _LT_EOF
8730 fi ;;
8731 esac
8732 fi
8733 break
8734 fi
8735 done
8736 IFS=$lt_save_ifs
8737 MAGIC_CMD=$lt_save_MAGIC_CMD
8738 ;;
8739 esac
8740 fi
8741
8742 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8743 if test -n "$MAGIC_CMD"; then
8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8745 printf "%s\n" "$MAGIC_CMD" >&6; }
8746 else
8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 printf "%s\n" "no" >&6; }
8749 fi
8750
8751
8752 else
8753 MAGIC_CMD=:
8754 fi
8755 fi
8756
8757 fi
8758 ;;
8759 esac
8760
8761 # Use C for the default configuration in the libtool script
8762
8763 lt_save_CC=$CC
8764 ac_ext=c
8765 ac_cpp='$CPP $CPPFLAGS'
8766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8769
8770
8771 # Source file extension for C test sources.
8772 ac_ext=c
8773
8774 # Object file extension for compiled C test sources.
8775 objext=o
8776 objext=$objext
8777
8778 # Code to be used in simple compile tests
8779 lt_simple_compile_test_code="int some_variable = 0;"
8780
8781 # Code to be used in simple link tests
8782 lt_simple_link_test_code='int main(){return(0);}'
8783
8784
8785
8786
8787
8788
8789
8790 # If no C compiler was specified, use CC.
8791 LTCC=${LTCC-"$CC"}
8792
8793 # If no C compiler flags were specified, use CFLAGS.
8794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8795
8796 # Allow CC to be a program name with arguments.
8797 compiler=$CC
8798
8799 # Save the default compiler, since it gets overwritten when the other
8800 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8801 compiler_DEFAULT=$CC
8802
8803 # save warnings/boilerplate of simple test code
8804 ac_outfile=conftest.$ac_objext
8805 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8806 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8807 _lt_compiler_boilerplate=`cat conftest.err`
8808 $RM conftest*
8809
8810 ac_outfile=conftest.$ac_objext
8811 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8812 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8813 _lt_linker_boilerplate=`cat conftest.err`
8814 $RM -r conftest*
8815
8816
8817 ## CAVEAT EMPTOR:
8818 ## There is no encapsulation within the following macros, do not change
8819 ## the running order or otherwise move them around unless you know exactly
8820 ## what you are doing...
8821 if test -n "$compiler"; then
8822
8823 lt_prog_compiler_no_builtin_flag=
8824
8825 if test yes = "$GCC"; then
8826 case $cc_basename in
8827 nvcc*)
8828 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8829 *)
8830 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8831 esac
8832
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8834 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8835 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8836 then :
8837 printf %s "(cached) " >&6
8838 else $as_nop
8839 lt_cv_prog_compiler_rtti_exceptions=no
8840 ac_outfile=conftest.$ac_objext
8841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8842 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8843 # Insert the option either (1) after the last *FLAGS variable, or
8844 # (2) before a word containing "conftest.", or (3) at the end.
8845 # Note that $ac_compile itself does not contain backslashes and begins
8846 # with a dollar sign (not a hyphen), so the echo should work correctly.
8847 # The option is referenced via a variable to avoid confusing sed.
8848 lt_compile=`echo "$ac_compile" | $SED \
8849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8851 -e 's:$: $lt_compiler_flag:'`
8852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8853 (eval "$lt_compile" 2>conftest.err)
8854 ac_status=$?
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 if (exit $ac_status) && test -s "$ac_outfile"; then
8858 # The compiler can only warn and ignore the option if not recognized
8859 # So say no if there are warnings other than the usual output.
8860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8863 lt_cv_prog_compiler_rtti_exceptions=yes
8864 fi
8865 fi
8866 $RM conftest*
8867
8868 fi
8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8870 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8871
8872 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8873 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8874 else
8875 :
8876 fi
8877
8878 fi
8879
8880
8881
8882
8883
8884
8885 lt_prog_compiler_wl=
8886 lt_prog_compiler_pic=
8887 lt_prog_compiler_static=
8888
8889
8890 if test yes = "$GCC"; then
8891 lt_prog_compiler_wl='-Wl,'
8892 lt_prog_compiler_static='-static'
8893
8894 case $host_os in
8895 aix*)
8896 # All AIX code is PIC.
8897 if test ia64 = "$host_cpu"; then
8898 # AIX 5 now supports IA64 processor
8899 lt_prog_compiler_static='-Bstatic'
8900 fi
8901 lt_prog_compiler_pic='-fPIC'
8902 ;;
8903
8904 amigaos*)
8905 case $host_cpu in
8906 powerpc)
8907 # see comment about AmigaOS4 .so support
8908 lt_prog_compiler_pic='-fPIC'
8909 ;;
8910 m68k)
8911 # FIXME: we need at least 68020 code to build shared libraries, but
8912 # adding the '-m68020' flag to GCC prevents building anything better,
8913 # like '-m68040'.
8914 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8915 ;;
8916 esac
8917 ;;
8918
8919 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8920 # PIC is the default for these OSes.
8921 ;;
8922
8923 mingw* | cygwin* | pw32* | os2* | cegcc*)
8924 # This hack is so that the source file can tell whether it is being
8925 # built for inclusion in a dll (and should export symbols for example).
8926 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8927 # (--disable-auto-import) libraries
8928 lt_prog_compiler_pic='-DDLL_EXPORT'
8929 case $host_os in
8930 os2*)
8931 lt_prog_compiler_static='$wl-static'
8932 ;;
8933 esac
8934 ;;
8935
8936 darwin* | rhapsody*)
8937 # PIC is the default on this platform
8938 # Common symbols not allowed in MH_DYLIB files
8939 lt_prog_compiler_pic='-fno-common'
8940 ;;
8941
8942 haiku*)
8943 # PIC is the default for Haiku.
8944 # The "-static" flag exists, but is broken.
8945 lt_prog_compiler_static=
8946 ;;
8947
8948 hpux*)
8949 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8950 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8951 # sets the default TLS model and affects inlining.
8952 case $host_cpu in
8953 hppa*64*)
8954 # +Z the default
8955 ;;
8956 *)
8957 lt_prog_compiler_pic='-fPIC'
8958 ;;
8959 esac
8960 ;;
8961
8962 interix[3-9]*)
8963 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8964 # Instead, we relocate shared libraries at runtime.
8965 ;;
8966
8967 msdosdjgpp*)
8968 # Just because we use GCC doesn't mean we suddenly get shared libraries
8969 # on systems that don't support them.
8970 lt_prog_compiler_can_build_shared=no
8971 enable_shared=no
8972 ;;
8973
8974 *nto* | *qnx*)
8975 # QNX uses GNU C++, but need to define -shared option too, otherwise
8976 # it will coredump.
8977 lt_prog_compiler_pic='-fPIC -shared'
8978 ;;
8979
8980 sysv4*MP*)
8981 if test -d /usr/nec; then
8982 lt_prog_compiler_pic=-Kconform_pic
8983 fi
8984 ;;
8985
8986 *)
8987 lt_prog_compiler_pic='-fPIC'
8988 ;;
8989 esac
8990
8991 case $cc_basename in
8992 nvcc*) # Cuda Compiler Driver 2.2
8993 lt_prog_compiler_wl='-Xlinker '
8994 if test -n "$lt_prog_compiler_pic"; then
8995 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8996 fi
8997 ;;
8998 esac
8999 else
9000 # PORTME Check for flag to pass linker flags through the system compiler.
9001 case $host_os in
9002 aix*)
9003 lt_prog_compiler_wl='-Wl,'
9004 if test ia64 = "$host_cpu"; then
9005 # AIX 5 now supports IA64 processor
9006 lt_prog_compiler_static='-Bstatic'
9007 else
9008 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9009 fi
9010 ;;
9011
9012 darwin* | rhapsody*)
9013 # PIC is the default on this platform
9014 # Common symbols not allowed in MH_DYLIB files
9015 lt_prog_compiler_pic='-fno-common'
9016 case $cc_basename in
9017 nagfor*)
9018 # NAG Fortran compiler
9019 lt_prog_compiler_wl='-Wl,-Wl,,'
9020 lt_prog_compiler_pic='-PIC'
9021 lt_prog_compiler_static='-Bstatic'
9022 ;;
9023 esac
9024 ;;
9025
9026 mingw* | cygwin* | pw32* | os2* | cegcc*)
9027 # This hack is so that the source file can tell whether it is being
9028 # built for inclusion in a dll (and should export symbols for example).
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 hpux9* | hpux10* | hpux11*)
9038 lt_prog_compiler_wl='-Wl,'
9039 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9040 # not for PA HP-UX.
9041 case $host_cpu in
9042 hppa*64*|ia64*)
9043 # +Z the default
9044 ;;
9045 *)
9046 lt_prog_compiler_pic='+Z'
9047 ;;
9048 esac
9049 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9050 lt_prog_compiler_static='$wl-a ${wl}archive'
9051 ;;
9052
9053 irix5* | irix6* | nonstopux*)
9054 lt_prog_compiler_wl='-Wl,'
9055 # PIC (with -KPIC) is the default.
9056 lt_prog_compiler_static='-non_shared'
9057 ;;
9058
9059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9060 case $cc_basename in
9061 # old Intel for x86_64, which still supported -KPIC.
9062 ecc*)
9063 lt_prog_compiler_wl='-Wl,'
9064 lt_prog_compiler_pic='-KPIC'
9065 lt_prog_compiler_static='-static'
9066 ;;
9067 # icc used to be incompatible with GCC.
9068 # ICC 10 doesn't accept -KPIC any more.
9069 icc* | ifort*)
9070 lt_prog_compiler_wl='-Wl,'
9071 lt_prog_compiler_pic='-fPIC'
9072 lt_prog_compiler_static='-static'
9073 ;;
9074 # Lahey Fortran 8.1.
9075 lf95*)
9076 lt_prog_compiler_wl='-Wl,'
9077 lt_prog_compiler_pic='--shared'
9078 lt_prog_compiler_static='--static'
9079 ;;
9080 nagfor*)
9081 # NAG Fortran compiler
9082 lt_prog_compiler_wl='-Wl,-Wl,,'
9083 lt_prog_compiler_pic='-PIC'
9084 lt_prog_compiler_static='-Bstatic'
9085 ;;
9086 tcc*)
9087 # Fabrice Bellard et al's Tiny C Compiler
9088 lt_prog_compiler_wl='-Wl,'
9089 lt_prog_compiler_pic='-fPIC'
9090 lt_prog_compiler_static='-static'
9091 ;;
9092 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9093 # Portland Group compilers (*not* the Pentium gcc compiler,
9094 # which looks to be a dead project)
9095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_pic='-fpic'
9097 lt_prog_compiler_static='-Bstatic'
9098 ;;
9099 ccc*)
9100 lt_prog_compiler_wl='-Wl,'
9101 # All Alpha code is PIC.
9102 lt_prog_compiler_static='-non_shared'
9103 ;;
9104 xl* | bgxl* | bgf* | mpixl*)
9105 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9106 lt_prog_compiler_wl='-Wl,'
9107 lt_prog_compiler_pic='-qpic'
9108 lt_prog_compiler_static='-qstaticlink'
9109 ;;
9110 *)
9111 case `$CC -V 2>&1 | $SED 5q` in
9112 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9113 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9114 lt_prog_compiler_pic='-KPIC'
9115 lt_prog_compiler_static='-Bstatic'
9116 lt_prog_compiler_wl=''
9117 ;;
9118 *Sun\ F* | *Sun*Fortran*)
9119 lt_prog_compiler_pic='-KPIC'
9120 lt_prog_compiler_static='-Bstatic'
9121 lt_prog_compiler_wl='-Qoption ld '
9122 ;;
9123 *Sun\ C*)
9124 # Sun C 5.9
9125 lt_prog_compiler_pic='-KPIC'
9126 lt_prog_compiler_static='-Bstatic'
9127 lt_prog_compiler_wl='-Wl,'
9128 ;;
9129 *Intel*\ [CF]*Compiler*)
9130 lt_prog_compiler_wl='-Wl,'
9131 lt_prog_compiler_pic='-fPIC'
9132 lt_prog_compiler_static='-static'
9133 ;;
9134 *Portland\ Group*)
9135 lt_prog_compiler_wl='-Wl,'
9136 lt_prog_compiler_pic='-fpic'
9137 lt_prog_compiler_static='-Bstatic'
9138 ;;
9139 esac
9140 ;;
9141 esac
9142 ;;
9143
9144 newsos6)
9145 lt_prog_compiler_pic='-KPIC'
9146 lt_prog_compiler_static='-Bstatic'
9147 ;;
9148
9149 *nto* | *qnx*)
9150 # QNX uses GNU C++, but need to define -shared option too, otherwise
9151 # it will coredump.
9152 lt_prog_compiler_pic='-fPIC -shared'
9153 ;;
9154
9155 osf3* | osf4* | osf5*)
9156 lt_prog_compiler_wl='-Wl,'
9157 # All OSF/1 code is PIC.
9158 lt_prog_compiler_static='-non_shared'
9159 ;;
9160
9161 rdos*)
9162 lt_prog_compiler_static='-non_shared'
9163 ;;
9164
9165 solaris*)
9166 lt_prog_compiler_pic='-KPIC'
9167 lt_prog_compiler_static='-Bstatic'
9168 case $cc_basename in
9169 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9170 lt_prog_compiler_wl='-Qoption ld ';;
9171 *)
9172 lt_prog_compiler_wl='-Wl,';;
9173 esac
9174 ;;
9175
9176 sunos4*)
9177 lt_prog_compiler_wl='-Qoption ld '
9178 lt_prog_compiler_pic='-PIC'
9179 lt_prog_compiler_static='-Bstatic'
9180 ;;
9181
9182 sysv4 | sysv4.2uw2* | sysv4.3*)
9183 lt_prog_compiler_wl='-Wl,'
9184 lt_prog_compiler_pic='-KPIC'
9185 lt_prog_compiler_static='-Bstatic'
9186 ;;
9187
9188 sysv4*MP*)
9189 if test -d /usr/nec; then
9190 lt_prog_compiler_pic='-Kconform_pic'
9191 lt_prog_compiler_static='-Bstatic'
9192 fi
9193 ;;
9194
9195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9196 lt_prog_compiler_wl='-Wl,'
9197 lt_prog_compiler_pic='-KPIC'
9198 lt_prog_compiler_static='-Bstatic'
9199 ;;
9200
9201 unicos*)
9202 lt_prog_compiler_wl='-Wl,'
9203 lt_prog_compiler_can_build_shared=no
9204 ;;
9205
9206 uts4*)
9207 lt_prog_compiler_pic='-pic'
9208 lt_prog_compiler_static='-Bstatic'
9209 ;;
9210
9211 *)
9212 lt_prog_compiler_can_build_shared=no
9213 ;;
9214 esac
9215 fi
9216
9217 case $host_os in
9218 # For platforms that do not support PIC, -DPIC is meaningless:
9219 *djgpp*)
9220 lt_prog_compiler_pic=
9221 ;;
9222 *)
9223 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9224 ;;
9225 esac
9226
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9228 printf %s "checking for $compiler option to produce PIC... " >&6; }
9229 if test ${lt_cv_prog_compiler_pic+y}
9230 then :
9231 printf %s "(cached) " >&6
9232 else $as_nop
9233 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9234 fi
9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9236 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9237 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9238
9239 #
9240 # Check to make sure the PIC flag actually works.
9241 #
9242 if test -n "$lt_prog_compiler_pic"; then
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9244 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9245 if test ${lt_cv_prog_compiler_pic_works+y}
9246 then :
9247 printf %s "(cached) " >&6
9248 else $as_nop
9249 lt_cv_prog_compiler_pic_works=no
9250 ac_outfile=conftest.$ac_objext
9251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9252 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9253 # Insert the option either (1) after the last *FLAGS variable, or
9254 # (2) before a word containing "conftest.", or (3) at the end.
9255 # Note that $ac_compile itself does not contain backslashes and begins
9256 # with a dollar sign (not a hyphen), so the echo should work correctly.
9257 # The option is referenced via a variable to avoid confusing sed.
9258 lt_compile=`echo "$ac_compile" | $SED \
9259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9261 -e 's:$: $lt_compiler_flag:'`
9262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9263 (eval "$lt_compile" 2>conftest.err)
9264 ac_status=$?
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 if (exit $ac_status) && test -s "$ac_outfile"; then
9268 # The compiler can only warn and ignore the option if not recognized
9269 # So say no if there are warnings other than the usual output.
9270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9272 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9273 lt_cv_prog_compiler_pic_works=yes
9274 fi
9275 fi
9276 $RM conftest*
9277
9278 fi
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9280 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9281
9282 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9283 case $lt_prog_compiler_pic in
9284 "" | " "*) ;;
9285 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9286 esac
9287 else
9288 lt_prog_compiler_pic=
9289 lt_prog_compiler_can_build_shared=no
9290 fi
9291
9292 fi
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304 #
9305 # Check to make sure the static flag actually works.
9306 #
9307 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9309 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9310 if test ${lt_cv_prog_compiler_static_works+y}
9311 then :
9312 printf %s "(cached) " >&6
9313 else $as_nop
9314 lt_cv_prog_compiler_static_works=no
9315 save_LDFLAGS=$LDFLAGS
9316 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9317 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9318 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9319 # The linker can only warn and ignore the option if not recognized
9320 # So say no if there are warnings
9321 if test -s conftest.err; then
9322 # Append any errors to the config.log.
9323 cat conftest.err 1>&5
9324 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9326 if diff conftest.exp conftest.er2 >/dev/null; then
9327 lt_cv_prog_compiler_static_works=yes
9328 fi
9329 else
9330 lt_cv_prog_compiler_static_works=yes
9331 fi
9332 fi
9333 $RM -r conftest*
9334 LDFLAGS=$save_LDFLAGS
9335
9336 fi
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9338 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9339
9340 if test yes = "$lt_cv_prog_compiler_static_works"; then
9341 :
9342 else
9343 lt_prog_compiler_static=
9344 fi
9345
9346
9347
9348
9349
9350
9351
9352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9353 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9354 if test ${lt_cv_prog_compiler_c_o+y}
9355 then :
9356 printf %s "(cached) " >&6
9357 else $as_nop
9358 lt_cv_prog_compiler_c_o=no
9359 $RM -r conftest 2>/dev/null
9360 mkdir conftest
9361 cd conftest
9362 mkdir out
9363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9364
9365 lt_compiler_flag="-o out/conftest2.$ac_objext"
9366 # Insert the option either (1) after the last *FLAGS variable, or
9367 # (2) before a word containing "conftest.", or (3) at the end.
9368 # Note that $ac_compile itself does not contain backslashes and begins
9369 # with a dollar sign (not a hyphen), so the echo should work correctly.
9370 lt_compile=`echo "$ac_compile" | $SED \
9371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9373 -e 's:$: $lt_compiler_flag:'`
9374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9375 (eval "$lt_compile" 2>out/conftest.err)
9376 ac_status=$?
9377 cat out/conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9380 then
9381 # The compiler can only warn and ignore the option if not recognized
9382 # So say no if there are warnings
9383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9384 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9385 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9386 lt_cv_prog_compiler_c_o=yes
9387 fi
9388 fi
9389 chmod u+w . 2>&5
9390 $RM conftest*
9391 # SGI C++ compiler will create directory out/ii_files/ for
9392 # template instantiation
9393 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9394 $RM out/* && rmdir out
9395 cd ..
9396 $RM -r conftest
9397 $RM conftest*
9398
9399 fi
9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9401 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9402
9403
9404
9405
9406
9407
9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9409 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9410 if test ${lt_cv_prog_compiler_c_o+y}
9411 then :
9412 printf %s "(cached) " >&6
9413 else $as_nop
9414 lt_cv_prog_compiler_c_o=no
9415 $RM -r conftest 2>/dev/null
9416 mkdir conftest
9417 cd conftest
9418 mkdir out
9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9420
9421 lt_compiler_flag="-o out/conftest2.$ac_objext"
9422 # Insert the option either (1) after the last *FLAGS variable, or
9423 # (2) before a word containing "conftest.", or (3) at the end.
9424 # Note that $ac_compile itself does not contain backslashes and begins
9425 # with a dollar sign (not a hyphen), so the echo should work correctly.
9426 lt_compile=`echo "$ac_compile" | $SED \
9427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9429 -e 's:$: $lt_compiler_flag:'`
9430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9431 (eval "$lt_compile" 2>out/conftest.err)
9432 ac_status=$?
9433 cat out/conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9436 then
9437 # The compiler can only warn and ignore the option if not recognized
9438 # So say no if there are warnings
9439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9442 lt_cv_prog_compiler_c_o=yes
9443 fi
9444 fi
9445 chmod u+w . 2>&5
9446 $RM conftest*
9447 # SGI C++ compiler will create directory out/ii_files/ for
9448 # template instantiation
9449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9450 $RM out/* && rmdir out
9451 cd ..
9452 $RM -r conftest
9453 $RM conftest*
9454
9455 fi
9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9457 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9458
9459
9460
9461
9462 hard_links=nottested
9463 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9464 # do not overwrite the value of need_locks provided by the user
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9466 printf %s "checking if we can lock with hard links... " >&6; }
9467 hard_links=yes
9468 $RM conftest*
9469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9470 touch conftest.a
9471 ln conftest.a conftest.b 2>&5 || hard_links=no
9472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9474 printf "%s\n" "$hard_links" >&6; }
9475 if test no = "$hard_links"; then
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9477 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9478 need_locks=warn
9479 fi
9480 else
9481 need_locks=no
9482 fi
9483
9484
9485
9486
9487
9488
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9490 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9491
9492 runpath_var=
9493 allow_undefined_flag=
9494 always_export_symbols=no
9495 archive_cmds=
9496 archive_expsym_cmds=
9497 compiler_needs_object=no
9498 enable_shared_with_static_runtimes=no
9499 export_dynamic_flag_spec=
9500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9501 hardcode_automatic=no
9502 hardcode_direct=no
9503 hardcode_direct_absolute=no
9504 hardcode_libdir_flag_spec=
9505 hardcode_libdir_separator=
9506 hardcode_minus_L=no
9507 hardcode_shlibpath_var=unsupported
9508 inherit_rpath=no
9509 link_all_deplibs=unknown
9510 module_cmds=
9511 module_expsym_cmds=
9512 old_archive_from_new_cmds=
9513 old_archive_from_expsyms_cmds=
9514 thread_safe_flag_spec=
9515 whole_archive_flag_spec=
9516 # include_expsyms should be a list of space-separated symbols to be *always*
9517 # included in the symbol list
9518 include_expsyms=
9519 # exclude_expsyms can be an extended regexp of symbols to exclude
9520 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9521 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9522 # as well as any symbol that contains 'd'.
9523 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9524 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9525 # platforms (ab)use it in PIC code, but their linkers get confused if
9526 # the symbol is explicitly referenced. Since portable code cannot
9527 # rely on this symbol name, it's probably fine to never include it in
9528 # preloaded symbol tables.
9529 # Exclude shared library initialization/finalization symbols.
9530 extract_expsyms_cmds=
9531
9532 case $host_os in
9533 cygwin* | mingw* | pw32* | cegcc*)
9534 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9535 # When not using gcc, we currently assume that we are using
9536 # Microsoft Visual C++ or Intel C++ Compiler.
9537 if test yes != "$GCC"; then
9538 with_gnu_ld=no
9539 fi
9540 ;;
9541 interix*)
9542 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9543 with_gnu_ld=yes
9544 ;;
9545 openbsd* | bitrig*)
9546 with_gnu_ld=no
9547 ;;
9548 esac
9549
9550 ld_shlibs=yes
9551
9552 # On some targets, GNU ld is compatible enough with the native linker
9553 # that we're better off using the native interface for both.
9554 lt_use_gnu_ld_interface=no
9555 if test yes = "$with_gnu_ld"; then
9556 case $host_os in
9557 aix*)
9558 # The AIX port of GNU ld has always aspired to compatibility
9559 # with the native linker. However, as the warning in the GNU ld
9560 # block says, versions before 2.19.5* couldn't really create working
9561 # shared libraries, regardless of the interface used.
9562 case `$LD -v 2>&1` in
9563 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9564 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9565 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9566 *)
9567 lt_use_gnu_ld_interface=yes
9568 ;;
9569 esac
9570 ;;
9571 *)
9572 lt_use_gnu_ld_interface=yes
9573 ;;
9574 esac
9575 fi
9576
9577 if test yes = "$lt_use_gnu_ld_interface"; then
9578 # If archive_cmds runs LD, not CC, wlarc should be empty
9579 wlarc='$wl'
9580
9581 # Set some defaults for GNU ld with shared library support. These
9582 # are reset later if shared libraries are not supported. Putting them
9583 # here allows them to be overridden if necessary.
9584 runpath_var=LD_RUN_PATH
9585 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9586 export_dynamic_flag_spec='$wl--export-dynamic'
9587 # ancient GNU ld didn't support --whole-archive et. al.
9588 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9589 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9590 else
9591 whole_archive_flag_spec=
9592 fi
9593 supports_anon_versioning=no
9594 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9595 *GNU\ gold*) supports_anon_versioning=yes ;;
9596 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9597 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9598 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9599 *\ 2.11.*) ;; # other 2.11 versions
9600 *) supports_anon_versioning=yes ;;
9601 esac
9602
9603 # See if GNU ld supports shared libraries.
9604 case $host_os in
9605 aix[3-9]*)
9606 # On AIX/PPC, the GNU linker is very broken
9607 if test ia64 != "$host_cpu"; then
9608 ld_shlibs=no
9609 cat <<_LT_EOF 1>&2
9610
9611 *** Warning: the GNU linker, at least up to release 2.19, is reported
9612 *** to be unable to reliably create shared libraries on AIX.
9613 *** Therefore, libtool is disabling shared libraries support. If you
9614 *** really care for shared libraries, you may want to install binutils
9615 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9616 *** You will then need to restart the configuration process.
9617
9618 _LT_EOF
9619 fi
9620 ;;
9621
9622 amigaos*)
9623 case $host_cpu in
9624 powerpc)
9625 # see comment about AmigaOS4 .so support
9626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9627 archive_expsym_cmds=''
9628 ;;
9629 m68k)
9630 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)'
9631 hardcode_libdir_flag_spec='-L$libdir'
9632 hardcode_minus_L=yes
9633 ;;
9634 esac
9635 ;;
9636
9637 beos*)
9638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9639 allow_undefined_flag=unsupported
9640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9641 # support --undefined. This deserves some investigation. FIXME
9642 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9643 else
9644 ld_shlibs=no
9645 fi
9646 ;;
9647
9648 cygwin* | mingw* | pw32* | cegcc*)
9649 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9650 # as there is no search path for DLLs.
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 export_dynamic_flag_spec='$wl--export-all-symbols'
9653 allow_undefined_flag=unsupported
9654 always_export_symbols=no
9655 enable_shared_with_static_runtimes=yes
9656 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'
9657 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9658
9659 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9661 # If the export-symbols file already is a .def file, use it as
9662 # is; otherwise, prepend EXPORTS...
9663 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9664 cp $export_symbols $output_objdir/$soname.def;
9665 else
9666 echo EXPORTS > $output_objdir/$soname.def;
9667 cat $export_symbols >> $output_objdir/$soname.def;
9668 fi~
9669 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9670 else
9671 ld_shlibs=no
9672 fi
9673 ;;
9674
9675 haiku*)
9676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9677 link_all_deplibs=yes
9678 ;;
9679
9680 os2*)
9681 hardcode_libdir_flag_spec='-L$libdir'
9682 hardcode_minus_L=yes
9683 allow_undefined_flag=unsupported
9684 shrext_cmds=.dll
9685 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9686 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9687 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9688 $ECHO EXPORTS >> $output_objdir/$libname.def~
9689 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9690 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9691 emximp -o $lib $output_objdir/$libname.def'
9692 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9693 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9694 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9695 $ECHO EXPORTS >> $output_objdir/$libname.def~
9696 prefix_cmds="$SED"~
9697 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9698 prefix_cmds="$prefix_cmds -e 1d";
9699 fi~
9700 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9701 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9702 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9703 emximp -o $lib $output_objdir/$libname.def'
9704 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9705 enable_shared_with_static_runtimes=yes
9706 file_list_spec='@'
9707 ;;
9708
9709 interix[3-9]*)
9710 hardcode_direct=no
9711 hardcode_shlibpath_var=no
9712 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9713 export_dynamic_flag_spec='$wl-E'
9714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9715 # Instead, shared libraries are loaded at an image base (0x10000000 by
9716 # default) and relocated if they conflict, which is a slow very memory
9717 # consuming and fragmenting process. To avoid this, we pick a random,
9718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9720 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9721 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'
9722 ;;
9723
9724 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9725 tmp_diet=no
9726 if test linux-dietlibc = "$host_os"; then
9727 case $cc_basename in
9728 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9729 esac
9730 fi
9731 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9732 && test no = "$tmp_diet"
9733 then
9734 tmp_addflag=' $pic_flag'
9735 tmp_sharedflag='-shared'
9736 case $cc_basename,$host_cpu in
9737 pgcc*) # Portland Group C compiler
9738 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'
9739 tmp_addflag=' $pic_flag'
9740 ;;
9741 pgf77* | pgf90* | pgf95* | pgfortran*)
9742 # Portland Group f77 and f90 compilers
9743 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'
9744 tmp_addflag=' $pic_flag -Mnomain' ;;
9745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9746 tmp_addflag=' -i_dynamic' ;;
9747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9748 tmp_addflag=' -i_dynamic -nofor_main' ;;
9749 ifc* | ifort*) # Intel Fortran compiler
9750 tmp_addflag=' -nofor_main' ;;
9751 lf95*) # Lahey Fortran 8.1
9752 whole_archive_flag_spec=
9753 tmp_sharedflag='--shared' ;;
9754 nagfor*) # NAGFOR 5.3
9755 tmp_sharedflag='-Wl,-shared' ;;
9756 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9757 tmp_sharedflag='-qmkshrobj'
9758 tmp_addflag= ;;
9759 nvcc*) # Cuda Compiler Driver 2.2
9760 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'
9761 compiler_needs_object=yes
9762 ;;
9763 esac
9764 case `$CC -V 2>&1 | $SED 5q` in
9765 *Sun\ C*) # Sun C 5.9
9766 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'
9767 compiler_needs_object=yes
9768 tmp_sharedflag='-G' ;;
9769 *Sun\ F*) # Sun Fortran 8.3
9770 tmp_sharedflag='-G' ;;
9771 esac
9772 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9773
9774 if test yes = "$supports_anon_versioning"; then
9775 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9776 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9777 echo "local: *; };" >> $output_objdir/$libname.ver~
9778 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9779 fi
9780
9781 case $cc_basename in
9782 tcc*)
9783 export_dynamic_flag_spec='-rdynamic'
9784 ;;
9785 xlf* | bgf* | bgxlf* | mpixlf*)
9786 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9787 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9788 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9789 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9790 if test yes = "$supports_anon_versioning"; then
9791 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9792 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9793 echo "local: *; };" >> $output_objdir/$libname.ver~
9794 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9795 fi
9796 ;;
9797 esac
9798 else
9799 ld_shlibs=no
9800 fi
9801 ;;
9802
9803 netbsd*)
9804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9805 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9806 wlarc=
9807 else
9808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9810 fi
9811 ;;
9812
9813 solaris*)
9814 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9815 ld_shlibs=no
9816 cat <<_LT_EOF 1>&2
9817
9818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9819 *** create shared libraries on Solaris systems. Therefore, libtool
9820 *** is disabling shared libraries support. We urge you to upgrade GNU
9821 *** binutils to release 2.9.1 or newer. Another option is to modify
9822 *** your PATH or compiler configuration so that the native linker is
9823 *** used, and then restart.
9824
9825 _LT_EOF
9826 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9828 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9829 else
9830 ld_shlibs=no
9831 fi
9832 ;;
9833
9834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9835 case `$LD -v 2>&1` in
9836 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9837 ld_shlibs=no
9838 cat <<_LT_EOF 1>&2
9839
9840 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9841 *** reliably create shared libraries on SCO systems. Therefore, libtool
9842 *** is disabling shared libraries support. We urge you to upgrade GNU
9843 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9844 *** your PATH or compiler configuration so that the native linker is
9845 *** used, and then restart.
9846
9847 _LT_EOF
9848 ;;
9849 *)
9850 # For security reasons, it is highly recommended that you always
9851 # use absolute paths for naming shared libraries, and exclude the
9852 # DT_RUNPATH tag from executables and libraries. But doing so
9853 # requires that you compile everything twice, which is a pain.
9854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9855 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9857 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9858 else
9859 ld_shlibs=no
9860 fi
9861 ;;
9862 esac
9863 ;;
9864
9865 sunos4*)
9866 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9867 wlarc=
9868 hardcode_direct=yes
9869 hardcode_shlibpath_var=no
9870 ;;
9871
9872 *)
9873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9875 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9876 else
9877 ld_shlibs=no
9878 fi
9879 ;;
9880 esac
9881
9882 if test no = "$ld_shlibs"; then
9883 runpath_var=
9884 hardcode_libdir_flag_spec=
9885 export_dynamic_flag_spec=
9886 whole_archive_flag_spec=
9887 fi
9888 else
9889 # PORTME fill in a description of your system's linker (not GNU ld)
9890 case $host_os in
9891 aix3*)
9892 allow_undefined_flag=unsupported
9893 always_export_symbols=yes
9894 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'
9895 # Note: this linker hardcodes the directories in LIBPATH if there
9896 # are no directories specified by -L.
9897 hardcode_minus_L=yes
9898 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9899 # Neither direct hardcoding nor static linking is supported with a
9900 # broken collect2.
9901 hardcode_direct=unsupported
9902 fi
9903 ;;
9904
9905 aix[4-9]*)
9906 if test ia64 = "$host_cpu"; then
9907 # On IA64, the linker does run time linking by default, so we don't
9908 # have to do anything special.
9909 aix_use_runtimelinking=no
9910 exp_sym_flag='-Bexport'
9911 no_entry_flag=
9912 else
9913 # If we're using GNU nm, then we don't want the "-C" option.
9914 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9915 # Without the "-l" option, or with the "-B" option, AIX nm treats
9916 # weak defined symbols like other global defined symbols, whereas
9917 # GNU nm marks them as "W".
9918 # While the 'weak' keyword is ignored in the Export File, we need
9919 # it in the Import File for the 'aix-soname' feature, so we have
9920 # to replace the "-B" option with "-P" for AIX nm.
9921 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9922 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'
9923 else
9924 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'
9925 fi
9926 aix_use_runtimelinking=no
9927
9928 # Test if we are trying to use run time linking or normal
9929 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9930 # have runtime linking enabled, and use it for executables.
9931 # For shared libraries, we enable/disable runtime linking
9932 # depending on the kind of the shared library created -
9933 # when "with_aix_soname,aix_use_runtimelinking" is:
9934 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9935 # "aix,yes" lib.so shared, rtl:yes, for executables
9936 # lib.a static archive
9937 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9938 # lib.a(lib.so.V) shared, rtl:no, for executables
9939 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9940 # lib.a(lib.so.V) shared, rtl:no
9941 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9942 # lib.a static archive
9943 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9944 for ld_flag in $LDFLAGS; do
9945 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9946 aix_use_runtimelinking=yes
9947 break
9948 fi
9949 done
9950 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9951 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9952 # so we don't have lib.a shared libs to link our executables.
9953 # We have to force runtime linking in this case.
9954 aix_use_runtimelinking=yes
9955 LDFLAGS="$LDFLAGS -Wl,-brtl"
9956 fi
9957 ;;
9958 esac
9959
9960 exp_sym_flag='-bexport'
9961 no_entry_flag='-bnoentry'
9962 fi
9963
9964 # When large executables or shared objects are built, AIX ld can
9965 # have problems creating the table of contents. If linking a library
9966 # or program results in "error TOC overflow" add -mminimal-toc to
9967 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9968 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9969
9970 archive_cmds=''
9971 hardcode_direct=yes
9972 hardcode_direct_absolute=yes
9973 hardcode_libdir_separator=':'
9974 link_all_deplibs=yes
9975 file_list_spec='$wl-f,'
9976 case $with_aix_soname,$aix_use_runtimelinking in
9977 aix,*) ;; # traditional, no import file
9978 svr4,* | *,yes) # use import file
9979 # The Import File defines what to hardcode.
9980 hardcode_direct=no
9981 hardcode_direct_absolute=no
9982 ;;
9983 esac
9984
9985 if test yes = "$GCC"; then
9986 case $host_os in aix4.[012]|aix4.[012].*)
9987 # We only want to do this on AIX 4.2 and lower, the check
9988 # below for broken collect2 doesn't work under 4.3+
9989 collect2name=`$CC -print-prog-name=collect2`
9990 if test -f "$collect2name" &&
9991 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9992 then
9993 # We have reworked collect2
9994 :
9995 else
9996 # We have old collect2
9997 hardcode_direct=unsupported
9998 # It fails to find uninstalled libraries when the uninstalled
9999 # path is not listed in the libpath. Setting hardcode_minus_L
10000 # to unsupported forces relinking
10001 hardcode_minus_L=yes
10002 hardcode_libdir_flag_spec='-L$libdir'
10003 hardcode_libdir_separator=
10004 fi
10005 ;;
10006 esac
10007 shared_flag='-shared'
10008 if test yes = "$aix_use_runtimelinking"; then
10009 shared_flag="$shared_flag "'$wl-G'
10010 fi
10011 # Need to ensure runtime linking is disabled for the traditional
10012 # shared library, or the linker may eventually find shared libraries
10013 # /with/ Import File - we do not want to mix them.
10014 shared_flag_aix='-shared'
10015 shared_flag_svr4='-shared $wl-G'
10016 else
10017 # not using gcc
10018 if test ia64 = "$host_cpu"; then
10019 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10020 # chokes on -Wl,-G. The following line is correct:
10021 shared_flag='-G'
10022 else
10023 if test yes = "$aix_use_runtimelinking"; then
10024 shared_flag='$wl-G'
10025 else
10026 shared_flag='$wl-bM:SRE'
10027 fi
10028 shared_flag_aix='$wl-bM:SRE'
10029 shared_flag_svr4='$wl-G'
10030 fi
10031 fi
10032
10033 export_dynamic_flag_spec='$wl-bexpall'
10034 # It seems that -bexpall does not export symbols beginning with
10035 # underscore (_), so it is better to generate a list of symbols to export.
10036 always_export_symbols=yes
10037 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10038 # Warning - without using the other runtime loading flags (-brtl),
10039 # -berok will link without error, but may produce a broken library.
10040 allow_undefined_flag='-berok'
10041 # Determine the default libpath from the value encoded in an
10042 # empty executable.
10043 if test set = "${lt_cv_aix_libpath+set}"; then
10044 aix_libpath=$lt_cv_aix_libpath
10045 else
10046 if test ${lt_cv_aix_libpath_+y}
10047 then :
10048 printf %s "(cached) " >&6
10049 else $as_nop
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052
10053 int
10054 main (void)
10055 {
10056
10057 ;
10058 return 0;
10059 }
10060 _ACEOF
10061 if ac_fn_c_try_link "$LINENO"
10062 then :
10063
10064 lt_aix_libpath_sed='
10065 /Import File Strings/,/^$/ {
10066 /^0/ {
10067 s/^0 *\([^ ]*\) *$/\1/
10068 p
10069 }
10070 }'
10071 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10072 # Check for a 64-bit object if we didn't find anything.
10073 if test -z "$lt_cv_aix_libpath_"; then
10074 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10075 fi
10076 fi
10077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10078 conftest$ac_exeext conftest.$ac_ext
10079 if test -z "$lt_cv_aix_libpath_"; then
10080 lt_cv_aix_libpath_=/usr/lib:/lib
10081 fi
10082
10083 fi
10084
10085 aix_libpath=$lt_cv_aix_libpath_
10086 fi
10087
10088 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10089 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
10090 else
10091 if test ia64 = "$host_cpu"; then
10092 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10093 allow_undefined_flag="-z nodefs"
10094 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"
10095 else
10096 # Determine the default libpath from the value encoded in an
10097 # empty executable.
10098 if test set = "${lt_cv_aix_libpath+set}"; then
10099 aix_libpath=$lt_cv_aix_libpath
10100 else
10101 if test ${lt_cv_aix_libpath_+y}
10102 then :
10103 printf %s "(cached) " >&6
10104 else $as_nop
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107
10108 int
10109 main (void)
10110 {
10111
10112 ;
10113 return 0;
10114 }
10115 _ACEOF
10116 if ac_fn_c_try_link "$LINENO"
10117 then :
10118
10119 lt_aix_libpath_sed='
10120 /Import File Strings/,/^$/ {
10121 /^0/ {
10122 s/^0 *\([^ ]*\) *$/\1/
10123 p
10124 }
10125 }'
10126 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10127 # Check for a 64-bit object if we didn't find anything.
10128 if test -z "$lt_cv_aix_libpath_"; then
10129 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130 fi
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10133 conftest$ac_exeext conftest.$ac_ext
10134 if test -z "$lt_cv_aix_libpath_"; then
10135 lt_cv_aix_libpath_=/usr/lib:/lib
10136 fi
10137
10138 fi
10139
10140 aix_libpath=$lt_cv_aix_libpath_
10141 fi
10142
10143 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10144 # Warning - without using the other run time loading flags,
10145 # -berok will link without error, but may produce a broken library.
10146 no_undefined_flag=' $wl-bernotok'
10147 allow_undefined_flag=' $wl-berok'
10148 if test yes = "$with_gnu_ld"; then
10149 # We only use this code for GNU lds that support --whole-archive.
10150 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10151 else
10152 # Exported symbols can be pulled into shared objects from archives
10153 whole_archive_flag_spec='$convenience'
10154 fi
10155 archive_cmds_need_lc=yes
10156 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10157 # -brtl affects multiple linker settings, -berok does not and is overridden later
10158 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10159 if test svr4 != "$with_aix_soname"; then
10160 # This is similar to how AIX traditionally builds its shared libraries.
10161 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'
10162 fi
10163 if test aix != "$with_aix_soname"; then
10164 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'
10165 else
10166 # used by -dlpreopen to get the symbols
10167 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10168 fi
10169 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10170 fi
10171 fi
10172 ;;
10173
10174 amigaos*)
10175 case $host_cpu in
10176 powerpc)
10177 # see comment about AmigaOS4 .so support
10178 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10179 archive_expsym_cmds=''
10180 ;;
10181 m68k)
10182 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)'
10183 hardcode_libdir_flag_spec='-L$libdir'
10184 hardcode_minus_L=yes
10185 ;;
10186 esac
10187 ;;
10188
10189 bsdi[45]*)
10190 export_dynamic_flag_spec=-rdynamic
10191 ;;
10192
10193 cygwin* | mingw* | pw32* | cegcc*)
10194 # When not using gcc, we currently assume that we are using
10195 # Microsoft Visual C++ or Intel C++ Compiler.
10196 # hardcode_libdir_flag_spec is actually meaningless, as there is
10197 # no search path for DLLs.
10198 case $cc_basename in
10199 cl* | icl*)
10200 # Native MSVC or ICC
10201 hardcode_libdir_flag_spec=' '
10202 allow_undefined_flag=unsupported
10203 always_export_symbols=yes
10204 file_list_spec='@'
10205 # Tell ltmain to make .lib files, not .a files.
10206 libext=lib
10207 # Tell ltmain to make .dll files, not .so files.
10208 shrext_cmds=.dll
10209 # FIXME: Setting linknames here is a bad hack.
10210 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10211 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10212 cp "$export_symbols" "$output_objdir/$soname.def";
10213 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10214 else
10215 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10216 fi~
10217 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10218 linknames='
10219 # The linker will not automatically build a static lib if we build a DLL.
10220 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10221 enable_shared_with_static_runtimes=yes
10222 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10223 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10224 # Don't use ranlib
10225 old_postinstall_cmds='chmod 644 $oldlib'
10226 postlink_cmds='lt_outputfile="@OUTPUT@"~
10227 lt_tool_outputfile="@TOOL_OUTPUT@"~
10228 case $lt_outputfile in
10229 *.exe|*.EXE) ;;
10230 *)
10231 lt_outputfile=$lt_outputfile.exe
10232 lt_tool_outputfile=$lt_tool_outputfile.exe
10233 ;;
10234 esac~
10235 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10236 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10237 $RM "$lt_outputfile.manifest";
10238 fi'
10239 ;;
10240 *)
10241 # Assume MSVC and ICC wrapper
10242 hardcode_libdir_flag_spec=' '
10243 allow_undefined_flag=unsupported
10244 # Tell ltmain to make .lib files, not .a files.
10245 libext=lib
10246 # Tell ltmain to make .dll files, not .so files.
10247 shrext_cmds=.dll
10248 # FIXME: Setting linknames here is a bad hack.
10249 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10250 # The linker will automatically build a .lib file if we build a DLL.
10251 old_archive_from_new_cmds='true'
10252 # FIXME: Should let the user specify the lib program.
10253 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10254 enable_shared_with_static_runtimes=yes
10255 ;;
10256 esac
10257 ;;
10258
10259 darwin* | rhapsody*)
10260
10261
10262 archive_cmds_need_lc=no
10263 hardcode_direct=no
10264 hardcode_automatic=yes
10265 hardcode_shlibpath_var=unsupported
10266 if test yes = "$lt_cv_ld_force_load"; then
10267 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\"`'
10268
10269 else
10270 whole_archive_flag_spec=''
10271 fi
10272 link_all_deplibs=yes
10273 allow_undefined_flag=$_lt_dar_allow_undefined
10274 case $cc_basename in
10275 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10276 *) _lt_dar_can_shared=$GCC ;;
10277 esac
10278 if test yes = "$_lt_dar_can_shared"; then
10279 output_verbose_link_cmd=func_echo_all
10280 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10281 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10282 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"
10283 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"
10284
10285 else
10286 ld_shlibs=no
10287 fi
10288
10289 ;;
10290
10291 dgux*)
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_libdir_flag_spec='-L$libdir'
10294 hardcode_shlibpath_var=no
10295 ;;
10296
10297 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10298 # support. Future versions do this automatically, but an explicit c++rt0.o
10299 # does not break anything, and helps significantly (at the cost of a little
10300 # extra space).
10301 freebsd2.2*)
10302 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10303 hardcode_libdir_flag_spec='-R$libdir'
10304 hardcode_direct=yes
10305 hardcode_shlibpath_var=no
10306 ;;
10307
10308 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10309 freebsd2.*)
10310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10311 hardcode_direct=yes
10312 hardcode_minus_L=yes
10313 hardcode_shlibpath_var=no
10314 ;;
10315
10316 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10317 freebsd* | dragonfly* | midnightbsd*)
10318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10319 hardcode_libdir_flag_spec='-R$libdir'
10320 hardcode_direct=yes
10321 hardcode_shlibpath_var=no
10322 ;;
10323
10324 hpux9*)
10325 if test yes = "$GCC"; then
10326 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'
10327 else
10328 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'
10329 fi
10330 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10331 hardcode_libdir_separator=:
10332 hardcode_direct=yes
10333
10334 # hardcode_minus_L: Not really in the search PATH,
10335 # but as the default location of the library.
10336 hardcode_minus_L=yes
10337 export_dynamic_flag_spec='$wl-E'
10338 ;;
10339
10340 hpux10*)
10341 if test yes,no = "$GCC,$with_gnu_ld"; then
10342 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10343 else
10344 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10345 fi
10346 if test no = "$with_gnu_ld"; then
10347 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10348 hardcode_libdir_separator=:
10349 hardcode_direct=yes
10350 hardcode_direct_absolute=yes
10351 export_dynamic_flag_spec='$wl-E'
10352 # hardcode_minus_L: Not really in the search PATH,
10353 # but as the default location of the library.
10354 hardcode_minus_L=yes
10355 fi
10356 ;;
10357
10358 hpux11*)
10359 if test yes,no = "$GCC,$with_gnu_ld"; then
10360 case $host_cpu in
10361 hppa*64*)
10362 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10363 ;;
10364 ia64*)
10365 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10366 ;;
10367 *)
10368 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10369 ;;
10370 esac
10371 else
10372 case $host_cpu in
10373 hppa*64*)
10374 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10375 ;;
10376 ia64*)
10377 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10378 ;;
10379 *)
10380
10381 # Older versions of the 11.00 compiler do not understand -b yet
10382 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10384 printf %s "checking if $CC understands -b... " >&6; }
10385 if test ${lt_cv_prog_compiler__b+y}
10386 then :
10387 printf %s "(cached) " >&6
10388 else $as_nop
10389 lt_cv_prog_compiler__b=no
10390 save_LDFLAGS=$LDFLAGS
10391 LDFLAGS="$LDFLAGS -b"
10392 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10393 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10394 # The linker can only warn and ignore the option if not recognized
10395 # So say no if there are warnings
10396 if test -s conftest.err; then
10397 # Append any errors to the config.log.
10398 cat conftest.err 1>&5
10399 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10401 if diff conftest.exp conftest.er2 >/dev/null; then
10402 lt_cv_prog_compiler__b=yes
10403 fi
10404 else
10405 lt_cv_prog_compiler__b=yes
10406 fi
10407 fi
10408 $RM -r conftest*
10409 LDFLAGS=$save_LDFLAGS
10410
10411 fi
10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10413 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10414
10415 if test yes = "$lt_cv_prog_compiler__b"; then
10416 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10417 else
10418 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10419 fi
10420
10421 ;;
10422 esac
10423 fi
10424 if test no = "$with_gnu_ld"; then
10425 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10426 hardcode_libdir_separator=:
10427
10428 case $host_cpu in
10429 hppa*64*|ia64*)
10430 hardcode_direct=no
10431 hardcode_shlibpath_var=no
10432 ;;
10433 *)
10434 hardcode_direct=yes
10435 hardcode_direct_absolute=yes
10436 export_dynamic_flag_spec='$wl-E'
10437
10438 # hardcode_minus_L: Not really in the search PATH,
10439 # but as the default location of the library.
10440 hardcode_minus_L=yes
10441 ;;
10442 esac
10443 fi
10444 ;;
10445
10446 irix5* | irix6* | nonstopux*)
10447 if test yes = "$GCC"; then
10448 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'
10449 # Try to use the -exported_symbol ld option, if it does not
10450 # work, assume that -exports_file does not work either and
10451 # implicitly export all symbols.
10452 # This should be the same for all languages, so no per-tag cache variable.
10453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10454 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10455 if test ${lt_cv_irix_exported_symbol+y}
10456 then :
10457 printf %s "(cached) " >&6
10458 else $as_nop
10459 save_LDFLAGS=$LDFLAGS
10460 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10463 int foo (void) { return 0; }
10464 _ACEOF
10465 if ac_fn_c_try_link "$LINENO"
10466 then :
10467 lt_cv_irix_exported_symbol=yes
10468 else $as_nop
10469 lt_cv_irix_exported_symbol=no
10470 fi
10471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10472 conftest$ac_exeext conftest.$ac_ext
10473 LDFLAGS=$save_LDFLAGS
10474 fi
10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10476 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10477 if test yes = "$lt_cv_irix_exported_symbol"; then
10478 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'
10479 fi
10480 else
10481 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'
10482 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'
10483 fi
10484 archive_cmds_need_lc='no'
10485 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10486 hardcode_libdir_separator=:
10487 inherit_rpath=yes
10488 link_all_deplibs=yes
10489 ;;
10490
10491 linux*)
10492 case $cc_basename in
10493 tcc*)
10494 # Fabrice Bellard et al's Tiny C Compiler
10495 ld_shlibs=yes
10496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10497 ;;
10498 esac
10499 ;;
10500
10501 netbsd*)
10502 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10504 else
10505 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10506 fi
10507 hardcode_libdir_flag_spec='-R$libdir'
10508 hardcode_direct=yes
10509 hardcode_shlibpath_var=no
10510 ;;
10511
10512 newsos6)
10513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514 hardcode_direct=yes
10515 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10516 hardcode_libdir_separator=:
10517 hardcode_shlibpath_var=no
10518 ;;
10519
10520 *nto* | *qnx*)
10521 ;;
10522
10523 openbsd* | bitrig*)
10524 if test -f /usr/libexec/ld.so; then
10525 hardcode_direct=yes
10526 hardcode_shlibpath_var=no
10527 hardcode_direct_absolute=yes
10528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10529 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10530 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10531 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10532 export_dynamic_flag_spec='$wl-E'
10533 else
10534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10535 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10536 fi
10537 else
10538 ld_shlibs=no
10539 fi
10540 ;;
10541
10542 os2*)
10543 hardcode_libdir_flag_spec='-L$libdir'
10544 hardcode_minus_L=yes
10545 allow_undefined_flag=unsupported
10546 shrext_cmds=.dll
10547 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10548 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10549 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10550 $ECHO EXPORTS >> $output_objdir/$libname.def~
10551 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10552 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10553 emximp -o $lib $output_objdir/$libname.def'
10554 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10555 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10556 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10557 $ECHO EXPORTS >> $output_objdir/$libname.def~
10558 prefix_cmds="$SED"~
10559 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10560 prefix_cmds="$prefix_cmds -e 1d";
10561 fi~
10562 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10563 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10564 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10565 emximp -o $lib $output_objdir/$libname.def'
10566 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10567 enable_shared_with_static_runtimes=yes
10568 file_list_spec='@'
10569 ;;
10570
10571 osf3*)
10572 if test yes = "$GCC"; then
10573 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10574 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'
10575 else
10576 allow_undefined_flag=' -expect_unresolved \*'
10577 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'
10578 fi
10579 archive_cmds_need_lc='no'
10580 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10581 hardcode_libdir_separator=:
10582 ;;
10583
10584 osf4* | osf5*) # as osf3* with the addition of -msym flag
10585 if test yes = "$GCC"; then
10586 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10587 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'
10588 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10589 else
10590 allow_undefined_flag=' -expect_unresolved \*'
10591 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'
10592 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~
10593 $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'
10594
10595 # Both c and cxx compiler support -rpath directly
10596 hardcode_libdir_flag_spec='-rpath $libdir'
10597 fi
10598 archive_cmds_need_lc='no'
10599 hardcode_libdir_separator=:
10600 ;;
10601
10602 solaris*)
10603 no_undefined_flag=' -z defs'
10604 if test yes = "$GCC"; then
10605 wlarc='$wl'
10606 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10608 $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'
10609 else
10610 case `$CC -V 2>&1` in
10611 *"Compilers 5.0"*)
10612 wlarc=''
10613 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10615 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10616 ;;
10617 *)
10618 wlarc='$wl'
10619 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10620 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10621 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10622 ;;
10623 esac
10624 fi
10625 hardcode_libdir_flag_spec='-R$libdir'
10626 hardcode_shlibpath_var=no
10627 case $host_os in
10628 solaris2.[0-5] | solaris2.[0-5].*) ;;
10629 *)
10630 # The compiler driver will combine and reorder linker options,
10631 # but understands '-z linker_flag'. GCC discards it without '$wl',
10632 # but is careful enough not to reorder.
10633 # Supported since Solaris 2.6 (maybe 2.5.1?)
10634 if test yes = "$GCC"; then
10635 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10636 else
10637 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10638 fi
10639 ;;
10640 esac
10641 link_all_deplibs=yes
10642 ;;
10643
10644 sunos4*)
10645 if test sequent = "$host_vendor"; then
10646 # Use $CC to link under sequent, because it throws in some extra .o
10647 # files that make .init and .fini sections work.
10648 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10649 else
10650 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10651 fi
10652 hardcode_libdir_flag_spec='-L$libdir'
10653 hardcode_direct=yes
10654 hardcode_minus_L=yes
10655 hardcode_shlibpath_var=no
10656 ;;
10657
10658 sysv4)
10659 case $host_vendor in
10660 sni)
10661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10662 hardcode_direct=yes # is this really true???
10663 ;;
10664 siemens)
10665 ## LD is ld it makes a PLAMLIB
10666 ## CC just makes a GrossModule.
10667 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10668 reload_cmds='$CC -r -o $output$reload_objs'
10669 hardcode_direct=no
10670 ;;
10671 motorola)
10672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10673 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10674 ;;
10675 esac
10676 runpath_var='LD_RUN_PATH'
10677 hardcode_shlibpath_var=no
10678 ;;
10679
10680 sysv4.3*)
10681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10682 hardcode_shlibpath_var=no
10683 export_dynamic_flag_spec='-Bexport'
10684 ;;
10685
10686 sysv4*MP*)
10687 if test -d /usr/nec; then
10688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10689 hardcode_shlibpath_var=no
10690 runpath_var=LD_RUN_PATH
10691 hardcode_runpath_var=yes
10692 ld_shlibs=yes
10693 fi
10694 ;;
10695
10696 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10697 no_undefined_flag='$wl-z,text'
10698 archive_cmds_need_lc=no
10699 hardcode_shlibpath_var=no
10700 runpath_var='LD_RUN_PATH'
10701
10702 if test yes = "$GCC"; then
10703 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10704 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10705 else
10706 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10707 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708 fi
10709 ;;
10710
10711 sysv5* | sco3.2v5* | sco5v6*)
10712 # Note: We CANNOT use -z defs as we might desire, because we do not
10713 # link with -lc, and that would cause any symbols used from libc to
10714 # always be unresolved, which means just about no library would
10715 # ever link correctly. If we're not using GNU ld we use -z text
10716 # though, which does catch some bad symbols but isn't as heavy-handed
10717 # as -z defs.
10718 no_undefined_flag='$wl-z,text'
10719 allow_undefined_flag='$wl-z,nodefs'
10720 archive_cmds_need_lc=no
10721 hardcode_shlibpath_var=no
10722 hardcode_libdir_flag_spec='$wl-R,$libdir'
10723 hardcode_libdir_separator=':'
10724 link_all_deplibs=yes
10725 export_dynamic_flag_spec='$wl-Bexport'
10726 runpath_var='LD_RUN_PATH'
10727
10728 if test yes = "$GCC"; then
10729 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731 else
10732 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 fi
10735 ;;
10736
10737 uts4*)
10738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10739 hardcode_libdir_flag_spec='-L$libdir'
10740 hardcode_shlibpath_var=no
10741 ;;
10742
10743 *)
10744 ld_shlibs=no
10745 ;;
10746 esac
10747
10748 if test sni = "$host_vendor"; then
10749 case $host in
10750 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10751 export_dynamic_flag_spec='$wl-Blargedynsym'
10752 ;;
10753 esac
10754 fi
10755 fi
10756
10757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10758 printf "%s\n" "$ld_shlibs" >&6; }
10759 test no = "$ld_shlibs" && can_build_shared=no
10760
10761 with_gnu_ld=$with_gnu_ld
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777 #
10778 # Do we need to explicitly link libc?
10779 #
10780 case "x$archive_cmds_need_lc" in
10781 x|xyes)
10782 # Assume -lc should be added
10783 archive_cmds_need_lc=yes
10784
10785 if test yes,yes = "$GCC,$enable_shared"; then
10786 case $archive_cmds in
10787 *'~'*)
10788 # FIXME: we may have to deal with multi-command sequences.
10789 ;;
10790 '$CC '*)
10791 # Test whether the compiler implicitly links with -lc since on some
10792 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10793 # to ld, don't add -lc before -lgcc.
10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10795 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10796 if test ${lt_cv_archive_cmds_need_lc+y}
10797 then :
10798 printf %s "(cached) " >&6
10799 else $as_nop
10800 $RM conftest*
10801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10802
10803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10804 (eval $ac_compile) 2>&5
10805 ac_status=$?
10806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10807 test $ac_status = 0; } 2>conftest.err; then
10808 soname=conftest
10809 lib=conftest
10810 libobjs=conftest.$ac_objext
10811 deplibs=
10812 wl=$lt_prog_compiler_wl
10813 pic_flag=$lt_prog_compiler_pic
10814 compiler_flags=-v
10815 linker_flags=-v
10816 verstring=
10817 output_objdir=.
10818 libname=conftest
10819 lt_save_allow_undefined_flag=$allow_undefined_flag
10820 allow_undefined_flag=
10821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10822 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10823 ac_status=$?
10824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10825 test $ac_status = 0; }
10826 then
10827 lt_cv_archive_cmds_need_lc=no
10828 else
10829 lt_cv_archive_cmds_need_lc=yes
10830 fi
10831 allow_undefined_flag=$lt_save_allow_undefined_flag
10832 else
10833 cat conftest.err 1>&5
10834 fi
10835 $RM conftest*
10836
10837 fi
10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10839 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10840 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10841 ;;
10842 esac
10843 fi
10844 ;;
10845 esac
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10999 printf %s "checking dynamic linker characteristics... " >&6; }
11000
11001 if test yes = "$GCC"; then
11002 case $host_os in
11003 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11004 *) lt_awk_arg='/^libraries:/' ;;
11005 esac
11006 case $host_os in
11007 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11008 *) lt_sed_strip_eq='s|=/|/|g' ;;
11009 esac
11010 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11011 case $lt_search_path_spec in
11012 *\;*)
11013 # if the path contains ";" then we assume it to be the separator
11014 # otherwise default to the standard path separator (i.e. ":") - it is
11015 # assumed that no part of a normal pathname contains ";" but that should
11016 # okay in the real world where ";" in dirpaths is itself problematic.
11017 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11018 ;;
11019 *)
11020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11021 ;;
11022 esac
11023 # Ok, now we have the path, separated by spaces, we can step through it
11024 # and add multilib dir if necessary...
11025 lt_tmp_lt_search_path_spec=
11026 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11027 # ...but if some path component already ends with the multilib dir we assume
11028 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11029 case "$lt_multi_os_dir; $lt_search_path_spec " in
11030 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11031 lt_multi_os_dir=
11032 ;;
11033 esac
11034 for lt_sys_path in $lt_search_path_spec; do
11035 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11037 elif test -n "$lt_multi_os_dir"; then
11038 test -d "$lt_sys_path" && \
11039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11040 fi
11041 done
11042 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11043 BEGIN {RS = " "; FS = "/|\n";} {
11044 lt_foo = "";
11045 lt_count = 0;
11046 for (lt_i = NF; lt_i > 0; lt_i--) {
11047 if ($lt_i != "" && $lt_i != ".") {
11048 if ($lt_i == "..") {
11049 lt_count++;
11050 } else {
11051 if (lt_count == 0) {
11052 lt_foo = "/" $lt_i lt_foo;
11053 } else {
11054 lt_count--;
11055 }
11056 }
11057 }
11058 }
11059 if (lt_foo != "") { lt_freq[lt_foo]++; }
11060 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11061 }'`
11062 # AWK program above erroneously prepends '/' to C:/dos/paths
11063 # for these hosts.
11064 case $host_os in
11065 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11066 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11067 esac
11068 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11069 else
11070 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11071 fi
11072 library_names_spec=
11073 libname_spec='lib$name'
11074 soname_spec=
11075 shrext_cmds=.so
11076 postinstall_cmds=
11077 postuninstall_cmds=
11078 finish_cmds=
11079 finish_eval=
11080 shlibpath_var=
11081 shlibpath_overrides_runpath=unknown
11082 version_type=none
11083 dynamic_linker="$host_os ld.so"
11084 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11085 need_lib_prefix=unknown
11086 hardcode_into_libs=no
11087
11088 # when you set need_version to no, make sure it does not cause -set_version
11089 # flags to be left without arguments
11090 need_version=unknown
11091
11092
11093
11094 case $host_os in
11095 aix3*)
11096 version_type=linux # correct to gnu/linux during the next big refactor
11097 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11098 shlibpath_var=LIBPATH
11099
11100 # AIX 3 has no versioning support, so we append a major version to the name.
11101 soname_spec='$libname$release$shared_ext$major'
11102 ;;
11103
11104 aix[4-9]*)
11105 version_type=linux # correct to gnu/linux during the next big refactor
11106 need_lib_prefix=no
11107 need_version=no
11108 hardcode_into_libs=yes
11109 if test ia64 = "$host_cpu"; then
11110 # AIX 5 supports IA64
11111 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 else
11114 # With GCC up to 2.95.x, collect2 would create an import file
11115 # for dependence libraries. The import file would start with
11116 # the line '#! .'. This would cause the generated library to
11117 # depend on '.', always an invalid library. This was fixed in
11118 # development snapshots of GCC prior to 3.0.
11119 case $host_os in
11120 aix4 | aix4.[01] | aix4.[01].*)
11121 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11122 echo ' yes '
11123 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11124 :
11125 else
11126 can_build_shared=no
11127 fi
11128 ;;
11129 esac
11130 # Using Import Files as archive members, it is possible to support
11131 # filename-based versioning of shared library archives on AIX. While
11132 # this would work for both with and without runtime linking, it will
11133 # prevent static linking of such archives. So we do filename-based
11134 # shared library versioning with .so extension only, which is used
11135 # when both runtime linking and shared linking is enabled.
11136 # Unfortunately, runtime linking may impact performance, so we do
11137 # not want this to be the default eventually. Also, we use the
11138 # versioned .so libs for executables only if there is the -brtl
11139 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11140 # To allow for filename-based versioning support, we need to create
11141 # libNAME.so.V as an archive file, containing:
11142 # *) an Import File, referring to the versioned filename of the
11143 # archive as well as the shared archive member, telling the
11144 # bitwidth (32 or 64) of that shared object, and providing the
11145 # list of exported symbols of that shared object, eventually
11146 # decorated with the 'weak' keyword
11147 # *) the shared object with the F_LOADONLY flag set, to really avoid
11148 # it being seen by the linker.
11149 # At run time we better use the real file rather than another symlink,
11150 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11151
11152 case $with_aix_soname,$aix_use_runtimelinking in
11153 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11154 # soname into executable. Probably we can add versioning support to
11155 # collect2, so additional links can be useful in future.
11156 aix,yes) # traditional libtool
11157 dynamic_linker='AIX unversionable lib.so'
11158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11159 # instead of lib<name>.a to let people know that these are not
11160 # typical AIX shared libraries.
11161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11162 ;;
11163 aix,no) # traditional AIX only
11164 dynamic_linker='AIX lib.a(lib.so.V)'
11165 # We preserve .a as extension for shared libraries through AIX4.2
11166 # and later when we are not doing run time linking.
11167 library_names_spec='$libname$release.a $libname.a'
11168 soname_spec='$libname$release$shared_ext$major'
11169 ;;
11170 svr4,*) # full svr4 only
11171 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11172 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11173 # We do not specify a path in Import Files, so LIBPATH fires.
11174 shlibpath_overrides_runpath=yes
11175 ;;
11176 *,yes) # both, prefer svr4
11177 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11178 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11179 # unpreferred sharedlib libNAME.a needs extra handling
11180 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"'
11181 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"'
11182 # We do not specify a path in Import Files, so LIBPATH fires.
11183 shlibpath_overrides_runpath=yes
11184 ;;
11185 *,no) # both, prefer aix
11186 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11187 library_names_spec='$libname$release.a $libname.a'
11188 soname_spec='$libname$release$shared_ext$major'
11189 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11190 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)'
11191 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"'
11192 ;;
11193 esac
11194 shlibpath_var=LIBPATH
11195 fi
11196 ;;
11197
11198 amigaos*)
11199 case $host_cpu in
11200 powerpc)
11201 # Since July 2007 AmigaOS4 officially supports .so libraries.
11202 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11203 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11204 ;;
11205 m68k)
11206 library_names_spec='$libname.ixlibrary $libname.a'
11207 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11208 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'
11209 ;;
11210 esac
11211 ;;
11212
11213 beos*)
11214 library_names_spec='$libname$shared_ext'
11215 dynamic_linker="$host_os ld.so"
11216 shlibpath_var=LIBRARY_PATH
11217 ;;
11218
11219 bsdi[45]*)
11220 version_type=linux # correct to gnu/linux during the next big refactor
11221 need_version=no
11222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11223 soname_spec='$libname$release$shared_ext$major'
11224 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11225 shlibpath_var=LD_LIBRARY_PATH
11226 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11227 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11228 # the default ld.so.conf also contains /usr/contrib/lib and
11229 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11230 # libtool to hard-code these into programs
11231 ;;
11232
11233 cygwin* | mingw* | pw32* | cegcc*)
11234 version_type=windows
11235 shrext_cmds=.dll
11236 need_version=no
11237 need_lib_prefix=no
11238
11239 case $GCC,$cc_basename in
11240 yes,*)
11241 # gcc
11242 library_names_spec='$libname.dll.a'
11243 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11244 postinstall_cmds='base_file=`basename \$file`~
11245 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11246 dldir=$destdir/`dirname \$dlpath`~
11247 test -d \$dldir || mkdir -p \$dldir~
11248 $install_prog $dir/$dlname \$dldir/$dlname~
11249 chmod a+x \$dldir/$dlname~
11250 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11251 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11252 fi'
11253 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11254 dlpath=$dir/\$dldll~
11255 $RM \$dlpath'
11256 shlibpath_overrides_runpath=yes
11257
11258 case $host_os in
11259 cygwin*)
11260 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11261 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11262
11263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11264 ;;
11265 mingw* | cegcc*)
11266 # MinGW DLLs use traditional 'lib' prefix
11267 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11268 ;;
11269 pw32*)
11270 # pw32 DLLs use 'pw' prefix rather than 'lib'
11271 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11272 ;;
11273 esac
11274 dynamic_linker='Win32 ld.exe'
11275 ;;
11276
11277 *,cl* | *,icl*)
11278 # Native MSVC or ICC
11279 libname_spec='$name'
11280 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11281 library_names_spec='$libname.dll.lib'
11282
11283 case $build_os in
11284 mingw*)
11285 sys_lib_search_path_spec=
11286 lt_save_ifs=$IFS
11287 IFS=';'
11288 for lt_path in $LIB
11289 do
11290 IFS=$lt_save_ifs
11291 # Let DOS variable expansion print the short 8.3 style file name.
11292 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11293 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11294 done
11295 IFS=$lt_save_ifs
11296 # Convert to MSYS style.
11297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11298 ;;
11299 cygwin*)
11300 # Convert to unix form, then to dos form, then back to unix form
11301 # but this time dos style (no spaces!) so that the unix form looks
11302 # like /cygdrive/c/PROGRA~1:/cygdr...
11303 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11304 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11305 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11306 ;;
11307 *)
11308 sys_lib_search_path_spec=$LIB
11309 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11310 # It is most probably a Windows format PATH.
11311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11312 else
11313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11314 fi
11315 # FIXME: find the short name or the path components, as spaces are
11316 # common. (e.g. "Program Files" -> "PROGRA~1")
11317 ;;
11318 esac
11319
11320 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11321 postinstall_cmds='base_file=`basename \$file`~
11322 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11323 dldir=$destdir/`dirname \$dlpath`~
11324 test -d \$dldir || mkdir -p \$dldir~
11325 $install_prog $dir/$dlname \$dldir/$dlname'
11326 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11327 dlpath=$dir/\$dldll~
11328 $RM \$dlpath'
11329 shlibpath_overrides_runpath=yes
11330 dynamic_linker='Win32 link.exe'
11331 ;;
11332
11333 *)
11334 # Assume MSVC and ICC wrapper
11335 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11336 dynamic_linker='Win32 ld.exe'
11337 ;;
11338 esac
11339 # FIXME: first we should search . and the directory the executable is in
11340 shlibpath_var=PATH
11341 ;;
11342
11343 darwin* | rhapsody*)
11344 dynamic_linker="$host_os dyld"
11345 version_type=darwin
11346 need_lib_prefix=no
11347 need_version=no
11348 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11349 soname_spec='$libname$release$major$shared_ext'
11350 shlibpath_overrides_runpath=yes
11351 shlibpath_var=DYLD_LIBRARY_PATH
11352 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11353
11354 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11356 ;;
11357
11358 dgux*)
11359 version_type=linux # correct to gnu/linux during the next big refactor
11360 need_lib_prefix=no
11361 need_version=no
11362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11363 soname_spec='$libname$release$shared_ext$major'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 ;;
11366
11367 freebsd* | dragonfly* | midnightbsd*)
11368 # DragonFly does not have aout. When/if they implement a new
11369 # versioning mechanism, adjust this.
11370 if test -x /usr/bin/objformat; then
11371 objformat=`/usr/bin/objformat`
11372 else
11373 case $host_os in
11374 freebsd[23].*) objformat=aout ;;
11375 *) objformat=elf ;;
11376 esac
11377 fi
11378 version_type=freebsd-$objformat
11379 case $version_type in
11380 freebsd-elf*)
11381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11382 soname_spec='$libname$release$shared_ext$major'
11383 need_version=no
11384 need_lib_prefix=no
11385 ;;
11386 freebsd-*)
11387 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11388 need_version=yes
11389 ;;
11390 esac
11391 shlibpath_var=LD_LIBRARY_PATH
11392 case $host_os in
11393 freebsd2.*)
11394 shlibpath_overrides_runpath=yes
11395 ;;
11396 freebsd3.[01]* | freebsdelf3.[01]*)
11397 shlibpath_overrides_runpath=yes
11398 hardcode_into_libs=yes
11399 ;;
11400 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11401 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11402 shlibpath_overrides_runpath=no
11403 hardcode_into_libs=yes
11404 ;;
11405 *) # from 4.6 on, and DragonFly
11406 shlibpath_overrides_runpath=yes
11407 hardcode_into_libs=yes
11408 ;;
11409 esac
11410 ;;
11411
11412 haiku*)
11413 version_type=linux # correct to gnu/linux during the next big refactor
11414 need_lib_prefix=no
11415 need_version=no
11416 dynamic_linker="$host_os runtime_loader"
11417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11418 soname_spec='$libname$release$shared_ext$major'
11419 shlibpath_var=LIBRARY_PATH
11420 shlibpath_overrides_runpath=no
11421 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11422 hardcode_into_libs=yes
11423 ;;
11424
11425 hpux9* | hpux10* | hpux11*)
11426 # Give a soname corresponding to the major version so that dld.sl refuses to
11427 # link against other versions.
11428 version_type=sunos
11429 need_lib_prefix=no
11430 need_version=no
11431 case $host_cpu in
11432 ia64*)
11433 shrext_cmds='.so'
11434 hardcode_into_libs=yes
11435 dynamic_linker="$host_os dld.so"
11436 shlibpath_var=LD_LIBRARY_PATH
11437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11439 soname_spec='$libname$release$shared_ext$major'
11440 if test 32 = "$HPUX_IA64_MODE"; then
11441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11442 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11443 else
11444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11445 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11446 fi
11447 ;;
11448 hppa*64*)
11449 shrext_cmds='.sl'
11450 hardcode_into_libs=yes
11451 dynamic_linker="$host_os dld.sl"
11452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11455 soname_spec='$libname$release$shared_ext$major'
11456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11458 ;;
11459 *)
11460 shrext_cmds='.sl'
11461 dynamic_linker="$host_os dld.sl"
11462 shlibpath_var=SHLIB_PATH
11463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465 soname_spec='$libname$release$shared_ext$major'
11466 ;;
11467 esac
11468 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11469 postinstall_cmds='chmod 555 $lib'
11470 # or fails outright, so override atomically:
11471 install_override_mode=555
11472 ;;
11473
11474 interix[3-9]*)
11475 version_type=linux # correct to gnu/linux during the next big refactor
11476 need_lib_prefix=no
11477 need_version=no
11478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11479 soname_spec='$libname$release$shared_ext$major'
11480 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 shlibpath_overrides_runpath=no
11483 hardcode_into_libs=yes
11484 ;;
11485
11486 irix5* | irix6* | nonstopux*)
11487 case $host_os in
11488 nonstopux*) version_type=nonstopux ;;
11489 *)
11490 if test yes = "$lt_cv_prog_gnu_ld"; then
11491 version_type=linux # correct to gnu/linux during the next big refactor
11492 else
11493 version_type=irix
11494 fi ;;
11495 esac
11496 need_lib_prefix=no
11497 need_version=no
11498 soname_spec='$libname$release$shared_ext$major'
11499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11500 case $host_os in
11501 irix5* | nonstopux*)
11502 libsuff= shlibsuff=
11503 ;;
11504 *)
11505 case $LD in # libtool.m4 will add one of these switches to LD
11506 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11507 libsuff= shlibsuff= libmagic=32-bit;;
11508 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11509 libsuff=32 shlibsuff=N32 libmagic=N32;;
11510 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11511 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11512 *) libsuff= shlibsuff= libmagic=never-match;;
11513 esac
11514 ;;
11515 esac
11516 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11517 shlibpath_overrides_runpath=no
11518 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11519 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11520 hardcode_into_libs=yes
11521 ;;
11522
11523 # No shared lib support for Linux oldld, aout, or coff.
11524 linux*oldld* | linux*aout* | linux*coff*)
11525 dynamic_linker=no
11526 ;;
11527
11528 linux*android*)
11529 version_type=none # Android doesn't support versioned libraries.
11530 need_lib_prefix=no
11531 need_version=no
11532 library_names_spec='$libname$release$shared_ext'
11533 soname_spec='$libname$release$shared_ext'
11534 finish_cmds=
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=yes
11537
11538 # This implies no fast_install, which is unacceptable.
11539 # Some rework will be needed to allow for fast_install
11540 # before this can be enabled.
11541 hardcode_into_libs=yes
11542
11543 dynamic_linker='Android linker'
11544 # Don't embed -rpath directories since the linker doesn't support them.
11545 hardcode_libdir_flag_spec='-L$libdir'
11546 ;;
11547
11548 # This must be glibc/ELF.
11549 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11550 version_type=linux # correct to gnu/linux during the next big refactor
11551 need_lib_prefix=no
11552 need_version=no
11553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11554 soname_spec='$libname$release$shared_ext$major'
11555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11556 shlibpath_var=LD_LIBRARY_PATH
11557 shlibpath_overrides_runpath=no
11558
11559 # Some binutils ld are patched to set DT_RUNPATH
11560 if test ${lt_cv_shlibpath_overrides_runpath+y}
11561 then :
11562 printf %s "(cached) " >&6
11563 else $as_nop
11564 lt_cv_shlibpath_overrides_runpath=no
11565 save_LDFLAGS=$LDFLAGS
11566 save_libdir=$libdir
11567 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11568 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11571
11572 int
11573 main (void)
11574 {
11575
11576 ;
11577 return 0;
11578 }
11579 _ACEOF
11580 if ac_fn_c_try_link "$LINENO"
11581 then :
11582 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11583 then :
11584 lt_cv_shlibpath_overrides_runpath=yes
11585 fi
11586 fi
11587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11588 conftest$ac_exeext conftest.$ac_ext
11589 LDFLAGS=$save_LDFLAGS
11590 libdir=$save_libdir
11591
11592 fi
11593
11594 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11595
11596 # This implies no fast_install, which is unacceptable.
11597 # Some rework will be needed to allow for fast_install
11598 # before this can be enabled.
11599 hardcode_into_libs=yes
11600
11601 # Ideally, we could use ldconfig to report *all* directores which are
11602 # searched for libraries, however this is still not possible. Aside from not
11603 # being certain /sbin/ldconfig is available, command
11604 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11605 # even though it is searched at run-time. Try to do the best guess by
11606 # appending ld.so.conf contents (and includes) to the search path.
11607 if test -f /etc/ld.so.conf; then
11608 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' ' '`
11609 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11610 fi
11611
11612 # We used to test for /lib/ld.so.1 and disable shared libraries on
11613 # powerpc, because MkLinux only supported shared libraries with the
11614 # GNU dynamic linker. Since this was broken with cross compilers,
11615 # most powerpc-linux boxes support dynamic linking these days and
11616 # people can always --disable-shared, the test was removed, and we
11617 # assume the GNU/Linux dynamic linker is in use.
11618 dynamic_linker='GNU/Linux ld.so'
11619 ;;
11620
11621 netbsd*)
11622 version_type=sunos
11623 need_lib_prefix=no
11624 need_version=no
11625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11626 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11628 dynamic_linker='NetBSD (a.out) ld.so'
11629 else
11630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11631 soname_spec='$libname$release$shared_ext$major'
11632 dynamic_linker='NetBSD ld.elf_so'
11633 fi
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=yes
11636 hardcode_into_libs=yes
11637 ;;
11638
11639 newsos6)
11640 version_type=linux # correct to gnu/linux during the next big refactor
11641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11642 shlibpath_var=LD_LIBRARY_PATH
11643 shlibpath_overrides_runpath=yes
11644 ;;
11645
11646 *nto* | *qnx*)
11647 version_type=qnx
11648 need_lib_prefix=no
11649 need_version=no
11650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11651 soname_spec='$libname$release$shared_ext$major'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=no
11654 hardcode_into_libs=yes
11655 dynamic_linker='ldqnx.so'
11656 ;;
11657
11658 openbsd* | bitrig*)
11659 version_type=sunos
11660 sys_lib_dlsearch_path_spec=/usr/lib
11661 need_lib_prefix=no
11662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11663 need_version=no
11664 else
11665 need_version=yes
11666 fi
11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11669 shlibpath_var=LD_LIBRARY_PATH
11670 shlibpath_overrides_runpath=yes
11671 ;;
11672
11673 os2*)
11674 libname_spec='$name'
11675 version_type=windows
11676 shrext_cmds=.dll
11677 need_version=no
11678 need_lib_prefix=no
11679 # OS/2 can only load a DLL with a base name of 8 characters or less.
11680 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11681 v=$($ECHO $release$versuffix | tr -d .-);
11682 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11683 $ECHO $n$v`$shared_ext'
11684 library_names_spec='${libname}_dll.$libext'
11685 dynamic_linker='OS/2 ld.exe'
11686 shlibpath_var=BEGINLIBPATH
11687 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11689 postinstall_cmds='base_file=`basename \$file`~
11690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11691 dldir=$destdir/`dirname \$dlpath`~
11692 test -d \$dldir || mkdir -p \$dldir~
11693 $install_prog $dir/$dlname \$dldir/$dlname~
11694 chmod a+x \$dldir/$dlname~
11695 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11696 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11697 fi'
11698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11699 dlpath=$dir/\$dldll~
11700 $RM \$dlpath'
11701 ;;
11702
11703 osf3* | osf4* | osf5*)
11704 version_type=osf
11705 need_lib_prefix=no
11706 need_version=no
11707 soname_spec='$libname$release$shared_ext$major'
11708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11709 shlibpath_var=LD_LIBRARY_PATH
11710 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11712 ;;
11713
11714 rdos*)
11715 dynamic_linker=no
11716 ;;
11717
11718 solaris*)
11719 version_type=linux # correct to gnu/linux during the next big refactor
11720 need_lib_prefix=no
11721 need_version=no
11722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11723 soname_spec='$libname$release$shared_ext$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 shlibpath_overrides_runpath=yes
11726 hardcode_into_libs=yes
11727 # ldd complains unless libraries are executable
11728 postinstall_cmds='chmod +x $lib'
11729 ;;
11730
11731 sunos4*)
11732 version_type=sunos
11733 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11735 shlibpath_var=LD_LIBRARY_PATH
11736 shlibpath_overrides_runpath=yes
11737 if test yes = "$with_gnu_ld"; then
11738 need_lib_prefix=no
11739 fi
11740 need_version=yes
11741 ;;
11742
11743 sysv4 | sysv4.3*)
11744 version_type=linux # correct to gnu/linux during the next big refactor
11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11746 soname_spec='$libname$release$shared_ext$major'
11747 shlibpath_var=LD_LIBRARY_PATH
11748 case $host_vendor in
11749 sni)
11750 shlibpath_overrides_runpath=no
11751 need_lib_prefix=no
11752 runpath_var=LD_RUN_PATH
11753 ;;
11754 siemens)
11755 need_lib_prefix=no
11756 ;;
11757 motorola)
11758 need_lib_prefix=no
11759 need_version=no
11760 shlibpath_overrides_runpath=no
11761 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11762 ;;
11763 esac
11764 ;;
11765
11766 sysv4*MP*)
11767 if test -d /usr/nec; then
11768 version_type=linux # correct to gnu/linux during the next big refactor
11769 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11770 soname_spec='$libname$shared_ext.$major'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 fi
11773 ;;
11774
11775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11776 version_type=sco
11777 need_lib_prefix=no
11778 need_version=no
11779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11780 soname_spec='$libname$release$shared_ext$major'
11781 shlibpath_var=LD_LIBRARY_PATH
11782 shlibpath_overrides_runpath=yes
11783 hardcode_into_libs=yes
11784 if test yes = "$with_gnu_ld"; then
11785 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11786 else
11787 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11788 case $host_os in
11789 sco3.2v5*)
11790 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11791 ;;
11792 esac
11793 fi
11794 sys_lib_dlsearch_path_spec='/usr/lib'
11795 ;;
11796
11797 tpf*)
11798 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11799 version_type=linux # correct to gnu/linux during the next big refactor
11800 need_lib_prefix=no
11801 need_version=no
11802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11803 shlibpath_var=LD_LIBRARY_PATH
11804 shlibpath_overrides_runpath=no
11805 hardcode_into_libs=yes
11806 ;;
11807
11808 uts4*)
11809 version_type=linux # correct to gnu/linux during the next big refactor
11810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11811 soname_spec='$libname$release$shared_ext$major'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 ;;
11814
11815 *)
11816 dynamic_linker=no
11817 ;;
11818 esac
11819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11820 printf "%s\n" "$dynamic_linker" >&6; }
11821 test no = "$dynamic_linker" && can_build_shared=no
11822
11823 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11824 if test yes = "$GCC"; then
11825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11826 fi
11827
11828 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11829 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11830 fi
11831
11832 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11833 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11834 fi
11835
11836 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11837 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11838
11839 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11840 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11841
11842 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11843 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11942 printf %s "checking how to hardcode library paths into programs... " >&6; }
11943 hardcode_action=
11944 if test -n "$hardcode_libdir_flag_spec" ||
11945 test -n "$runpath_var" ||
11946 test yes = "$hardcode_automatic"; then
11947
11948 # We can hardcode non-existent directories.
11949 if test no != "$hardcode_direct" &&
11950 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11951 # have to relink, otherwise we might link with an installed library
11952 # when we should be linking with a yet-to-be-installed one
11953 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11954 test no != "$hardcode_minus_L"; then
11955 # Linking always hardcodes the temporary library directory.
11956 hardcode_action=relink
11957 else
11958 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11959 hardcode_action=immediate
11960 fi
11961 else
11962 # We cannot hardcode anything, or else we can only hardcode existing
11963 # directories.
11964 hardcode_action=unsupported
11965 fi
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11967 printf "%s\n" "$hardcode_action" >&6; }
11968
11969 if test relink = "$hardcode_action" ||
11970 test yes = "$inherit_rpath"; then
11971 # Fast installation is not supported
11972 enable_fast_install=no
11973 elif test yes = "$shlibpath_overrides_runpath" ||
11974 test no = "$enable_shared"; then
11975 # Fast installation is not necessary
11976 enable_fast_install=needless
11977 fi
11978
11979
11980
11981
11982
11983
11984 if test yes != "$enable_dlopen"; then
11985 enable_dlopen=unknown
11986 enable_dlopen_self=unknown
11987 enable_dlopen_self_static=unknown
11988 else
11989 lt_cv_dlopen=no
11990 lt_cv_dlopen_libs=
11991
11992 case $host_os in
11993 beos*)
11994 lt_cv_dlopen=load_add_on
11995 lt_cv_dlopen_libs=
11996 lt_cv_dlopen_self=yes
11997 ;;
11998
11999 mingw* | pw32* | cegcc*)
12000 lt_cv_dlopen=LoadLibrary
12001 lt_cv_dlopen_libs=
12002 ;;
12003
12004 cygwin*)
12005 lt_cv_dlopen=dlopen
12006 lt_cv_dlopen_libs=
12007 ;;
12008
12009 darwin*)
12010 # if libdl is installed we need to link against it
12011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12012 printf %s "checking for dlopen in -ldl... " >&6; }
12013 if test ${ac_cv_lib_dl_dlopen+y}
12014 then :
12015 printf %s "(cached) " >&6
12016 else $as_nop
12017 ac_check_lib_save_LIBS=$LIBS
12018 LIBS="-ldl $LIBS"
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021
12022 /* Override any GCC internal prototype to avoid an error.
12023 Use char because int might match the return type of a GCC
12024 builtin and then its argument prototype would still apply. */
12025 char dlopen ();
12026 int
12027 main (void)
12028 {
12029 return dlopen ();
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 if ac_fn_c_try_link "$LINENO"
12035 then :
12036 ac_cv_lib_dl_dlopen=yes
12037 else $as_nop
12038 ac_cv_lib_dl_dlopen=no
12039 fi
12040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12041 conftest$ac_exeext conftest.$ac_ext
12042 LIBS=$ac_check_lib_save_LIBS
12043 fi
12044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12045 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12046 if test "x$ac_cv_lib_dl_dlopen" = xyes
12047 then :
12048 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12049 else $as_nop
12050
12051 lt_cv_dlopen=dyld
12052 lt_cv_dlopen_libs=
12053 lt_cv_dlopen_self=yes
12054
12055 fi
12056
12057 ;;
12058
12059 tpf*)
12060 # Don't try to run any link tests for TPF. We know it's impossible
12061 # because TPF is a cross-compiler, and we know how we open DSOs.
12062 lt_cv_dlopen=dlopen
12063 lt_cv_dlopen_libs=
12064 lt_cv_dlopen_self=no
12065 ;;
12066
12067 *)
12068 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12069 if test "x$ac_cv_func_shl_load" = xyes
12070 then :
12071 lt_cv_dlopen=shl_load
12072 else $as_nop
12073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12074 printf %s "checking for shl_load in -ldld... " >&6; }
12075 if test ${ac_cv_lib_dld_shl_load+y}
12076 then :
12077 printf %s "(cached) " >&6
12078 else $as_nop
12079 ac_check_lib_save_LIBS=$LIBS
12080 LIBS="-ldld $LIBS"
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12083
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12087 char shl_load ();
12088 int
12089 main (void)
12090 {
12091 return shl_load ();
12092 ;
12093 return 0;
12094 }
12095 _ACEOF
12096 if ac_fn_c_try_link "$LINENO"
12097 then :
12098 ac_cv_lib_dld_shl_load=yes
12099 else $as_nop
12100 ac_cv_lib_dld_shl_load=no
12101 fi
12102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12103 conftest$ac_exeext conftest.$ac_ext
12104 LIBS=$ac_check_lib_save_LIBS
12105 fi
12106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12107 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12108 if test "x$ac_cv_lib_dld_shl_load" = xyes
12109 then :
12110 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12111 else $as_nop
12112 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12113 if test "x$ac_cv_func_dlopen" = xyes
12114 then :
12115 lt_cv_dlopen=dlopen
12116 else $as_nop
12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12118 printf %s "checking for dlopen in -ldl... " >&6; }
12119 if test ${ac_cv_lib_dl_dlopen+y}
12120 then :
12121 printf %s "(cached) " >&6
12122 else $as_nop
12123 ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-ldl $LIBS"
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131 char dlopen ();
12132 int
12133 main (void)
12134 {
12135 return dlopen ();
12136 ;
12137 return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"
12141 then :
12142 ac_cv_lib_dl_dlopen=yes
12143 else $as_nop
12144 ac_cv_lib_dl_dlopen=no
12145 fi
12146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12149 fi
12150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12151 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12152 if test "x$ac_cv_lib_dl_dlopen" = xyes
12153 then :
12154 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12155 else $as_nop
12156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12157 printf %s "checking for dlopen in -lsvld... " >&6; }
12158 if test ${ac_cv_lib_svld_dlopen+y}
12159 then :
12160 printf %s "(cached) " >&6
12161 else $as_nop
12162 ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-lsvld $LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170 char dlopen ();
12171 int
12172 main (void)
12173 {
12174 return dlopen ();
12175 ;
12176 return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"
12180 then :
12181 ac_cv_lib_svld_dlopen=yes
12182 else $as_nop
12183 ac_cv_lib_svld_dlopen=no
12184 fi
12185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12188 fi
12189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12190 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12191 if test "x$ac_cv_lib_svld_dlopen" = xyes
12192 then :
12193 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12194 else $as_nop
12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12196 printf %s "checking for dld_link in -ldld... " >&6; }
12197 if test ${ac_cv_lib_dld_dld_link+y}
12198 then :
12199 printf %s "(cached) " >&6
12200 else $as_nop
12201 ac_check_lib_save_LIBS=$LIBS
12202 LIBS="-ldld $LIBS"
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205
12206 /* Override any GCC internal prototype to avoid an error.
12207 Use char because int might match the return type of a GCC
12208 builtin and then its argument prototype would still apply. */
12209 char dld_link ();
12210 int
12211 main (void)
12212 {
12213 return dld_link ();
12214 ;
12215 return 0;
12216 }
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"
12219 then :
12220 ac_cv_lib_dld_dld_link=yes
12221 else $as_nop
12222 ac_cv_lib_dld_dld_link=no
12223 fi
12224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12225 conftest$ac_exeext conftest.$ac_ext
12226 LIBS=$ac_check_lib_save_LIBS
12227 fi
12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12229 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12230 if test "x$ac_cv_lib_dld_dld_link" = xyes
12231 then :
12232 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12233 fi
12234
12235
12236 fi
12237
12238
12239 fi
12240
12241
12242 fi
12243
12244
12245 fi
12246
12247
12248 fi
12249
12250 ;;
12251 esac
12252
12253 if test no = "$lt_cv_dlopen"; then
12254 enable_dlopen=no
12255 else
12256 enable_dlopen=yes
12257 fi
12258
12259 case $lt_cv_dlopen in
12260 dlopen)
12261 save_CPPFLAGS=$CPPFLAGS
12262 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12263
12264 save_LDFLAGS=$LDFLAGS
12265 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12266
12267 save_LIBS=$LIBS
12268 LIBS="$lt_cv_dlopen_libs $LIBS"
12269
12270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12271 printf %s "checking whether a program can dlopen itself... " >&6; }
12272 if test ${lt_cv_dlopen_self+y}
12273 then :
12274 printf %s "(cached) " >&6
12275 else $as_nop
12276 if test yes = "$cross_compiling"; then :
12277 lt_cv_dlopen_self=cross
12278 else
12279 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12280 lt_status=$lt_dlunknown
12281 cat > conftest.$ac_ext <<_LT_EOF
12282 #line $LINENO "configure"
12283 #include "confdefs.h"
12284
12285 #if HAVE_DLFCN_H
12286 #include <dlfcn.h>
12287 #endif
12288
12289 #include <stdio.h>
12290
12291 #ifdef RTLD_GLOBAL
12292 # define LT_DLGLOBAL RTLD_GLOBAL
12293 #else
12294 # ifdef DL_GLOBAL
12295 # define LT_DLGLOBAL DL_GLOBAL
12296 # else
12297 # define LT_DLGLOBAL 0
12298 # endif
12299 #endif
12300
12301 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12302 find out it does not work in some platform. */
12303 #ifndef LT_DLLAZY_OR_NOW
12304 # ifdef RTLD_LAZY
12305 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12306 # else
12307 # ifdef DL_LAZY
12308 # define LT_DLLAZY_OR_NOW DL_LAZY
12309 # else
12310 # ifdef RTLD_NOW
12311 # define LT_DLLAZY_OR_NOW RTLD_NOW
12312 # else
12313 # ifdef DL_NOW
12314 # define LT_DLLAZY_OR_NOW DL_NOW
12315 # else
12316 # define LT_DLLAZY_OR_NOW 0
12317 # endif
12318 # endif
12319 # endif
12320 # endif
12321 #endif
12322
12323 /* When -fvisibility=hidden is used, assume the code has been annotated
12324 correspondingly for the symbols needed. */
12325 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12326 int fnord () __attribute__((visibility("default")));
12327 #endif
12328
12329 int fnord () { return 42; }
12330 int main ()
12331 {
12332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12333 int status = $lt_dlunknown;
12334
12335 if (self)
12336 {
12337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12338 else
12339 {
12340 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12341 else puts (dlerror ());
12342 }
12343 /* dlclose (self); */
12344 }
12345 else
12346 puts (dlerror ());
12347
12348 return status;
12349 }
12350 _LT_EOF
12351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12352 (eval $ac_link) 2>&5
12353 ac_status=$?
12354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12355 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12356 (./conftest; exit; ) >&5 2>/dev/null
12357 lt_status=$?
12358 case x$lt_status in
12359 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12360 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12361 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12362 esac
12363 else :
12364 # compilation failed
12365 lt_cv_dlopen_self=no
12366 fi
12367 fi
12368 rm -fr conftest*
12369
12370
12371 fi
12372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12373 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12374
12375 if test yes = "$lt_cv_dlopen_self"; then
12376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12378 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12379 if test ${lt_cv_dlopen_self_static+y}
12380 then :
12381 printf %s "(cached) " >&6
12382 else $as_nop
12383 if test yes = "$cross_compiling"; then :
12384 lt_cv_dlopen_self_static=cross
12385 else
12386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12387 lt_status=$lt_dlunknown
12388 cat > conftest.$ac_ext <<_LT_EOF
12389 #line $LINENO "configure"
12390 #include "confdefs.h"
12391
12392 #if HAVE_DLFCN_H
12393 #include <dlfcn.h>
12394 #endif
12395
12396 #include <stdio.h>
12397
12398 #ifdef RTLD_GLOBAL
12399 # define LT_DLGLOBAL RTLD_GLOBAL
12400 #else
12401 # ifdef DL_GLOBAL
12402 # define LT_DLGLOBAL DL_GLOBAL
12403 # else
12404 # define LT_DLGLOBAL 0
12405 # endif
12406 #endif
12407
12408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12409 find out it does not work in some platform. */
12410 #ifndef LT_DLLAZY_OR_NOW
12411 # ifdef RTLD_LAZY
12412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12413 # else
12414 # ifdef DL_LAZY
12415 # define LT_DLLAZY_OR_NOW DL_LAZY
12416 # else
12417 # ifdef RTLD_NOW
12418 # define LT_DLLAZY_OR_NOW RTLD_NOW
12419 # else
12420 # ifdef DL_NOW
12421 # define LT_DLLAZY_OR_NOW DL_NOW
12422 # else
12423 # define LT_DLLAZY_OR_NOW 0
12424 # endif
12425 # endif
12426 # endif
12427 # endif
12428 #endif
12429
12430 /* When -fvisibility=hidden is used, assume the code has been annotated
12431 correspondingly for the symbols needed. */
12432 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12433 int fnord () __attribute__((visibility("default")));
12434 #endif
12435
12436 int fnord () { return 42; }
12437 int main ()
12438 {
12439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12440 int status = $lt_dlunknown;
12441
12442 if (self)
12443 {
12444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12445 else
12446 {
12447 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12448 else puts (dlerror ());
12449 }
12450 /* dlclose (self); */
12451 }
12452 else
12453 puts (dlerror ());
12454
12455 return status;
12456 }
12457 _LT_EOF
12458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12459 (eval $ac_link) 2>&5
12460 ac_status=$?
12461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12462 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12463 (./conftest; exit; ) >&5 2>/dev/null
12464 lt_status=$?
12465 case x$lt_status in
12466 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12467 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12468 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12469 esac
12470 else :
12471 # compilation failed
12472 lt_cv_dlopen_self_static=no
12473 fi
12474 fi
12475 rm -fr conftest*
12476
12477
12478 fi
12479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12480 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12481 fi
12482
12483 CPPFLAGS=$save_CPPFLAGS
12484 LDFLAGS=$save_LDFLAGS
12485 LIBS=$save_LIBS
12486 ;;
12487 esac
12488
12489 case $lt_cv_dlopen_self in
12490 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12491 *) enable_dlopen_self=unknown ;;
12492 esac
12493
12494 case $lt_cv_dlopen_self_static in
12495 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12496 *) enable_dlopen_self_static=unknown ;;
12497 esac
12498 fi
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516 striplib=
12517 old_striplib=
12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12519 printf %s "checking whether stripping libraries is possible... " >&6; }
12520 if test -z "$STRIP"; then
12521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 printf "%s\n" "no" >&6; }
12523 else
12524 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12525 old_striplib="$STRIP --strip-debug"
12526 striplib="$STRIP --strip-unneeded"
12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12528 printf "%s\n" "yes" >&6; }
12529 else
12530 case $host_os in
12531 darwin*)
12532 # FIXME - insert some real tests, host_os isn't really good enough
12533 striplib="$STRIP -x"
12534 old_striplib="$STRIP -S"
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12536 printf "%s\n" "yes" >&6; }
12537 ;;
12538 freebsd*)
12539 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12540 old_striplib="$STRIP --strip-debug"
12541 striplib="$STRIP --strip-unneeded"
12542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12543 printf "%s\n" "yes" >&6; }
12544 else
12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 printf "%s\n" "no" >&6; }
12547 fi
12548 ;;
12549 *)
12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 printf "%s\n" "no" >&6; }
12552 ;;
12553 esac
12554 fi
12555 fi
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568 # Report what library types will actually be built
12569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12570 printf %s "checking if libtool supports shared libraries... " >&6; }
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12572 printf "%s\n" "$can_build_shared" >&6; }
12573
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12575 printf %s "checking whether to build shared libraries... " >&6; }
12576 test no = "$can_build_shared" && enable_shared=no
12577
12578 # On AIX, shared libraries and static libraries use the same namespace, and
12579 # are all built from PIC.
12580 case $host_os in
12581 aix3*)
12582 test yes = "$enable_shared" && enable_static=no
12583 if test -n "$RANLIB"; then
12584 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12585 postinstall_cmds='$RANLIB $lib'
12586 fi
12587 ;;
12588
12589 aix[4-9]*)
12590 if test ia64 != "$host_cpu"; then
12591 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12592 yes,aix,yes) ;; # shared object as lib.so file only
12593 yes,svr4,*) ;; # shared object as lib.so archive member only
12594 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12595 esac
12596 fi
12597 ;;
12598 esac
12599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12600 printf "%s\n" "$enable_shared" >&6; }
12601
12602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12603 printf %s "checking whether to build static libraries... " >&6; }
12604 # Make sure either enable_shared or enable_static is yes.
12605 test yes = "$enable_shared" || enable_static=yes
12606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12607 printf "%s\n" "$enable_static" >&6; }
12608
12609
12610
12611
12612 fi
12613 ac_ext=c
12614 ac_cpp='$CPP $CPPFLAGS'
12615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12618
12619 CC=$lt_save_CC
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635 ac_config_commands="$ac_config_commands libtool"
12636
12637
12638
12639
12640 # Only expand once:
12641
12642
12643
12644
12645 for ac_prog in 'bison -y' byacc
12646 do
12647 # Extract the first word of "$ac_prog", so it can be a program name with args.
12648 set dummy $ac_prog; ac_word=$2
12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12650 printf %s "checking for $ac_word... " >&6; }
12651 if test ${ac_cv_prog_YACC+y}
12652 then :
12653 printf %s "(cached) " >&6
12654 else $as_nop
12655 if test -n "$YACC"; then
12656 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12657 else
12658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659 for as_dir in $PATH
12660 do
12661 IFS=$as_save_IFS
12662 case $as_dir in #(((
12663 '') as_dir=./ ;;
12664 */) ;;
12665 *) as_dir=$as_dir/ ;;
12666 esac
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12669 ac_cv_prog_YACC="$ac_prog"
12670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12671 break 2
12672 fi
12673 done
12674 done
12675 IFS=$as_save_IFS
12676
12677 fi
12678 fi
12679 YACC=$ac_cv_prog_YACC
12680 if test -n "$YACC"; then
12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12682 printf "%s\n" "$YACC" >&6; }
12683 else
12684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 printf "%s\n" "no" >&6; }
12686 fi
12687
12688
12689 test -n "$YACC" && break
12690 done
12691 test -n "$YACC" || YACC="yacc"
12692
12693
12694 for ac_prog in flex lex
12695 do
12696 # Extract the first word of "$ac_prog", so it can be a program name with args.
12697 set dummy $ac_prog; ac_word=$2
12698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699 printf %s "checking for $ac_word... " >&6; }
12700 if test ${ac_cv_prog_LEX+y}
12701 then :
12702 printf %s "(cached) " >&6
12703 else $as_nop
12704 if test -n "$LEX"; then
12705 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12706 else
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12709 do
12710 IFS=$as_save_IFS
12711 case $as_dir in #(((
12712 '') as_dir=./ ;;
12713 */) ;;
12714 *) as_dir=$as_dir/ ;;
12715 esac
12716 for ac_exec_ext in '' $ac_executable_extensions; do
12717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12718 ac_cv_prog_LEX="$ac_prog"
12719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12720 break 2
12721 fi
12722 done
12723 done
12724 IFS=$as_save_IFS
12725
12726 fi
12727 fi
12728 LEX=$ac_cv_prog_LEX
12729 if test -n "$LEX"; then
12730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12731 printf "%s\n" "$LEX" >&6; }
12732 else
12733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 printf "%s\n" "no" >&6; }
12735 fi
12736
12737
12738 test -n "$LEX" && break
12739 done
12740 test -n "$LEX" || LEX=":"
12741
12742 if test "x$LEX" != "x:"; then
12743 cat >conftest.l <<_ACEOF
12744 %{
12745 #ifdef __cplusplus
12746 extern "C"
12747 #endif
12748 int yywrap(void);
12749 %}
12750 %%
12751 a { ECHO; }
12752 b { REJECT; }
12753 c { yymore (); }
12754 d { yyless (1); }
12755 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12756 #ifdef __cplusplus
12757 yyless ((yyinput () != 0));
12758 #else
12759 yyless ((input () != 0));
12760 #endif
12761 }
12762 f { unput (yytext[0]); }
12763 . { BEGIN INITIAL; }
12764 %%
12765 #ifdef YYTEXT_POINTER
12766 extern char *yytext;
12767 #endif
12768 int
12769 yywrap (void)
12770 {
12771 return 1;
12772 }
12773 int
12774 main (void)
12775 {
12776 return ! yylex ();
12777 }
12778 _ACEOF
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
12780 printf %s "checking for lex output file root... " >&6; }
12781 if test ${ac_cv_prog_lex_root+y}
12782 then :
12783 printf %s "(cached) " >&6
12784 else $as_nop
12785
12786 ac_cv_prog_lex_root=unknown
12787 { { ac_try="$LEX conftest.l"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791 esac
12792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12793 printf "%s\n" "$ac_try_echo"; } >&5
12794 (eval "$LEX conftest.l") 2>&5
12795 ac_status=$?
12796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12797 test $ac_status = 0; } &&
12798 if test -f lex.yy.c; then
12799 ac_cv_prog_lex_root=lex.yy
12800 elif test -f lexyy.c; then
12801 ac_cv_prog_lex_root=lexyy
12802 fi
12803 fi
12804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12805 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
12806 if test "$ac_cv_prog_lex_root" = unknown
12807 then :
12808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
12809 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
12810 LEX=: LEXLIB=
12811 fi
12812 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12813
12814 if test ${LEXLIB+y}
12815 then :
12816
12817 else $as_nop
12818
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
12820 printf %s "checking for lex library... " >&6; }
12821 if test ${ac_cv_lib_lex+y}
12822 then :
12823 printf %s "(cached) " >&6
12824 else $as_nop
12825
12826 ac_save_LIBS="$LIBS"
12827 ac_found=false
12828 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
12829 case $ac_cv_lib_lex in #(
12830 'none needed') :
12831 ;; #(
12832 'not found') :
12833 break ;; #(
12834 *) :
12835 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
12836 *) :
12837 ;;
12838 esac
12839
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842 `cat $LEX_OUTPUT_ROOT.c`
12843 _ACEOF
12844 if ac_fn_c_try_link "$LINENO"
12845 then :
12846 ac_found=:
12847 fi
12848 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12849 conftest$ac_exeext conftest.$ac_ext
12850 if $ac_found; then
12851 break
12852 fi
12853 done
12854 LIBS="$ac_save_LIBS"
12855
12856 fi
12857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12858 printf "%s\n" "$ac_cv_lib_lex" >&6; }
12859 if test "$ac_cv_lib_lex" = 'not found'
12860 then :
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
12862 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
12863 LEX=: LEXLIB=
12864 elif test "$ac_cv_lib_lex" = 'none needed'
12865 then :
12866 LEXLIB=''
12867 else $as_nop
12868 LEXLIB=$ac_cv_lib_lex
12869 fi
12870
12871 fi
12872
12873
12874 if test "$LEX" != :
12875 then :
12876
12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12878 printf %s "checking whether yytext is a pointer... " >&6; }
12879 if test ${ac_cv_prog_lex_yytext_pointer+y}
12880 then :
12881 printf %s "(cached) " >&6
12882 else $as_nop
12883 # POSIX says lex can declare yytext either as a pointer or an array; the
12884 # default is implementation-dependent. Figure out which it is, since
12885 # not all implementations provide the %pointer and %array declarations.
12886 ac_cv_prog_lex_yytext_pointer=no
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889
12890 #define YYTEXT_POINTER 1
12891 `cat $LEX_OUTPUT_ROOT.c`
12892 _ACEOF
12893 if ac_fn_c_try_compile "$LINENO"
12894 then :
12895 ac_cv_prog_lex_yytext_pointer=yes
12896 fi
12897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12898
12899 fi
12900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12901 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
12902 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12903
12904 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
12905
12906 fi
12907
12908 fi
12909 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12910
12911 fi
12912
12913
12914
12915 if test "X$CC" != "X"; then
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
12917 printf %s "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
12918 if test ${ssp_cv_cc+y}
12919 then :
12920 printf %s "(cached) " >&6
12921 else $as_nop
12922 ssp_old_cflags="$CFLAGS"
12923 CFLAGS="$CFLAGS -fstack-protector-strong"
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926
12927 int
12928 main (void)
12929 {
12930
12931 ;
12932 return 0;
12933 }
12934 _ACEOF
12935 if ac_fn_c_try_compile "$LINENO"
12936 then :
12937 ssp_cv_cc=yes
12938 else $as_nop
12939 ssp_cv_cc=no
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12942 CFLAGS="$ssp_old_cflags"
12943
12944 fi
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12946 printf "%s\n" "$ssp_cv_cc" >&6; }
12947 if test $ssp_cv_cc = yes; then
12948 CFLAGS="$CFLAGS -fstack-protector-strong"
12949
12950 printf "%s\n" "#define ENABLE_SSP_CC 1" >>confdefs.h
12951
12952 else
12953 unset ssp_cv_cc
12954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
12955 printf %s "checking whether ${CC} accepts -fstack-protector... " >&6; }
12956 if test ${ssp_cv_cc+y}
12957 then :
12958 printf %s "(cached) " >&6
12959 else $as_nop
12960 ssp_old_cflags="$CFLAGS"
12961 CFLAGS="$CFLAGS -fstack-protector"
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964
12965 int
12966 main (void)
12967 {
12968
12969 ;
12970 return 0;
12971 }
12972 _ACEOF
12973 if ac_fn_c_try_compile "$LINENO"
12974 then :
12975 ssp_cv_cc=yes
12976 else $as_nop
12977 ssp_cv_cc=no
12978 fi
12979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12980 CFLAGS="$ssp_old_cflags"
12981
12982 fi
12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12984 printf "%s\n" "$ssp_cv_cc" >&6; }
12985 if test $ssp_cv_cc = yes; then
12986 CFLAGS="$CFLAGS -fstack-protector"
12987
12988 printf "%s\n" "#define ENABLE_SSP_CC 1" >>confdefs.h
12989
12990 fi
12991 fi
12992 fi
12993
12994
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
12996 printf %s "checking whether libssp exists... " >&6; }
12997 if test ${ssp_cv_lib+y}
12998 then :
12999 printf %s "(cached) " >&6
13000 else $as_nop
13001 ssp_old_libs="$LIBS"
13002 LIBS="$LIBS -lssp"
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005
13006 int
13007 main (void)
13008 {
13009
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"
13015 then :
13016 ssp_cv_lib=yes
13017 else $as_nop
13018 ssp_cv_lib=no
13019 fi
13020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13021 conftest$ac_exeext conftest.$ac_ext
13022 LIBS="$ssp_old_libs"
13023
13024 fi
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
13026 printf "%s\n" "$ssp_cv_lib" >&6; }
13027 if test $ssp_cv_lib = yes; then
13028 LIBS="$LIBS -lssp"
13029 fi
13030
13031
13032
13033 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13034 if test "x$ac_cv_func_getaddrinfo" = xyes
13035 then :
13036
13037 else $as_nop
13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13039 printf %s "checking for library containing getaddrinfo... " >&6; }
13040 if test ${ac_cv_search_getaddrinfo+y}
13041 then :
13042 printf %s "(cached) " >&6
13043 else $as_nop
13044 ac_func_search_save_LIBS=$LIBS
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047
13048 /* Override any GCC internal prototype to avoid an error.
13049 Use char because int might match the return type of a GCC
13050 builtin and then its argument prototype would still apply. */
13051 char getaddrinfo ();
13052 int
13053 main (void)
13054 {
13055 return getaddrinfo ();
13056 ;
13057 return 0;
13058 }
13059 _ACEOF
13060 for ac_lib in '' nsl
13061 do
13062 if test -z "$ac_lib"; then
13063 ac_res="none required"
13064 else
13065 ac_res=-l$ac_lib
13066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13067 fi
13068 if ac_fn_c_try_link "$LINENO"
13069 then :
13070 ac_cv_search_getaddrinfo=$ac_res
13071 fi
13072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13073 conftest$ac_exeext
13074 if test ${ac_cv_search_getaddrinfo+y}
13075 then :
13076 break
13077 fi
13078 done
13079 if test ${ac_cv_search_getaddrinfo+y}
13080 then :
13081
13082 else $as_nop
13083 ac_cv_search_getaddrinfo=no
13084 fi
13085 rm conftest.$ac_ext
13086 LIBS=$ac_func_search_save_LIBS
13087 fi
13088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13089 printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; }
13090 ac_res=$ac_cv_search_getaddrinfo
13091 if test "$ac_res" != no
13092 then :
13093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13094
13095 fi
13096
13097 fi
13098
13099 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13100 if test "x$ac_cv_func_getnameinfo" = xyes
13101 then :
13102
13103 else $as_nop
13104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13105 printf %s "checking for library containing getnameinfo... " >&6; }
13106 if test ${ac_cv_search_getnameinfo+y}
13107 then :
13108 printf %s "(cached) " >&6
13109 else $as_nop
13110 ac_func_search_save_LIBS=$LIBS
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13113
13114 /* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13117 char getnameinfo ();
13118 int
13119 main (void)
13120 {
13121 return getnameinfo ();
13122 ;
13123 return 0;
13124 }
13125 _ACEOF
13126 for ac_lib in '' nsl
13127 do
13128 if test -z "$ac_lib"; then
13129 ac_res="none required"
13130 else
13131 ac_res=-l$ac_lib
13132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13133 fi
13134 if ac_fn_c_try_link "$LINENO"
13135 then :
13136 ac_cv_search_getnameinfo=$ac_res
13137 fi
13138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13139 conftest$ac_exeext
13140 if test ${ac_cv_search_getnameinfo+y}
13141 then :
13142 break
13143 fi
13144 done
13145 if test ${ac_cv_search_getnameinfo+y}
13146 then :
13147
13148 else $as_nop
13149 ac_cv_search_getnameinfo=no
13150 fi
13151 rm conftest.$ac_ext
13152 LIBS=$ac_func_search_save_LIBS
13153 fi
13154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13155 printf "%s\n" "$ac_cv_search_getnameinfo" >&6; }
13156 ac_res=$ac_cv_search_getnameinfo
13157 if test "$ac_res" != no
13158 then :
13159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13160
13161 fi
13162
13163 fi
13164
13165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13166 printf %s "checking for library containing socket... " >&6; }
13167 if test ${ac_cv_search_socket+y}
13168 then :
13169 printf %s "(cached) " >&6
13170 else $as_nop
13171 ac_func_search_save_LIBS=$LIBS
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13174
13175 /* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
13178 char socket ();
13179 int
13180 main (void)
13181 {
13182 return socket ();
13183 ;
13184 return 0;
13185 }
13186 _ACEOF
13187 for ac_lib in '' socket
13188 do
13189 if test -z "$ac_lib"; then
13190 ac_res="none required"
13191 else
13192 ac_res=-l$ac_lib
13193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13194 fi
13195 if ac_fn_c_try_link "$LINENO"
13196 then :
13197 ac_cv_search_socket=$ac_res
13198 fi
13199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13200 conftest$ac_exeext
13201 if test ${ac_cv_search_socket+y}
13202 then :
13203 break
13204 fi
13205 done
13206 if test ${ac_cv_search_socket+y}
13207 then :
13208
13209 else $as_nop
13210 ac_cv_search_socket=no
13211 fi
13212 rm conftest.$ac_ext
13213 LIBS=$ac_func_search_save_LIBS
13214 fi
13215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13216 printf "%s\n" "$ac_cv_search_socket" >&6; }
13217 ac_res=$ac_cv_search_socket
13218 if test "$ac_res" != no
13219 then :
13220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13221
13222 else $as_nop
13223 as_fn_error $? "socket library not found" "$LINENO" 5
13224 fi
13225
13226
13227
13228 # Check whether --enable-openssl was given.
13229 if test ${enable_openssl+y}
13230 then :
13231 enableval=$enable_openssl; cf_enable_openssl=$enableval
13232 else $as_nop
13233 cf_enable_openssl="auto"
13234 fi
13235
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
13237 printf %s "checking for LibreSSL/OpenSSL... " >&6; }
13238 if test "$cf_enable_openssl" != "no"; then
13239 cf_openssl_basedir=""
13240 if test "$cf_enable_openssl" != "auto" &&
13241 test "$cf_enable_openssl" != "yes"; then
13242 cf_openssl_basedir="${cf_enable_openssl}"
13243 else
13244 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13245 /opt /opt/openssl /usr/local/openssl; do
13246 if test -f "${dirs}/include/openssl/opensslv.h"; then
13247 cf_openssl_basedir="${dirs}"
13248 break
13249 fi
13250 done
13251 unset dirs
13252 fi
13253
13254 if test ! -z "$cf_openssl_basedir"; then
13255 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13256 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13257 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13258 else
13259 cf_openssl_basedir=""
13260 fi
13261 else
13262 if test -f "/usr/include/openssl/opensslv.h"; then
13263 cf_openssl_basedir="/usr"
13264 fi
13265 fi
13266
13267 if test ! -z "$cf_openssl_basedir"; then
13268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13269 printf "%s\n" "$cf_openssl_basedir" >&6; }
13270 cf_enable_openssl="yes"
13271 else
13272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13273 printf "%s\n" "not found. Please check your path." >&6; }
13274 cf_enable_openssl="no"
13275 fi
13276 unset cf_openssl_basedir
13277 else
13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13279 printf "%s\n" "disabled" >&6; }
13280 fi
13281
13282 if test "$cf_enable_openssl" != "no"
13283 then :
13284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
13285 printf %s "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
13286 if test "$cross_compiling" = yes
13287 then :
13288 cf_openssl_version_ok=no
13289 else $as_nop
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292
13293
13294 #include <openssl/opensslv.h>
13295 #include <stdlib.h>
13296 int
13297 main (void)
13298 {
13299 exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
13300 ;
13301 return 0;
13302 }
13303 _ACEOF
13304 if ac_fn_c_try_run "$LINENO"
13305 then :
13306 cf_openssl_version_ok=yes
13307 else $as_nop
13308 cf_openssl_version_ok=no
13309 fi
13310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13311 conftest.$ac_objext conftest.beam conftest.$ac_ext
13312 fi
13313
13314
13315 if test "$cf_openssl_version_ok" = "yes"
13316 then :
13317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
13318 printf "%s\n" "found" >&6; }
13319
13320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13321 printf %s "checking for RSA_free in -lcrypto... " >&6; }
13322 if test ${ac_cv_lib_crypto_RSA_free+y}
13323 then :
13324 printf %s "(cached) " >&6
13325 else $as_nop
13326 ac_check_lib_save_LIBS=$LIBS
13327 LIBS="-lcrypto $LIBS"
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330
13331 /* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13334 char RSA_free ();
13335 int
13336 main (void)
13337 {
13338 return RSA_free ();
13339 ;
13340 return 0;
13341 }
13342 _ACEOF
13343 if ac_fn_c_try_link "$LINENO"
13344 then :
13345 ac_cv_lib_crypto_RSA_free=yes
13346 else $as_nop
13347 ac_cv_lib_crypto_RSA_free=no
13348 fi
13349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13350 conftest$ac_exeext conftest.$ac_ext
13351 LIBS=$ac_check_lib_save_LIBS
13352 fi
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13354 printf "%s\n" "$ac_cv_lib_crypto_RSA_free" >&6; }
13355 if test "x$ac_cv_lib_crypto_RSA_free" = xyes
13356 then :
13357 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13358
13359 LIBS="-lcrypto $LIBS"
13360
13361 fi
13362
13363 if test "$ac_cv_lib_crypto_RSA_free" = "yes"
13364 then :
13365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13366 printf %s "checking for SSL_connect in -lssl... " >&6; }
13367 if test ${ac_cv_lib_ssl_SSL_connect+y}
13368 then :
13369 printf %s "(cached) " >&6
13370 else $as_nop
13371 ac_check_lib_save_LIBS=$LIBS
13372 LIBS="-lssl $LIBS"
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13375
13376 /* Override any GCC internal prototype to avoid an error.
13377 Use char because int might match the return type of a GCC
13378 builtin and then its argument prototype would still apply. */
13379 char SSL_connect ();
13380 int
13381 main (void)
13382 {
13383 return SSL_connect ();
13384 ;
13385 return 0;
13386 }
13387 _ACEOF
13388 if ac_fn_c_try_link "$LINENO"
13389 then :
13390 ac_cv_lib_ssl_SSL_connect=yes
13391 else $as_nop
13392 ac_cv_lib_ssl_SSL_connect=no
13393 fi
13394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13395 conftest$ac_exeext conftest.$ac_ext
13396 LIBS=$ac_check_lib_save_LIBS
13397 fi
13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13399 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
13400 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
13401 then :
13402 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
13403
13404 LIBS="-lssl $LIBS"
13405
13406 fi
13407
13408 fi
13409
13410 else $as_nop
13411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
13412 printf "%s\n" "no - LibreSSL/OpenSSL support disabled" >&6; }
13413 cf_enable_openssl="no"
13414 fi
13415 fi
13416
13417
13418 # Check whether --enable-assert was given.
13419 if test ${enable_assert+y}
13420 then :
13421 enableval=$enable_assert; assert=$enableval
13422 else $as_nop
13423 assert=no
13424 fi
13425
13426
13427 if test "$assert" = "no"
13428 then :
13429
13430 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
13431
13432 fi
13433
13434
13435 # Check whether --enable-warnings was given.
13436 if test ${enable_warnings+y}
13437 then :
13438 enableval=$enable_warnings; warnings="$enableval"
13439 else $as_nop
13440 warnings="no"
13441 fi
13442
13443
13444 if test "$warnings" = "yes"
13445 then :
13446
13447
13448
13449
13450
13451 for flag in -Werror=unknown-warning-option; do
13452 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13454 printf %s "checking whether C compiler accepts $flag... " >&6; }
13455 if eval test \${$as_CACHEVAR+y}
13456 then :
13457 printf %s "(cached) " >&6
13458 else $as_nop
13459
13460 ax_check_save_flags=$CFLAGS
13461 CFLAGS="$CFLAGS $flag"
13462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463 /* end confdefs.h. */
13464
13465 int
13466 main (void)
13467 {
13468
13469 ;
13470 return 0;
13471 }
13472 _ACEOF
13473 if ac_fn_c_try_compile "$LINENO"
13474 then :
13475 eval "$as_CACHEVAR=yes"
13476 else $as_nop
13477 eval "$as_CACHEVAR=no"
13478 fi
13479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13480 CFLAGS=$ax_check_save_flags
13481 fi
13482 eval ac_res=\$$as_CACHEVAR
13483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13484 printf "%s\n" "$ac_res" >&6; }
13485 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13486 then :
13487
13488 if test ${CFLAGS+y}
13489 then :
13490
13491 case " $CFLAGS " in #(
13492 *" $flag "*) :
13493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13494 (: CFLAGS already contains $flag) 2>&5
13495 ac_status=$?
13496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13497 test $ac_status = 0; } ;; #(
13498 *) :
13499
13500 as_fn_append CFLAGS " $flag"
13501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13502 (: CFLAGS="$CFLAGS") 2>&5
13503 ac_status=$?
13504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13505 test $ac_status = 0; }
13506 ;;
13507 esac
13508
13509 else $as_nop
13510
13511 CFLAGS=$flag
13512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13513 (: CFLAGS="$CFLAGS") 2>&5
13514 ac_status=$?
13515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13516 test $ac_status = 0; }
13517
13518 fi
13519
13520 else $as_nop
13521 :
13522 fi
13523
13524 done
13525
13526
13527
13528
13529
13530
13531 for flag in -Wall; do
13532 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13534 printf %s "checking whether C compiler accepts $flag... " >&6; }
13535 if eval test \${$as_CACHEVAR+y}
13536 then :
13537 printf %s "(cached) " >&6
13538 else $as_nop
13539
13540 ax_check_save_flags=$CFLAGS
13541 CFLAGS="$CFLAGS $flag"
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544
13545 int
13546 main (void)
13547 {
13548
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 if ac_fn_c_try_compile "$LINENO"
13554 then :
13555 eval "$as_CACHEVAR=yes"
13556 else $as_nop
13557 eval "$as_CACHEVAR=no"
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13560 CFLAGS=$ax_check_save_flags
13561 fi
13562 eval ac_res=\$$as_CACHEVAR
13563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13564 printf "%s\n" "$ac_res" >&6; }
13565 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13566 then :
13567
13568 if test ${CFLAGS+y}
13569 then :
13570
13571 case " $CFLAGS " in #(
13572 *" $flag "*) :
13573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13574 (: CFLAGS already contains $flag) 2>&5
13575 ac_status=$?
13576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13577 test $ac_status = 0; } ;; #(
13578 *) :
13579
13580 as_fn_append CFLAGS " $flag"
13581 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13582 (: CFLAGS="$CFLAGS") 2>&5
13583 ac_status=$?
13584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13585 test $ac_status = 0; }
13586 ;;
13587 esac
13588
13589 else $as_nop
13590
13591 CFLAGS=$flag
13592 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13593 (: CFLAGS="$CFLAGS") 2>&5
13594 ac_status=$?
13595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13596 test $ac_status = 0; }
13597
13598 fi
13599
13600 else $as_nop
13601 :
13602 fi
13603
13604 done
13605
13606
13607
13608
13609
13610 for flag in -Wbad-function-cast; do
13611 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13613 printf %s "checking whether C compiler accepts $flag... " >&6; }
13614 if eval test \${$as_CACHEVAR+y}
13615 then :
13616 printf %s "(cached) " >&6
13617 else $as_nop
13618
13619 ax_check_save_flags=$CFLAGS
13620 CFLAGS="$CFLAGS $flag"
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623
13624 int
13625 main (void)
13626 {
13627
13628 ;
13629 return 0;
13630 }
13631 _ACEOF
13632 if ac_fn_c_try_compile "$LINENO"
13633 then :
13634 eval "$as_CACHEVAR=yes"
13635 else $as_nop
13636 eval "$as_CACHEVAR=no"
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13639 CFLAGS=$ax_check_save_flags
13640 fi
13641 eval ac_res=\$$as_CACHEVAR
13642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13643 printf "%s\n" "$ac_res" >&6; }
13644 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13645 then :
13646
13647 if test ${CFLAGS+y}
13648 then :
13649
13650 case " $CFLAGS " in #(
13651 *" $flag "*) :
13652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13653 (: CFLAGS already contains $flag) 2>&5
13654 ac_status=$?
13655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13656 test $ac_status = 0; } ;; #(
13657 *) :
13658
13659 as_fn_append CFLAGS " $flag"
13660 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13661 (: CFLAGS="$CFLAGS") 2>&5
13662 ac_status=$?
13663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664 test $ac_status = 0; }
13665 ;;
13666 esac
13667
13668 else $as_nop
13669
13670 CFLAGS=$flag
13671 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13672 (: CFLAGS="$CFLAGS") 2>&5
13673 ac_status=$?
13674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13675 test $ac_status = 0; }
13676
13677 fi
13678
13679 else $as_nop
13680 :
13681 fi
13682
13683 done
13684
13685
13686
13687
13688
13689 for flag in -Wcast-align; do
13690 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13692 printf %s "checking whether C compiler accepts $flag... " >&6; }
13693 if eval test \${$as_CACHEVAR+y}
13694 then :
13695 printf %s "(cached) " >&6
13696 else $as_nop
13697
13698 ax_check_save_flags=$CFLAGS
13699 CFLAGS="$CFLAGS $flag"
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13702
13703 int
13704 main (void)
13705 {
13706
13707 ;
13708 return 0;
13709 }
13710 _ACEOF
13711 if ac_fn_c_try_compile "$LINENO"
13712 then :
13713 eval "$as_CACHEVAR=yes"
13714 else $as_nop
13715 eval "$as_CACHEVAR=no"
13716 fi
13717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13718 CFLAGS=$ax_check_save_flags
13719 fi
13720 eval ac_res=\$$as_CACHEVAR
13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13722 printf "%s\n" "$ac_res" >&6; }
13723 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13724 then :
13725
13726 if test ${CFLAGS+y}
13727 then :
13728
13729 case " $CFLAGS " in #(
13730 *" $flag "*) :
13731 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13732 (: CFLAGS already contains $flag) 2>&5
13733 ac_status=$?
13734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13735 test $ac_status = 0; } ;; #(
13736 *) :
13737
13738 as_fn_append CFLAGS " $flag"
13739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13740 (: CFLAGS="$CFLAGS") 2>&5
13741 ac_status=$?
13742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13743 test $ac_status = 0; }
13744 ;;
13745 esac
13746
13747 else $as_nop
13748
13749 CFLAGS=$flag
13750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13751 (: CFLAGS="$CFLAGS") 2>&5
13752 ac_status=$?
13753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13754 test $ac_status = 0; }
13755
13756 fi
13757
13758 else $as_nop
13759 :
13760 fi
13761
13762 done
13763
13764
13765
13766
13767
13768 for flag in -Wcast-function-type; do
13769 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13771 printf %s "checking whether C compiler accepts $flag... " >&6; }
13772 if eval test \${$as_CACHEVAR+y}
13773 then :
13774 printf %s "(cached) " >&6
13775 else $as_nop
13776
13777 ax_check_save_flags=$CFLAGS
13778 CFLAGS="$CFLAGS $flag"
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781
13782 int
13783 main (void)
13784 {
13785
13786 ;
13787 return 0;
13788 }
13789 _ACEOF
13790 if ac_fn_c_try_compile "$LINENO"
13791 then :
13792 eval "$as_CACHEVAR=yes"
13793 else $as_nop
13794 eval "$as_CACHEVAR=no"
13795 fi
13796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13797 CFLAGS=$ax_check_save_flags
13798 fi
13799 eval ac_res=\$$as_CACHEVAR
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13801 printf "%s\n" "$ac_res" >&6; }
13802 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13803 then :
13804
13805 if test ${CFLAGS+y}
13806 then :
13807
13808 case " $CFLAGS " in #(
13809 *" $flag "*) :
13810 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13811 (: CFLAGS already contains $flag) 2>&5
13812 ac_status=$?
13813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13814 test $ac_status = 0; } ;; #(
13815 *) :
13816
13817 as_fn_append CFLAGS " $flag"
13818 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13819 (: CFLAGS="$CFLAGS") 2>&5
13820 ac_status=$?
13821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13822 test $ac_status = 0; }
13823 ;;
13824 esac
13825
13826 else $as_nop
13827
13828 CFLAGS=$flag
13829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13830 (: CFLAGS="$CFLAGS") 2>&5
13831 ac_status=$?
13832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13833 test $ac_status = 0; }
13834
13835 fi
13836
13837 else $as_nop
13838 :
13839 fi
13840
13841 done
13842
13843
13844
13845
13846
13847 for flag in -Wcast-qual; do
13848 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13850 printf %s "checking whether C compiler accepts $flag... " >&6; }
13851 if eval test \${$as_CACHEVAR+y}
13852 then :
13853 printf %s "(cached) " >&6
13854 else $as_nop
13855
13856 ax_check_save_flags=$CFLAGS
13857 CFLAGS="$CFLAGS $flag"
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860
13861 int
13862 main (void)
13863 {
13864
13865 ;
13866 return 0;
13867 }
13868 _ACEOF
13869 if ac_fn_c_try_compile "$LINENO"
13870 then :
13871 eval "$as_CACHEVAR=yes"
13872 else $as_nop
13873 eval "$as_CACHEVAR=no"
13874 fi
13875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13876 CFLAGS=$ax_check_save_flags
13877 fi
13878 eval ac_res=\$$as_CACHEVAR
13879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13880 printf "%s\n" "$ac_res" >&6; }
13881 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13882 then :
13883
13884 if test ${CFLAGS+y}
13885 then :
13886
13887 case " $CFLAGS " in #(
13888 *" $flag "*) :
13889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13890 (: CFLAGS already contains $flag) 2>&5
13891 ac_status=$?
13892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 test $ac_status = 0; } ;; #(
13894 *) :
13895
13896 as_fn_append CFLAGS " $flag"
13897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13898 (: CFLAGS="$CFLAGS") 2>&5
13899 ac_status=$?
13900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13901 test $ac_status = 0; }
13902 ;;
13903 esac
13904
13905 else $as_nop
13906
13907 CFLAGS=$flag
13908 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13909 (: CFLAGS="$CFLAGS") 2>&5
13910 ac_status=$?
13911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13912 test $ac_status = 0; }
13913
13914 fi
13915
13916 else $as_nop
13917 :
13918 fi
13919
13920 done
13921
13922
13923
13924
13925
13926 for flag in -Wclobbered; do
13927 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13929 printf %s "checking whether C compiler accepts $flag... " >&6; }
13930 if eval test \${$as_CACHEVAR+y}
13931 then :
13932 printf %s "(cached) " >&6
13933 else $as_nop
13934
13935 ax_check_save_flags=$CFLAGS
13936 CFLAGS="$CFLAGS $flag"
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13939
13940 int
13941 main (void)
13942 {
13943
13944 ;
13945 return 0;
13946 }
13947 _ACEOF
13948 if ac_fn_c_try_compile "$LINENO"
13949 then :
13950 eval "$as_CACHEVAR=yes"
13951 else $as_nop
13952 eval "$as_CACHEVAR=no"
13953 fi
13954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13955 CFLAGS=$ax_check_save_flags
13956 fi
13957 eval ac_res=\$$as_CACHEVAR
13958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13959 printf "%s\n" "$ac_res" >&6; }
13960 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
13961 then :
13962
13963 if test ${CFLAGS+y}
13964 then :
13965
13966 case " $CFLAGS " in #(
13967 *" $flag "*) :
13968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13969 (: CFLAGS already contains $flag) 2>&5
13970 ac_status=$?
13971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13972 test $ac_status = 0; } ;; #(
13973 *) :
13974
13975 as_fn_append CFLAGS " $flag"
13976 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13977 (: CFLAGS="$CFLAGS") 2>&5
13978 ac_status=$?
13979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13980 test $ac_status = 0; }
13981 ;;
13982 esac
13983
13984 else $as_nop
13985
13986 CFLAGS=$flag
13987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13988 (: CFLAGS="$CFLAGS") 2>&5
13989 ac_status=$?
13990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13991 test $ac_status = 0; }
13992
13993 fi
13994
13995 else $as_nop
13996 :
13997 fi
13998
13999 done
14000
14001
14002
14003
14004
14005 for flag in -Wduplicated-cond; do
14006 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14008 printf %s "checking whether C compiler accepts $flag... " >&6; }
14009 if eval test \${$as_CACHEVAR+y}
14010 then :
14011 printf %s "(cached) " >&6
14012 else $as_nop
14013
14014 ax_check_save_flags=$CFLAGS
14015 CFLAGS="$CFLAGS $flag"
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14018
14019 int
14020 main (void)
14021 {
14022
14023 ;
14024 return 0;
14025 }
14026 _ACEOF
14027 if ac_fn_c_try_compile "$LINENO"
14028 then :
14029 eval "$as_CACHEVAR=yes"
14030 else $as_nop
14031 eval "$as_CACHEVAR=no"
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14034 CFLAGS=$ax_check_save_flags
14035 fi
14036 eval ac_res=\$$as_CACHEVAR
14037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14038 printf "%s\n" "$ac_res" >&6; }
14039 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14040 then :
14041
14042 if test ${CFLAGS+y}
14043 then :
14044
14045 case " $CFLAGS " in #(
14046 *" $flag "*) :
14047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14048 (: CFLAGS already contains $flag) 2>&5
14049 ac_status=$?
14050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14051 test $ac_status = 0; } ;; #(
14052 *) :
14053
14054 as_fn_append CFLAGS " $flag"
14055 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14056 (: CFLAGS="$CFLAGS") 2>&5
14057 ac_status=$?
14058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14059 test $ac_status = 0; }
14060 ;;
14061 esac
14062
14063 else $as_nop
14064
14065 CFLAGS=$flag
14066 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14067 (: CFLAGS="$CFLAGS") 2>&5
14068 ac_status=$?
14069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14070 test $ac_status = 0; }
14071
14072 fi
14073
14074 else $as_nop
14075 :
14076 fi
14077
14078 done
14079
14080
14081
14082
14083
14084 for flag in -Wempty-body; do
14085 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14087 printf %s "checking whether C compiler accepts $flag... " >&6; }
14088 if eval test \${$as_CACHEVAR+y}
14089 then :
14090 printf %s "(cached) " >&6
14091 else $as_nop
14092
14093 ax_check_save_flags=$CFLAGS
14094 CFLAGS="$CFLAGS $flag"
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097
14098 int
14099 main (void)
14100 {
14101
14102 ;
14103 return 0;
14104 }
14105 _ACEOF
14106 if ac_fn_c_try_compile "$LINENO"
14107 then :
14108 eval "$as_CACHEVAR=yes"
14109 else $as_nop
14110 eval "$as_CACHEVAR=no"
14111 fi
14112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14113 CFLAGS=$ax_check_save_flags
14114 fi
14115 eval ac_res=\$$as_CACHEVAR
14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14117 printf "%s\n" "$ac_res" >&6; }
14118 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14119 then :
14120
14121 if test ${CFLAGS+y}
14122 then :
14123
14124 case " $CFLAGS " in #(
14125 *" $flag "*) :
14126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14127 (: CFLAGS already contains $flag) 2>&5
14128 ac_status=$?
14129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14130 test $ac_status = 0; } ;; #(
14131 *) :
14132
14133 as_fn_append CFLAGS " $flag"
14134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14135 (: CFLAGS="$CFLAGS") 2>&5
14136 ac_status=$?
14137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14138 test $ac_status = 0; }
14139 ;;
14140 esac
14141
14142 else $as_nop
14143
14144 CFLAGS=$flag
14145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14146 (: CFLAGS="$CFLAGS") 2>&5
14147 ac_status=$?
14148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14149 test $ac_status = 0; }
14150
14151 fi
14152
14153 else $as_nop
14154 :
14155 fi
14156
14157 done
14158
14159
14160
14161
14162
14163 for flag in -Wignored-qualifiers; do
14164 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14166 printf %s "checking whether C compiler accepts $flag... " >&6; }
14167 if eval test \${$as_CACHEVAR+y}
14168 then :
14169 printf %s "(cached) " >&6
14170 else $as_nop
14171
14172 ax_check_save_flags=$CFLAGS
14173 CFLAGS="$CFLAGS $flag"
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176
14177 int
14178 main (void)
14179 {
14180
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_compile "$LINENO"
14186 then :
14187 eval "$as_CACHEVAR=yes"
14188 else $as_nop
14189 eval "$as_CACHEVAR=no"
14190 fi
14191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14192 CFLAGS=$ax_check_save_flags
14193 fi
14194 eval ac_res=\$$as_CACHEVAR
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14196 printf "%s\n" "$ac_res" >&6; }
14197 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14198 then :
14199
14200 if test ${CFLAGS+y}
14201 then :
14202
14203 case " $CFLAGS " in #(
14204 *" $flag "*) :
14205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14206 (: CFLAGS already contains $flag) 2>&5
14207 ac_status=$?
14208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14209 test $ac_status = 0; } ;; #(
14210 *) :
14211
14212 as_fn_append CFLAGS " $flag"
14213 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14214 (: CFLAGS="$CFLAGS") 2>&5
14215 ac_status=$?
14216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14217 test $ac_status = 0; }
14218 ;;
14219 esac
14220
14221 else $as_nop
14222
14223 CFLAGS=$flag
14224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14225 (: CFLAGS="$CFLAGS") 2>&5
14226 ac_status=$?
14227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228 test $ac_status = 0; }
14229
14230 fi
14231
14232 else $as_nop
14233 :
14234 fi
14235
14236 done
14237
14238
14239
14240
14241
14242 for flag in -Wlogical-op; do
14243 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14245 printf %s "checking whether C compiler accepts $flag... " >&6; }
14246 if eval test \${$as_CACHEVAR+y}
14247 then :
14248 printf %s "(cached) " >&6
14249 else $as_nop
14250
14251 ax_check_save_flags=$CFLAGS
14252 CFLAGS="$CFLAGS $flag"
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14255
14256 int
14257 main (void)
14258 {
14259
14260 ;
14261 return 0;
14262 }
14263 _ACEOF
14264 if ac_fn_c_try_compile "$LINENO"
14265 then :
14266 eval "$as_CACHEVAR=yes"
14267 else $as_nop
14268 eval "$as_CACHEVAR=no"
14269 fi
14270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14271 CFLAGS=$ax_check_save_flags
14272 fi
14273 eval ac_res=\$$as_CACHEVAR
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14275 printf "%s\n" "$ac_res" >&6; }
14276 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14277 then :
14278
14279 if test ${CFLAGS+y}
14280 then :
14281
14282 case " $CFLAGS " in #(
14283 *" $flag "*) :
14284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14285 (: CFLAGS already contains $flag) 2>&5
14286 ac_status=$?
14287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14288 test $ac_status = 0; } ;; #(
14289 *) :
14290
14291 as_fn_append CFLAGS " $flag"
14292 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14293 (: CFLAGS="$CFLAGS") 2>&5
14294 ac_status=$?
14295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14296 test $ac_status = 0; }
14297 ;;
14298 esac
14299
14300 else $as_nop
14301
14302 CFLAGS=$flag
14303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14304 (: CFLAGS="$CFLAGS") 2>&5
14305 ac_status=$?
14306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14307 test $ac_status = 0; }
14308
14309 fi
14310
14311 else $as_nop
14312 :
14313 fi
14314
14315 done
14316
14317
14318
14319
14320
14321 for flag in -Wmissing-declarations; do
14322 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14324 printf %s "checking whether C compiler accepts $flag... " >&6; }
14325 if eval test \${$as_CACHEVAR+y}
14326 then :
14327 printf %s "(cached) " >&6
14328 else $as_nop
14329
14330 ax_check_save_flags=$CFLAGS
14331 CFLAGS="$CFLAGS $flag"
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334
14335 int
14336 main (void)
14337 {
14338
14339 ;
14340 return 0;
14341 }
14342 _ACEOF
14343 if ac_fn_c_try_compile "$LINENO"
14344 then :
14345 eval "$as_CACHEVAR=yes"
14346 else $as_nop
14347 eval "$as_CACHEVAR=no"
14348 fi
14349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14350 CFLAGS=$ax_check_save_flags
14351 fi
14352 eval ac_res=\$$as_CACHEVAR
14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14354 printf "%s\n" "$ac_res" >&6; }
14355 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14356 then :
14357
14358 if test ${CFLAGS+y}
14359 then :
14360
14361 case " $CFLAGS " in #(
14362 *" $flag "*) :
14363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14364 (: CFLAGS already contains $flag) 2>&5
14365 ac_status=$?
14366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14367 test $ac_status = 0; } ;; #(
14368 *) :
14369
14370 as_fn_append CFLAGS " $flag"
14371 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14372 (: CFLAGS="$CFLAGS") 2>&5
14373 ac_status=$?
14374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14375 test $ac_status = 0; }
14376 ;;
14377 esac
14378
14379 else $as_nop
14380
14381 CFLAGS=$flag
14382 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14383 (: CFLAGS="$CFLAGS") 2>&5
14384 ac_status=$?
14385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14386 test $ac_status = 0; }
14387
14388 fi
14389
14390 else $as_nop
14391 :
14392 fi
14393
14394 done
14395
14396
14397
14398
14399
14400 for flag in -Wmissing-field-initializers; do
14401 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14403 printf %s "checking whether C compiler accepts $flag... " >&6; }
14404 if eval test \${$as_CACHEVAR+y}
14405 then :
14406 printf %s "(cached) " >&6
14407 else $as_nop
14408
14409 ax_check_save_flags=$CFLAGS
14410 CFLAGS="$CFLAGS $flag"
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14413
14414 int
14415 main (void)
14416 {
14417
14418 ;
14419 return 0;
14420 }
14421 _ACEOF
14422 if ac_fn_c_try_compile "$LINENO"
14423 then :
14424 eval "$as_CACHEVAR=yes"
14425 else $as_nop
14426 eval "$as_CACHEVAR=no"
14427 fi
14428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14429 CFLAGS=$ax_check_save_flags
14430 fi
14431 eval ac_res=\$$as_CACHEVAR
14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14433 printf "%s\n" "$ac_res" >&6; }
14434 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14435 then :
14436
14437 if test ${CFLAGS+y}
14438 then :
14439
14440 case " $CFLAGS " in #(
14441 *" $flag "*) :
14442 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14443 (: CFLAGS already contains $flag) 2>&5
14444 ac_status=$?
14445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14446 test $ac_status = 0; } ;; #(
14447 *) :
14448
14449 as_fn_append CFLAGS " $flag"
14450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14451 (: CFLAGS="$CFLAGS") 2>&5
14452 ac_status=$?
14453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14454 test $ac_status = 0; }
14455 ;;
14456 esac
14457
14458 else $as_nop
14459
14460 CFLAGS=$flag
14461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14462 (: CFLAGS="$CFLAGS") 2>&5
14463 ac_status=$?
14464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14465 test $ac_status = 0; }
14466
14467 fi
14468
14469 else $as_nop
14470 :
14471 fi
14472
14473 done
14474
14475
14476
14477
14478
14479 for flag in -Wmissing-include-dirs; do
14480 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14482 printf %s "checking whether C compiler accepts $flag... " >&6; }
14483 if eval test \${$as_CACHEVAR+y}
14484 then :
14485 printf %s "(cached) " >&6
14486 else $as_nop
14487
14488 ax_check_save_flags=$CFLAGS
14489 CFLAGS="$CFLAGS $flag"
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492
14493 int
14494 main (void)
14495 {
14496
14497 ;
14498 return 0;
14499 }
14500 _ACEOF
14501 if ac_fn_c_try_compile "$LINENO"
14502 then :
14503 eval "$as_CACHEVAR=yes"
14504 else $as_nop
14505 eval "$as_CACHEVAR=no"
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14508 CFLAGS=$ax_check_save_flags
14509 fi
14510 eval ac_res=\$$as_CACHEVAR
14511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14512 printf "%s\n" "$ac_res" >&6; }
14513 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14514 then :
14515
14516 if test ${CFLAGS+y}
14517 then :
14518
14519 case " $CFLAGS " in #(
14520 *" $flag "*) :
14521 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14522 (: CFLAGS already contains $flag) 2>&5
14523 ac_status=$?
14524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14525 test $ac_status = 0; } ;; #(
14526 *) :
14527
14528 as_fn_append CFLAGS " $flag"
14529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14530 (: CFLAGS="$CFLAGS") 2>&5
14531 ac_status=$?
14532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14533 test $ac_status = 0; }
14534 ;;
14535 esac
14536
14537 else $as_nop
14538
14539 CFLAGS=$flag
14540 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14541 (: CFLAGS="$CFLAGS") 2>&5
14542 ac_status=$?
14543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14544 test $ac_status = 0; }
14545
14546 fi
14547
14548 else $as_nop
14549 :
14550 fi
14551
14552 done
14553
14554
14555
14556
14557
14558 for flag in -Wmissing-parameter-type; do
14559 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14561 printf %s "checking whether C compiler accepts $flag... " >&6; }
14562 if eval test \${$as_CACHEVAR+y}
14563 then :
14564 printf %s "(cached) " >&6
14565 else $as_nop
14566
14567 ax_check_save_flags=$CFLAGS
14568 CFLAGS="$CFLAGS $flag"
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14571
14572 int
14573 main (void)
14574 {
14575
14576 ;
14577 return 0;
14578 }
14579 _ACEOF
14580 if ac_fn_c_try_compile "$LINENO"
14581 then :
14582 eval "$as_CACHEVAR=yes"
14583 else $as_nop
14584 eval "$as_CACHEVAR=no"
14585 fi
14586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14587 CFLAGS=$ax_check_save_flags
14588 fi
14589 eval ac_res=\$$as_CACHEVAR
14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14591 printf "%s\n" "$ac_res" >&6; }
14592 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14593 then :
14594
14595 if test ${CFLAGS+y}
14596 then :
14597
14598 case " $CFLAGS " in #(
14599 *" $flag "*) :
14600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14601 (: CFLAGS already contains $flag) 2>&5
14602 ac_status=$?
14603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14604 test $ac_status = 0; } ;; #(
14605 *) :
14606
14607 as_fn_append CFLAGS " $flag"
14608 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14609 (: CFLAGS="$CFLAGS") 2>&5
14610 ac_status=$?
14611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14612 test $ac_status = 0; }
14613 ;;
14614 esac
14615
14616 else $as_nop
14617
14618 CFLAGS=$flag
14619 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14620 (: CFLAGS="$CFLAGS") 2>&5
14621 ac_status=$?
14622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14623 test $ac_status = 0; }
14624
14625 fi
14626
14627 else $as_nop
14628 :
14629 fi
14630
14631 done
14632
14633
14634
14635
14636
14637 for flag in -Wmissing-prototypes; do
14638 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14640 printf %s "checking whether C compiler accepts $flag... " >&6; }
14641 if eval test \${$as_CACHEVAR+y}
14642 then :
14643 printf %s "(cached) " >&6
14644 else $as_nop
14645
14646 ax_check_save_flags=$CFLAGS
14647 CFLAGS="$CFLAGS $flag"
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650
14651 int
14652 main (void)
14653 {
14654
14655 ;
14656 return 0;
14657 }
14658 _ACEOF
14659 if ac_fn_c_try_compile "$LINENO"
14660 then :
14661 eval "$as_CACHEVAR=yes"
14662 else $as_nop
14663 eval "$as_CACHEVAR=no"
14664 fi
14665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14666 CFLAGS=$ax_check_save_flags
14667 fi
14668 eval ac_res=\$$as_CACHEVAR
14669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14670 printf "%s\n" "$ac_res" >&6; }
14671 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14672 then :
14673
14674 if test ${CFLAGS+y}
14675 then :
14676
14677 case " $CFLAGS " in #(
14678 *" $flag "*) :
14679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14680 (: CFLAGS already contains $flag) 2>&5
14681 ac_status=$?
14682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14683 test $ac_status = 0; } ;; #(
14684 *) :
14685
14686 as_fn_append CFLAGS " $flag"
14687 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14688 (: CFLAGS="$CFLAGS") 2>&5
14689 ac_status=$?
14690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14691 test $ac_status = 0; }
14692 ;;
14693 esac
14694
14695 else $as_nop
14696
14697 CFLAGS=$flag
14698 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14699 (: CFLAGS="$CFLAGS") 2>&5
14700 ac_status=$?
14701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14702 test $ac_status = 0; }
14703
14704 fi
14705
14706 else $as_nop
14707 :
14708 fi
14709
14710 done
14711
14712
14713
14714
14715
14716 for flag in -Wnested-externs; do
14717 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14719 printf %s "checking whether C compiler accepts $flag... " >&6; }
14720 if eval test \${$as_CACHEVAR+y}
14721 then :
14722 printf %s "(cached) " >&6
14723 else $as_nop
14724
14725 ax_check_save_flags=$CFLAGS
14726 CFLAGS="$CFLAGS $flag"
14727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729
14730 int
14731 main (void)
14732 {
14733
14734 ;
14735 return 0;
14736 }
14737 _ACEOF
14738 if ac_fn_c_try_compile "$LINENO"
14739 then :
14740 eval "$as_CACHEVAR=yes"
14741 else $as_nop
14742 eval "$as_CACHEVAR=no"
14743 fi
14744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14745 CFLAGS=$ax_check_save_flags
14746 fi
14747 eval ac_res=\$$as_CACHEVAR
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14749 printf "%s\n" "$ac_res" >&6; }
14750 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14751 then :
14752
14753 if test ${CFLAGS+y}
14754 then :
14755
14756 case " $CFLAGS " in #(
14757 *" $flag "*) :
14758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14759 (: CFLAGS already contains $flag) 2>&5
14760 ac_status=$?
14761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14762 test $ac_status = 0; } ;; #(
14763 *) :
14764
14765 as_fn_append CFLAGS " $flag"
14766 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14767 (: CFLAGS="$CFLAGS") 2>&5
14768 ac_status=$?
14769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14770 test $ac_status = 0; }
14771 ;;
14772 esac
14773
14774 else $as_nop
14775
14776 CFLAGS=$flag
14777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14778 (: CFLAGS="$CFLAGS") 2>&5
14779 ac_status=$?
14780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14781 test $ac_status = 0; }
14782
14783 fi
14784
14785 else $as_nop
14786 :
14787 fi
14788
14789 done
14790
14791
14792
14793
14794
14795 for flag in -Wold-style-declaration; do
14796 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14798 printf %s "checking whether C compiler accepts $flag... " >&6; }
14799 if eval test \${$as_CACHEVAR+y}
14800 then :
14801 printf %s "(cached) " >&6
14802 else $as_nop
14803
14804 ax_check_save_flags=$CFLAGS
14805 CFLAGS="$CFLAGS $flag"
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14808
14809 int
14810 main (void)
14811 {
14812
14813 ;
14814 return 0;
14815 }
14816 _ACEOF
14817 if ac_fn_c_try_compile "$LINENO"
14818 then :
14819 eval "$as_CACHEVAR=yes"
14820 else $as_nop
14821 eval "$as_CACHEVAR=no"
14822 fi
14823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14824 CFLAGS=$ax_check_save_flags
14825 fi
14826 eval ac_res=\$$as_CACHEVAR
14827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14828 printf "%s\n" "$ac_res" >&6; }
14829 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14830 then :
14831
14832 if test ${CFLAGS+y}
14833 then :
14834
14835 case " $CFLAGS " in #(
14836 *" $flag "*) :
14837 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14838 (: CFLAGS already contains $flag) 2>&5
14839 ac_status=$?
14840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14841 test $ac_status = 0; } ;; #(
14842 *) :
14843
14844 as_fn_append CFLAGS " $flag"
14845 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14846 (: CFLAGS="$CFLAGS") 2>&5
14847 ac_status=$?
14848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14849 test $ac_status = 0; }
14850 ;;
14851 esac
14852
14853 else $as_nop
14854
14855 CFLAGS=$flag
14856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14857 (: CFLAGS="$CFLAGS") 2>&5
14858 ac_status=$?
14859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14860 test $ac_status = 0; }
14861
14862 fi
14863
14864 else $as_nop
14865 :
14866 fi
14867
14868 done
14869
14870
14871
14872
14873
14874 for flag in -Woverride-init; do
14875 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14877 printf %s "checking whether C compiler accepts $flag... " >&6; }
14878 if eval test \${$as_CACHEVAR+y}
14879 then :
14880 printf %s "(cached) " >&6
14881 else $as_nop
14882
14883 ax_check_save_flags=$CFLAGS
14884 CFLAGS="$CFLAGS $flag"
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887
14888 int
14889 main (void)
14890 {
14891
14892 ;
14893 return 0;
14894 }
14895 _ACEOF
14896 if ac_fn_c_try_compile "$LINENO"
14897 then :
14898 eval "$as_CACHEVAR=yes"
14899 else $as_nop
14900 eval "$as_CACHEVAR=no"
14901 fi
14902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14903 CFLAGS=$ax_check_save_flags
14904 fi
14905 eval ac_res=\$$as_CACHEVAR
14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14907 printf "%s\n" "$ac_res" >&6; }
14908 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14909 then :
14910
14911 if test ${CFLAGS+y}
14912 then :
14913
14914 case " $CFLAGS " in #(
14915 *" $flag "*) :
14916 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14917 (: CFLAGS already contains $flag) 2>&5
14918 ac_status=$?
14919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14920 test $ac_status = 0; } ;; #(
14921 *) :
14922
14923 as_fn_append CFLAGS " $flag"
14924 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14925 (: CFLAGS="$CFLAGS") 2>&5
14926 ac_status=$?
14927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14928 test $ac_status = 0; }
14929 ;;
14930 esac
14931
14932 else $as_nop
14933
14934 CFLAGS=$flag
14935 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14936 (: CFLAGS="$CFLAGS") 2>&5
14937 ac_status=$?
14938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14939 test $ac_status = 0; }
14940
14941 fi
14942
14943 else $as_nop
14944 :
14945 fi
14946
14947 done
14948
14949
14950
14951
14952
14953 for flag in -Wpointer-arith; do
14954 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14956 printf %s "checking whether C compiler accepts $flag... " >&6; }
14957 if eval test \${$as_CACHEVAR+y}
14958 then :
14959 printf %s "(cached) " >&6
14960 else $as_nop
14961
14962 ax_check_save_flags=$CFLAGS
14963 CFLAGS="$CFLAGS $flag"
14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h. */
14966
14967 int
14968 main (void)
14969 {
14970
14971 ;
14972 return 0;
14973 }
14974 _ACEOF
14975 if ac_fn_c_try_compile "$LINENO"
14976 then :
14977 eval "$as_CACHEVAR=yes"
14978 else $as_nop
14979 eval "$as_CACHEVAR=no"
14980 fi
14981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14982 CFLAGS=$ax_check_save_flags
14983 fi
14984 eval ac_res=\$$as_CACHEVAR
14985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14986 printf "%s\n" "$ac_res" >&6; }
14987 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
14988 then :
14989
14990 if test ${CFLAGS+y}
14991 then :
14992
14993 case " $CFLAGS " in #(
14994 *" $flag "*) :
14995 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14996 (: CFLAGS already contains $flag) 2>&5
14997 ac_status=$?
14998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14999 test $ac_status = 0; } ;; #(
15000 *) :
15001
15002 as_fn_append CFLAGS " $flag"
15003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15004 (: CFLAGS="$CFLAGS") 2>&5
15005 ac_status=$?
15006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007 test $ac_status = 0; }
15008 ;;
15009 esac
15010
15011 else $as_nop
15012
15013 CFLAGS=$flag
15014 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15015 (: CFLAGS="$CFLAGS") 2>&5
15016 ac_status=$?
15017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15018 test $ac_status = 0; }
15019
15020 fi
15021
15022 else $as_nop
15023 :
15024 fi
15025
15026 done
15027
15028
15029
15030
15031
15032 for flag in -Wredundant-decls; do
15033 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
15034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15035 printf %s "checking whether C compiler accepts $flag... " >&6; }
15036 if eval test \${$as_CACHEVAR+y}
15037 then :
15038 printf %s "(cached) " >&6
15039 else $as_nop
15040
15041 ax_check_save_flags=$CFLAGS
15042 CFLAGS="$CFLAGS $flag"
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045
15046 int
15047 main (void)
15048 {
15049
15050 ;
15051 return 0;
15052 }
15053 _ACEOF
15054 if ac_fn_c_try_compile "$LINENO"
15055 then :
15056 eval "$as_CACHEVAR=yes"
15057 else $as_nop
15058 eval "$as_CACHEVAR=no"
15059 fi
15060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15061 CFLAGS=$ax_check_save_flags
15062 fi
15063 eval ac_res=\$$as_CACHEVAR
15064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15065 printf "%s\n" "$ac_res" >&6; }
15066 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
15067 then :
15068
15069 if test ${CFLAGS+y}
15070 then :
15071
15072 case " $CFLAGS " in #(
15073 *" $flag "*) :
15074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15075 (: CFLAGS already contains $flag) 2>&5
15076 ac_status=$?
15077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15078 test $ac_status = 0; } ;; #(
15079 *) :
15080
15081 as_fn_append CFLAGS " $flag"
15082 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15083 (: CFLAGS="$CFLAGS") 2>&5
15084 ac_status=$?
15085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15086 test $ac_status = 0; }
15087 ;;
15088 esac
15089
15090 else $as_nop
15091
15092 CFLAGS=$flag
15093 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15094 (: CFLAGS="$CFLAGS") 2>&5
15095 ac_status=$?
15096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15097 test $ac_status = 0; }
15098
15099 fi
15100
15101 else $as_nop
15102 :
15103 fi
15104
15105 done
15106
15107
15108
15109
15110
15111 for flag in -Wshadow; do
15112 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15114 printf %s "checking whether C compiler accepts $flag... " >&6; }
15115 if eval test \${$as_CACHEVAR+y}
15116 then :
15117 printf %s "(cached) " >&6
15118 else $as_nop
15119
15120 ax_check_save_flags=$CFLAGS
15121 CFLAGS="$CFLAGS $flag"
15122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h. */
15124
15125 int
15126 main (void)
15127 {
15128
15129 ;
15130 return 0;
15131 }
15132 _ACEOF
15133 if ac_fn_c_try_compile "$LINENO"
15134 then :
15135 eval "$as_CACHEVAR=yes"
15136 else $as_nop
15137 eval "$as_CACHEVAR=no"
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15140 CFLAGS=$ax_check_save_flags
15141 fi
15142 eval ac_res=\$$as_CACHEVAR
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15144 printf "%s\n" "$ac_res" >&6; }
15145 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
15146 then :
15147
15148 if test ${CFLAGS+y}
15149 then :
15150
15151 case " $CFLAGS " in #(
15152 *" $flag "*) :
15153 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15154 (: CFLAGS already contains $flag) 2>&5
15155 ac_status=$?
15156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15157 test $ac_status = 0; } ;; #(
15158 *) :
15159
15160 as_fn_append CFLAGS " $flag"
15161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15162 (: CFLAGS="$CFLAGS") 2>&5
15163 ac_status=$?
15164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15165 test $ac_status = 0; }
15166 ;;
15167 esac
15168
15169 else $as_nop
15170
15171 CFLAGS=$flag
15172 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15173 (: CFLAGS="$CFLAGS") 2>&5
15174 ac_status=$?
15175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15176 test $ac_status = 0; }
15177
15178 fi
15179
15180 else $as_nop
15181 :
15182 fi
15183
15184 done
15185
15186
15187
15188
15189
15190 for flag in -Wshift-negative-value; do
15191 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15193 printf %s "checking whether C compiler accepts $flag... " >&6; }
15194 if eval test \${$as_CACHEVAR+y}
15195 then :
15196 printf %s "(cached) " >&6
15197 else $as_nop
15198
15199 ax_check_save_flags=$CFLAGS
15200 CFLAGS="$CFLAGS $flag"
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203
15204 int
15205 main (void)
15206 {
15207
15208 ;
15209 return 0;
15210 }
15211 _ACEOF
15212 if ac_fn_c_try_compile "$LINENO"
15213 then :
15214 eval "$as_CACHEVAR=yes"
15215 else $as_nop
15216 eval "$as_CACHEVAR=no"
15217 fi
15218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15219 CFLAGS=$ax_check_save_flags
15220 fi
15221 eval ac_res=\$$as_CACHEVAR
15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15223 printf "%s\n" "$ac_res" >&6; }
15224 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
15225 then :
15226
15227 if test ${CFLAGS+y}
15228 then :
15229
15230 case " $CFLAGS " in #(
15231 *" $flag "*) :
15232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15233 (: CFLAGS already contains $flag) 2>&5
15234 ac_status=$?
15235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15236 test $ac_status = 0; } ;; #(
15237 *) :
15238
15239 as_fn_append CFLAGS " $flag"
15240 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15241 (: CFLAGS="$CFLAGS") 2>&5
15242 ac_status=$?
15243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15244 test $ac_status = 0; }
15245 ;;
15246 esac
15247
15248 else $as_nop
15249
15250 CFLAGS=$flag
15251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15252 (: CFLAGS="$CFLAGS") 2>&5
15253 ac_status=$?
15254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15255 test $ac_status = 0; }
15256
15257 fi
15258
15259 else $as_nop
15260 :
15261 fi
15262
15263 done
15264
15265
15266
15267
15268
15269 for flag in -Wsign-compare; do
15270 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
15271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15272 printf %s "checking whether C compiler accepts $flag... " >&6; }
15273 if eval test \${$as_CACHEVAR+y}
15274 then :
15275 printf %s "(cached) " >&6
15276 else $as_nop
15277
15278 ax_check_save_flags=$CFLAGS
15279 CFLAGS="$CFLAGS $flag"
15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281 /* end confdefs.h. */
15282
15283 int
15284 main (void)
15285 {
15286
15287 ;
15288 return 0;
15289 }
15290 _ACEOF
15291 if ac_fn_c_try_compile "$LINENO"
15292 then :
15293 eval "$as_CACHEVAR=yes"
15294 else $as_nop
15295 eval "$as_CACHEVAR=no"
15296 fi
15297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15298 CFLAGS=$ax_check_save_flags
15299 fi
15300 eval ac_res=\$$as_CACHEVAR
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15302 printf "%s\n" "$ac_res" >&6; }
15303 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
15304 then :
15305
15306 if test ${CFLAGS+y}
15307 then :
15308
15309 case " $CFLAGS " in #(
15310 *" $flag "*) :
15311 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15312 (: CFLAGS already contains $flag) 2>&5
15313 ac_status=$?
15314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15315 test $ac_status = 0; } ;; #(
15316 *) :
15317
15318 as_fn_append CFLAGS " $flag"
15319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15320 (: CFLAGS="$CFLAGS") 2>&5
15321 ac_status=$?
15322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15323 test $ac_status = 0; }
15324 ;;
15325 esac
15326
15327 else $as_nop
15328
15329 CFLAGS=$flag
15330 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15331 (: CFLAGS="$CFLAGS") 2>&5
15332 ac_status=$?
15333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15334 test $ac_status = 0; }
15335
15336 fi
15337
15338 else $as_nop
15339 :
15340 fi
15341
15342 done
15343
15344
15345
15346
15347
15348 for flag in -Wtype-limits; do
15349 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15351 printf %s "checking whether C compiler accepts $flag... " >&6; }
15352 if eval test \${$as_CACHEVAR+y}
15353 then :
15354 printf %s "(cached) " >&6
15355 else $as_nop
15356
15357 ax_check_save_flags=$CFLAGS
15358 CFLAGS="$CFLAGS $flag"
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361
15362 int
15363 main (void)
15364 {
15365
15366 ;
15367 return 0;
15368 }
15369 _ACEOF
15370 if ac_fn_c_try_compile "$LINENO"
15371 then :
15372 eval "$as_CACHEVAR=yes"
15373 else $as_nop
15374 eval "$as_CACHEVAR=no"
15375 fi
15376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15377 CFLAGS=$ax_check_save_flags
15378 fi
15379 eval ac_res=\$$as_CACHEVAR
15380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15381 printf "%s\n" "$ac_res" >&6; }
15382 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
15383 then :
15384
15385 if test ${CFLAGS+y}
15386 then :
15387
15388 case " $CFLAGS " in #(
15389 *" $flag "*) :
15390 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15391 (: CFLAGS already contains $flag) 2>&5
15392 ac_status=$?
15393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15394 test $ac_status = 0; } ;; #(
15395 *) :
15396
15397 as_fn_append CFLAGS " $flag"
15398 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15399 (: CFLAGS="$CFLAGS") 2>&5
15400 ac_status=$?
15401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15402 test $ac_status = 0; }
15403 ;;
15404 esac
15405
15406 else $as_nop
15407
15408 CFLAGS=$flag
15409 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15410 (: CFLAGS="$CFLAGS") 2>&5
15411 ac_status=$?
15412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15413 test $ac_status = 0; }
15414
15415 fi
15416
15417 else $as_nop
15418 :
15419 fi
15420
15421 done
15422
15423
15424
15425
15426
15427 for flag in -Wundef; do
15428 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
15429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15430 printf %s "checking whether C compiler accepts $flag... " >&6; }
15431 if eval test \${$as_CACHEVAR+y}
15432 then :
15433 printf %s "(cached) " >&6
15434 else $as_nop
15435
15436 ax_check_save_flags=$CFLAGS
15437 CFLAGS="$CFLAGS $flag"
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15440
15441 int
15442 main (void)
15443 {
15444
15445 ;
15446 return 0;
15447 }
15448 _ACEOF
15449 if ac_fn_c_try_compile "$LINENO"
15450 then :
15451 eval "$as_CACHEVAR=yes"
15452 else $as_nop
15453 eval "$as_CACHEVAR=no"
15454 fi
15455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15456 CFLAGS=$ax_check_save_flags
15457 fi
15458 eval ac_res=\$$as_CACHEVAR
15459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15460 printf "%s\n" "$ac_res" >&6; }
15461 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
15462 then :
15463
15464 if test ${CFLAGS+y}
15465 then :
15466
15467 case " $CFLAGS " in #(
15468 *" $flag "*) :
15469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15470 (: CFLAGS already contains $flag) 2>&5
15471 ac_status=$?
15472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15473 test $ac_status = 0; } ;; #(
15474 *) :
15475
15476 as_fn_append CFLAGS " $flag"
15477 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15478 (: CFLAGS="$CFLAGS") 2>&5
15479 ac_status=$?
15480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15481 test $ac_status = 0; }
15482 ;;
15483 esac
15484
15485 else $as_nop
15486
15487 CFLAGS=$flag
15488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15489 (: CFLAGS="$CFLAGS") 2>&5
15490 ac_status=$?
15491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15492 test $ac_status = 0; }
15493
15494 fi
15495
15496 else $as_nop
15497 :
15498 fi
15499
15500 done
15501
15502
15503
15504
15505
15506 for flag in -Wuninitialized; do
15507 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
15508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15509 printf %s "checking whether C compiler accepts $flag... " >&6; }
15510 if eval test \${$as_CACHEVAR+y}
15511 then :
15512 printf %s "(cached) " >&6
15513 else $as_nop
15514
15515 ax_check_save_flags=$CFLAGS
15516 CFLAGS="$CFLAGS $flag"
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15519
15520 int
15521 main (void)
15522 {
15523
15524 ;
15525 return 0;
15526 }
15527 _ACEOF
15528 if ac_fn_c_try_compile "$LINENO"
15529 then :
15530 eval "$as_CACHEVAR=yes"
15531 else $as_nop
15532 eval "$as_CACHEVAR=no"
15533 fi
15534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15535 CFLAGS=$ax_check_save_flags
15536 fi
15537 eval ac_res=\$$as_CACHEVAR
15538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15539 printf "%s\n" "$ac_res" >&6; }
15540 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
15541 then :
15542
15543 if test ${CFLAGS+y}
15544 then :
15545
15546 case " $CFLAGS " in #(
15547 *" $flag "*) :
15548 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15549 (: CFLAGS already contains $flag) 2>&5
15550 ac_status=$?
15551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15552 test $ac_status = 0; } ;; #(
15553 *) :
15554
15555 as_fn_append CFLAGS " $flag"
15556 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15557 (: CFLAGS="$CFLAGS") 2>&5
15558 ac_status=$?
15559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15560 test $ac_status = 0; }
15561 ;;
15562 esac
15563
15564 else $as_nop
15565
15566 CFLAGS=$flag
15567 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15568 (: CFLAGS="$CFLAGS") 2>&5
15569 ac_status=$?
15570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15571 test $ac_status = 0; }
15572
15573 fi
15574
15575 else $as_nop
15576 :
15577 fi
15578
15579 done
15580
15581
15582
15583
15584
15585 for flag in -Wwrite-strings; do
15586 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
15587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15588 printf %s "checking whether C compiler accepts $flag... " >&6; }
15589 if eval test \${$as_CACHEVAR+y}
15590 then :
15591 printf %s "(cached) " >&6
15592 else $as_nop
15593
15594 ax_check_save_flags=$CFLAGS
15595 CFLAGS="$CFLAGS $flag"
15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15598
15599 int
15600 main (void)
15601 {
15602
15603 ;
15604 return 0;
15605 }
15606 _ACEOF
15607 if ac_fn_c_try_compile "$LINENO"
15608 then :
15609 eval "$as_CACHEVAR=yes"
15610 else $as_nop
15611 eval "$as_CACHEVAR=no"
15612 fi
15613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15614 CFLAGS=$ax_check_save_flags
15615 fi
15616 eval ac_res=\$$as_CACHEVAR
15617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15618 printf "%s\n" "$ac_res" >&6; }
15619 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
15620 then :
15621
15622 if test ${CFLAGS+y}
15623 then :
15624
15625 case " $CFLAGS " in #(
15626 *" $flag "*) :
15627 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15628 (: CFLAGS already contains $flag) 2>&5
15629 ac_status=$?
15630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15631 test $ac_status = 0; } ;; #(
15632 *) :
15633
15634 as_fn_append CFLAGS " $flag"
15635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15636 (: CFLAGS="$CFLAGS") 2>&5
15637 ac_status=$?
15638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15639 test $ac_status = 0; }
15640 ;;
15641 esac
15642
15643 else $as_nop
15644
15645 CFLAGS=$flag
15646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15647 (: CFLAGS="$CFLAGS") 2>&5
15648 ac_status=$?
15649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15650 test $ac_status = 0; }
15651
15652 fi
15653
15654 else $as_nop
15655 :
15656 fi
15657
15658 done
15659
15660
15661 fi
15662
15663
15664 # Check whether --enable-efence was given.
15665 if test ${enable_efence+y}
15666 then :
15667 enableval=$enable_efence; efence="$enableval"
15668 else $as_nop
15669 efence="no"
15670 fi
15671
15672
15673 if test "$efence" = "yes"
15674 then :
15675
15676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
15677 printf %s "checking for library containing EF_Print... " >&6; }
15678 if test ${ac_cv_search_EF_Print+y}
15679 then :
15680 printf %s "(cached) " >&6
15681 else $as_nop
15682 ac_func_search_save_LIBS=$LIBS
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h. */
15685
15686 /* Override any GCC internal prototype to avoid an error.
15687 Use char because int might match the return type of a GCC
15688 builtin and then its argument prototype would still apply. */
15689 char EF_Print ();
15690 int
15691 main (void)
15692 {
15693 return EF_Print ();
15694 ;
15695 return 0;
15696 }
15697 _ACEOF
15698 for ac_lib in '' efence
15699 do
15700 if test -z "$ac_lib"; then
15701 ac_res="none required"
15702 else
15703 ac_res=-l$ac_lib
15704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15705 fi
15706 if ac_fn_c_try_link "$LINENO"
15707 then :
15708 ac_cv_search_EF_Print=$ac_res
15709 fi
15710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15711 conftest$ac_exeext
15712 if test ${ac_cv_search_EF_Print+y}
15713 then :
15714 break
15715 fi
15716 done
15717 if test ${ac_cv_search_EF_Print+y}
15718 then :
15719
15720 else $as_nop
15721 ac_cv_search_EF_Print=no
15722 fi
15723 rm conftest.$ac_ext
15724 LIBS=$ac_func_search_save_LIBS
15725 fi
15726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
15727 printf "%s\n" "$ac_cv_search_EF_Print" >&6; }
15728 ac_res=$ac_cv_search_EF_Print
15729 if test "$ac_res" != no
15730 then :
15731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15732
15733 else $as_nop
15734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15735 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15736 as_fn_error $? "Electric Fence 'efence' library not found
15737 See \`config.log' for more details" "$LINENO" 5; }
15738 fi
15739
15740
15741 fi
15742
15743
15744 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15745 if test "x$ac_cv_func_strlcpy" = xyes
15746 then :
15747 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
15748
15749 fi
15750 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
15751 if test "x$ac_cv_func_strlcat" = xyes
15752 then :
15753 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
15754
15755 fi
15756
15757
15758 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
15759
15760 cat >confcache <<\_ACEOF
15761 # This file is a shell script that caches the results of configure
15762 # tests run on this system so they can be shared between configure
15763 # scripts and configure runs, see configure's option --config-cache.
15764 # It is not useful on other systems. If it contains results you don't
15765 # want to keep, you may remove or edit it.
15766 #
15767 # config.status only pays attention to the cache file if you give it
15768 # the --recheck option to rerun configure.
15769 #
15770 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15772 # following values.
15773
15774 _ACEOF
15775
15776 # The following way of writing the cache mishandles newlines in values,
15777 # but we know of no workaround that is simple, portable, and efficient.
15778 # So, we kill variables containing newlines.
15779 # Ultrix sh set writes to stderr and can't be redirected directly,
15780 # and sets the high bit in the cache file unless we assign to the vars.
15781 (
15782 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15783 eval ac_val=\$$ac_var
15784 case $ac_val in #(
15785 *${as_nl}*)
15786 case $ac_var in #(
15787 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15788 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15789 esac
15790 case $ac_var in #(
15791 _ | IFS | as_nl) ;; #(
15792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15793 *) { eval $ac_var=; unset $ac_var;} ;;
15794 esac ;;
15795 esac
15796 done
15797
15798 (set) 2>&1 |
15799 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15800 *${as_nl}ac_space=\ *)
15801 # `set' does not quote correctly, so add quotes: double-quote
15802 # substitution turns \\\\ into \\, and sed turns \\ into \.
15803 sed -n \
15804 "s/'/'\\\\''/g;
15805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15806 ;; #(
15807 *)
15808 # `set' quotes correctly as required by POSIX, so do not add quotes.
15809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15810 ;;
15811 esac |
15812 sort
15813 ) |
15814 sed '
15815 /^ac_cv_env_/b end
15816 t clear
15817 :clear
15818 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15819 t end
15820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15821 :end' >>confcache
15822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15823 if test -w "$cache_file"; then
15824 if test "x$cache_file" != "x/dev/null"; then
15825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15826 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15827 if test ! -f "$cache_file" || test -h "$cache_file"; then
15828 cat confcache >"$cache_file"
15829 else
15830 case $cache_file in #(
15831 */* | ?:*)
15832 mv -f confcache "$cache_file"$$ &&
15833 mv -f "$cache_file"$$ "$cache_file" ;; #(
15834 *)
15835 mv -f confcache "$cache_file" ;;
15836 esac
15837 fi
15838 fi
15839 else
15840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15841 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15842 fi
15843 fi
15844 rm -f confcache
15845
15846 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15847 # Let make expand exec_prefix.
15848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15849
15850 DEFS=-DHAVE_CONFIG_H
15851
15852 ac_libobjs=
15853 ac_ltlibobjs=
15854 U=
15855 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15856 # 1. Remove the extension, and $U if already installed.
15857 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15858 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15859 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15860 # will be set to the directory where LIBOBJS objects are built.
15861 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15862 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15863 done
15864 LIBOBJS=$ac_libobjs
15865
15866 LTLIBOBJS=$ac_ltlibobjs
15867
15868
15869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15870 printf %s "checking that generated files are newer than configure... " >&6; }
15871 if test -n "$am_sleep_pid"; then
15872 # Hide warnings about reused PIDs.
15873 wait $am_sleep_pid 2>/dev/null
15874 fi
15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15876 printf "%s\n" "done" >&6; }
15877 if test -n "$EXEEXT"; then
15878 am__EXEEXT_TRUE=
15879 am__EXEEXT_FALSE='#'
15880 else
15881 am__EXEEXT_TRUE='#'
15882 am__EXEEXT_FALSE=
15883 fi
15884
15885 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15886 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15888 fi
15889 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15890 as_fn_error $? "conditional \"AMDEP\" was never defined.
15891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15892 fi
15893 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15894 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15896 fi
15897
15898 : "${CONFIG_STATUS=./config.status}"
15899 ac_write_fail=0
15900 ac_clean_files_save=$ac_clean_files
15901 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15903 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15904 as_write_fail=0
15905 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15906 #! $SHELL
15907 # Generated by $as_me.
15908 # Run this file to recreate the current configuration.
15909 # Compiler output produced by configure, useful for debugging
15910 # configure, is in config.log if it exists.
15911
15912 debug=false
15913 ac_cs_recheck=false
15914 ac_cs_silent=false
15915
15916 SHELL=\${CONFIG_SHELL-$SHELL}
15917 export SHELL
15918 _ASEOF
15919 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15920 ## -------------------- ##
15921 ## M4sh Initialization. ##
15922 ## -------------------- ##
15923
15924 # Be more Bourne compatible
15925 DUALCASE=1; export DUALCASE # for MKS sh
15926 as_nop=:
15927 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15928 then :
15929 emulate sh
15930 NULLCMD=:
15931 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15932 # is contrary to our usage. Disable this feature.
15933 alias -g '${1+"$@"}'='"$@"'
15934 setopt NO_GLOB_SUBST
15935 else $as_nop
15936 case `(set -o) 2>/dev/null` in #(
15937 *posix*) :
15938 set -o posix ;; #(
15939 *) :
15940 ;;
15941 esac
15942 fi
15943
15944
15945
15946 # Reset variables that may have inherited troublesome values from
15947 # the environment.
15948
15949 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15950 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15951 # side effect of setting IFS to empty, thus disabling word splitting.)
15952 # Quoting is to prevent editors from complaining about space-tab.
15953 as_nl='
15954 '
15955 export as_nl
15956 IFS=" "" $as_nl"
15957
15958 PS1='$ '
15959 PS2='> '
15960 PS4='+ '
15961
15962 # Ensure predictable behavior from utilities with locale-dependent output.
15963 LC_ALL=C
15964 export LC_ALL
15965 LANGUAGE=C
15966 export LANGUAGE
15967
15968 # We cannot yet rely on "unset" to work, but we need these variables
15969 # to be unset--not just set to an empty or harmless value--now, to
15970 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15971 # also avoids known problems related to "unset" and subshell syntax
15972 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15973 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15974 do eval test \${$as_var+y} \
15975 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15976 done
15977
15978 # Ensure that fds 0, 1, and 2 are open.
15979 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15980 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15981 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15982
15983 # The user is always right.
15984 if ${PATH_SEPARATOR+false} :; then
15985 PATH_SEPARATOR=:
15986 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15987 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15988 PATH_SEPARATOR=';'
15989 }
15990 fi
15991
15992
15993 # Find who we are. Look in the path if we contain no directory separator.
15994 as_myself=
15995 case $0 in #((
15996 *[\\/]* ) as_myself=$0 ;;
15997 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
15999 do
16000 IFS=$as_save_IFS
16001 case $as_dir in #(((
16002 '') as_dir=./ ;;
16003 */) ;;
16004 *) as_dir=$as_dir/ ;;
16005 esac
16006 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16007 done
16008 IFS=$as_save_IFS
16009
16010 ;;
16011 esac
16012 # We did not find ourselves, most probably we were run as `sh COMMAND'
16013 # in which case we are not to be found in the path.
16014 if test "x$as_myself" = x; then
16015 as_myself=$0
16016 fi
16017 if test ! -f "$as_myself"; then
16018 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16019 exit 1
16020 fi
16021
16022
16023
16024 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16025 # ----------------------------------------
16026 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16027 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16028 # script with STATUS, using 1 if that was 0.
16029 as_fn_error ()
16030 {
16031 as_status=$1; test $as_status -eq 0 && as_status=1
16032 if test "$4"; then
16033 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16035 fi
16036 printf "%s\n" "$as_me: error: $2" >&2
16037 as_fn_exit $as_status
16038 } # as_fn_error
16039
16040
16041
16042 # as_fn_set_status STATUS
16043 # -----------------------
16044 # Set $? to STATUS, without forking.
16045 as_fn_set_status ()
16046 {
16047 return $1
16048 } # as_fn_set_status
16049
16050 # as_fn_exit STATUS
16051 # -----------------
16052 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16053 as_fn_exit ()
16054 {
16055 set +e
16056 as_fn_set_status $1
16057 exit $1
16058 } # as_fn_exit
16059
16060 # as_fn_unset VAR
16061 # ---------------
16062 # Portably unset VAR.
16063 as_fn_unset ()
16064 {
16065 { eval $1=; unset $1;}
16066 }
16067 as_unset=as_fn_unset
16068
16069 # as_fn_append VAR VALUE
16070 # ----------------------
16071 # Append the text in VALUE to the end of the definition contained in VAR. Take
16072 # advantage of any shell optimizations that allow amortized linear growth over
16073 # repeated appends, instead of the typical quadratic growth present in naive
16074 # implementations.
16075 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16076 then :
16077 eval 'as_fn_append ()
16078 {
16079 eval $1+=\$2
16080 }'
16081 else $as_nop
16082 as_fn_append ()
16083 {
16084 eval $1=\$$1\$2
16085 }
16086 fi # as_fn_append
16087
16088 # as_fn_arith ARG...
16089 # ------------------
16090 # Perform arithmetic evaluation on the ARGs, and store the result in the
16091 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16092 # must be portable across $(()) and expr.
16093 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16094 then :
16095 eval 'as_fn_arith ()
16096 {
16097 as_val=$(( $* ))
16098 }'
16099 else $as_nop
16100 as_fn_arith ()
16101 {
16102 as_val=`expr "$@" || test $? -eq 1`
16103 }
16104 fi # as_fn_arith
16105
16106
16107 if expr a : '\(a\)' >/dev/null 2>&1 &&
16108 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16109 as_expr=expr
16110 else
16111 as_expr=false
16112 fi
16113
16114 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16115 as_basename=basename
16116 else
16117 as_basename=false
16118 fi
16119
16120 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16121 as_dirname=dirname
16122 else
16123 as_dirname=false
16124 fi
16125
16126 as_me=`$as_basename -- "$0" ||
16127 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16128 X"$0" : 'X\(//\)$' \| \
16129 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16130 printf "%s\n" X/"$0" |
16131 sed '/^.*\/\([^/][^/]*\)\/*$/{
16132 s//\1/
16133 q
16134 }
16135 /^X\/\(\/\/\)$/{
16136 s//\1/
16137 q
16138 }
16139 /^X\/\(\/\).*/{
16140 s//\1/
16141 q
16142 }
16143 s/.*/./; q'`
16144
16145 # Avoid depending upon Character Ranges.
16146 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16147 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16148 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16149 as_cr_digits='0123456789'
16150 as_cr_alnum=$as_cr_Letters$as_cr_digits
16151
16152
16153 # Determine whether it's possible to make 'echo' print without a newline.
16154 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16155 # for compatibility with existing Makefiles.
16156 ECHO_C= ECHO_N= ECHO_T=
16157 case `echo -n x` in #(((((
16158 -n*)
16159 case `echo 'xy\c'` in
16160 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16161 xy) ECHO_C='\c';;
16162 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16163 ECHO_T=' ';;
16164 esac;;
16165 *)
16166 ECHO_N='-n';;
16167 esac
16168
16169 # For backward compatibility with old third-party macros, we provide
16170 # the shell variables $as_echo and $as_echo_n. New code should use
16171 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16172 as_echo='printf %s\n'
16173 as_echo_n='printf %s'
16174
16175 rm -f conf$$ conf$$.exe conf$$.file
16176 if test -d conf$$.dir; then
16177 rm -f conf$$.dir/conf$$.file
16178 else
16179 rm -f conf$$.dir
16180 mkdir conf$$.dir 2>/dev/null
16181 fi
16182 if (echo >conf$$.file) 2>/dev/null; then
16183 if ln -s conf$$.file conf$$ 2>/dev/null; then
16184 as_ln_s='ln -s'
16185 # ... but there are two gotchas:
16186 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16187 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16188 # In both cases, we have to default to `cp -pR'.
16189 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16190 as_ln_s='cp -pR'
16191 elif ln conf$$.file conf$$ 2>/dev/null; then
16192 as_ln_s=ln
16193 else
16194 as_ln_s='cp -pR'
16195 fi
16196 else
16197 as_ln_s='cp -pR'
16198 fi
16199 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16200 rmdir conf$$.dir 2>/dev/null
16201
16202
16203 # as_fn_mkdir_p
16204 # -------------
16205 # Create "$as_dir" as a directory, including parents if necessary.
16206 as_fn_mkdir_p ()
16207 {
16208
16209 case $as_dir in #(
16210 -*) as_dir=./$as_dir;;
16211 esac
16212 test -d "$as_dir" || eval $as_mkdir_p || {
16213 as_dirs=
16214 while :; do
16215 case $as_dir in #(
16216 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16217 *) as_qdir=$as_dir;;
16218 esac
16219 as_dirs="'$as_qdir' $as_dirs"
16220 as_dir=`$as_dirname -- "$as_dir" ||
16221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16222 X"$as_dir" : 'X\(//\)[^/]' \| \
16223 X"$as_dir" : 'X\(//\)$' \| \
16224 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16225 printf "%s\n" X"$as_dir" |
16226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16227 s//\1/
16228 q
16229 }
16230 /^X\(\/\/\)[^/].*/{
16231 s//\1/
16232 q
16233 }
16234 /^X\(\/\/\)$/{
16235 s//\1/
16236 q
16237 }
16238 /^X\(\/\).*/{
16239 s//\1/
16240 q
16241 }
16242 s/.*/./; q'`
16243 test -d "$as_dir" && break
16244 done
16245 test -z "$as_dirs" || eval "mkdir $as_dirs"
16246 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16247
16248
16249 } # as_fn_mkdir_p
16250 if mkdir -p . 2>/dev/null; then
16251 as_mkdir_p='mkdir -p "$as_dir"'
16252 else
16253 test -d ./-p && rmdir ./-p
16254 as_mkdir_p=false
16255 fi
16256
16257
16258 # as_fn_executable_p FILE
16259 # -----------------------
16260 # Test if FILE is an executable regular file.
16261 as_fn_executable_p ()
16262 {
16263 test -f "$1" && test -x "$1"
16264 } # as_fn_executable_p
16265 as_test_x='test -x'
16266 as_executable_p=as_fn_executable_p
16267
16268 # Sed expression to map a string onto a valid CPP name.
16269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16270
16271 # Sed expression to map a string onto a valid variable name.
16272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16273
16274
16275 exec 6>&1
16276 ## ----------------------------------- ##
16277 ## Main body of $CONFIG_STATUS script. ##
16278 ## ----------------------------------- ##
16279 _ASEOF
16280 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16281
16282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16283 # Save the log message, to keep $0 and so on meaningful, and to
16284 # report actual input values of CONFIG_FILES etc. instead of their
16285 # values after options handling.
16286 ac_log="
16287 This file was extended by hopm $as_me 1.1.11, which was
16288 generated by GNU Autoconf 2.71. Invocation command line was
16289
16290 CONFIG_FILES = $CONFIG_FILES
16291 CONFIG_HEADERS = $CONFIG_HEADERS
16292 CONFIG_LINKS = $CONFIG_LINKS
16293 CONFIG_COMMANDS = $CONFIG_COMMANDS
16294 $ $0 $@
16295
16296 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16297 "
16298
16299 _ACEOF
16300
16301 case $ac_config_files in *"
16302 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16303 esac
16304
16305 case $ac_config_headers in *"
16306 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16307 esac
16308
16309
16310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16311 # Files that config.status was made for.
16312 config_files="$ac_config_files"
16313 config_headers="$ac_config_headers"
16314 config_commands="$ac_config_commands"
16315
16316 _ACEOF
16317
16318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16319 ac_cs_usage="\
16320 \`$as_me' instantiates files and other configuration actions
16321 from templates according to the current configuration. Unless the files
16322 and actions are specified as TAGs, all are instantiated by default.
16323
16324 Usage: $0 [OPTION]... [TAG]...
16325
16326 -h, --help print this help, then exit
16327 -V, --version print version number and configuration settings, then exit
16328 --config print configuration, then exit
16329 -q, --quiet, --silent
16330 do not print progress messages
16331 -d, --debug don't remove temporary files
16332 --recheck update $as_me by reconfiguring in the same conditions
16333 --file=FILE[:TEMPLATE]
16334 instantiate the configuration file FILE
16335 --header=FILE[:TEMPLATE]
16336 instantiate the configuration header FILE
16337
16338 Configuration files:
16339 $config_files
16340
16341 Configuration headers:
16342 $config_headers
16343
16344 Configuration commands:
16345 $config_commands
16346
16347 Report bugs to <bugs@ircd-hybrid.org>."
16348
16349 _ACEOF
16350 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16351 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 ac_cs_config='$ac_cs_config_escaped'
16354 ac_cs_version="\\
16355 hopm config.status 1.1.11
16356 configured by $0, generated by GNU Autoconf 2.71,
16357 with options \\"\$ac_cs_config\\"
16358
16359 Copyright (C) 2021 Free Software Foundation, Inc.
16360 This config.status script is free software; the Free Software Foundation
16361 gives unlimited permission to copy, distribute and modify it."
16362
16363 ac_pwd='$ac_pwd'
16364 srcdir='$srcdir'
16365 INSTALL='$INSTALL'
16366 MKDIR_P='$MKDIR_P'
16367 AWK='$AWK'
16368 test -n "\$AWK" || AWK=awk
16369 _ACEOF
16370
16371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16372 # The default lists apply if the user does not specify any file.
16373 ac_need_defaults=:
16374 while test $# != 0
16375 do
16376 case $1 in
16377 --*=?*)
16378 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16379 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16380 ac_shift=:
16381 ;;
16382 --*=)
16383 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16384 ac_optarg=
16385 ac_shift=:
16386 ;;
16387 *)
16388 ac_option=$1
16389 ac_optarg=$2
16390 ac_shift=shift
16391 ;;
16392 esac
16393
16394 case $ac_option in
16395 # Handling of the options.
16396 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16397 ac_cs_recheck=: ;;
16398 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16399 printf "%s\n" "$ac_cs_version"; exit ;;
16400 --config | --confi | --conf | --con | --co | --c )
16401 printf "%s\n" "$ac_cs_config"; exit ;;
16402 --debug | --debu | --deb | --de | --d | -d )
16403 debug=: ;;
16404 --file | --fil | --fi | --f )
16405 $ac_shift
16406 case $ac_optarg in
16407 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16408 '') as_fn_error $? "missing file argument" ;;
16409 esac
16410 as_fn_append CONFIG_FILES " '$ac_optarg'"
16411 ac_need_defaults=false;;
16412 --header | --heade | --head | --hea )
16413 $ac_shift
16414 case $ac_optarg in
16415 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16416 esac
16417 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16418 ac_need_defaults=false;;
16419 --he | --h)
16420 # Conflict between --help and --header
16421 as_fn_error $? "ambiguous option: \`$1'
16422 Try \`$0 --help' for more information.";;
16423 --help | --hel | -h )
16424 printf "%s\n" "$ac_cs_usage"; exit ;;
16425 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16426 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16427 ac_cs_silent=: ;;
16428
16429 # This is an error.
16430 -*) as_fn_error $? "unrecognized option: \`$1'
16431 Try \`$0 --help' for more information." ;;
16432
16433 *) as_fn_append ac_config_targets " $1"
16434 ac_need_defaults=false ;;
16435
16436 esac
16437 shift
16438 done
16439
16440 ac_configure_extra_args=
16441
16442 if $ac_cs_silent; then
16443 exec 6>/dev/null
16444 ac_configure_extra_args="$ac_configure_extra_args --silent"
16445 fi
16446
16447 _ACEOF
16448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16449 if \$ac_cs_recheck; then
16450 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16451 shift
16452 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16453 CONFIG_SHELL='$SHELL'
16454 export CONFIG_SHELL
16455 exec "\$@"
16456 fi
16457
16458 _ACEOF
16459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16460 exec 5>>config.log
16461 {
16462 echo
16463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16464 ## Running $as_me. ##
16465 _ASBOX
16466 printf "%s\n" "$ac_log"
16467 } >&5
16468
16469 _ACEOF
16470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16471 #
16472 # INIT-COMMANDS
16473 #
16474 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16475
16476
16477 # The HP-UX ksh and POSIX shell print the target directory to stdout
16478 # if CDPATH is set.
16479 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16480
16481 sed_quote_subst='$sed_quote_subst'
16482 double_quote_subst='$double_quote_subst'
16483 delay_variable_subst='$delay_variable_subst'
16484 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16485 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16486 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16487 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16488 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16489 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16490 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16491 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16492 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16493 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16494 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16495 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16496 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16497 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16498 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16499 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16500 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16501 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16502 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16503 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16504 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16505 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16506 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16507 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16508 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16509 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16510 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16511 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16512 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16513 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16514 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16515 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16516 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16517 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16518 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16519 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16520 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16521 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16522 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16523 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16524 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16525 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16526 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16527 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16528 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16529 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16530 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16531 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16532 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16533 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16534 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16535 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16536 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16537 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16538 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16539 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16540 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16541 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16542 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16543 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16544 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"`'
16545 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16546 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16547 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16548 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16549 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16550 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16551 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16552 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16553 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16554 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16555 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16556 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16557 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16558 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16559 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16560 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16561 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16562 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16563 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16564 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16565 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16566 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16567 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16568 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16569 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16570 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16571 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16572 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16573 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16574 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16575 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16576 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16577 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16578 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16579 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16580 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16581 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16582 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16583 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16584 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16585 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16586 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16587 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16588 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16589 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16590 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16591 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16592 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16593 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16594 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16595 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16596 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16597 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16598 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16599 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16600 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16601 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16602 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16603 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16604 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16605 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16606 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16607 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16608 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16609 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16610 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16611 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16612 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16613 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16614 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16615 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16616 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16617 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16618 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16619 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16620 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16621
16622 LTCC='$LTCC'
16623 LTCFLAGS='$LTCFLAGS'
16624 compiler='$compiler_DEFAULT'
16625
16626 # A function that is used when there is no print builtin or printf.
16627 func_fallback_echo ()
16628 {
16629 eval 'cat <<_LTECHO_EOF
16630 \$1
16631 _LTECHO_EOF'
16632 }
16633
16634 # Quote evaled strings.
16635 for var in SHELL \
16636 ECHO \
16637 PATH_SEPARATOR \
16638 SED \
16639 GREP \
16640 EGREP \
16641 FGREP \
16642 LD \
16643 NM \
16644 LN_S \
16645 lt_SP2NL \
16646 lt_NL2SP \
16647 reload_flag \
16648 FILECMD \
16649 OBJDUMP \
16650 deplibs_check_method \
16651 file_magic_cmd \
16652 file_magic_glob \
16653 want_nocaseglob \
16654 DLLTOOL \
16655 sharedlib_from_linklib_cmd \
16656 AR \
16657 archiver_list_spec \
16658 STRIP \
16659 RANLIB \
16660 CC \
16661 CFLAGS \
16662 compiler \
16663 lt_cv_sys_global_symbol_pipe \
16664 lt_cv_sys_global_symbol_to_cdecl \
16665 lt_cv_sys_global_symbol_to_import \
16666 lt_cv_sys_global_symbol_to_c_name_address \
16667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16668 lt_cv_nm_interface \
16669 nm_file_list_spec \
16670 lt_cv_truncate_bin \
16671 lt_prog_compiler_no_builtin_flag \
16672 lt_prog_compiler_pic \
16673 lt_prog_compiler_wl \
16674 lt_prog_compiler_static \
16675 lt_cv_prog_compiler_c_o \
16676 need_locks \
16677 MANIFEST_TOOL \
16678 DSYMUTIL \
16679 NMEDIT \
16680 LIPO \
16681 OTOOL \
16682 OTOOL64 \
16683 shrext_cmds \
16684 export_dynamic_flag_spec \
16685 whole_archive_flag_spec \
16686 compiler_needs_object \
16687 with_gnu_ld \
16688 allow_undefined_flag \
16689 no_undefined_flag \
16690 hardcode_libdir_flag_spec \
16691 hardcode_libdir_separator \
16692 exclude_expsyms \
16693 include_expsyms \
16694 file_list_spec \
16695 variables_saved_for_relink \
16696 libname_spec \
16697 library_names_spec \
16698 soname_spec \
16699 install_override_mode \
16700 finish_eval \
16701 old_striplib \
16702 striplib; do
16703 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16704 *[\\\\\\\`\\"\\\$]*)
16705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16706 ;;
16707 *)
16708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16709 ;;
16710 esac
16711 done
16712
16713 # Double-quote double-evaled strings.
16714 for var in reload_cmds \
16715 old_postinstall_cmds \
16716 old_postuninstall_cmds \
16717 old_archive_cmds \
16718 extract_expsyms_cmds \
16719 old_archive_from_new_cmds \
16720 old_archive_from_expsyms_cmds \
16721 archive_cmds \
16722 archive_expsym_cmds \
16723 module_cmds \
16724 module_expsym_cmds \
16725 export_symbols_cmds \
16726 prelink_cmds \
16727 postlink_cmds \
16728 postinstall_cmds \
16729 postuninstall_cmds \
16730 finish_cmds \
16731 sys_lib_search_path_spec \
16732 configure_time_dlsearch_path \
16733 configure_time_lt_sys_library_path; do
16734 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16735 *[\\\\\\\`\\"\\\$]*)
16736 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16737 ;;
16738 *)
16739 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16740 ;;
16741 esac
16742 done
16743
16744 ac_aux_dir='$ac_aux_dir'
16745
16746 # See if we are running on zsh, and set the options that allow our
16747 # commands through without removal of \ escapes INIT.
16748 if test -n "\${ZSH_VERSION+set}"; then
16749 setopt NO_GLOB_SUBST
16750 fi
16751
16752
16753 PACKAGE='$PACKAGE'
16754 VERSION='$VERSION'
16755 RM='$RM'
16756 ofile='$ofile'
16757
16758
16759
16760
16761 _ACEOF
16762
16763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16764
16765 # Handling of arguments.
16766 for ac_config_target in $ac_config_targets
16767 do
16768 case $ac_config_target in
16769 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
16770 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16771 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16772 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16773 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16774 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16775 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
16776 "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
16777
16778 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16779 esac
16780 done
16781
16782
16783 # If the user did not use the arguments to specify the items to instantiate,
16784 # then the envvar interface is used. Set only those that are not.
16785 # We use the long form for the default assignment because of an extremely
16786 # bizarre bug on SunOS 4.1.3.
16787 if $ac_need_defaults; then
16788 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16789 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16790 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16791 fi
16792
16793 # Have a temporary directory for convenience. Make it in the build tree
16794 # simply because there is no reason against having it here, and in addition,
16795 # creating and moving files from /tmp can sometimes cause problems.
16796 # Hook for its removal unless debugging.
16797 # Note that there is a small window in which the directory will not be cleaned:
16798 # after its creation but before its name has been assigned to `$tmp'.
16799 $debug ||
16800 {
16801 tmp= ac_tmp=
16802 trap 'exit_status=$?
16803 : "${ac_tmp:=$tmp}"
16804 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16805 ' 0
16806 trap 'as_fn_exit 1' 1 2 13 15
16807 }
16808 # Create a (secure) tmp directory for tmp files.
16809
16810 {
16811 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16812 test -d "$tmp"
16813 } ||
16814 {
16815 tmp=./conf$$-$RANDOM
16816 (umask 077 && mkdir "$tmp")
16817 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16818 ac_tmp=$tmp
16819
16820 # Set up the scripts for CONFIG_FILES section.
16821 # No need to generate them if there are no CONFIG_FILES.
16822 # This happens for instance with `./config.status config.h'.
16823 if test -n "$CONFIG_FILES"; then
16824
16825
16826 ac_cr=`echo X | tr X '\015'`
16827 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16828 # But we know of no other shell where ac_cr would be empty at this
16829 # point, so we can use a bashism as a fallback.
16830 if test "x$ac_cr" = x; then
16831 eval ac_cr=\$\'\\r\'
16832 fi
16833 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16834 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16835 ac_cs_awk_cr='\\r'
16836 else
16837 ac_cs_awk_cr=$ac_cr
16838 fi
16839
16840 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16841 _ACEOF
16842
16843
16844 {
16845 echo "cat >conf$$subs.awk <<_ACEOF" &&
16846 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16847 echo "_ACEOF"
16848 } >conf$$subs.sh ||
16849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16850 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16851 ac_delim='%!_!# '
16852 for ac_last_try in false false false false false :; do
16853 . ./conf$$subs.sh ||
16854 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16855
16856 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16857 if test $ac_delim_n = $ac_delim_num; then
16858 break
16859 elif $ac_last_try; then
16860 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16861 else
16862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16863 fi
16864 done
16865 rm -f conf$$subs.sh
16866
16867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16868 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16869 _ACEOF
16870 sed -n '
16871 h
16872 s/^/S["/; s/!.*/"]=/
16873 p
16874 g
16875 s/^[^!]*!//
16876 :repl
16877 t repl
16878 s/'"$ac_delim"'$//
16879 t delim
16880 :nl
16881 h
16882 s/\(.\{148\}\)..*/\1/
16883 t more1
16884 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16885 p
16886 n
16887 b repl
16888 :more1
16889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16890 p
16891 g
16892 s/.\{148\}//
16893 t nl
16894 :delim
16895 h
16896 s/\(.\{148\}\)..*/\1/
16897 t more2
16898 s/["\\]/\\&/g; s/^/"/; s/$/"/
16899 p
16900 b
16901 :more2
16902 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16903 p
16904 g
16905 s/.\{148\}//
16906 t delim
16907 ' <conf$$subs.awk | sed '
16908 /^[^""]/{
16909 N
16910 s/\n//
16911 }
16912 ' >>$CONFIG_STATUS || ac_write_fail=1
16913 rm -f conf$$subs.awk
16914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16915 _ACAWK
16916 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16917 for (key in S) S_is_set[key] = 1
16918 FS = "\a"
16919
16920 }
16921 {
16922 line = $ 0
16923 nfields = split(line, field, "@")
16924 substed = 0
16925 len = length(field[1])
16926 for (i = 2; i < nfields; i++) {
16927 key = field[i]
16928 keylen = length(key)
16929 if (S_is_set[key]) {
16930 value = S[key]
16931 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16932 len += length(value) + length(field[++i])
16933 substed = 1
16934 } else
16935 len += 1 + keylen
16936 }
16937
16938 print line
16939 }
16940
16941 _ACAWK
16942 _ACEOF
16943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16944 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16945 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16946 else
16947 cat
16948 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16949 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16950 _ACEOF
16951
16952 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16953 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16954 # trailing colons and then remove the whole line if VPATH becomes empty
16955 # (actually we leave an empty line to preserve line numbers).
16956 if test "x$srcdir" = x.; then
16957 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16958 h
16959 s///
16960 s/^/:/
16961 s/[ ]*$/:/
16962 s/:\$(srcdir):/:/g
16963 s/:\${srcdir}:/:/g
16964 s/:@srcdir@:/:/g
16965 s/^:*//
16966 s/:*$//
16967 x
16968 s/\(=[ ]*\).*/\1/
16969 G
16970 s/\n//
16971 s/^[^=]*=[ ]*$//
16972 }'
16973 fi
16974
16975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16976 fi # test -n "$CONFIG_FILES"
16977
16978 # Set up the scripts for CONFIG_HEADERS section.
16979 # No need to generate them if there are no CONFIG_HEADERS.
16980 # This happens for instance with `./config.status Makefile'.
16981 if test -n "$CONFIG_HEADERS"; then
16982 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16983 BEGIN {
16984 _ACEOF
16985
16986 # Transform confdefs.h into an awk script `defines.awk', embedded as
16987 # here-document in config.status, that substitutes the proper values into
16988 # config.h.in to produce config.h.
16989
16990 # Create a delimiter string that does not exist in confdefs.h, to ease
16991 # handling of long lines.
16992 ac_delim='%!_!# '
16993 for ac_last_try in false false :; do
16994 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16995 if test -z "$ac_tt"; then
16996 break
16997 elif $ac_last_try; then
16998 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16999 else
17000 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17001 fi
17002 done
17003
17004 # For the awk script, D is an array of macro values keyed by name,
17005 # likewise P contains macro parameters if any. Preserve backslash
17006 # newline sequences.
17007
17008 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17009 sed -n '
17010 s/.\{148\}/&'"$ac_delim"'/g
17011 t rset
17012 :rset
17013 s/^[ ]*#[ ]*define[ ][ ]*/ /
17014 t def
17015 d
17016 :def
17017 s/\\$//
17018 t bsnl
17019 s/["\\]/\\&/g
17020 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17021 D["\1"]=" \3"/p
17022 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17023 d
17024 :bsnl
17025 s/["\\]/\\&/g
17026 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17027 D["\1"]=" \3\\\\\\n"\\/p
17028 t cont
17029 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17030 t cont
17031 d
17032 :cont
17033 n
17034 s/.\{148\}/&'"$ac_delim"'/g
17035 t clear
17036 :clear
17037 s/\\$//
17038 t bsnlc
17039 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17040 d
17041 :bsnlc
17042 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17043 b cont
17044 ' <confdefs.h | sed '
17045 s/'"$ac_delim"'/"\\\
17046 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17047
17048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17049 for (key in D) D_is_set[key] = 1
17050 FS = "\a"
17051 }
17052 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17053 line = \$ 0
17054 split(line, arg, " ")
17055 if (arg[1] == "#") {
17056 defundef = arg[2]
17057 mac1 = arg[3]
17058 } else {
17059 defundef = substr(arg[1], 2)
17060 mac1 = arg[2]
17061 }
17062 split(mac1, mac2, "(") #)
17063 macro = mac2[1]
17064 prefix = substr(line, 1, index(line, defundef) - 1)
17065 if (D_is_set[macro]) {
17066 # Preserve the white space surrounding the "#".
17067 print prefix "define", macro P[macro] D[macro]
17068 next
17069 } else {
17070 # Replace #undef with comments. This is necessary, for example,
17071 # in the case of _POSIX_SOURCE, which is predefined and required
17072 # on some systems where configure will not decide to define it.
17073 if (defundef == "undef") {
17074 print "/*", prefix defundef, macro, "*/"
17075 next
17076 }
17077 }
17078 }
17079 { print }
17080 _ACAWK
17081 _ACEOF
17082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17083 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17084 fi # test -n "$CONFIG_HEADERS"
17085
17086
17087 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17088 shift
17089 for ac_tag
17090 do
17091 case $ac_tag in
17092 :[FHLC]) ac_mode=$ac_tag; continue;;
17093 esac
17094 case $ac_mode$ac_tag in
17095 :[FHL]*:*);;
17096 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17097 :[FH]-) ac_tag=-:-;;
17098 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17099 esac
17100 ac_save_IFS=$IFS
17101 IFS=:
17102 set x $ac_tag
17103 IFS=$ac_save_IFS
17104 shift
17105 ac_file=$1
17106 shift
17107
17108 case $ac_mode in
17109 :L) ac_source=$1;;
17110 :[FH])
17111 ac_file_inputs=
17112 for ac_f
17113 do
17114 case $ac_f in
17115 -) ac_f="$ac_tmp/stdin";;
17116 *) # Look for the file first in the build tree, then in the source tree
17117 # (if the path is not absolute). The absolute path cannot be DOS-style,
17118 # because $ac_f cannot contain `:'.
17119 test -f "$ac_f" ||
17120 case $ac_f in
17121 [\\/$]*) false;;
17122 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17123 esac ||
17124 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17125 esac
17126 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17127 as_fn_append ac_file_inputs " '$ac_f'"
17128 done
17129
17130 # Let's still pretend it is `configure' which instantiates (i.e., don't
17131 # use $as_me), people would be surprised to read:
17132 # /* config.h. Generated by config.status. */
17133 configure_input='Generated from '`
17134 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17135 `' by configure.'
17136 if test x"$ac_file" != x-; then
17137 configure_input="$ac_file. $configure_input"
17138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17139 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17140 fi
17141 # Neutralize special characters interpreted by sed in replacement strings.
17142 case $configure_input in #(
17143 *\&* | *\|* | *\\* )
17144 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17145 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17146 *) ac_sed_conf_input=$configure_input;;
17147 esac
17148
17149 case $ac_tag in
17150 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17152 esac
17153 ;;
17154 esac
17155
17156 ac_dir=`$as_dirname -- "$ac_file" ||
17157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17158 X"$ac_file" : 'X\(//\)[^/]' \| \
17159 X"$ac_file" : 'X\(//\)$' \| \
17160 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17161 printf "%s\n" X"$ac_file" |
17162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17163 s//\1/
17164 q
17165 }
17166 /^X\(\/\/\)[^/].*/{
17167 s//\1/
17168 q
17169 }
17170 /^X\(\/\/\)$/{
17171 s//\1/
17172 q
17173 }
17174 /^X\(\/\).*/{
17175 s//\1/
17176 q
17177 }
17178 s/.*/./; q'`
17179 as_dir="$ac_dir"; as_fn_mkdir_p
17180 ac_builddir=.
17181
17182 case "$ac_dir" in
17183 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17184 *)
17185 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17186 # A ".." for each directory in $ac_dir_suffix.
17187 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17188 case $ac_top_builddir_sub in
17189 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17190 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17191 esac ;;
17192 esac
17193 ac_abs_top_builddir=$ac_pwd
17194 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17195 # for backward compatibility:
17196 ac_top_builddir=$ac_top_build_prefix
17197
17198 case $srcdir in
17199 .) # We are building in place.
17200 ac_srcdir=.
17201 ac_top_srcdir=$ac_top_builddir_sub
17202 ac_abs_top_srcdir=$ac_pwd ;;
17203 [\\/]* | ?:[\\/]* ) # Absolute name.
17204 ac_srcdir=$srcdir$ac_dir_suffix;
17205 ac_top_srcdir=$srcdir
17206 ac_abs_top_srcdir=$srcdir ;;
17207 *) # Relative name.
17208 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17209 ac_top_srcdir=$ac_top_build_prefix$srcdir
17210 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17211 esac
17212 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17213
17214
17215 case $ac_mode in
17216 :F)
17217 #
17218 # CONFIG_FILE
17219 #
17220
17221 case $INSTALL in
17222 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17223 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17224 esac
17225 ac_MKDIR_P=$MKDIR_P
17226 case $MKDIR_P in
17227 [\\/$]* | ?:[\\/]* ) ;;
17228 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17229 esac
17230 _ACEOF
17231
17232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17233 # If the template does not know about datarootdir, expand it.
17234 # FIXME: This hack should be removed a few years after 2.60.
17235 ac_datarootdir_hack=; ac_datarootdir_seen=
17236 ac_sed_dataroot='
17237 /datarootdir/ {
17238 p
17239 q
17240 }
17241 /@datadir@/p
17242 /@docdir@/p
17243 /@infodir@/p
17244 /@localedir@/p
17245 /@mandir@/p'
17246 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17247 *datarootdir*) ac_datarootdir_seen=yes;;
17248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17250 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17251 _ACEOF
17252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17253 ac_datarootdir_hack='
17254 s&@datadir@&$datadir&g
17255 s&@docdir@&$docdir&g
17256 s&@infodir@&$infodir&g
17257 s&@localedir@&$localedir&g
17258 s&@mandir@&$mandir&g
17259 s&\\\${datarootdir}&$datarootdir&g' ;;
17260 esac
17261 _ACEOF
17262
17263 # Neutralize VPATH when `$srcdir' = `.'.
17264 # Shell code in configure.ac might set extrasub.
17265 # FIXME: do we really want to maintain this feature?
17266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17267 ac_sed_extra="$ac_vpsub
17268 $extrasub
17269 _ACEOF
17270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17271 :t
17272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17273 s|@configure_input@|$ac_sed_conf_input|;t t
17274 s&@top_builddir@&$ac_top_builddir_sub&;t t
17275 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17276 s&@srcdir@&$ac_srcdir&;t t
17277 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17278 s&@top_srcdir@&$ac_top_srcdir&;t t
17279 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17280 s&@builddir@&$ac_builddir&;t t
17281 s&@abs_builddir@&$ac_abs_builddir&;t t
17282 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17283 s&@INSTALL@&$ac_INSTALL&;t t
17284 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17285 $ac_datarootdir_hack
17286 "
17287 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17288 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17289
17290 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17291 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17292 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17293 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17295 which seems to be undefined. Please make sure it is defined" >&5
17296 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17297 which seems to be undefined. Please make sure it is defined" >&2;}
17298
17299 rm -f "$ac_tmp/stdin"
17300 case $ac_file in
17301 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17302 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17303 esac \
17304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17305 ;;
17306 :H)
17307 #
17308 # CONFIG_HEADER
17309 #
17310 if test x"$ac_file" != x-; then
17311 {
17312 printf "%s\n" "/* $configure_input */" >&1 \
17313 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17314 } >"$ac_tmp/config.h" \
17315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17316 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17318 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17319 else
17320 rm -f "$ac_file"
17321 mv "$ac_tmp/config.h" "$ac_file" \
17322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17323 fi
17324 else
17325 printf "%s\n" "/* $configure_input */" >&1 \
17326 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17327 || as_fn_error $? "could not create -" "$LINENO" 5
17328 fi
17329 # Compute "$ac_file"'s index in $config_headers.
17330 _am_arg="$ac_file"
17331 _am_stamp_count=1
17332 for _am_header in $config_headers :; do
17333 case $_am_header in
17334 $_am_arg | $_am_arg:* )
17335 break ;;
17336 * )
17337 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17338 esac
17339 done
17340 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17341 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17342 X"$_am_arg" : 'X\(//\)[^/]' \| \
17343 X"$_am_arg" : 'X\(//\)$' \| \
17344 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17345 printf "%s\n" X"$_am_arg" |
17346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17347 s//\1/
17348 q
17349 }
17350 /^X\(\/\/\)[^/].*/{
17351 s//\1/
17352 q
17353 }
17354 /^X\(\/\/\)$/{
17355 s//\1/
17356 q
17357 }
17358 /^X\(\/\).*/{
17359 s//\1/
17360 q
17361 }
17362 s/.*/./; q'`/stamp-h$_am_stamp_count
17363 ;;
17364
17365 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17366 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17367 ;;
17368 esac
17369
17370
17371 case $ac_file$ac_mode in
17372 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17373 # Older Autoconf quotes --file arguments for eval, but not when files
17374 # are listed without --file. Let's play safe and only enable the eval
17375 # if we detect the quoting.
17376 # TODO: see whether this extra hack can be removed once we start
17377 # requiring Autoconf 2.70 or later.
17378 case $CONFIG_FILES in #(
17379 *\'*) :
17380 eval set x "$CONFIG_FILES" ;; #(
17381 *) :
17382 set x $CONFIG_FILES ;; #(
17383 *) :
17384 ;;
17385 esac
17386 shift
17387 # Used to flag and report bootstrapping failures.
17388 am_rc=0
17389 for am_mf
17390 do
17391 # Strip MF so we end up with the name of the file.
17392 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17393 # Check whether this is an Automake generated Makefile which includes
17394 # dependency-tracking related rules and includes.
17395 # Grep'ing the whole file directly is not great: AIX grep has a line
17396 # limit of 2048, but all sed's we know have understand at least 4000.
17397 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17398 || continue
17399 am_dirpart=`$as_dirname -- "$am_mf" ||
17400 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17401 X"$am_mf" : 'X\(//\)[^/]' \| \
17402 X"$am_mf" : 'X\(//\)$' \| \
17403 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17404 printf "%s\n" X"$am_mf" |
17405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17406 s//\1/
17407 q
17408 }
17409 /^X\(\/\/\)[^/].*/{
17410 s//\1/
17411 q
17412 }
17413 /^X\(\/\/\)$/{
17414 s//\1/
17415 q
17416 }
17417 /^X\(\/\).*/{
17418 s//\1/
17419 q
17420 }
17421 s/.*/./; q'`
17422 am_filepart=`$as_basename -- "$am_mf" ||
17423 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17424 X"$am_mf" : 'X\(//\)$' \| \
17425 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17426 printf "%s\n" X/"$am_mf" |
17427 sed '/^.*\/\([^/][^/]*\)\/*$/{
17428 s//\1/
17429 q
17430 }
17431 /^X\/\(\/\/\)$/{
17432 s//\1/
17433 q
17434 }
17435 /^X\/\(\/\).*/{
17436 s//\1/
17437 q
17438 }
17439 s/.*/./; q'`
17440 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17441 && sed -e '/# am--include-marker/d' "$am_filepart" \
17442 | $MAKE -f - am--depfiles" >&5
17443 (cd "$am_dirpart" \
17444 && sed -e '/# am--include-marker/d' "$am_filepart" \
17445 | $MAKE -f - am--depfiles) >&5 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } || am_rc=$?
17449 done
17450 if test $am_rc -ne 0; then
17451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17452 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17453 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17454 for automatic dependency tracking. If GNU make was not used, consider
17455 re-running the configure script with MAKE=\"gmake\" (or whatever is
17456 necessary). You can also try re-running configure with the
17457 '--disable-dependency-tracking' option to at least be able to build
17458 the package (albeit without support for automatic dependency tracking).
17459 See \`config.log' for more details" "$LINENO" 5; }
17460 fi
17461 { am_dirpart=; unset am_dirpart;}
17462 { am_filepart=; unset am_filepart;}
17463 { am_mf=; unset am_mf;}
17464 { am_rc=; unset am_rc;}
17465 rm -f conftest-deps.mk
17466 }
17467 ;;
17468 "libtool":C)
17469
17470 # See if we are running on zsh, and set the options that allow our
17471 # commands through without removal of \ escapes.
17472 if test -n "${ZSH_VERSION+set}"; then
17473 setopt NO_GLOB_SUBST
17474 fi
17475
17476 cfgfile=${ofile}T
17477 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17478 $RM "$cfgfile"
17479
17480 cat <<_LT_EOF >> "$cfgfile"
17481 #! $SHELL
17482 # Generated automatically by $as_me ($PACKAGE) $VERSION
17483 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17484 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17485
17486 # Provide generalized library-building support services.
17487 # Written by Gordon Matzigkeit, 1996
17488
17489 # Copyright (C) 2014 Free Software Foundation, Inc.
17490 # This is free software; see the source for copying conditions. There is NO
17491 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17492
17493 # GNU Libtool is free software; you can redistribute it and/or modify
17494 # it under the terms of the GNU General Public License as published by
17495 # the Free Software Foundation; either version 2 of of the License, or
17496 # (at your option) any later version.
17497 #
17498 # As a special exception to the GNU General Public License, if you
17499 # distribute this file as part of a program or library that is built
17500 # using GNU Libtool, you may include this file under the same
17501 # distribution terms that you use for the rest of that program.
17502 #
17503 # GNU Libtool is distributed in the hope that it will be useful, but
17504 # WITHOUT ANY WARRANTY; without even the implied warranty of
17505 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17506 # GNU General Public License for more details.
17507 #
17508 # You should have received a copy of the GNU General Public License
17509 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17510
17511
17512 # The names of the tagged configurations supported by this script.
17513 available_tags=''
17514
17515 # Configured defaults for sys_lib_dlsearch_path munging.
17516 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17517
17518 # ### BEGIN LIBTOOL CONFIG
17519
17520 # Which release of libtool.m4 was used?
17521 macro_version=$macro_version
17522 macro_revision=$macro_revision
17523
17524 # Whether or not to build shared libraries.
17525 build_libtool_libs=$enable_shared
17526
17527 # Whether or not to build static libraries.
17528 build_old_libs=$enable_static
17529
17530 # What type of objects to build.
17531 pic_mode=$pic_mode
17532
17533 # Whether or not to optimize for fast installation.
17534 fast_install=$enable_fast_install
17535
17536 # Shared archive member basename,for filename based shared library versioning on AIX.
17537 shared_archive_member_spec=$shared_archive_member_spec
17538
17539 # Shell to use when invoking shell scripts.
17540 SHELL=$lt_SHELL
17541
17542 # An echo program that protects backslashes.
17543 ECHO=$lt_ECHO
17544
17545 # The PATH separator for the build system.
17546 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17547
17548 # The host system.
17549 host_alias=$host_alias
17550 host=$host
17551 host_os=$host_os
17552
17553 # The build system.
17554 build_alias=$build_alias
17555 build=$build
17556 build_os=$build_os
17557
17558 # A sed program that does not truncate output.
17559 SED=$lt_SED
17560
17561 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17562 Xsed="\$SED -e 1s/^X//"
17563
17564 # A grep program that handles long lines.
17565 GREP=$lt_GREP
17566
17567 # An ERE matcher.
17568 EGREP=$lt_EGREP
17569
17570 # A literal string matcher.
17571 FGREP=$lt_FGREP
17572
17573 # A BSD- or MS-compatible name lister.
17574 NM=$lt_NM
17575
17576 # Whether we need soft or hard links.
17577 LN_S=$lt_LN_S
17578
17579 # What is the maximum length of a command?
17580 max_cmd_len=$max_cmd_len
17581
17582 # Object file suffix (normally "o").
17583 objext=$ac_objext
17584
17585 # Executable file suffix (normally "").
17586 exeext=$exeext
17587
17588 # whether the shell understands "unset".
17589 lt_unset=$lt_unset
17590
17591 # turn spaces into newlines.
17592 SP2NL=$lt_lt_SP2NL
17593
17594 # turn newlines into spaces.
17595 NL2SP=$lt_lt_NL2SP
17596
17597 # convert \$build file names to \$host format.
17598 to_host_file_cmd=$lt_cv_to_host_file_cmd
17599
17600 # convert \$build files to toolchain format.
17601 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17602
17603 # A file(cmd) program that detects file types.
17604 FILECMD=$lt_FILECMD
17605
17606 # An object symbol dumper.
17607 OBJDUMP=$lt_OBJDUMP
17608
17609 # Method to check whether dependent libraries are shared objects.
17610 deplibs_check_method=$lt_deplibs_check_method
17611
17612 # Command to use when deplibs_check_method = "file_magic".
17613 file_magic_cmd=$lt_file_magic_cmd
17614
17615 # How to find potential files when deplibs_check_method = "file_magic".
17616 file_magic_glob=$lt_file_magic_glob
17617
17618 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17619 want_nocaseglob=$lt_want_nocaseglob
17620
17621 # DLL creation program.
17622 DLLTOOL=$lt_DLLTOOL
17623
17624 # Command to associate shared and link libraries.
17625 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17626
17627 # The archiver.
17628 AR=$lt_AR
17629
17630 # Flags to create an archive (by configure).
17631 lt_ar_flags=$lt_ar_flags
17632
17633 # Flags to create an archive.
17634 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17635
17636 # How to feed a file listing to the archiver.
17637 archiver_list_spec=$lt_archiver_list_spec
17638
17639 # A symbol stripping program.
17640 STRIP=$lt_STRIP
17641
17642 # Commands used to install an old-style archive.
17643 RANLIB=$lt_RANLIB
17644 old_postinstall_cmds=$lt_old_postinstall_cmds
17645 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17646
17647 # Whether to use a lock for old archive extraction.
17648 lock_old_archive_extraction=$lock_old_archive_extraction
17649
17650 # A C compiler.
17651 LTCC=$lt_CC
17652
17653 # LTCC compiler flags.
17654 LTCFLAGS=$lt_CFLAGS
17655
17656 # Take the output of nm and produce a listing of raw symbols and C names.
17657 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17658
17659 # Transform the output of nm in a proper C declaration.
17660 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17661
17662 # Transform the output of nm into a list of symbols to manually relocate.
17663 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17664
17665 # Transform the output of nm in a C name address pair.
17666 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17667
17668 # Transform the output of nm in a C name address pair when lib prefix is needed.
17669 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17670
17671 # The name lister interface.
17672 nm_interface=$lt_lt_cv_nm_interface
17673
17674 # Specify filename containing input files for \$NM.
17675 nm_file_list_spec=$lt_nm_file_list_spec
17676
17677 # The root where to search for dependent libraries,and where our libraries should be installed.
17678 lt_sysroot=$lt_sysroot
17679
17680 # Command to truncate a binary pipe.
17681 lt_truncate_bin=$lt_lt_cv_truncate_bin
17682
17683 # The name of the directory that contains temporary libtool files.
17684 objdir=$objdir
17685
17686 # Used to examine libraries when file_magic_cmd begins with "file".
17687 MAGIC_CMD=$MAGIC_CMD
17688
17689 # Must we lock files when doing compilation?
17690 need_locks=$lt_need_locks
17691
17692 # Manifest tool.
17693 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17694
17695 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17696 DSYMUTIL=$lt_DSYMUTIL
17697
17698 # Tool to change global to local symbols on Mac OS X.
17699 NMEDIT=$lt_NMEDIT
17700
17701 # Tool to manipulate fat objects and archives on Mac OS X.
17702 LIPO=$lt_LIPO
17703
17704 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17705 OTOOL=$lt_OTOOL
17706
17707 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17708 OTOOL64=$lt_OTOOL64
17709
17710 # Old archive suffix (normally "a").
17711 libext=$libext
17712
17713 # Shared library suffix (normally ".so").
17714 shrext_cmds=$lt_shrext_cmds
17715
17716 # The commands to extract the exported symbol list from a shared archive.
17717 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17718
17719 # Variables whose values should be saved in libtool wrapper scripts and
17720 # restored at link time.
17721 variables_saved_for_relink=$lt_variables_saved_for_relink
17722
17723 # Do we need the "lib" prefix for modules?
17724 need_lib_prefix=$need_lib_prefix
17725
17726 # Do we need a version for libraries?
17727 need_version=$need_version
17728
17729 # Library versioning type.
17730 version_type=$version_type
17731
17732 # Shared library runtime path variable.
17733 runpath_var=$runpath_var
17734
17735 # Shared library path variable.
17736 shlibpath_var=$shlibpath_var
17737
17738 # Is shlibpath searched before the hard-coded library search path?
17739 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17740
17741 # Format of library name prefix.
17742 libname_spec=$lt_libname_spec
17743
17744 # List of archive names. First name is the real one, the rest are links.
17745 # The last name is the one that the linker finds with -lNAME
17746 library_names_spec=$lt_library_names_spec
17747
17748 # The coded name of the library, if different from the real name.
17749 soname_spec=$lt_soname_spec
17750
17751 # Permission mode override for installation of shared libraries.
17752 install_override_mode=$lt_install_override_mode
17753
17754 # Command to use after installation of a shared archive.
17755 postinstall_cmds=$lt_postinstall_cmds
17756
17757 # Command to use after uninstallation of a shared archive.
17758 postuninstall_cmds=$lt_postuninstall_cmds
17759
17760 # Commands used to finish a libtool library installation in a directory.
17761 finish_cmds=$lt_finish_cmds
17762
17763 # As "finish_cmds", except a single script fragment to be evaled but
17764 # not shown.
17765 finish_eval=$lt_finish_eval
17766
17767 # Whether we should hardcode library paths into libraries.
17768 hardcode_into_libs=$hardcode_into_libs
17769
17770 # Compile-time system search path for libraries.
17771 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17772
17773 # Detected run-time system search path for libraries.
17774 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17775
17776 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17777 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17778
17779 # Whether dlopen is supported.
17780 dlopen_support=$enable_dlopen
17781
17782 # Whether dlopen of programs is supported.
17783 dlopen_self=$enable_dlopen_self
17784
17785 # Whether dlopen of statically linked programs is supported.
17786 dlopen_self_static=$enable_dlopen_self_static
17787
17788 # Commands to strip libraries.
17789 old_striplib=$lt_old_striplib
17790 striplib=$lt_striplib
17791
17792
17793 # The linker used to build libraries.
17794 LD=$lt_LD
17795
17796 # How to create reloadable object files.
17797 reload_flag=$lt_reload_flag
17798 reload_cmds=$lt_reload_cmds
17799
17800 # Commands used to build an old-style archive.
17801 old_archive_cmds=$lt_old_archive_cmds
17802
17803 # A language specific compiler.
17804 CC=$lt_compiler
17805
17806 # Is the compiler the GNU compiler?
17807 with_gcc=$GCC
17808
17809 # Compiler flag to turn off builtin functions.
17810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17811
17812 # Additional compiler flags for building library objects.
17813 pic_flag=$lt_lt_prog_compiler_pic
17814
17815 # How to pass a linker flag through the compiler.
17816 wl=$lt_lt_prog_compiler_wl
17817
17818 # Compiler flag to prevent dynamic linking.
17819 link_static_flag=$lt_lt_prog_compiler_static
17820
17821 # Does compiler simultaneously support -c and -o options?
17822 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17823
17824 # Whether or not to add -lc for building shared libraries.
17825 build_libtool_need_lc=$archive_cmds_need_lc
17826
17827 # Whether or not to disallow shared libs when runtime libs are static.
17828 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17829
17830 # Compiler flag to allow reflexive dlopens.
17831 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17832
17833 # Compiler flag to generate shared objects directly from archives.
17834 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17835
17836 # Whether the compiler copes with passing no objects directly.
17837 compiler_needs_object=$lt_compiler_needs_object
17838
17839 # Create an old-style archive from a shared archive.
17840 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17841
17842 # Create a temporary old-style archive to link instead of a shared archive.
17843 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17844
17845 # Commands used to build a shared archive.
17846 archive_cmds=$lt_archive_cmds
17847 archive_expsym_cmds=$lt_archive_expsym_cmds
17848
17849 # Commands used to build a loadable module if different from building
17850 # a shared archive.
17851 module_cmds=$lt_module_cmds
17852 module_expsym_cmds=$lt_module_expsym_cmds
17853
17854 # Whether we are building with GNU ld or not.
17855 with_gnu_ld=$lt_with_gnu_ld
17856
17857 # Flag that allows shared libraries with undefined symbols to be built.
17858 allow_undefined_flag=$lt_allow_undefined_flag
17859
17860 # Flag that enforces no undefined symbols.
17861 no_undefined_flag=$lt_no_undefined_flag
17862
17863 # Flag to hardcode \$libdir into a binary during linking.
17864 # This must work even if \$libdir does not exist
17865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17866
17867 # Whether we need a single "-rpath" flag with a separated argument.
17868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17869
17870 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17871 # DIR into the resulting binary.
17872 hardcode_direct=$hardcode_direct
17873
17874 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17875 # DIR into the resulting binary and the resulting library dependency is
17876 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17877 # library is relocated.
17878 hardcode_direct_absolute=$hardcode_direct_absolute
17879
17880 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17881 # into the resulting binary.
17882 hardcode_minus_L=$hardcode_minus_L
17883
17884 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17885 # into the resulting binary.
17886 hardcode_shlibpath_var=$hardcode_shlibpath_var
17887
17888 # Set to "yes" if building a shared library automatically hardcodes DIR
17889 # into the library and all subsequent libraries and executables linked
17890 # against it.
17891 hardcode_automatic=$hardcode_automatic
17892
17893 # Set to yes if linker adds runtime paths of dependent libraries
17894 # to runtime path list.
17895 inherit_rpath=$inherit_rpath
17896
17897 # Whether libtool must link a program against all its dependency libraries.
17898 link_all_deplibs=$link_all_deplibs
17899
17900 # Set to "yes" if exported symbols are required.
17901 always_export_symbols=$always_export_symbols
17902
17903 # The commands to list exported symbols.
17904 export_symbols_cmds=$lt_export_symbols_cmds
17905
17906 # Symbols that should not be listed in the preloaded symbols.
17907 exclude_expsyms=$lt_exclude_expsyms
17908
17909 # Symbols that must always be exported.
17910 include_expsyms=$lt_include_expsyms
17911
17912 # Commands necessary for linking programs (against libraries) with templates.
17913 prelink_cmds=$lt_prelink_cmds
17914
17915 # Commands necessary for finishing linking programs.
17916 postlink_cmds=$lt_postlink_cmds
17917
17918 # Specify filename containing input files.
17919 file_list_spec=$lt_file_list_spec
17920
17921 # How to hardcode a shared library path into an executable.
17922 hardcode_action=$hardcode_action
17923
17924 # ### END LIBTOOL CONFIG
17925
17926 _LT_EOF
17927
17928 cat <<'_LT_EOF' >> "$cfgfile"
17929
17930 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17931
17932 # func_munge_path_list VARIABLE PATH
17933 # -----------------------------------
17934 # VARIABLE is name of variable containing _space_ separated list of
17935 # directories to be munged by the contents of PATH, which is string
17936 # having a format:
17937 # "DIR[:DIR]:"
17938 # string "DIR[ DIR]" will be prepended to VARIABLE
17939 # ":DIR[:DIR]"
17940 # string "DIR[ DIR]" will be appended to VARIABLE
17941 # "DIRP[:DIRP]::[DIRA:]DIRA"
17942 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17943 # "DIRA[ DIRA]" will be appended to VARIABLE
17944 # "DIR[:DIR]"
17945 # VARIABLE will be replaced by "DIR[ DIR]"
17946 func_munge_path_list ()
17947 {
17948 case x$2 in
17949 x)
17950 ;;
17951 *:)
17952 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17953 ;;
17954 x:*)
17955 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17956 ;;
17957 *::*)
17958 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17959 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17960 ;;
17961 *)
17962 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17963 ;;
17964 esac
17965 }
17966
17967
17968 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17969 func_cc_basename ()
17970 {
17971 for cc_temp in $*""; do
17972 case $cc_temp in
17973 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17974 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17975 \-*) ;;
17976 *) break;;
17977 esac
17978 done
17979 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17980 }
17981
17982
17983 # ### END FUNCTIONS SHARED WITH CONFIGURE
17984
17985 _LT_EOF
17986
17987 case $host_os in
17988 aix3*)
17989 cat <<\_LT_EOF >> "$cfgfile"
17990 # AIX sometimes has problems with the GCC collect2 program. For some
17991 # reason, if we set the COLLECT_NAMES environment variable, the problems
17992 # vanish in a puff of smoke.
17993 if test set != "${COLLECT_NAMES+set}"; then
17994 COLLECT_NAMES=
17995 export COLLECT_NAMES
17996 fi
17997 _LT_EOF
17998 ;;
17999 esac
18000
18001
18002
18003 ltmain=$ac_aux_dir/ltmain.sh
18004
18005
18006 # We use sed instead of cat because bash on DJGPP gets confused if
18007 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18008 # text mode, it properly converts lines to CR/LF. This bash problem
18009 # is reportedly fixed, but why not run on old versions too?
18010 $SED '$q' "$ltmain" >> "$cfgfile" \
18011 || (rm -f "$cfgfile"; exit 1)
18012
18013 mv -f "$cfgfile" "$ofile" ||
18014 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18015 chmod +x "$ofile"
18016
18017 ;;
18018
18019 esac
18020 done # for ac_tag
18021
18022
18023 as_fn_exit 0
18024 _ACEOF
18025 ac_clean_files=$ac_clean_files_save
18026
18027 test $ac_write_fail = 0 ||
18028 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18029
18030
18031 # configure is writing to config.log, and then calls config.status.
18032 # config.status does its own redirection, appending to config.log.
18033 # Unfortunately, on DOS this fails, as config.log is still kept open
18034 # by configure, so config.status won't be able to write to it; its
18035 # output is simply discarded. So we exec the FD to /dev/null,
18036 # effectively closing config.log, so it can be properly (re)opened and
18037 # appended to by config.status. When coming back to configure, we
18038 # need to make the FD available again.
18039 if test "$no_create" != yes; then
18040 ac_cs_success=:
18041 ac_config_status_args=
18042 test "$silent" = yes &&
18043 ac_config_status_args="$ac_config_status_args --quiet"
18044 exec 5>/dev/null
18045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18046 exec 5>>config.log
18047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18048 # would make configure fail if this is the last instruction.
18049 $ac_cs_success || as_fn_exit 1
18050 fi
18051 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18053 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18054 fi
18055
18056
18057
18058 echo "###############################################################################"
18059 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
18060 echo
18061 echo "HOPM will be installed in ${prefix}. To change this, run:"
18062 echo " ./configure --prefix=DIRECTORY"
18063 echo "###############################################################################"
18064