ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
Revision: 9730
Committed: Mon Nov 16 10:43:13 2020 UTC (4 years, 9 months ago) by michael
File size: 498478 byte(s)
Log Message:
- autoreconf

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 9678 2020-10-24 11:10:37Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for hopm TRUNK.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$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 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='hopm'
593 PACKAGE_TARNAME='hopm'
594 PACKAGE_VERSION='TRUNK'
595 PACKAGE_STRING='hopm TRUNK'
596 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
597 PACKAGE_URL=''
598
599 ac_unique_file="src/opercmd.h"
600 ac_default_prefix=\${HOME}/hopm
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 LEXLIB
642 LEX_OUTPUT_ROOT
643 LEX
644 YFLAGS
645 YACC
646 CPP
647 LT_SYS_LIBRARY_PATH
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 ac_ct_AR
656 AR
657 DLLTOOL
658 OBJDUMP
659 LN_S
660 NM
661 ac_ct_DUMPBIN
662 DUMPBIN
663 LD
664 FGREP
665 EGREP
666 GREP
667 SED
668 host_os
669 host_vendor
670 host_cpu
671 host
672 build_os
673 build_vendor
674 build_cpu
675 build
676 LIBTOOL
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__include
685 DEPDIR
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 runstatedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL
762 am__quote'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_silent_rules
767 enable_maintainer_mode
768 enable_dependency_tracking
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_aix_soname
774 with_gnu_ld
775 with_sysroot
776 enable_libtool_lock
777 enable_openssl
778 enable_assert
779 enable_warnings
780 enable_efence
781 '
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 LT_SYS_LIBRARY_PATH
791 CPP
792 YACC
793 YFLAGS'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 runstatedir='${localstatedir}/run'
833 includedir='${prefix}/include'
834 oldincludedir='/usr/include'
835 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836 infodir='${datarootdir}/info'
837 htmldir='${docdir}'
838 dvidir='${docdir}'
839 pdfdir='${docdir}'
840 psdir='${docdir}'
841 libdir='${exec_prefix}/lib'
842 localedir='${datarootdir}/locale'
843 mandir='${datarootdir}/man'
844
845 ac_prev=
846 ac_dashdash=
847 for ac_option
848 do
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
851 eval $ac_prev=\$ac_option
852 ac_prev=
853 continue
854 fi
855
856 case $ac_option in
857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 *=) ac_optarg= ;;
859 *) ac_optarg=yes ;;
860 esac
861
862 # Accept the important Cygnus configure options, so we can diagnose typos.
863
864 case $ac_dashdash$ac_option in
865 --)
866 ac_dashdash=yes ;;
867
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
872
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
877
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
884
885 --config-cache | -C)
886 cache_file=config.cache ;;
887
888 -datadir | --datadir | --datadi | --datad)
889 ac_prev=datadir ;;
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
892
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
899
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
915
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
920
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
925
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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=`$as_echo "$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--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=\$ac_optarg ;;
941
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
950
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
954
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
961
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
966
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
972
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
979
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
984
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
989
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
996
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1001
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1008
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1013
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1017
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1021
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1025
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1034
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1039
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1046
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1053
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1070
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1075
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1080
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1084
1085 -runstatedir | --runstatedir | --runstatedi | --runstated \
1086 | --runstate | --runstat | --runsta | --runst | --runs \
1087 | --run | --ru | --r)
1088 ac_prev=runstatedir ;;
1089 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1090 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1091 | --run=* | --ru=* | --r=*)
1092 runstatedir=$ac_optarg ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1154
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1170
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1174
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1181
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1188
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1202
1203 *)
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209 ;;
1210
1211 esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir runstatedir
1232 do
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1261 fi
1262 fi
1263
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267 test "$silent" = yes && exec 6>/dev/null
1268
1269
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\).*/{
1301 s//\1/
1302 q
1303 }
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1308 fi
1309 else
1310 ac_srcdir_defaulted=no
1311 fi
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 fi
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1323 fi
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1336
1337 #
1338 # Report the --help message.
1339 #
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 \`configure' configures hopm TRUNK to adapt to many kinds of systems.
1345
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1350
1351 Defaults for the options are specified in brackets.
1352
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1369
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1374
1375 For better control, use the options below.
1376
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1398 _ACEOF
1399
1400 cat <<\_ACEOF
1401
1402 Program names:
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406
1407 System types:
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410 _ACEOF
1411 fi
1412
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of hopm TRUNK:";;
1416 esac
1417 cat <<\_ACEOF
1418
1419 Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-silent-rules less verbose build output (undo: "make V=1")
1424 --disable-silent-rules verbose build output (undo: "make V=0")
1425 --enable-maintainer-mode
1426 enable make rules and dependencies not useful (and
1427 sometimes confusing) to the casual installer
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-static[=PKGS] build static libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437 --enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional).
1438 --disable-openssl Disable LibreSSL/OpenSSL support.
1439 --enable-assert Enable assert() statements
1440 --enable-warnings Enable compiler warnings.
1441 --enable-efence Enable linking with Electric Fence 'efence' memory
1442 debugger library.
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1448 both]
1449 --with-aix-soname=aix|svr4|both
1450 shared library versioning (aka "SONAME") variant to
1451 provide on AIX, [default=aix].
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1453 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1454 compiler's sysroot if not specified).
1455
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 LT_SYS_LIBRARY_PATH
1465 User-defined run-time library search path.
1466 CPP C preprocessor
1467 YACC The `Yet Another Compiler Compiler' implementation to use.
1468 Defaults to the first program found out of: `bison -y', `byacc',
1469 `yacc'.
1470 YFLAGS The list of arguments that will be passed by default to $YACC.
1471 This script will default YFLAGS to the empty string to avoid a
1472 default value of `-d' given by some make applications.
1473
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1476
1477 Report bugs to <bugs@ircd-hybrid.org>.
1478 _ACEOF
1479 ac_status=$?
1480 fi
1481
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *)
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1505
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1535 fi
1536
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 hopm configure TRUNK
1541 generated by GNU Autoconf 2.69
1542
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547 exit
1548 fi
1549
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1553
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1574 fi
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585 ac_retval=1
1586 fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_compile
1591
1592 # ac_fn_c_try_link LINENO
1593 # -----------------------
1594 # Try to link conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_link ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest$ac_exeext
1599 if { { ac_try="$ac_link"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest$ac_exeext && {
1618 test "$cross_compiling" = yes ||
1619 test -x conftest$ac_exeext
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630 # interfere with the next link command; also delete a directory that is
1631 # left behind by Apple's compiler. We do this before executing the actions.
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_link
1637
1638 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639 # -------------------------------------------------------
1640 # Tests whether HEADER exists and can be compiled using the include files in
1641 # INCLUDES, setting the cache variable VAR accordingly.
1642 ac_fn_c_check_header_compile ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if eval \${$3+:} false; then :
1648 $as_echo_n "(cached) " >&6
1649 else
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 $4
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"; then :
1656 eval "$3=yes"
1657 else
1658 eval "$3=no"
1659 fi
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 fi
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666
1667 } # ac_fn_c_check_header_compile
1668
1669 # ac_fn_c_try_cpp LINENO
1670 # ----------------------
1671 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_cpp ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } > conftest.i && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1698
1699 ac_retval=1
1700 fi
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1703
1704 } # ac_fn_c_try_cpp
1705
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1710 ac_fn_c_try_run ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=$ac_status
1741 fi
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_run
1747
1748 # ac_fn_c_check_func LINENO FUNC VAR
1749 # ----------------------------------
1750 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1751 ac_fn_c_check_func ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758 else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1763 #define $2 innocuous_$2
1764
1765 /* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $2 (); below.
1767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1768 <limits.h> exists even on freestanding compilers. */
1769
1770 #ifdef __STDC__
1771 # include <limits.h>
1772 #else
1773 # include <assert.h>
1774 #endif
1775
1776 #undef $2
1777
1778 /* Override any GCC internal prototype to avoid an error.
1779 Use char because int might match the return type of a GCC
1780 builtin and then its argument prototype would still apply. */
1781 #ifdef __cplusplus
1782 extern "C"
1783 #endif
1784 char $2 ();
1785 /* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788 #if defined __stub_$2 || defined __stub___$2
1789 choke me
1790 #endif
1791
1792 int
1793 main ()
1794 {
1795 return $2 ();
1796 ;
1797 return 0;
1798 }
1799 _ACEOF
1800 if ac_fn_c_try_link "$LINENO"; then :
1801 eval "$3=yes"
1802 else
1803 eval "$3=no"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext \
1806 conftest$ac_exeext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_func
1814 cat >config.log <<_ACEOF
1815 This file contains any messages produced by compilers while
1816 running configure, to aid debugging if configure makes a mistake.
1817
1818 It was created by hopm $as_me TRUNK, which was
1819 generated by GNU Autoconf 2.69. Invocation command line was
1820
1821 $ $0 $@
1822
1823 _ACEOF
1824 exec 5>>config.log
1825 {
1826 cat <<_ASUNAME
1827 ## --------- ##
1828 ## Platform. ##
1829 ## --------- ##
1830
1831 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1832 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1833 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1834 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1835 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1836
1837 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1838 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1839
1840 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1841 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1842 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1843 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1844 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1845 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1846 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1847
1848 _ASUNAME
1849
1850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 for as_dir in $PATH
1852 do
1853 IFS=$as_save_IFS
1854 test -z "$as_dir" && as_dir=.
1855 $as_echo "PATH: $as_dir"
1856 done
1857 IFS=$as_save_IFS
1858
1859 } >&5
1860
1861 cat >&5 <<_ACEOF
1862
1863
1864 ## ----------- ##
1865 ## Core tests. ##
1866 ## ----------- ##
1867
1868 _ACEOF
1869
1870
1871 # Keep a trace of the command line.
1872 # Strip out --no-create and --no-recursion so they do not pile up.
1873 # Strip out --silent because we don't want to record it for future runs.
1874 # Also quote any args containing shell meta-characters.
1875 # Make two passes to allow for proper duplicate-argument suppression.
1876 ac_configure_args=
1877 ac_configure_args0=
1878 ac_configure_args1=
1879 ac_must_keep_next=false
1880 for ac_pass in 1 2
1881 do
1882 for ac_arg
1883 do
1884 case $ac_arg in
1885 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1887 | -silent | --silent | --silen | --sile | --sil)
1888 continue ;;
1889 *\'*)
1890 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 esac
1892 case $ac_pass in
1893 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1894 2)
1895 as_fn_append ac_configure_args1 " '$ac_arg'"
1896 if test $ac_must_keep_next = true; then
1897 ac_must_keep_next=false # Got value, back to normal.
1898 else
1899 case $ac_arg in
1900 *=* | --config-cache | -C | -disable-* | --disable-* \
1901 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1902 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1903 | -with-* | --with-* | -without-* | --without-* | --x)
1904 case "$ac_configure_args0 " in
1905 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1906 esac
1907 ;;
1908 -* ) ac_must_keep_next=true ;;
1909 esac
1910 fi
1911 as_fn_append ac_configure_args " '$ac_arg'"
1912 ;;
1913 esac
1914 done
1915 done
1916 { ac_configure_args0=; unset ac_configure_args0;}
1917 { ac_configure_args1=; unset ac_configure_args1;}
1918
1919 # When interrupted or exit'd, cleanup temporary files, and complete
1920 # config.log. We remove comments because anyway the quotes in there
1921 # would cause problems or look ugly.
1922 # WARNING: Use '\'' to represent an apostrophe within the trap.
1923 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1924 trap 'exit_status=$?
1925 # Save into config.log some information that might help in debugging.
1926 {
1927 echo
1928
1929 $as_echo "## ---------------- ##
1930 ## Cache variables. ##
1931 ## ---------------- ##"
1932 echo
1933 # The following way of writing the cache mishandles newlines in values,
1934 (
1935 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1936 eval ac_val=\$$ac_var
1937 case $ac_val in #(
1938 *${as_nl}*)
1939 case $ac_var in #(
1940 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1941 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1942 esac
1943 case $ac_var in #(
1944 _ | IFS | as_nl) ;; #(
1945 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1946 *) { eval $ac_var=; unset $ac_var;} ;;
1947 esac ;;
1948 esac
1949 done
1950 (set) 2>&1 |
1951 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1952 *${as_nl}ac_space=\ *)
1953 sed -n \
1954 "s/'\''/'\''\\\\'\'''\''/g;
1955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1956 ;; #(
1957 *)
1958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1959 ;;
1960 esac |
1961 sort
1962 )
1963 echo
1964
1965 $as_echo "## ----------------- ##
1966 ## Output variables. ##
1967 ## ----------------- ##"
1968 echo
1969 for ac_var in $ac_subst_vars
1970 do
1971 eval ac_val=\$$ac_var
1972 case $ac_val in
1973 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1974 esac
1975 $as_echo "$ac_var='\''$ac_val'\''"
1976 done | sort
1977 echo
1978
1979 if test -n "$ac_subst_files"; then
1980 $as_echo "## ------------------- ##
1981 ## File substitutions. ##
1982 ## ------------------- ##"
1983 echo
1984 for ac_var in $ac_subst_files
1985 do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 $as_echo "$ac_var='\''$ac_val'\''"
1991 done | sort
1992 echo
1993 fi
1994
1995 if test -s confdefs.h; then
1996 $as_echo "## ----------- ##
1997 ## confdefs.h. ##
1998 ## ----------- ##"
1999 echo
2000 cat confdefs.h
2001 echo
2002 fi
2003 test "$ac_signal" != 0 &&
2004 $as_echo "$as_me: caught signal $ac_signal"
2005 $as_echo "$as_me: exit $exit_status"
2006 } >&5
2007 rm -f core *.core core.conftest.* &&
2008 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2009 exit $exit_status
2010 ' 0
2011 for ac_signal in 1 2 13 15; do
2012 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2013 done
2014 ac_signal=0
2015
2016 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2017 rm -f -r conftest* confdefs.h
2018
2019 $as_echo "/* confdefs.h */" > confdefs.h
2020
2021 # Predefined preprocessor variables.
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_NAME "$PACKAGE_NAME"
2025 _ACEOF
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2033 _ACEOF
2034
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_STRING "$PACKAGE_STRING"
2037 _ACEOF
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2041 _ACEOF
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_URL "$PACKAGE_URL"
2045 _ACEOF
2046
2047
2048 # Let the site file select an alternate cache file if it wants to.
2049 # Prefer an explicitly selected file to automatically selected ones.
2050 ac_site_file1=NONE
2051 ac_site_file2=NONE
2052 if test -n "$CONFIG_SITE"; then
2053 # We do not want a PATH search for config.site.
2054 case $CONFIG_SITE in #((
2055 -*) ac_site_file1=./$CONFIG_SITE;;
2056 */*) ac_site_file1=$CONFIG_SITE;;
2057 *) ac_site_file1=./$CONFIG_SITE;;
2058 esac
2059 elif test "x$prefix" != xNONE; then
2060 ac_site_file1=$prefix/share/config.site
2061 ac_site_file2=$prefix/etc/config.site
2062 else
2063 ac_site_file1=$ac_default_prefix/share/config.site
2064 ac_site_file2=$ac_default_prefix/etc/config.site
2065 fi
2066 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2067 do
2068 test "x$ac_site_file" = xNONE && continue
2069 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2071 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2072 sed 's/^/| /' "$ac_site_file" >&5
2073 . "$ac_site_file" \
2074 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2075 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094 $as_echo "$as_me: creating cache $cache_file" >&6;}
2095 >$cache_file
2096 fi
2097
2098 # Check that the precious variables saved in the cache have kept the same
2099 # value.
2100 ac_cache_corrupted=false
2101 for ac_var in $ac_precious_vars; do
2102 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2103 eval ac_new_set=\$ac_env_${ac_var}_set
2104 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2105 eval ac_new_val=\$ac_env_${ac_var}_value
2106 case $ac_old_set,$ac_new_set in
2107 set,)
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2109 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2110 ac_cache_corrupted=: ;;
2111 ,set)
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2114 ac_cache_corrupted=: ;;
2115 ,);;
2116 *)
2117 if test "x$ac_old_val" != "x$ac_new_val"; then
2118 # differences in whitespace do not lead to failure.
2119 ac_old_val_w=`echo x $ac_old_val`
2120 ac_new_val_w=`echo x $ac_new_val`
2121 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2123 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124 ac_cache_corrupted=:
2125 else
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2127 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2128 eval $ac_var=\$ac_old_val
2129 fi
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2131 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2133 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2134 fi;;
2135 esac
2136 # Pass precious variables to config.status.
2137 if test "$ac_new_set" = set; then
2138 case $ac_new_val in
2139 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2140 *) ac_arg=$ac_var=$ac_new_val ;;
2141 esac
2142 case " $ac_configure_args " in
2143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2144 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2145 esac
2146 fi
2147 done
2148 if $ac_cache_corrupted; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2152 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2153 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2154 fi
2155 ## -------------------- ##
2156 ## Main body of script. ##
2157 ## -------------------- ##
2158
2159 ac_ext=c
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164
2165
2166 am__api_version='1.16'
2167
2168 ac_aux_dir=
2169 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2170 if test -f "$ac_dir/install-sh"; then
2171 ac_aux_dir=$ac_dir
2172 ac_install_sh="$ac_aux_dir/install-sh -c"
2173 break
2174 elif test -f "$ac_dir/install.sh"; then
2175 ac_aux_dir=$ac_dir
2176 ac_install_sh="$ac_aux_dir/install.sh -c"
2177 break
2178 elif test -f "$ac_dir/shtool"; then
2179 ac_aux_dir=$ac_dir
2180 ac_install_sh="$ac_aux_dir/shtool install -c"
2181 break
2182 fi
2183 done
2184 if test -z "$ac_aux_dir"; then
2185 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2186 fi
2187
2188 # These three variables are undocumented and unsupported,
2189 # and are intended to be withdrawn in a future Autoconf release.
2190 # They can cause serious problems if a builder's source tree is in a directory
2191 # whose full name contains unusual characters.
2192 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2193 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2194 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2195
2196
2197 # Find a good install program. We prefer a C program (faster),
2198 # so one script is as good as another. But avoid the broken or
2199 # incompatible versions:
2200 # SysV /etc/install, /usr/sbin/install
2201 # SunOS /usr/etc/install
2202 # IRIX /sbin/install
2203 # AIX /bin/install
2204 # AmigaOS /C/install, which installs bootblocks on floppy discs
2205 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2206 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2207 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2208 # OS/2's system install, which has a completely different semantic
2209 # ./install, which can be erroneously created by make from ./install.sh.
2210 # Reject install programs that cannot install multiple files.
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2212 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2213 if test -z "$INSTALL"; then
2214 if ${ac_cv_path_install+:} false; then :
2215 $as_echo_n "(cached) " >&6
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2219 do
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 # Account for people who put trailing slashes in PATH elements.
2223 case $as_dir/ in #((
2224 ./ | .// | /[cC]/* | \
2225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2226 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2227 /usr/ucb/* ) ;;
2228 *)
2229 # OSF1 and SCO ODT 3.0 have their own names for install.
2230 # Don't use installbsd from OSF since it installs stuff as root
2231 # by default.
2232 for ac_prog in ginstall scoinst install; do
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2235 if test $ac_prog = install &&
2236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2237 # AIX install. It has an incompatible calling convention.
2238 :
2239 elif test $ac_prog = install &&
2240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2241 # program-specific install script used by HP pwplus--don't use.
2242 :
2243 else
2244 rm -rf conftest.one conftest.two conftest.dir
2245 echo one > conftest.one
2246 echo two > conftest.two
2247 mkdir conftest.dir
2248 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2249 test -s conftest.one && test -s conftest.two &&
2250 test -s conftest.dir/conftest.one &&
2251 test -s conftest.dir/conftest.two
2252 then
2253 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2254 break 3
2255 fi
2256 fi
2257 fi
2258 done
2259 done
2260 ;;
2261 esac
2262
2263 done
2264 IFS=$as_save_IFS
2265
2266 rm -rf conftest.one conftest.two conftest.dir
2267
2268 fi
2269 if test "${ac_cv_path_install+set}" = set; then
2270 INSTALL=$ac_cv_path_install
2271 else
2272 # As a last resort, use the slow shell script. Don't cache a
2273 # value for INSTALL within a source directory, because that will
2274 # break other packages using the cache if that directory is
2275 # removed, or if the value is a relative name.
2276 INSTALL=$ac_install_sh
2277 fi
2278 fi
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2280 $as_echo "$INSTALL" >&6; }
2281
2282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2283 # It thinks the first close brace ends the variable substitution.
2284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2285
2286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2287
2288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2289
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2291 $as_echo_n "checking whether build environment is sane... " >&6; }
2292 # Reject unsafe characters in $srcdir or the absolute working directory
2293 # name. Accept space and tab only in the latter.
2294 am_lf='
2295 '
2296 case `pwd` in
2297 *[\\\"\#\$\&\'\`$am_lf]*)
2298 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2299 esac
2300 case $srcdir in
2301 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2302 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2303 esac
2304
2305 # Do 'set' in a subshell so we don't clobber the current shell's
2306 # arguments. Must try -L first in case configure is actually a
2307 # symlink; some systems play weird games with the mod time of symlinks
2308 # (eg FreeBSD returns the mod time of the symlink's containing
2309 # directory).
2310 if (
2311 am_has_slept=no
2312 for am_try in 1 2; do
2313 echo "timestamp, slept: $am_has_slept" > conftest.file
2314 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2315 if test "$*" = "X"; then
2316 # -L didn't work.
2317 set X `ls -t "$srcdir/configure" conftest.file`
2318 fi
2319 if test "$*" != "X $srcdir/configure conftest.file" \
2320 && test "$*" != "X conftest.file $srcdir/configure"; then
2321
2322 # If neither matched, then we have a broken ls. This can happen
2323 # if, for instance, CONFIG_SHELL is bash and it inherits a
2324 # broken ls alias from the environment. This has actually
2325 # happened. Such a system could not be considered "sane".
2326 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2327 alias in your environment" "$LINENO" 5
2328 fi
2329 if test "$2" = conftest.file || test $am_try -eq 2; then
2330 break
2331 fi
2332 # Just in case.
2333 sleep 1
2334 am_has_slept=yes
2335 done
2336 test "$2" = conftest.file
2337 )
2338 then
2339 # Ok.
2340 :
2341 else
2342 as_fn_error $? "newly created file is older than distributed files!
2343 Check your system clock" "$LINENO" 5
2344 fi
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2346 $as_echo "yes" >&6; }
2347 # If we didn't sleep, we still need to ensure time stamps of config.status and
2348 # generated files are strictly newer.
2349 am_sleep_pid=
2350 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2351 ( sleep 1 ) &
2352 am_sleep_pid=$!
2353 fi
2354
2355 rm -f conftest.file
2356
2357 test "$program_prefix" != NONE &&
2358 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2359 # Use a double $ so make ignores it.
2360 test "$program_suffix" != NONE &&
2361 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2362 # Double any \ or $.
2363 # By default was `s,x,x', remove it if useless.
2364 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2365 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2366
2367 # Expand $ac_aux_dir to an absolute path.
2368 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2369
2370 if test x"${MISSING+set}" != xset; then
2371 case $am_aux_dir in
2372 *\ * | *\ *)
2373 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2374 *)
2375 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2376 esac
2377 fi
2378 # Use eval to expand $SHELL
2379 if eval "$MISSING --is-lightweight"; then
2380 am_missing_run="$MISSING "
2381 else
2382 am_missing_run=
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2384 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2385 fi
2386
2387 if test x"${install_sh+set}" != xset; then
2388 case $am_aux_dir in
2389 *\ * | *\ *)
2390 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2391 *)
2392 install_sh="\${SHELL} $am_aux_dir/install-sh"
2393 esac
2394 fi
2395
2396 # Installed binaries are usually stripped using 'strip' when the user
2397 # run "make install-strip". However 'strip' might not be the right
2398 # tool to use in cross-compilation environments, therefore Automake
2399 # will honor the 'STRIP' environment variable to overrule this program.
2400 if test "$cross_compiling" != no; then
2401 if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2403 set dummy ${ac_tool_prefix}strip; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if ${ac_cv_prog_STRIP+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 if test -n "$STRIP"; then
2410 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2411 else
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2419 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2422 fi
2423 done
2424 done
2425 IFS=$as_save_IFS
2426
2427 fi
2428 fi
2429 STRIP=$ac_cv_prog_STRIP
2430 if test -n "$STRIP"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2432 $as_echo "$STRIP" >&6; }
2433 else
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435 $as_echo "no" >&6; }
2436 fi
2437
2438
2439 fi
2440 if test -z "$ac_cv_prog_STRIP"; then
2441 ac_ct_STRIP=$STRIP
2442 # Extract the first word of "strip", so it can be a program name with args.
2443 set dummy strip; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 if test -n "$ac_ct_STRIP"; then
2450 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_ac_ct_STRIP="strip"
2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463 done
2464 done
2465 IFS=$as_save_IFS
2466
2467 fi
2468 fi
2469 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2470 if test -n "$ac_ct_STRIP"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2472 $as_echo "$ac_ct_STRIP" >&6; }
2473 else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2476 fi
2477
2478 if test "x$ac_ct_STRIP" = x; then
2479 STRIP=":"
2480 else
2481 case $cross_compiling:$ac_tool_warned in
2482 yes:)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2485 ac_tool_warned=yes ;;
2486 esac
2487 STRIP=$ac_ct_STRIP
2488 fi
2489 else
2490 STRIP="$ac_cv_prog_STRIP"
2491 fi
2492
2493 fi
2494 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2495
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2497 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2498 if test -z "$MKDIR_P"; then
2499 if ${ac_cv_path_mkdir+:} false; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_prog in mkdir gmkdir; do
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2510 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2511 'mkdir (GNU coreutils) '* | \
2512 'mkdir (coreutils) '* | \
2513 'mkdir (fileutils) '4.1*)
2514 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2515 break 3;;
2516 esac
2517 done
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi
2523
2524 test -d ./--version && rmdir ./--version
2525 if test "${ac_cv_path_mkdir+set}" = set; then
2526 MKDIR_P="$ac_cv_path_mkdir -p"
2527 else
2528 # As a last resort, use the slow shell script. Don't cache a
2529 # value for MKDIR_P within a source directory, because that will
2530 # break other packages using the cache if that directory is
2531 # removed, or if the value is a relative name.
2532 MKDIR_P="$ac_install_sh -d"
2533 fi
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2536 $as_echo "$MKDIR_P" >&6; }
2537
2538 for ac_prog in gawk mawk nawk awk
2539 do
2540 # Extract the first word of "$ac_prog", so it can be a program name with args.
2541 set dummy $ac_prog; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if ${ac_cv_prog_AWK+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 if test -n "$AWK"; then
2548 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2552 do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557 ac_cv_prog_AWK="$ac_prog"
2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2560 fi
2561 done
2562 done
2563 IFS=$as_save_IFS
2564
2565 fi
2566 fi
2567 AWK=$ac_cv_prog_AWK
2568 if test -n "$AWK"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2570 $as_echo "$AWK" >&6; }
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2574 fi
2575
2576
2577 test -n "$AWK" && break
2578 done
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2581 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2582 set x ${MAKE-make}
2583 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2584 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 cat >conftest.make <<\_ACEOF
2588 SHELL = /bin/sh
2589 all:
2590 @echo '@@@%%%=$(MAKE)=@@@%%%'
2591 _ACEOF
2592 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2593 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2594 *@@@%%%=?*=@@@%%%*)
2595 eval ac_cv_prog_make_${ac_make}_set=yes;;
2596 *)
2597 eval ac_cv_prog_make_${ac_make}_set=no;;
2598 esac
2599 rm -f conftest.make
2600 fi
2601 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2603 $as_echo "yes" >&6; }
2604 SET_MAKE=
2605 else
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607 $as_echo "no" >&6; }
2608 SET_MAKE="MAKE=${MAKE-make}"
2609 fi
2610
2611 rm -rf .tst 2>/dev/null
2612 mkdir .tst 2>/dev/null
2613 if test -d .tst; then
2614 am__leading_dot=.
2615 else
2616 am__leading_dot=_
2617 fi
2618 rmdir .tst 2>/dev/null
2619
2620 # Check whether --enable-silent-rules was given.
2621 if test "${enable_silent_rules+set}" = set; then :
2622 enableval=$enable_silent_rules;
2623 fi
2624
2625 case $enable_silent_rules in # (((
2626 yes) AM_DEFAULT_VERBOSITY=0;;
2627 no) AM_DEFAULT_VERBOSITY=1;;
2628 *) AM_DEFAULT_VERBOSITY=1;;
2629 esac
2630 am_make=${MAKE-make}
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2632 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2633 if ${am_cv_make_support_nested_variables+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 if $as_echo 'TRUE=$(BAR$(V))
2637 BAR0=false
2638 BAR1=true
2639 V=1
2640 am__doit:
2641 @$(TRUE)
2642 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2643 am_cv_make_support_nested_variables=yes
2644 else
2645 am_cv_make_support_nested_variables=no
2646 fi
2647 fi
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2649 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2650 if test $am_cv_make_support_nested_variables = yes; then
2651 AM_V='$(V)'
2652 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2653 else
2654 AM_V=$AM_DEFAULT_VERBOSITY
2655 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2656 fi
2657 AM_BACKSLASH='\'
2658
2659 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2660 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2661 # is not polluted with repeated "-I."
2662 am__isrc=' -I$(srcdir)'
2663 # test to see if srcdir already configured
2664 if test -f $srcdir/config.status; then
2665 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2666 fi
2667 fi
2668
2669 # test whether we have cygpath
2670 if test -z "$CYGPATH_W"; then
2671 if (cygpath --version) >/dev/null 2>/dev/null; then
2672 CYGPATH_W='cygpath -w'
2673 else
2674 CYGPATH_W=echo
2675 fi
2676 fi
2677
2678
2679 # Define the identity of the package.
2680 PACKAGE='hopm'
2681 VERSION='TRUNK'
2682
2683
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE "$PACKAGE"
2686 _ACEOF
2687
2688
2689 cat >>confdefs.h <<_ACEOF
2690 #define VERSION "$VERSION"
2691 _ACEOF
2692
2693 # Some tools Automake needs.
2694
2695 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2696
2697
2698 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2699
2700
2701 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2702
2703
2704 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2705
2706
2707 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2708
2709 # For better backward compatibility. To be removed once Automake 1.9.x
2710 # dies out for good. For more background, see:
2711 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2712 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2713 mkdir_p='$(MKDIR_P)'
2714
2715 # We need awk for the "check" target (and possibly the TAP driver). The
2716 # system "awk" is bad on some platforms.
2717 # Always define AMTAR for backward compatibility. Yes, it's still used
2718 # in the wild :-( We should find a proper way to deprecate it ...
2719 AMTAR='$${TAR-tar}'
2720
2721
2722 # We'll loop over all known methods to create a tar archive until one works.
2723 _am_tools='gnutar pax cpio none'
2724
2725 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2726
2727
2728
2729
2730
2731
2732 # POSIX will say in a future version that running "rm -f" with no argument
2733 # is OK; and we want to be able to make that assumption in our Makefile
2734 # recipes. So use an aggressive probe to check that the usage we want is
2735 # actually supported "in the wild" to an acceptable degree.
2736 # See automake bug#10828.
2737 # To make any issue more visible, cause the running configure to be aborted
2738 # by default if the 'rm' program in use doesn't match our expectations; the
2739 # user can still override this though.
2740 if rm -f && rm -fr && rm -rf; then : OK; else
2741 cat >&2 <<'END'
2742 Oops!
2743
2744 Your 'rm' program seems unable to run without file operands specified
2745 on the command line, even when the '-f' option is present. This is contrary
2746 to the behaviour of most rm programs out there, and not conforming with
2747 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2748
2749 Please tell bug-automake@gnu.org about your system, including the value
2750 of your $PATH and any error possibly output before this message. This
2751 can help us improve future automake versions.
2752
2753 END
2754 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2755 echo 'Configuration will proceed anyway, since you have set the' >&2
2756 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2757 echo >&2
2758 else
2759 cat >&2 <<'END'
2760 Aborting the configuration process, to ensure you take notice of the issue.
2761
2762 You can download and install GNU coreutils to get an 'rm' implementation
2763 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2764
2765 If you want to complete the configuration process using your problematic
2766 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2767 to "yes", and re-run configure.
2768
2769 END
2770 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2771 fi
2772 fi
2773
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2776 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2777 # Check whether --enable-maintainer-mode was given.
2778 if test "${enable_maintainer_mode+set}" = set; then :
2779 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2780 else
2781 USE_MAINTAINER_MODE=no
2782 fi
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2785 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2786 if test $USE_MAINTAINER_MODE = yes; then
2787 MAINTAINER_MODE_TRUE=
2788 MAINTAINER_MODE_FALSE='#'
2789 else
2790 MAINTAINER_MODE_TRUE='#'
2791 MAINTAINER_MODE_FALSE=
2792 fi
2793
2794 MAINT=$MAINTAINER_MODE_TRUE
2795
2796
2797
2798 ac_config_headers="$ac_config_headers src/setup.h"
2799
2800
2801
2802
2803 DEPDIR="${am__leading_dot}deps"
2804
2805 ac_config_commands="$ac_config_commands depfiles"
2806
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2808 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2809 cat > confinc.mk << 'END'
2810 am__doit:
2811 @echo this is the am__doit target >confinc.out
2812 .PHONY: am__doit
2813 END
2814 am__include="#"
2815 am__quote=
2816 # BSD make does it like this.
2817 echo '.include "confinc.mk" # ignored' > confmf.BSD
2818 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2819 echo 'include confinc.mk # ignored' > confmf.GNU
2820 _am_result=no
2821 for s in GNU BSD; do
2822 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2823 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827 case $?:`cat confinc.out 2>/dev/null` in #(
2828 '0:this is the am__doit target') :
2829 case $s in #(
2830 BSD) :
2831 am__include='.include' am__quote='"' ;; #(
2832 *) :
2833 am__include='include' am__quote='' ;;
2834 esac ;; #(
2835 *) :
2836 ;;
2837 esac
2838 if test "$am__include" != "#"; then
2839 _am_result="yes ($s style)"
2840 break
2841 fi
2842 done
2843 rm -f confinc.* confmf.*
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2845 $as_echo "${_am_result}" >&6; }
2846
2847 # Check whether --enable-dependency-tracking was given.
2848 if test "${enable_dependency_tracking+set}" = set; then :
2849 enableval=$enable_dependency_tracking;
2850 fi
2851
2852 if test "x$enable_dependency_tracking" != xno; then
2853 am_depcomp="$ac_aux_dir/depcomp"
2854 AMDEPBACKSLASH='\'
2855 am__nodep='_no'
2856 fi
2857 if test "x$enable_dependency_tracking" != xno; then
2858 AMDEP_TRUE=
2859 AMDEP_FALSE='#'
2860 else
2861 AMDEP_TRUE='#'
2862 AMDEP_FALSE=
2863 fi
2864
2865
2866 ac_ext=c
2867 ac_cpp='$CPP $CPPFLAGS'
2868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_CC+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi
2898 fi
2899 CC=$ac_cv_prog_CC
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2906 fi
2907
2908
2909 fi
2910 if test -z "$ac_cv_prog_CC"; then
2911 ac_ct_CC=$CC
2912 # Extract the first word of "gcc", so it can be a program name with args.
2913 set dummy gcc; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$ac_ct_CC"; then
2920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_CC="gcc"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933 done
2934 done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2940 if test -n "$ac_ct_CC"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2942 $as_echo "$ac_ct_CC" >&6; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948 if test "x$ac_ct_CC" = x; then
2949 CC=""
2950 else
2951 case $cross_compiling:$ac_tool_warned in
2952 yes:)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 ac_tool_warned=yes ;;
2956 esac
2957 CC=$ac_ct_CC
2958 fi
2959 else
2960 CC="$ac_cv_prog_CC"
2961 fi
2962
2963 if test -z "$CC"; then
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2966 set dummy ${ac_tool_prefix}cc; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_CC+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_CC="${ac_tool_prefix}cc"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986 done
2987 done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 CC=$ac_cv_prog_CC
2993 if test -n "$CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995 $as_echo "$CC" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002 fi
3003 fi
3004 if test -z "$CC"; then
3005 # Extract the first word of "cc", so it can be a program name with args.
3006 set dummy cc; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_CC+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 ac_prog_rejected=no
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3024 ac_prog_rejected=yes
3025 continue
3026 fi
3027 ac_cv_prog_CC="cc"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031 done
3032 done
3033 IFS=$as_save_IFS
3034
3035 if test $ac_prog_rejected = yes; then
3036 # We found a bogon in the path, so make sure we never use it.
3037 set dummy $ac_cv_prog_CC
3038 shift
3039 if test $# != 0; then
3040 # We chose a different compiler from the bogus one.
3041 # However, it has the same basename, so the bogon will be chosen
3042 # first if we set CC to just the basename; use the full file name.
3043 shift
3044 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3045 fi
3046 fi
3047 fi
3048 fi
3049 CC=$ac_cv_prog_CC
3050 if test -n "$CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058
3059 fi
3060 if test -z "$CC"; then
3061 if test -n "$ac_tool_prefix"; then
3062 for ac_prog in cl.exe
3063 do
3064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi
3090 fi
3091 CC=$ac_cv_prog_CC
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 fi
3099
3100
3101 test -n "$CC" && break
3102 done
3103 fi
3104 if test -z "$CC"; then
3105 ac_ct_CC=$CC
3106 for ac_prog in cl.exe
3107 do
3108 # Extract the first word of "$ac_prog", so it can be a program name with args.
3109 set dummy $ac_prog; ac_word=$2
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 $as_echo_n "checking for $ac_word... " >&6; }
3112 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if test -n "$ac_ct_CC"; then
3116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_CC="$ac_prog"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3136 if test -n "$ac_ct_CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3138 $as_echo "$ac_ct_CC" >&6; }
3139 else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 fi
3143
3144
3145 test -n "$ac_ct_CC" && break
3146 done
3147
3148 if test "x$ac_ct_CC" = x; then
3149 CC=""
3150 else
3151 case $cross_compiling:$ac_tool_warned in
3152 yes:)
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157 CC=$ac_ct_CC
3158 fi
3159 fi
3160
3161 fi
3162
3163
3164 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166 as_fn_error $? "no acceptable C compiler found in \$PATH
3167 See \`config.log' for more details" "$LINENO" 5; }
3168
3169 # Provide some information about the compiler.
3170 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3171 set X $ac_compile
3172 ac_compiler=$2
3173 for ac_option in --version -v -V -qversion; do
3174 { { ac_try="$ac_compiler $ac_option >&5"
3175 case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180 $as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3182 ac_status=$?
3183 if test -s conftest.err; then
3184 sed '10a\
3185 ... rest of stderr output deleted ...
3186 10q' conftest.err >conftest.er1
3187 cat conftest.er1 >&5
3188 fi
3189 rm -f conftest.er1 conftest.err
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }
3192 done
3193
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3196
3197 int
3198 main ()
3199 {
3200
3201 ;
3202 return 0;
3203 }
3204 _ACEOF
3205 ac_clean_files_save=$ac_clean_files
3206 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3207 # Try to create an executable without -o first, disregard a.out.
3208 # It will help us diagnose broken compilers, and finding out an intuition
3209 # of exeext.
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3211 $as_echo_n "checking whether the C compiler works... " >&6; }
3212 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3213
3214 # The possible output files:
3215 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3216
3217 ac_rmfiles=
3218 for ac_file in $ac_files
3219 do
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3222 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3223 esac
3224 done
3225 rm -f $ac_rmfiles
3226
3227 if { { ac_try="$ac_link_default"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_link_default") 2>&5
3235 ac_status=$?
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }; then :
3238 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3239 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3240 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3241 # so that the user can short-circuit this test for compilers unknown to
3242 # Autoconf.
3243 for ac_file in $ac_files ''
3244 do
3245 test -f "$ac_file" || continue
3246 case $ac_file in
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3248 ;;
3249 [ab].out )
3250 # We found the default executable, but exeext='' is most
3251 # certainly right.
3252 break;;
3253 *.* )
3254 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3255 then :; else
3256 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3257 fi
3258 # We set ac_cv_exeext here because the later test for it is not
3259 # safe: cross compilers may not add the suffix if given an `-o'
3260 # argument, so we may need to know it at that point already.
3261 # Even if this section looks crufty: it has the advantage of
3262 # actually working.
3263 break;;
3264 * )
3265 break;;
3266 esac
3267 done
3268 test "$ac_cv_exeext" = no && ac_cv_exeext=
3269
3270 else
3271 ac_file=''
3272 fi
3273 if test -z "$ac_file"; then :
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 $as_echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error 77 "C compiler cannot create executables
3282 See \`config.log' for more details" "$LINENO" 5; }
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285 $as_echo "yes" >&6; }
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3288 $as_echo_n "checking for C compiler default output file name... " >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3290 $as_echo "$ac_file" >&6; }
3291 ac_exeext=$ac_cv_exeext
3292
3293 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3294 ac_clean_files=$ac_clean_files_save
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3296 $as_echo_n "checking for suffix of executables... " >&6; }
3297 if { { ac_try="$ac_link"
3298 case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_link") 2>&5
3305 ac_status=$?
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }; then :
3308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe'), while it won't with
3311 # `rm'.
3312 for ac_file in conftest.exe conftest conftest.*; do
3313 test -f "$ac_file" || continue
3314 case $ac_file in
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 break;;
3318 * ) break;;
3319 esac
3320 done
3321 else
3322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3325 See \`config.log' for more details" "$LINENO" 5; }
3326 fi
3327 rm -f conftest conftest$ac_cv_exeext
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3329 $as_echo "$ac_cv_exeext" >&6; }
3330
3331 rm -f conftest.$ac_ext
3332 EXEEXT=$ac_cv_exeext
3333 ac_exeext=$EXEEXT
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3336 #include <stdio.h>
3337 int
3338 main ()
3339 {
3340 FILE *f = fopen ("conftest.out", "w");
3341 return ferror (f) || fclose (f) != 0;
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 ac_clean_files="$ac_clean_files conftest.out"
3348 # Check that the compiler produces executables we can run. If not, either
3349 # the compiler is broken, or we cross compile.
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3351 $as_echo_n "checking whether we are cross compiling... " >&6; }
3352 if test "$cross_compiling" != yes; then
3353 { { ac_try="$ac_link"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_link") 2>&5
3361 ac_status=$?
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }
3364 if { ac_try='./conftest$ac_cv_exeext'
3365 { { case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_try") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; }; then
3375 cross_compiling=no
3376 else
3377 if test "$cross_compiling" = maybe; then
3378 cross_compiling=yes
3379 else
3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 as_fn_error $? "cannot run C compiled programs.
3383 If you meant to cross compile, use \`--host'.
3384 See \`config.log' for more details" "$LINENO" 5; }
3385 fi
3386 fi
3387 fi
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3389 $as_echo "$cross_compiling" >&6; }
3390
3391 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3392 ac_clean_files=$ac_clean_files_save
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3394 $as_echo_n "checking for suffix of object files... " >&6; }
3395 if ${ac_cv_objext+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3400
3401 int
3402 main ()
3403 {
3404
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 rm -f conftest.o conftest.obj
3410 if { { ac_try="$ac_compile"
3411 case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_compile") 2>&5
3418 ac_status=$?
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; then :
3421 for ac_file in conftest.o conftest.obj conftest.*; do
3422 test -f "$ac_file" || continue;
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3425 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3426 break;;
3427 esac
3428 done
3429 else
3430 $as_echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error $? "cannot compute suffix of object files: cannot compile
3436 See \`config.log' for more details" "$LINENO" 5; }
3437 fi
3438 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3439 fi
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3441 $as_echo "$ac_cv_objext" >&6; }
3442 OBJEXT=$ac_cv_objext
3443 ac_objext=$OBJEXT
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3445 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3446 if ${ac_cv_c_compiler_gnu+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3451
3452 int
3453 main ()
3454 {
3455 #ifndef __GNUC__
3456 choke me
3457 #endif
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 if ac_fn_c_try_compile "$LINENO"; then :
3464 ac_compiler_gnu=yes
3465 else
3466 ac_compiler_gnu=no
3467 fi
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3470
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3473 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3474 if test $ac_compiler_gnu = yes; then
3475 GCC=yes
3476 else
3477 GCC=
3478 fi
3479 ac_test_CFLAGS=${CFLAGS+set}
3480 ac_save_CFLAGS=$CFLAGS
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3482 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3483 if ${ac_cv_prog_cc_g+:} false; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 ac_save_c_werror_flag=$ac_c_werror_flag
3487 ac_c_werror_flag=yes
3488 ac_cv_prog_cc_g=no
3489 CFLAGS="-g"
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492
3493 int
3494 main ()
3495 {
3496
3497 ;
3498 return 0;
3499 }
3500 _ACEOF
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_cv_prog_cc_g=yes
3503 else
3504 CFLAGS=""
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507
3508 int
3509 main ()
3510 {
3511
3512 ;
3513 return 0;
3514 }
3515 _ACEOF
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517
3518 else
3519 ac_c_werror_flag=$ac_save_c_werror_flag
3520 CFLAGS="-g"
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3523
3524 int
3525 main ()
3526 {
3527
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_g=yes
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 ac_c_werror_flag=$ac_save_c_werror_flag
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3543 $as_echo "$ac_cv_prog_cc_g" >&6; }
3544 if test "$ac_test_CFLAGS" = set; then
3545 CFLAGS=$ac_save_CFLAGS
3546 elif test $ac_cv_prog_cc_g = yes; then
3547 if test "$GCC" = yes; then
3548 CFLAGS="-g -O2"
3549 else
3550 CFLAGS="-g"
3551 fi
3552 else
3553 if test "$GCC" = yes; then
3554 CFLAGS="-O2"
3555 else
3556 CFLAGS=
3557 fi
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3560 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3561 if ${ac_cv_prog_cc_c89+:} false; then :
3562 $as_echo_n "(cached) " >&6
3563 else
3564 ac_cv_prog_cc_c89=no
3565 ac_save_CC=$CC
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3568 #include <stdarg.h>
3569 #include <stdio.h>
3570 struct stat;
3571 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3572 struct buf { int x; };
3573 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3574 static char *e (p, i)
3575 char **p;
3576 int i;
3577 {
3578 return p[i];
3579 }
3580 static char *f (char * (*g) (char **, int), char **p, ...)
3581 {
3582 char *s;
3583 va_list v;
3584 va_start (v,p);
3585 s = g (p, va_arg (v,int));
3586 va_end (v);
3587 return s;
3588 }
3589
3590 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3591 function prototypes and stuff, but not '\xHH' hex character constants.
3592 These don't provoke an error unfortunately, instead are silently treated
3593 as 'x'. The following induces an error, until -std is added to get
3594 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3595 array size at least. It's necessary to write '\x00'==0 to get something
3596 that's true only with -std. */
3597 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3598
3599 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3600 inside strings and character constants. */
3601 #define FOO(x) 'x'
3602 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3603
3604 int test (int i, double x);
3605 struct s1 {int (*f) (int a);};
3606 struct s2 {int (*f) (double a);};
3607 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3608 int argc;
3609 char **argv;
3610 int
3611 main ()
3612 {
3613 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3614 ;
3615 return 0;
3616 }
3617 _ACEOF
3618 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3619 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3620 do
3621 CC="$ac_save_CC $ac_arg"
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_c89=$ac_arg
3624 fi
3625 rm -f core conftest.err conftest.$ac_objext
3626 test "x$ac_cv_prog_cc_c89" != "xno" && break
3627 done
3628 rm -f conftest.$ac_ext
3629 CC=$ac_save_CC
3630
3631 fi
3632 # AC_CACHE_VAL
3633 case "x$ac_cv_prog_cc_c89" in
3634 x)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3636 $as_echo "none needed" >&6; } ;;
3637 xno)
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3639 $as_echo "unsupported" >&6; } ;;
3640 *)
3641 CC="$CC $ac_cv_prog_cc_c89"
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3643 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3644 esac
3645 if test "x$ac_cv_prog_cc_c89" != xno; then :
3646
3647 fi
3648
3649 ac_ext=c
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654
3655 ac_ext=c
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3661 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3662 if ${am_cv_prog_cc_c_o+:} false; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667
3668 int
3669 main ()
3670 {
3671
3672 ;
3673 return 0;
3674 }
3675 _ACEOF
3676 # Make sure it works both with $CC and with simple cc.
3677 # Following AC_PROG_CC_C_O, we do the test twice because some
3678 # compilers refuse to overwrite an existing .o file with -o,
3679 # though they will create one.
3680 am_cv_prog_cc_c_o=yes
3681 for am_i in 1 2; do
3682 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3683 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } \
3687 && test -f conftest2.$ac_objext; then
3688 : OK
3689 else
3690 am_cv_prog_cc_c_o=no
3691 break
3692 fi
3693 done
3694 rm -f core conftest*
3695 unset am_i
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3698 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3699 if test "$am_cv_prog_cc_c_o" != yes; then
3700 # Losing compiler, so override with the script.
3701 # FIXME: It is wrong to rewrite CC.
3702 # But if we don't then we get into trouble of one sort or another.
3703 # A longer-term fix would be to have automake use am__CC in this case,
3704 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3705 CC="$am_aux_dir/compile $CC"
3706 fi
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712
3713
3714 depcc="$CC" am_compiler_list=
3715
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3717 $as_echo_n "checking dependency style of $depcc... " >&6; }
3718 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3722 # We make a subdir and do the tests there. Otherwise we can end up
3723 # making bogus files that we don't know about and never remove. For
3724 # instance it was reported that on HP-UX the gcc test will end up
3725 # making a dummy file named 'D' -- because '-MD' means "put the output
3726 # in D".
3727 rm -rf conftest.dir
3728 mkdir conftest.dir
3729 # Copy depcomp to subdir because otherwise we won't find it if we're
3730 # using a relative directory.
3731 cp "$am_depcomp" conftest.dir
3732 cd conftest.dir
3733 # We will build objects and dependencies in a subdirectory because
3734 # it helps to detect inapplicable dependency modes. For instance
3735 # both Tru64's cc and ICC support -MD to output dependencies as a
3736 # side effect of compilation, but ICC will put the dependencies in
3737 # the current directory while Tru64 will put them in the object
3738 # directory.
3739 mkdir sub
3740
3741 am_cv_CC_dependencies_compiler_type=none
3742 if test "$am_compiler_list" = ""; then
3743 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3744 fi
3745 am__universal=false
3746 case " $depcc " in #(
3747 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3748 esac
3749
3750 for depmode in $am_compiler_list; do
3751 # Setup a source with many dependencies, because some compilers
3752 # like to wrap large dependency lists on column 80 (with \), and
3753 # we should not choose a depcomp mode which is confused by this.
3754 #
3755 # We need to recreate these files for each test, as the compiler may
3756 # overwrite some of them when testing with obscure command lines.
3757 # This happens at least with the AIX C compiler.
3758 : > sub/conftest.c
3759 for i in 1 2 3 4 5 6; do
3760 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3761 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3762 # Solaris 10 /bin/sh.
3763 echo '/* dummy */' > sub/conftst$i.h
3764 done
3765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3766
3767 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3768 # mode. It turns out that the SunPro C++ compiler does not properly
3769 # handle '-M -o', and we need to detect this. Also, some Intel
3770 # versions had trouble with output in subdirs.
3771 am__obj=sub/conftest.${OBJEXT-o}
3772 am__minus_obj="-o $am__obj"
3773 case $depmode in
3774 gcc)
3775 # This depmode causes a compiler race in universal mode.
3776 test "$am__universal" = false || continue
3777 ;;
3778 nosideeffect)
3779 # After this tag, mechanisms are not by side-effect, so they'll
3780 # only be used when explicitly requested.
3781 if test "x$enable_dependency_tracking" = xyes; then
3782 continue
3783 else
3784 break
3785 fi
3786 ;;
3787 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3788 # This compiler won't grok '-c -o', but also, the minuso test has
3789 # not run yet. These depmodes are late enough in the game, and
3790 # so weak that their functioning should not be impacted.
3791 am__obj=conftest.${OBJEXT-o}
3792 am__minus_obj=
3793 ;;
3794 none) break ;;
3795 esac
3796 if depmode=$depmode \
3797 source=sub/conftest.c object=$am__obj \
3798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3799 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3800 >/dev/null 2>conftest.err &&
3801 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3803 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3805 # icc doesn't choke on unknown options, it will just issue warnings
3806 # or remarks (even with -Werror). So we grep stderr for any message
3807 # that says an option was ignored or not supported.
3808 # When given -MP, icc 7.0 and 7.1 complain thusly:
3809 # icc: Command line warning: ignoring option '-M'; no argument required
3810 # The diagnosis changed in icc 8.0:
3811 # icc: Command line remark: option '-MP' not supported
3812 if (grep 'ignoring option' conftest.err ||
3813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3814 am_cv_CC_dependencies_compiler_type=$depmode
3815 break
3816 fi
3817 fi
3818 done
3819
3820 cd ..
3821 rm -rf conftest.dir
3822 else
3823 am_cv_CC_dependencies_compiler_type=none
3824 fi
3825
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3828 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3829 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3830
3831 if
3832 test "x$enable_dependency_tracking" != xno \
3833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3834 am__fastdepCC_TRUE=
3835 am__fastdepCC_FALSE='#'
3836 else
3837 am__fastdepCC_TRUE='#'
3838 am__fastdepCC_FALSE=
3839 fi
3840
3841
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3843 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3844 if ${ac_cv_prog_cc_c99+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 ac_cv_prog_cc_c99=no
3848 ac_save_CC=$CC
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3851 #include <stdarg.h>
3852 #include <stdbool.h>
3853 #include <stdlib.h>
3854 #include <wchar.h>
3855 #include <stdio.h>
3856
3857 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3858 #define debug(...) fprintf (stderr, __VA_ARGS__)
3859 #define showlist(...) puts (#__VA_ARGS__)
3860 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3861 static void
3862 test_varargs_macros (void)
3863 {
3864 int x = 1234;
3865 int y = 5678;
3866 debug ("Flag");
3867 debug ("X = %d\n", x);
3868 showlist (The first, second, and third items.);
3869 report (x>y, "x is %d but y is %d", x, y);
3870 }
3871
3872 // Check long long types.
3873 #define BIG64 18446744073709551615ull
3874 #define BIG32 4294967295ul
3875 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3876 #if !BIG_OK
3877 your preprocessor is broken;
3878 #endif
3879 #if BIG_OK
3880 #else
3881 your preprocessor is broken;
3882 #endif
3883 static long long int bignum = -9223372036854775807LL;
3884 static unsigned long long int ubignum = BIG64;
3885
3886 struct incomplete_array
3887 {
3888 int datasize;
3889 double data[];
3890 };
3891
3892 struct named_init {
3893 int number;
3894 const wchar_t *name;
3895 double average;
3896 };
3897
3898 typedef const char *ccp;
3899
3900 static inline int
3901 test_restrict (ccp restrict text)
3902 {
3903 // See if C++-style comments work.
3904 // Iterate through items via the restricted pointer.
3905 // Also check for declarations in for loops.
3906 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3907 continue;
3908 return 0;
3909 }
3910
3911 // Check varargs and va_copy.
3912 static void
3913 test_varargs (const char *format, ...)
3914 {
3915 va_list args;
3916 va_start (args, format);
3917 va_list args_copy;
3918 va_copy (args_copy, args);
3919
3920 const char *str;
3921 int number;
3922 float fnumber;
3923
3924 while (*format)
3925 {
3926 switch (*format++)
3927 {
3928 case 's': // string
3929 str = va_arg (args_copy, const char *);
3930 break;
3931 case 'd': // int
3932 number = va_arg (args_copy, int);
3933 break;
3934 case 'f': // float
3935 fnumber = va_arg (args_copy, double);
3936 break;
3937 default:
3938 break;
3939 }
3940 }
3941 va_end (args_copy);
3942 va_end (args);
3943 }
3944
3945 int
3946 main ()
3947 {
3948
3949 // Check bool.
3950 _Bool success = false;
3951
3952 // Check restrict.
3953 if (test_restrict ("String literal") == 0)
3954 success = true;
3955 char *restrict newvar = "Another string";
3956
3957 // Check varargs.
3958 test_varargs ("s, d' f .", "string", 65, 34.234);
3959 test_varargs_macros ();
3960
3961 // Check flexible array members.
3962 struct incomplete_array *ia =
3963 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3964 ia->datasize = 10;
3965 for (int i = 0; i < ia->datasize; ++i)
3966 ia->data[i] = i * 1.234;
3967
3968 // Check named initializers.
3969 struct named_init ni = {
3970 .number = 34,
3971 .name = L"Test wide string",
3972 .average = 543.34343,
3973 };
3974
3975 ni.number = 58;
3976
3977 int dynamic_array[ni.number];
3978 dynamic_array[ni.number - 1] = 543;
3979
3980 // work around unused variable warnings
3981 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3982 || dynamic_array[ni.number - 1] != 543);
3983
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3989 do
3990 CC="$ac_save_CC $ac_arg"
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_cv_prog_cc_c99=$ac_arg
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext
3995 test "x$ac_cv_prog_cc_c99" != "xno" && break
3996 done
3997 rm -f conftest.$ac_ext
3998 CC=$ac_save_CC
3999
4000 fi
4001 # AC_CACHE_VAL
4002 case "x$ac_cv_prog_cc_c99" in
4003 x)
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4005 $as_echo "none needed" >&6; } ;;
4006 xno)
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4008 $as_echo "unsupported" >&6; } ;;
4009 *)
4010 CC="$CC $ac_cv_prog_cc_c99"
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4012 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4013 esac
4014 if test "x$ac_cv_prog_cc_c99" != xno; then :
4015
4016 fi
4017
4018
4019 if test "$ac_cv_prog_cc_c99" = "no"; then :
4020 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4021 fi
4022 case `pwd` in
4023 *\ * | *\ *)
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4025 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4026 esac
4027
4028
4029
4030 macro_version='2.4.6'
4031 macro_revision='2.4.6'
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045 ltmain=$ac_aux_dir/ltmain.sh
4046
4047 # Make sure we can run config.sub.
4048 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4049 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4052 $as_echo_n "checking build system type... " >&6; }
4053 if ${ac_cv_build+:} false; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 ac_build_alias=$build_alias
4057 test "x$ac_build_alias" = x &&
4058 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4059 test "x$ac_build_alias" = x &&
4060 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4061 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4062 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4063
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4066 $as_echo "$ac_cv_build" >&6; }
4067 case $ac_cv_build in
4068 *-*-*) ;;
4069 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4070 esac
4071 build=$ac_cv_build
4072 ac_save_IFS=$IFS; IFS='-'
4073 set x $ac_cv_build
4074 shift
4075 build_cpu=$1
4076 build_vendor=$2
4077 shift; shift
4078 # Remember, the first character of IFS is used to create $*,
4079 # except with old shells:
4080 build_os=$*
4081 IFS=$ac_save_IFS
4082 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4083
4084
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4086 $as_echo_n "checking host system type... " >&6; }
4087 if ${ac_cv_host+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test "x$host_alias" = x; then
4091 ac_cv_host=$ac_cv_build
4092 else
4093 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4094 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4095 fi
4096
4097 fi
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4099 $as_echo "$ac_cv_host" >&6; }
4100 case $ac_cv_host in
4101 *-*-*) ;;
4102 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4103 esac
4104 host=$ac_cv_host
4105 ac_save_IFS=$IFS; IFS='-'
4106 set x $ac_cv_host
4107 shift
4108 host_cpu=$1
4109 host_vendor=$2
4110 shift; shift
4111 # Remember, the first character of IFS is used to create $*,
4112 # except with old shells:
4113 host_os=$*
4114 IFS=$ac_save_IFS
4115 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4116
4117
4118 # Backslashify metacharacters that are still active within
4119 # double-quoted strings.
4120 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4121
4122 # Same as above, but do not quote variable references.
4123 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4124
4125 # Sed substitution to delay expansion of an escaped shell variable in a
4126 # double_quote_subst'ed string.
4127 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4128
4129 # Sed substitution to delay expansion of an escaped single quote.
4130 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4131
4132 # Sed substitution to avoid accidental globbing in evaled expressions
4133 no_glob_subst='s/\*/\\\*/g'
4134
4135 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4136 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4137 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4138
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4140 $as_echo_n "checking how to print strings... " >&6; }
4141 # Test print first, because it will be a builtin if present.
4142 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4143 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4144 ECHO='print -r --'
4145 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4146 ECHO='printf %s\n'
4147 else
4148 # Use this function as a fallback that always works.
4149 func_fallback_echo ()
4150 {
4151 eval 'cat <<_LTECHO_EOF
4152 $1
4153 _LTECHO_EOF'
4154 }
4155 ECHO='func_fallback_echo'
4156 fi
4157
4158 # func_echo_all arg...
4159 # Invoke $ECHO with all args, space-separated.
4160 func_echo_all ()
4161 {
4162 $ECHO ""
4163 }
4164
4165 case $ECHO in
4166 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4167 $as_echo "printf" >&6; } ;;
4168 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4169 $as_echo "print -r" >&6; } ;;
4170 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4171 $as_echo "cat" >&6; } ;;
4172 esac
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4188 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4189 if ${ac_cv_path_SED+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4193 for ac_i in 1 2 3 4 5 6 7; do
4194 ac_script="$ac_script$as_nl$ac_script"
4195 done
4196 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4197 { ac_script=; unset ac_script;}
4198 if test -z "$SED"; then
4199 ac_path_SED_found=false
4200 # Loop through the user's path and test for each of PROGNAME-LIST
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_prog in sed gsed; do
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4209 as_fn_executable_p "$ac_path_SED" || continue
4210 # Check for GNU ac_path_SED and select it if it is found.
4211 # Check for GNU $ac_path_SED
4212 case `"$ac_path_SED" --version 2>&1` in
4213 *GNU*)
4214 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4215 *)
4216 ac_count=0
4217 $as_echo_n 0123456789 >"conftest.in"
4218 while :
4219 do
4220 cat "conftest.in" "conftest.in" >"conftest.tmp"
4221 mv "conftest.tmp" "conftest.in"
4222 cp "conftest.in" "conftest.nl"
4223 $as_echo '' >> "conftest.nl"
4224 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226 as_fn_arith $ac_count + 1 && ac_count=$as_val
4227 if test $ac_count -gt ${ac_path_SED_max-0}; then
4228 # Best one so far, save it but keep looking for a better one
4229 ac_cv_path_SED="$ac_path_SED"
4230 ac_path_SED_max=$ac_count
4231 fi
4232 # 10*(2^10) chars as input seems more than enough
4233 test $ac_count -gt 10 && break
4234 done
4235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236 esac
4237
4238 $ac_path_SED_found && break 3
4239 done
4240 done
4241 done
4242 IFS=$as_save_IFS
4243 if test -z "$ac_cv_path_SED"; then
4244 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4245 fi
4246 else
4247 ac_cv_path_SED=$SED
4248 fi
4249
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4252 $as_echo "$ac_cv_path_SED" >&6; }
4253 SED="$ac_cv_path_SED"
4254 rm -f conftest.sed
4255
4256 test -z "$SED" && SED=sed
4257 Xsed="$SED -e 1s/^X//"
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4270 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4271 if ${ac_cv_path_GREP+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -z "$GREP"; then
4275 ac_path_GREP_found=false
4276 # Loop through the user's path and test for each of PROGNAME-LIST
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4279 do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_prog in grep ggrep; do
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4285 as_fn_executable_p "$ac_path_GREP" || continue
4286 # Check for GNU ac_path_GREP and select it if it is found.
4287 # Check for GNU $ac_path_GREP
4288 case `"$ac_path_GREP" --version 2>&1` in
4289 *GNU*)
4290 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4291 *)
4292 ac_count=0
4293 $as_echo_n 0123456789 >"conftest.in"
4294 while :
4295 do
4296 cat "conftest.in" "conftest.in" >"conftest.tmp"
4297 mv "conftest.tmp" "conftest.in"
4298 cp "conftest.in" "conftest.nl"
4299 $as_echo 'GREP' >> "conftest.nl"
4300 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302 as_fn_arith $ac_count + 1 && ac_count=$as_val
4303 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4304 # Best one so far, save it but keep looking for a better one
4305 ac_cv_path_GREP="$ac_path_GREP"
4306 ac_path_GREP_max=$ac_count
4307 fi
4308 # 10*(2^10) chars as input seems more than enough
4309 test $ac_count -gt 10 && break
4310 done
4311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312 esac
4313
4314 $ac_path_GREP_found && break 3
4315 done
4316 done
4317 done
4318 IFS=$as_save_IFS
4319 if test -z "$ac_cv_path_GREP"; then
4320 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4321 fi
4322 else
4323 ac_cv_path_GREP=$GREP
4324 fi
4325
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4328 $as_echo "$ac_cv_path_GREP" >&6; }
4329 GREP="$ac_cv_path_GREP"
4330
4331
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4333 $as_echo_n "checking for egrep... " >&6; }
4334 if ${ac_cv_path_EGREP+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4338 then ac_cv_path_EGREP="$GREP -E"
4339 else
4340 if test -z "$EGREP"; then
4341 ac_path_EGREP_found=false
4342 # Loop through the user's path and test for each of PROGNAME-LIST
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4345 do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_prog in egrep; do
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4351 as_fn_executable_p "$ac_path_EGREP" || continue
4352 # Check for GNU ac_path_EGREP and select it if it is found.
4353 # Check for GNU $ac_path_EGREP
4354 case `"$ac_path_EGREP" --version 2>&1` in
4355 *GNU*)
4356 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4357 *)
4358 ac_count=0
4359 $as_echo_n 0123456789 >"conftest.in"
4360 while :
4361 do
4362 cat "conftest.in" "conftest.in" >"conftest.tmp"
4363 mv "conftest.tmp" "conftest.in"
4364 cp "conftest.in" "conftest.nl"
4365 $as_echo 'EGREP' >> "conftest.nl"
4366 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4368 as_fn_arith $ac_count + 1 && ac_count=$as_val
4369 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4370 # Best one so far, save it but keep looking for a better one
4371 ac_cv_path_EGREP="$ac_path_EGREP"
4372 ac_path_EGREP_max=$ac_count
4373 fi
4374 # 10*(2^10) chars as input seems more than enough
4375 test $ac_count -gt 10 && break
4376 done
4377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4378 esac
4379
4380 $ac_path_EGREP_found && break 3
4381 done
4382 done
4383 done
4384 IFS=$as_save_IFS
4385 if test -z "$ac_cv_path_EGREP"; then
4386 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4387 fi
4388 else
4389 ac_cv_path_EGREP=$EGREP
4390 fi
4391
4392 fi
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4395 $as_echo "$ac_cv_path_EGREP" >&6; }
4396 EGREP="$ac_cv_path_EGREP"
4397
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4400 $as_echo_n "checking for fgrep... " >&6; }
4401 if ${ac_cv_path_FGREP+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4405 then ac_cv_path_FGREP="$GREP -F"
4406 else
4407 if test -z "$FGREP"; then
4408 ac_path_FGREP_found=false
4409 # Loop through the user's path and test for each of PROGNAME-LIST
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4412 do
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_prog in fgrep; do
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4418 as_fn_executable_p "$ac_path_FGREP" || continue
4419 # Check for GNU ac_path_FGREP and select it if it is found.
4420 # Check for GNU $ac_path_FGREP
4421 case `"$ac_path_FGREP" --version 2>&1` in
4422 *GNU*)
4423 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4424 *)
4425 ac_count=0
4426 $as_echo_n 0123456789 >"conftest.in"
4427 while :
4428 do
4429 cat "conftest.in" "conftest.in" >"conftest.tmp"
4430 mv "conftest.tmp" "conftest.in"
4431 cp "conftest.in" "conftest.nl"
4432 $as_echo 'FGREP' >> "conftest.nl"
4433 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4435 as_fn_arith $ac_count + 1 && ac_count=$as_val
4436 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4437 # Best one so far, save it but keep looking for a better one
4438 ac_cv_path_FGREP="$ac_path_FGREP"
4439 ac_path_FGREP_max=$ac_count
4440 fi
4441 # 10*(2^10) chars as input seems more than enough
4442 test $ac_count -gt 10 && break
4443 done
4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4445 esac
4446
4447 $ac_path_FGREP_found && break 3
4448 done
4449 done
4450 done
4451 IFS=$as_save_IFS
4452 if test -z "$ac_cv_path_FGREP"; then
4453 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4454 fi
4455 else
4456 ac_cv_path_FGREP=$FGREP
4457 fi
4458
4459 fi
4460 fi
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4462 $as_echo "$ac_cv_path_FGREP" >&6; }
4463 FGREP="$ac_cv_path_FGREP"
4464
4465
4466 test -z "$GREP" && GREP=grep
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486 # Check whether --with-gnu-ld was given.
4487 if test "${with_gnu_ld+set}" = set; then :
4488 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4489 else
4490 with_gnu_ld=no
4491 fi
4492
4493 ac_prog=ld
4494 if test yes = "$GCC"; then
4495 # Check if gcc -print-prog-name=ld gives a path.
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4497 $as_echo_n "checking for ld used by $CC... " >&6; }
4498 case $host in
4499 *-*-mingw*)
4500 # gcc leaves a trailing carriage return, which upsets mingw
4501 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4502 *)
4503 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4504 esac
4505 case $ac_prog in
4506 # Accept absolute paths.
4507 [\\/]* | ?:[\\/]*)
4508 re_direlt='/[^/][^/]*/\.\./'
4509 # Canonicalize the pathname of ld
4510 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4511 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4512 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4513 done
4514 test -z "$LD" && LD=$ac_prog
4515 ;;
4516 "")
4517 # If it fails, then pretend we aren't using GCC.
4518 ac_prog=ld
4519 ;;
4520 *)
4521 # If it is relative, then search for the first ld in PATH.
4522 with_gnu_ld=unknown
4523 ;;
4524 esac
4525 elif test yes = "$with_gnu_ld"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4527 $as_echo_n "checking for GNU ld... " >&6; }
4528 else
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4530 $as_echo_n "checking for non-GNU ld... " >&6; }
4531 fi
4532 if ${lt_cv_path_LD+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 if test -z "$LD"; then
4536 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4537 for ac_dir in $PATH; do
4538 IFS=$lt_save_ifs
4539 test -z "$ac_dir" && ac_dir=.
4540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4541 lt_cv_path_LD=$ac_dir/$ac_prog
4542 # Check to see if the program is GNU ld. I'd rather use --version,
4543 # but apparently some variants of GNU ld only accept -v.
4544 # Break only if it was the GNU/non-GNU ld that we prefer.
4545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4546 *GNU* | *'with BFD'*)
4547 test no != "$with_gnu_ld" && break
4548 ;;
4549 *)
4550 test yes != "$with_gnu_ld" && break
4551 ;;
4552 esac
4553 fi
4554 done
4555 IFS=$lt_save_ifs
4556 else
4557 lt_cv_path_LD=$LD # Let the user override the test with a path.
4558 fi
4559 fi
4560
4561 LD=$lt_cv_path_LD
4562 if test -n "$LD"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4564 $as_echo "$LD" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4571 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4572 if ${lt_cv_prog_gnu_ld+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4576 case `$LD -v 2>&1 </dev/null` in
4577 *GNU* | *'with BFD'*)
4578 lt_cv_prog_gnu_ld=yes
4579 ;;
4580 *)
4581 lt_cv_prog_gnu_ld=no
4582 ;;
4583 esac
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4586 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4587 with_gnu_ld=$lt_cv_prog_gnu_ld
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4598 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4599 if ${lt_cv_path_NM+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$NM"; then
4603 # Let the user override the test.
4604 lt_cv_path_NM=$NM
4605 else
4606 lt_nm_to_check=${ac_tool_prefix}nm
4607 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4608 lt_nm_to_check="$lt_nm_to_check nm"
4609 fi
4610 for lt_tmp_nm in $lt_nm_to_check; do
4611 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4612 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4613 IFS=$lt_save_ifs
4614 test -z "$ac_dir" && ac_dir=.
4615 tmp_nm=$ac_dir/$lt_tmp_nm
4616 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4617 # Check to see if the nm accepts a BSD-compat flag.
4618 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4619 # nm: unknown option "B" ignored
4620 # Tru64's nm complains that /dev/null is an invalid object file
4621 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4622 case $build_os in
4623 mingw*) lt_bad_file=conftest.nm/nofile ;;
4624 *) lt_bad_file=/dev/null ;;
4625 esac
4626 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4627 *$lt_bad_file* | *'Invalid file or object type'*)
4628 lt_cv_path_NM="$tmp_nm -B"
4629 break 2
4630 ;;
4631 *)
4632 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4633 */dev/null*)
4634 lt_cv_path_NM="$tmp_nm -p"
4635 break 2
4636 ;;
4637 *)
4638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4639 continue # so that we can try to find one that supports BSD flags
4640 ;;
4641 esac
4642 ;;
4643 esac
4644 fi
4645 done
4646 IFS=$lt_save_ifs
4647 done
4648 : ${lt_cv_path_NM=no}
4649 fi
4650 fi
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4652 $as_echo "$lt_cv_path_NM" >&6; }
4653 if test no != "$lt_cv_path_NM"; then
4654 NM=$lt_cv_path_NM
4655 else
4656 # Didn't find any BSD compatible name lister, look for dumpbin.
4657 if test -n "$DUMPBIN"; then :
4658 # Let the user override the test.
4659 else
4660 if test -n "$ac_tool_prefix"; then
4661 for ac_prog in dumpbin "link -dump"
4662 do
4663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if ${ac_cv_prog_DUMPBIN+:} false; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -n "$DUMPBIN"; then
4671 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684 done
4685 done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
4690 DUMPBIN=$ac_cv_prog_DUMPBIN
4691 if test -n "$DUMPBIN"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4693 $as_echo "$DUMPBIN" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4697 fi
4698
4699
4700 test -n "$DUMPBIN" && break
4701 done
4702 fi
4703 if test -z "$DUMPBIN"; then
4704 ac_ct_DUMPBIN=$DUMPBIN
4705 for ac_prog in dumpbin "link -dump"
4706 do
4707 # Extract the first word of "$ac_prog", so it can be a program name with args.
4708 set dummy $ac_prog; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 if test -n "$ac_ct_DUMPBIN"; then
4715 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732 fi
4733 fi
4734 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4735 if test -n "$ac_ct_DUMPBIN"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4737 $as_echo "$ac_ct_DUMPBIN" >&6; }
4738 else
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4741 fi
4742
4743
4744 test -n "$ac_ct_DUMPBIN" && break
4745 done
4746
4747 if test "x$ac_ct_DUMPBIN" = x; then
4748 DUMPBIN=":"
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756 DUMPBIN=$ac_ct_DUMPBIN
4757 fi
4758 fi
4759
4760 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4761 *COFF*)
4762 DUMPBIN="$DUMPBIN -symbols -headers"
4763 ;;
4764 *)
4765 DUMPBIN=:
4766 ;;
4767 esac
4768 fi
4769
4770 if test : != "$DUMPBIN"; then
4771 NM=$DUMPBIN
4772 fi
4773 fi
4774 test -z "$NM" && NM=nm
4775
4776
4777
4778
4779
4780
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4782 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4783 if ${lt_cv_nm_interface+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 lt_cv_nm_interface="BSD nm"
4787 echo "int some_variable = 0;" > conftest.$ac_ext
4788 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4789 (eval "$ac_compile" 2>conftest.err)
4790 cat conftest.err >&5
4791 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4792 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4793 cat conftest.err >&5
4794 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4795 cat conftest.out >&5
4796 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4797 lt_cv_nm_interface="MS dumpbin"
4798 fi
4799 rm -f conftest*
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4802 $as_echo "$lt_cv_nm_interface" >&6; }
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4805 $as_echo_n "checking whether ln -s works... " >&6; }
4806 LN_S=$as_ln_s
4807 if test "$LN_S" = "ln -s"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4812 $as_echo "no, using $LN_S" >&6; }
4813 fi
4814
4815 # find the maximum length of command line arguments
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4817 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4818 if ${lt_cv_sys_max_cmd_len+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 i=0
4822 teststring=ABCD
4823
4824 case $build_os in
4825 msdosdjgpp*)
4826 # On DJGPP, this test can blow up pretty badly due to problems in libc
4827 # (any single argument exceeding 2000 bytes causes a buffer overrun
4828 # during glob expansion). Even if it were fixed, the result of this
4829 # check would be larger than it should be.
4830 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4831 ;;
4832
4833 gnu*)
4834 # Under GNU Hurd, this test is not required because there is
4835 # no limit to the length of command line arguments.
4836 # Libtool will interpret -1 as no limit whatsoever
4837 lt_cv_sys_max_cmd_len=-1;
4838 ;;
4839
4840 cygwin* | mingw* | cegcc*)
4841 # On Win9x/ME, this test blows up -- it succeeds, but takes
4842 # about 5 minutes as the teststring grows exponentially.
4843 # Worse, since 9x/ME are not pre-emptively multitasking,
4844 # you end up with a "frozen" computer, even though with patience
4845 # the test eventually succeeds (with a max line length of 256k).
4846 # Instead, let's just punt: use the minimum linelength reported by
4847 # all of the supported platforms: 8192 (on NT/2K/XP).
4848 lt_cv_sys_max_cmd_len=8192;
4849 ;;
4850
4851 mint*)
4852 # On MiNT this can take a long time and run out of memory.
4853 lt_cv_sys_max_cmd_len=8192;
4854 ;;
4855
4856 amigaos*)
4857 # On AmigaOS with pdksh, this test takes hours, literally.
4858 # So we just punt and use a minimum line length of 8192.
4859 lt_cv_sys_max_cmd_len=8192;
4860 ;;
4861
4862 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4863 # This has been around since 386BSD, at least. Likely further.
4864 if test -x /sbin/sysctl; then
4865 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4866 elif test -x /usr/sbin/sysctl; then
4867 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4868 else
4869 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4870 fi
4871 # And add a safety zone
4872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4874 ;;
4875
4876 interix*)
4877 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4878 lt_cv_sys_max_cmd_len=196608
4879 ;;
4880
4881 os2*)
4882 # The test takes a long time on OS/2.
4883 lt_cv_sys_max_cmd_len=8192
4884 ;;
4885
4886 osf*)
4887 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4888 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4889 # nice to cause kernel panics so lets avoid the loop below.
4890 # First set a reasonable default.
4891 lt_cv_sys_max_cmd_len=16384
4892 #
4893 if test -x /sbin/sysconfig; then
4894 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4895 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4896 esac
4897 fi
4898 ;;
4899 sco3.2v5*)
4900 lt_cv_sys_max_cmd_len=102400
4901 ;;
4902 sysv5* | sco5v6* | sysv4.2uw2*)
4903 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4904 if test -n "$kargmax"; then
4905 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4906 else
4907 lt_cv_sys_max_cmd_len=32768
4908 fi
4909 ;;
4910 *)
4911 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4912 if test -n "$lt_cv_sys_max_cmd_len" && \
4913 test undefined != "$lt_cv_sys_max_cmd_len"; then
4914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4916 else
4917 # Make teststring a little bigger before we do anything with it.
4918 # a 1K string should be a reasonable start.
4919 for i in 1 2 3 4 5 6 7 8; do
4920 teststring=$teststring$teststring
4921 done
4922 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4923 # If test is not a shell built-in, we'll probably end up computing a
4924 # maximum length that is only half of the actual maximum length, but
4925 # we can't tell.
4926 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4927 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4928 test 17 != "$i" # 1/2 MB should be enough
4929 do
4930 i=`expr $i + 1`
4931 teststring=$teststring$teststring
4932 done
4933 # Only check the string length outside the loop.
4934 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4935 teststring=
4936 # Add a significant safety factor because C++ compilers can tack on
4937 # massive amounts of additional arguments before passing them to the
4938 # linker. It appears as though 1/2 is a usable value.
4939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4940 fi
4941 ;;
4942 esac
4943
4944 fi
4945
4946 if test -n "$lt_cv_sys_max_cmd_len"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4948 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4951 $as_echo "none" >&6; }
4952 fi
4953 max_cmd_len=$lt_cv_sys_max_cmd_len
4954
4955
4956
4957
4958
4959
4960 : ${CP="cp -f"}
4961 : ${MV="mv -f"}
4962 : ${RM="rm -f"}
4963
4964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4965 lt_unset=unset
4966 else
4967 lt_unset=false
4968 fi
4969
4970
4971
4972
4973
4974 # test EBCDIC or ASCII
4975 case `echo X|tr X '\101'` in
4976 A) # ASCII based system
4977 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4978 lt_SP2NL='tr \040 \012'
4979 lt_NL2SP='tr \015\012 \040\040'
4980 ;;
4981 *) # EBCDIC based system
4982 lt_SP2NL='tr \100 \n'
4983 lt_NL2SP='tr \r\n \100\100'
4984 ;;
4985 esac
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4996 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4997 if ${lt_cv_to_host_file_cmd+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 case $host in
5001 *-*-mingw* )
5002 case $build in
5003 *-*-mingw* ) # actually msys
5004 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5005 ;;
5006 *-*-cygwin* )
5007 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5008 ;;
5009 * ) # otherwise, assume *nix
5010 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5011 ;;
5012 esac
5013 ;;
5014 *-*-cygwin* )
5015 case $build in
5016 *-*-mingw* ) # actually msys
5017 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5018 ;;
5019 *-*-cygwin* )
5020 lt_cv_to_host_file_cmd=func_convert_file_noop
5021 ;;
5022 * ) # otherwise, assume *nix
5023 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5024 ;;
5025 esac
5026 ;;
5027 * ) # unhandled hosts (and "normal" native builds)
5028 lt_cv_to_host_file_cmd=func_convert_file_noop
5029 ;;
5030 esac
5031
5032 fi
5033
5034 to_host_file_cmd=$lt_cv_to_host_file_cmd
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5036 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5037
5038
5039
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5043 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5044 if ${lt_cv_to_tool_file_cmd+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 #assume ordinary cross tools, or native build.
5048 lt_cv_to_tool_file_cmd=func_convert_file_noop
5049 case $host in
5050 *-*-mingw* )
5051 case $build in
5052 *-*-mingw* ) # actually msys
5053 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5054 ;;
5055 esac
5056 ;;
5057 esac
5058
5059 fi
5060
5061 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5063 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5064
5065
5066
5067
5068
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5070 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5071 if ${lt_cv_ld_reload_flag+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 lt_cv_ld_reload_flag='-r'
5075 fi
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5077 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5078 reload_flag=$lt_cv_ld_reload_flag
5079 case $reload_flag in
5080 "" | " "*) ;;
5081 *) reload_flag=" $reload_flag" ;;
5082 esac
5083 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5084 case $host_os in
5085 cygwin* | mingw* | pw32* | cegcc*)
5086 if test yes != "$GCC"; then
5087 reload_cmds=false
5088 fi
5089 ;;
5090 darwin*)
5091 if test yes = "$GCC"; then
5092 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5093 else
5094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5095 fi
5096 ;;
5097 esac
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 if test -n "$ac_tool_prefix"; then
5108 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5109 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if ${ac_cv_prog_OBJDUMP+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 if test -n "$OBJDUMP"; then
5116 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129 done
5130 done
5131 IFS=$as_save_IFS
5132
5133 fi
5134 fi
5135 OBJDUMP=$ac_cv_prog_OBJDUMP
5136 if test -n "$OBJDUMP"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5138 $as_echo "$OBJDUMP" >&6; }
5139 else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5142 fi
5143
5144
5145 fi
5146 if test -z "$ac_cv_prog_OBJDUMP"; then
5147 ac_ct_OBJDUMP=$OBJDUMP
5148 # Extract the first word of "objdump", so it can be a program name with args.
5149 set dummy objdump; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ac_ct_OBJDUMP"; then
5156 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169 done
5170 done
5171 IFS=$as_save_IFS
5172
5173 fi
5174 fi
5175 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5176 if test -n "$ac_ct_OBJDUMP"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5178 $as_echo "$ac_ct_OBJDUMP" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183
5184 if test "x$ac_ct_OBJDUMP" = x; then
5185 OBJDUMP="false"
5186 else
5187 case $cross_compiling:$ac_tool_warned in
5188 yes:)
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5191 ac_tool_warned=yes ;;
5192 esac
5193 OBJDUMP=$ac_ct_OBJDUMP
5194 fi
5195 else
5196 OBJDUMP="$ac_cv_prog_OBJDUMP"
5197 fi
5198
5199 test -z "$OBJDUMP" && OBJDUMP=objdump
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5210 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5211 if ${lt_cv_deplibs_check_method+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 lt_cv_file_magic_cmd='$MAGIC_CMD'
5215 lt_cv_file_magic_test_file=
5216 lt_cv_deplibs_check_method='unknown'
5217 # Need to set the preceding variable on all platforms that support
5218 # interlibrary dependencies.
5219 # 'none' -- dependencies not supported.
5220 # 'unknown' -- same as none, but documents that we really don't know.
5221 # 'pass_all' -- all dependencies passed with no checks.
5222 # 'test_compile' -- check by making test program.
5223 # 'file_magic [[regex]]' -- check by looking for files in library path
5224 # that responds to the $file_magic_cmd with a given extended regex.
5225 # If you have 'file' or equivalent on your system and you're not sure
5226 # whether 'pass_all' will *always* work, you probably want this one.
5227
5228 case $host_os in
5229 aix[4-9]*)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232
5233 beos*)
5234 lt_cv_deplibs_check_method=pass_all
5235 ;;
5236
5237 bsdi[45]*)
5238 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5239 lt_cv_file_magic_cmd='/usr/bin/file -L'
5240 lt_cv_file_magic_test_file=/shlib/libc.so
5241 ;;
5242
5243 cygwin*)
5244 # func_win32_libid is a shell function defined in ltmain.sh
5245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5246 lt_cv_file_magic_cmd='func_win32_libid'
5247 ;;
5248
5249 mingw* | pw32*)
5250 # Base MSYS/MinGW do not provide the 'file' command needed by
5251 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5252 # unless we find 'file', for example because we are cross-compiling.
5253 if ( file / ) >/dev/null 2>&1; then
5254 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5255 lt_cv_file_magic_cmd='func_win32_libid'
5256 else
5257 # Keep this pattern in sync with the one in func_win32_libid.
5258 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5259 lt_cv_file_magic_cmd='$OBJDUMP -f'
5260 fi
5261 ;;
5262
5263 cegcc*)
5264 # use the weaker test based on 'objdump'. See mingw*.
5265 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5266 lt_cv_file_magic_cmd='$OBJDUMP -f'
5267 ;;
5268
5269 darwin* | rhapsody*)
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
5272
5273 freebsd* | dragonfly*)
5274 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5275 case $host_cpu in
5276 i*86 )
5277 # Not sure whether the presence of OpenBSD here was a mistake.
5278 # Let's accept both of them until this is cleared up.
5279 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5280 lt_cv_file_magic_cmd=/usr/bin/file
5281 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5282 ;;
5283 esac
5284 else
5285 lt_cv_deplibs_check_method=pass_all
5286 fi
5287 ;;
5288
5289 haiku*)
5290 lt_cv_deplibs_check_method=pass_all
5291 ;;
5292
5293 hpux10.20* | hpux11*)
5294 lt_cv_file_magic_cmd=/usr/bin/file
5295 case $host_cpu in
5296 ia64*)
5297 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5298 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5299 ;;
5300 hppa*64*)
5301 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]'
5302 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5303 ;;
5304 *)
5305 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5306 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5307 ;;
5308 esac
5309 ;;
5310
5311 interix[3-9]*)
5312 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5314 ;;
5315
5316 irix5* | irix6* | nonstopux*)
5317 case $LD in
5318 *-32|*"-32 ") libmagic=32-bit;;
5319 *-n32|*"-n32 ") libmagic=N32;;
5320 *-64|*"-64 ") libmagic=64-bit;;
5321 *) libmagic=never-match;;
5322 esac
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326 # This must be glibc/ELF.
5327 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5328 lt_cv_deplibs_check_method=pass_all
5329 ;;
5330
5331 netbsd* | netbsdelf*-gnu)
5332 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5334 else
5335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5336 fi
5337 ;;
5338
5339 newos6*)
5340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5341 lt_cv_file_magic_cmd=/usr/bin/file
5342 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5343 ;;
5344
5345 *nto* | *qnx*)
5346 lt_cv_deplibs_check_method=pass_all
5347 ;;
5348
5349 openbsd* | bitrig*)
5350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5352 else
5353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5354 fi
5355 ;;
5356
5357 osf3* | osf4* | osf5*)
5358 lt_cv_deplibs_check_method=pass_all
5359 ;;
5360
5361 rdos*)
5362 lt_cv_deplibs_check_method=pass_all
5363 ;;
5364
5365 solaris*)
5366 lt_cv_deplibs_check_method=pass_all
5367 ;;
5368
5369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372
5373 sysv4 | sysv4.3*)
5374 case $host_vendor in
5375 motorola)
5376 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]'
5377 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5378 ;;
5379 ncr)
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382 sequent)
5383 lt_cv_file_magic_cmd='/bin/file'
5384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5385 ;;
5386 sni)
5387 lt_cv_file_magic_cmd='/bin/file'
5388 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5389 lt_cv_file_magic_test_file=/lib/libc.so
5390 ;;
5391 siemens)
5392 lt_cv_deplibs_check_method=pass_all
5393 ;;
5394 pc)
5395 lt_cv_deplibs_check_method=pass_all
5396 ;;
5397 esac
5398 ;;
5399
5400 tpf*)
5401 lt_cv_deplibs_check_method=pass_all
5402 ;;
5403 os2*)
5404 lt_cv_deplibs_check_method=pass_all
5405 ;;
5406 esac
5407
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5410 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5411
5412 file_magic_glob=
5413 want_nocaseglob=no
5414 if test "$build" = "$host"; then
5415 case $host_os in
5416 mingw* | pw32*)
5417 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5418 want_nocaseglob=yes
5419 else
5420 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5421 fi
5422 ;;
5423 esac
5424 fi
5425
5426 file_magic_cmd=$lt_cv_file_magic_cmd
5427 deplibs_check_method=$lt_cv_deplibs_check_method
5428 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451 if test -n "$ac_tool_prefix"; then
5452 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5453 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_DLLTOOL+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -n "$DLLTOOL"; then
5460 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5472 fi
5473 done
5474 done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 DLLTOOL=$ac_cv_prog_DLLTOOL
5480 if test -n "$DLLTOOL"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5482 $as_echo "$DLLTOOL" >&6; }
5483 else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488
5489 fi
5490 if test -z "$ac_cv_prog_DLLTOOL"; then
5491 ac_ct_DLLTOOL=$DLLTOOL
5492 # Extract the first word of "dlltool", so it can be a program name with args.
5493 set dummy dlltool; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$ac_ct_DLLTOOL"; then
5500 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5520 if test -n "$ac_ct_DLLTOOL"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5522 $as_echo "$ac_ct_DLLTOOL" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528 if test "x$ac_ct_DLLTOOL" = x; then
5529 DLLTOOL="false"
5530 else
5531 case $cross_compiling:$ac_tool_warned in
5532 yes:)
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5535 ac_tool_warned=yes ;;
5536 esac
5537 DLLTOOL=$ac_ct_DLLTOOL
5538 fi
5539 else
5540 DLLTOOL="$ac_cv_prog_DLLTOOL"
5541 fi
5542
5543 test -z "$DLLTOOL" && DLLTOOL=dlltool
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5555 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5556 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 lt_cv_sharedlib_from_linklib_cmd='unknown'
5560
5561 case $host_os in
5562 cygwin* | mingw* | pw32* | cegcc*)
5563 # two different shell functions defined in ltmain.sh;
5564 # decide which one to use based on capabilities of $DLLTOOL
5565 case `$DLLTOOL --help 2>&1` in
5566 *--identify-strict*)
5567 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5568 ;;
5569 *)
5570 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5571 ;;
5572 esac
5573 ;;
5574 *)
5575 # fallback: assume linklib IS sharedlib
5576 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5577 ;;
5578 esac
5579
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5582 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5583 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5584 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5585
5586
5587
5588
5589
5590
5591
5592
5593 if test -n "$ac_tool_prefix"; then
5594 for ac_prog in ar
5595 do
5596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_prog_AR+:} false; then :
5601 $as_echo_n "(cached) " >&6
5602 else
5603 if test -n "$AR"; then
5604 ac_cv_prog_AR="$AR" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 AR=$ac_cv_prog_AR
5624 if test -n "$AR"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5626 $as_echo "$AR" >&6; }
5627 else
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 $as_echo "no" >&6; }
5630 fi
5631
5632
5633 test -n "$AR" && break
5634 done
5635 fi
5636 if test -z "$AR"; then
5637 ac_ct_AR=$AR
5638 for ac_prog in ar
5639 do
5640 # Extract the first word of "$ac_prog", so it can be a program name with args.
5641 set dummy $ac_prog; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 if test -n "$ac_ct_AR"; then
5648 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_ac_ct_AR="$ac_prog"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661 done
5662 done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5668 if test -n "$ac_ct_AR"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5670 $as_echo "$ac_ct_AR" >&6; }
5671 else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676
5677 test -n "$ac_ct_AR" && break
5678 done
5679
5680 if test "x$ac_ct_AR" = x; then
5681 AR="false"
5682 else
5683 case $cross_compiling:$ac_tool_warned in
5684 yes:)
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5688 esac
5689 AR=$ac_ct_AR
5690 fi
5691 fi
5692
5693 : ${AR=ar}
5694 : ${AR_FLAGS=cr}
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5707 $as_echo_n "checking for archiver @FILE support... " >&6; }
5708 if ${lt_cv_ar_at_file+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 lt_cv_ar_at_file=no
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714
5715 int
5716 main ()
5717 {
5718
5719 ;
5720 return 0;
5721 }
5722 _ACEOF
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724 echo conftest.$ac_objext > conftest.lst
5725 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5727 (eval $lt_ar_try) 2>&5
5728 ac_status=$?
5729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730 test $ac_status = 0; }
5731 if test 0 -eq "$ac_status"; then
5732 # Ensure the archiver fails upon bogus file names.
5733 rm -f conftest.$ac_objext libconftest.a
5734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5735 (eval $lt_ar_try) 2>&5
5736 ac_status=$?
5737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738 test $ac_status = 0; }
5739 if test 0 -ne "$ac_status"; then
5740 lt_cv_ar_at_file=@
5741 fi
5742 fi
5743 rm -f conftest.* libconftest.a
5744
5745 fi
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747
5748 fi
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5750 $as_echo "$lt_cv_ar_at_file" >&6; }
5751
5752 if test no = "$lt_cv_ar_at_file"; then
5753 archiver_list_spec=
5754 else
5755 archiver_list_spec=$lt_cv_ar_at_file
5756 fi
5757
5758
5759
5760
5761
5762
5763
5764 if test -n "$ac_tool_prefix"; then
5765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5766 set dummy ${ac_tool_prefix}strip; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_STRIP+:} false; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if test -n "$STRIP"; then
5773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786 done
5787 done
5788 IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 STRIP=$ac_cv_prog_STRIP
5793 if test -n "$STRIP"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5795 $as_echo "$STRIP" >&6; }
5796 else
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801
5802 fi
5803 if test -z "$ac_cv_prog_STRIP"; then
5804 ac_ct_STRIP=$STRIP
5805 # Extract the first word of "strip", so it can be a program name with args.
5806 set dummy strip; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if test -n "$ac_ct_STRIP"; then
5813 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5814 else
5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 for as_dir in $PATH
5817 do
5818 IFS=$as_save_IFS
5819 test -z "$as_dir" && as_dir=.
5820 for ac_exec_ext in '' $ac_executable_extensions; do
5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_ac_ct_STRIP="strip"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 break 2
5825 fi
5826 done
5827 done
5828 IFS=$as_save_IFS
5829
5830 fi
5831 fi
5832 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5833 if test -n "$ac_ct_STRIP"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5835 $as_echo "$ac_ct_STRIP" >&6; }
5836 else
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5839 fi
5840
5841 if test "x$ac_ct_STRIP" = x; then
5842 STRIP=":"
5843 else
5844 case $cross_compiling:$ac_tool_warned in
5845 yes:)
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848 ac_tool_warned=yes ;;
5849 esac
5850 STRIP=$ac_ct_STRIP
5851 fi
5852 else
5853 STRIP="$ac_cv_prog_STRIP"
5854 fi
5855
5856 test -z "$STRIP" && STRIP=:
5857
5858
5859
5860
5861
5862
5863 if test -n "$ac_tool_prefix"; then
5864 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5865 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_prog_RANLIB+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 if test -n "$RANLIB"; then
5872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885 done
5886 done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 RANLIB=$ac_cv_prog_RANLIB
5892 if test -n "$RANLIB"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5894 $as_echo "$RANLIB" >&6; }
5895 else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899
5900
5901 fi
5902 if test -z "$ac_cv_prog_RANLIB"; then
5903 ac_ct_RANLIB=$RANLIB
5904 # Extract the first word of "ranlib", so it can be a program name with args.
5905 set dummy ranlib; ac_word=$2
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 $as_echo_n "checking for $ac_word... " >&6; }
5908 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 if test -n "$ac_ct_RANLIB"; then
5912 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_ac_ct_RANLIB="ranlib"
5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5932 if test -n "$ac_ct_RANLIB"; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5934 $as_echo "$ac_ct_RANLIB" >&6; }
5935 else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939
5940 if test "x$ac_ct_RANLIB" = x; then
5941 RANLIB=":"
5942 else
5943 case $cross_compiling:$ac_tool_warned in
5944 yes:)
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5947 ac_tool_warned=yes ;;
5948 esac
5949 RANLIB=$ac_ct_RANLIB
5950 fi
5951 else
5952 RANLIB="$ac_cv_prog_RANLIB"
5953 fi
5954
5955 test -z "$RANLIB" && RANLIB=:
5956
5957
5958
5959
5960
5961
5962 # Determine commands to create old-style static archives.
5963 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5964 old_postinstall_cmds='chmod 644 $oldlib'
5965 old_postuninstall_cmds=
5966
5967 if test -n "$RANLIB"; then
5968 case $host_os in
5969 bitrig* | openbsd*)
5970 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5971 ;;
5972 *)
5973 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5974 ;;
5975 esac
5976 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5977 fi
5978
5979 case $host_os in
5980 darwin*)
5981 lock_old_archive_extraction=yes ;;
5982 *)
5983 lock_old_archive_extraction=no ;;
5984 esac
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 # If no C compiler was specified, use CC.
6025 LTCC=${LTCC-"$CC"}
6026
6027 # If no C compiler flags were specified, use CFLAGS.
6028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6029
6030 # Allow CC to be a program name with arguments.
6031 compiler=$CC
6032
6033
6034 # Check for command to grab the raw symbol name followed by C symbol from nm.
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6036 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6037 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040
6041 # These are sane defaults that work on at least a few old systems.
6042 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6043
6044 # Character class describing NM global symbol codes.
6045 symcode='[BCDEGRST]'
6046
6047 # Regexp to match symbols that can be accessed directly from C.
6048 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6049
6050 # Define system-specific variables.
6051 case $host_os in
6052 aix*)
6053 symcode='[BCDT]'
6054 ;;
6055 cygwin* | mingw* | pw32* | cegcc*)
6056 symcode='[ABCDGISTW]'
6057 ;;
6058 hpux*)
6059 if test ia64 = "$host_cpu"; then
6060 symcode='[ABCDEGRST]'
6061 fi
6062 ;;
6063 irix* | nonstopux*)
6064 symcode='[BCDEGRST]'
6065 ;;
6066 osf*)
6067 symcode='[BCDEGQRST]'
6068 ;;
6069 solaris*)
6070 symcode='[BDRT]'
6071 ;;
6072 sco3.2v5*)
6073 symcode='[DT]'
6074 ;;
6075 sysv4.2uw2*)
6076 symcode='[DT]'
6077 ;;
6078 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6079 symcode='[ABDT]'
6080 ;;
6081 sysv4)
6082 symcode='[DFNSTU]'
6083 ;;
6084 esac
6085
6086 # If we're using GNU nm, then use its standard symbol codes.
6087 case `$NM -V 2>&1` in
6088 *GNU* | *'with BFD'*)
6089 symcode='[ABCDGIRSTW]' ;;
6090 esac
6091
6092 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6093 # Gets list of data symbols to import.
6094 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6095 # Adjust the below global symbol transforms to fixup imported variables.
6096 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6097 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6098 lt_c_name_lib_hook="\
6099 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6100 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6101 else
6102 # Disable hooks by default.
6103 lt_cv_sys_global_symbol_to_import=
6104 lt_cdecl_hook=
6105 lt_c_name_hook=
6106 lt_c_name_lib_hook=
6107 fi
6108
6109 # Transform an extracted symbol line into a proper C declaration.
6110 # Some systems (esp. on ia64) link data and code symbols differently,
6111 # so use this general approach.
6112 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6113 $lt_cdecl_hook\
6114 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6115 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6116
6117 # Transform an extracted symbol line into symbol name and symbol address
6118 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6119 $lt_c_name_hook\
6120 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6121 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6122
6123 # Transform an extracted symbol line into symbol name with lib prefix and
6124 # symbol address.
6125 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6126 $lt_c_name_lib_hook\
6127 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6128 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6129 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6130
6131 # Handle CRLF in mingw tool chain
6132 opt_cr=
6133 case $build_os in
6134 mingw*)
6135 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6136 ;;
6137 esac
6138
6139 # Try without a prefix underscore, then with it.
6140 for ac_symprfx in "" "_"; do
6141
6142 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6143 symxfrm="\\1 $ac_symprfx\\2 \\2"
6144
6145 # Write the raw and C identifiers.
6146 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6147 # Fake it for dumpbin and say T for any non-static function,
6148 # D for any global variable and I for any imported variable.
6149 # Also find C++ and __fastcall symbols from MSVC++,
6150 # which start with @ or ?.
6151 lt_cv_sys_global_symbol_pipe="$AWK '"\
6152 " {last_section=section; section=\$ 3};"\
6153 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6154 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6155 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6156 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6157 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6158 " \$ 0!~/External *\|/{next};"\
6159 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6160 " {if(hide[section]) next};"\
6161 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6162 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6163 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6164 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6165 " ' prfx=^$ac_symprfx"
6166 else
6167 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6168 fi
6169 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6170
6171 # Check to see that the pipe works correctly.
6172 pipe_works=no
6173
6174 rm -f conftest*
6175 cat > conftest.$ac_ext <<_LT_EOF
6176 #ifdef __cplusplus
6177 extern "C" {
6178 #endif
6179 char nm_test_var;
6180 void nm_test_func(void);
6181 void nm_test_func(void){}
6182 #ifdef __cplusplus
6183 }
6184 #endif
6185 int main(){nm_test_var='a';nm_test_func();return(0);}
6186 _LT_EOF
6187
6188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6189 (eval $ac_compile) 2>&5
6190 ac_status=$?
6191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6192 test $ac_status = 0; }; then
6193 # Now try to grab the symbols.
6194 nlist=conftest.nm
6195 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6196 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6197 # Try sorting and uniquifying the output.
6198 if sort "$nlist" | uniq > "$nlist"T; then
6199 mv -f "$nlist"T "$nlist"
6200 else
6201 rm -f "$nlist"T
6202 fi
6203
6204 # Make sure that we snagged all the symbols we need.
6205 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6206 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6207 cat <<_LT_EOF > conftest.$ac_ext
6208 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6209 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6210 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6211 relocations are performed -- see ld's documentation on pseudo-relocs. */
6212 # define LT_DLSYM_CONST
6213 #elif defined __osf__
6214 /* This system does not cope well with relocations in const data. */
6215 # define LT_DLSYM_CONST
6216 #else
6217 # define LT_DLSYM_CONST const
6218 #endif
6219
6220 #ifdef __cplusplus
6221 extern "C" {
6222 #endif
6223
6224 _LT_EOF
6225 # Now generate the symbol file.
6226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6227
6228 cat <<_LT_EOF >> conftest.$ac_ext
6229
6230 /* The mapping between symbol names and symbols. */
6231 LT_DLSYM_CONST struct {
6232 const char *name;
6233 void *address;
6234 }
6235 lt__PROGRAM__LTX_preloaded_symbols[] =
6236 {
6237 { "@PROGRAM@", (void *) 0 },
6238 _LT_EOF
6239 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6240 cat <<\_LT_EOF >> conftest.$ac_ext
6241 {0, (void *) 0}
6242 };
6243
6244 /* This works around a problem in FreeBSD linker */
6245 #ifdef FREEBSD_WORKAROUND
6246 static const void *lt_preloaded_setup() {
6247 return lt__PROGRAM__LTX_preloaded_symbols;
6248 }
6249 #endif
6250
6251 #ifdef __cplusplus
6252 }
6253 #endif
6254 _LT_EOF
6255 # Now try linking the two files.
6256 mv conftest.$ac_objext conftstm.$ac_objext
6257 lt_globsym_save_LIBS=$LIBS
6258 lt_globsym_save_CFLAGS=$CFLAGS
6259 LIBS=conftstm.$ac_objext
6260 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6262 (eval $ac_link) 2>&5
6263 ac_status=$?
6264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6266 pipe_works=yes
6267 fi
6268 LIBS=$lt_globsym_save_LIBS
6269 CFLAGS=$lt_globsym_save_CFLAGS
6270 else
6271 echo "cannot find nm_test_func in $nlist" >&5
6272 fi
6273 else
6274 echo "cannot find nm_test_var in $nlist" >&5
6275 fi
6276 else
6277 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6278 fi
6279 else
6280 echo "$progname: failed program was:" >&5
6281 cat conftest.$ac_ext >&5
6282 fi
6283 rm -rf conftest* conftst*
6284
6285 # Do not use the global_symbol_pipe unless it works.
6286 if test yes = "$pipe_works"; then
6287 break
6288 else
6289 lt_cv_sys_global_symbol_pipe=
6290 fi
6291 done
6292
6293 fi
6294
6295 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6296 lt_cv_sys_global_symbol_to_cdecl=
6297 fi
6298 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6300 $as_echo "failed" >&6; }
6301 else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6303 $as_echo "ok" >&6; }
6304 fi
6305
6306 # Response file support.
6307 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6308 nm_file_list_spec='@'
6309 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6310 nm_file_list_spec='@'
6311 fi
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6350 $as_echo_n "checking for sysroot... " >&6; }
6351
6352 # Check whether --with-sysroot was given.
6353 if test "${with_sysroot+set}" = set; then :
6354 withval=$with_sysroot;
6355 else
6356 with_sysroot=no
6357 fi
6358
6359
6360 lt_sysroot=
6361 case $with_sysroot in #(
6362 yes)
6363 if test yes = "$GCC"; then
6364 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6365 fi
6366 ;; #(
6367 /*)
6368 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6369 ;; #(
6370 no|'')
6371 ;; #(
6372 *)
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6374 $as_echo "$with_sysroot" >&6; }
6375 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6376 ;;
6377 esac
6378
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6380 $as_echo "${lt_sysroot:-no}" >&6; }
6381
6382
6383
6384
6385
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6387 $as_echo_n "checking for a working dd... " >&6; }
6388 if ${ac_cv_path_lt_DD+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 printf 0123456789abcdef0123456789abcdef >conftest.i
6392 cat conftest.i conftest.i >conftest2.i
6393 : ${lt_DD:=$DD}
6394 if test -z "$lt_DD"; then
6395 ac_path_lt_DD_found=false
6396 # Loop through the user's path and test for each of PROGNAME-LIST
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_prog in dd; do
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6405 as_fn_executable_p "$ac_path_lt_DD" || continue
6406 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6407 cmp -s conftest.i conftest.out \
6408 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6409 fi
6410 $ac_path_lt_DD_found && break 3
6411 done
6412 done
6413 done
6414 IFS=$as_save_IFS
6415 if test -z "$ac_cv_path_lt_DD"; then
6416 :
6417 fi
6418 else
6419 ac_cv_path_lt_DD=$lt_DD
6420 fi
6421
6422 rm -f conftest.i conftest2.i conftest.out
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6425 $as_echo "$ac_cv_path_lt_DD" >&6; }
6426
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6429 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6430 if ${lt_cv_truncate_bin+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 printf 0123456789abcdef0123456789abcdef >conftest.i
6434 cat conftest.i conftest.i >conftest2.i
6435 lt_cv_truncate_bin=
6436 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6437 cmp -s conftest.i conftest.out \
6438 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6439 fi
6440 rm -f conftest.i conftest2.i conftest.out
6441 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6442 fi
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6444 $as_echo "$lt_cv_truncate_bin" >&6; }
6445
6446
6447
6448
6449
6450
6451
6452 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6453 func_cc_basename ()
6454 {
6455 for cc_temp in $*""; do
6456 case $cc_temp in
6457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6459 \-*) ;;
6460 *) break;;
6461 esac
6462 done
6463 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6464 }
6465
6466 # Check whether --enable-libtool-lock was given.
6467 if test "${enable_libtool_lock+set}" = set; then :
6468 enableval=$enable_libtool_lock;
6469 fi
6470
6471 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6472
6473 # Some flags need to be propagated to the compiler or linker for good
6474 # libtool support.
6475 case $host in
6476 ia64-*-hpux*)
6477 # Find out what ABI is being produced by ac_compile, and set mode
6478 # options accordingly.
6479 echo 'int i;' > conftest.$ac_ext
6480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6484 test $ac_status = 0; }; then
6485 case `/usr/bin/file conftest.$ac_objext` in
6486 *ELF-32*)
6487 HPUX_IA64_MODE=32
6488 ;;
6489 *ELF-64*)
6490 HPUX_IA64_MODE=64
6491 ;;
6492 esac
6493 fi
6494 rm -rf conftest*
6495 ;;
6496 *-*-irix6*)
6497 # Find out what ABI is being produced by ac_compile, and set linker
6498 # options accordingly.
6499 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6501 (eval $ac_compile) 2>&5
6502 ac_status=$?
6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504 test $ac_status = 0; }; then
6505 if test yes = "$lt_cv_prog_gnu_ld"; then
6506 case `/usr/bin/file conftest.$ac_objext` in
6507 *32-bit*)
6508 LD="${LD-ld} -melf32bsmip"
6509 ;;
6510 *N32*)
6511 LD="${LD-ld} -melf32bmipn32"
6512 ;;
6513 *64-bit*)
6514 LD="${LD-ld} -melf64bmip"
6515 ;;
6516 esac
6517 else
6518 case `/usr/bin/file conftest.$ac_objext` in
6519 *32-bit*)
6520 LD="${LD-ld} -32"
6521 ;;
6522 *N32*)
6523 LD="${LD-ld} -n32"
6524 ;;
6525 *64-bit*)
6526 LD="${LD-ld} -64"
6527 ;;
6528 esac
6529 fi
6530 fi
6531 rm -rf conftest*
6532 ;;
6533
6534 mips64*-*linux*)
6535 # Find out what ABI is being produced by ac_compile, and set linker
6536 # options accordingly.
6537 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6539 (eval $ac_compile) 2>&5
6540 ac_status=$?
6541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6542 test $ac_status = 0; }; then
6543 emul=elf
6544 case `/usr/bin/file conftest.$ac_objext` in
6545 *32-bit*)
6546 emul="${emul}32"
6547 ;;
6548 *64-bit*)
6549 emul="${emul}64"
6550 ;;
6551 esac
6552 case `/usr/bin/file conftest.$ac_objext` in
6553 *MSB*)
6554 emul="${emul}btsmip"
6555 ;;
6556 *LSB*)
6557 emul="${emul}ltsmip"
6558 ;;
6559 esac
6560 case `/usr/bin/file conftest.$ac_objext` in
6561 *N32*)
6562 emul="${emul}n32"
6563 ;;
6564 esac
6565 LD="${LD-ld} -m $emul"
6566 fi
6567 rm -rf conftest*
6568 ;;
6569
6570 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6571 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6572 # Find out what ABI is being produced by ac_compile, and set linker
6573 # options accordingly. Note that the listed cases only cover the
6574 # situations where additional linker options are needed (such as when
6575 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6576 # vice versa); the common cases where no linker options are needed do
6577 # not appear in the list.
6578 echo 'int i;' > conftest.$ac_ext
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6580 (eval $ac_compile) 2>&5
6581 ac_status=$?
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; }; then
6584 case `/usr/bin/file conftest.o` in
6585 *32-bit*)
6586 case $host in
6587 x86_64-*kfreebsd*-gnu)
6588 LD="${LD-ld} -m elf_i386_fbsd"
6589 ;;
6590 x86_64-*linux*)
6591 case `/usr/bin/file conftest.o` in
6592 *x86-64*)
6593 LD="${LD-ld} -m elf32_x86_64"
6594 ;;
6595 *)
6596 LD="${LD-ld} -m elf_i386"
6597 ;;
6598 esac
6599 ;;
6600 powerpc64le-*linux*)
6601 LD="${LD-ld} -m elf32lppclinux"
6602 ;;
6603 powerpc64-*linux*)
6604 LD="${LD-ld} -m elf32ppclinux"
6605 ;;
6606 s390x-*linux*)
6607 LD="${LD-ld} -m elf_s390"
6608 ;;
6609 sparc64-*linux*)
6610 LD="${LD-ld} -m elf32_sparc"
6611 ;;
6612 esac
6613 ;;
6614 *64-bit*)
6615 case $host in
6616 x86_64-*kfreebsd*-gnu)
6617 LD="${LD-ld} -m elf_x86_64_fbsd"
6618 ;;
6619 x86_64-*linux*)
6620 LD="${LD-ld} -m elf_x86_64"
6621 ;;
6622 powerpcle-*linux*)
6623 LD="${LD-ld} -m elf64lppc"
6624 ;;
6625 powerpc-*linux*)
6626 LD="${LD-ld} -m elf64ppc"
6627 ;;
6628 s390*-*linux*|s390*-*tpf*)
6629 LD="${LD-ld} -m elf64_s390"
6630 ;;
6631 sparc*-*linux*)
6632 LD="${LD-ld} -m elf64_sparc"
6633 ;;
6634 esac
6635 ;;
6636 esac
6637 fi
6638 rm -rf conftest*
6639 ;;
6640
6641 *-*-sco3.2v5*)
6642 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6643 SAVE_CFLAGS=$CFLAGS
6644 CFLAGS="$CFLAGS -belf"
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6646 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6647 if ${lt_cv_cc_needs_belf+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 ac_ext=c
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6655
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658
6659 int
6660 main ()
6661 {
6662
6663 ;
6664 return 0;
6665 }
6666 _ACEOF
6667 if ac_fn_c_try_link "$LINENO"; then :
6668 lt_cv_cc_needs_belf=yes
6669 else
6670 lt_cv_cc_needs_belf=no
6671 fi
6672 rm -f core conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
6674 ac_ext=c
6675 ac_cpp='$CPP $CPPFLAGS'
6676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6679
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6682 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6683 if test yes != "$lt_cv_cc_needs_belf"; then
6684 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6685 CFLAGS=$SAVE_CFLAGS
6686 fi
6687 ;;
6688 *-*solaris*)
6689 # Find out what ABI is being produced by ac_compile, and set linker
6690 # options accordingly.
6691 echo 'int i;' > conftest.$ac_ext
6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6693 (eval $ac_compile) 2>&5
6694 ac_status=$?
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; }; then
6697 case `/usr/bin/file conftest.o` in
6698 *64-bit*)
6699 case $lt_cv_prog_gnu_ld in
6700 yes*)
6701 case $host in
6702 i?86-*-solaris*|x86_64-*-solaris*)
6703 LD="${LD-ld} -m elf_x86_64"
6704 ;;
6705 sparc*-*-solaris*)
6706 LD="${LD-ld} -m elf64_sparc"
6707 ;;
6708 esac
6709 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6710 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6711 LD=${LD-ld}_sol2
6712 fi
6713 ;;
6714 *)
6715 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6716 LD="${LD-ld} -64"
6717 fi
6718 ;;
6719 esac
6720 ;;
6721 esac
6722 fi
6723 rm -rf conftest*
6724 ;;
6725 esac
6726
6727 need_locks=$enable_libtool_lock
6728
6729 if test -n "$ac_tool_prefix"; then
6730 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}mt; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$MANIFEST_TOOL"; then
6738 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6747 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6758 if test -n "$MANIFEST_TOOL"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6760 $as_echo "$MANIFEST_TOOL" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766
6767 fi
6768 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6769 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6770 # Extract the first word of "mt", so it can be a program name with args.
6771 set dummy mt; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 if test -n "$ac_ct_MANIFEST_TOOL"; then
6778 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6798 if test -n "$ac_ct_MANIFEST_TOOL"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6800 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6804 fi
6805
6806 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6807 MANIFEST_TOOL=":"
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6816 fi
6817 else
6818 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6819 fi
6820
6821 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6823 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6824 if ${lt_cv_path_mainfest_tool+:} false; then :
6825 $as_echo_n "(cached) " >&6
6826 else
6827 lt_cv_path_mainfest_tool=no
6828 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6829 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6830 cat conftest.err >&5
6831 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6832 lt_cv_path_mainfest_tool=yes
6833 fi
6834 rm -f conftest*
6835 fi
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6837 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6838 if test yes != "$lt_cv_path_mainfest_tool"; then
6839 MANIFEST_TOOL=:
6840 fi
6841
6842
6843
6844
6845
6846
6847 case $host_os in
6848 rhapsody* | darwin*)
6849 if test -n "$ac_tool_prefix"; then
6850 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 if test -n "$DSYMUTIL"; then
6858 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6874
6875 fi
6876 fi
6877 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6878 if test -n "$DSYMUTIL"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6880 $as_echo "$DSYMUTIL" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6885
6886
6887 fi
6888 if test -z "$ac_cv_prog_DSYMUTIL"; then
6889 ac_ct_DSYMUTIL=$DSYMUTIL
6890 # Extract the first word of "dsymutil", so it can be a program name with args.
6891 set dummy dsymutil; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$ac_ct_DSYMUTIL"; then
6898 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6902 do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911 done
6912 done
6913 IFS=$as_save_IFS
6914
6915 fi
6916 fi
6917 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6918 if test -n "$ac_ct_DSYMUTIL"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6920 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6921 else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925
6926 if test "x$ac_ct_DSYMUTIL" = x; then
6927 DSYMUTIL=":"
6928 else
6929 case $cross_compiling:$ac_tool_warned in
6930 yes:)
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933 ac_tool_warned=yes ;;
6934 esac
6935 DSYMUTIL=$ac_ct_DSYMUTIL
6936 fi
6937 else
6938 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6939 fi
6940
6941 if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6943 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if ${ac_cv_prog_NMEDIT+:} false; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 if test -n "$NMEDIT"; then
6950 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6966
6967 fi
6968 fi
6969 NMEDIT=$ac_cv_prog_NMEDIT
6970 if test -n "$NMEDIT"; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6972 $as_echo "$NMEDIT" >&6; }
6973 else
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977
6978
6979 fi
6980 if test -z "$ac_cv_prog_NMEDIT"; then
6981 ac_ct_NMEDIT=$NMEDIT
6982 # Extract the first word of "nmedit", so it can be a program name with args.
6983 set dummy nmedit; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 if test -n "$ac_ct_NMEDIT"; then
6990 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7010 if test -n "$ac_ct_NMEDIT"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7012 $as_echo "$ac_ct_NMEDIT" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018 if test "x$ac_ct_NMEDIT" = x; then
7019 NMEDIT=":"
7020 else
7021 case $cross_compiling:$ac_tool_warned in
7022 yes:)
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7025 ac_tool_warned=yes ;;
7026 esac
7027 NMEDIT=$ac_ct_NMEDIT
7028 fi
7029 else
7030 NMEDIT="$ac_cv_prog_NMEDIT"
7031 fi
7032
7033 if test -n "$ac_tool_prefix"; then
7034 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7035 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037 $as_echo_n "checking for $ac_word... " >&6; }
7038 if ${ac_cv_prog_LIPO+:} false; then :
7039 $as_echo_n "(cached) " >&6
7040 else
7041 if test -n "$LIPO"; then
7042 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7043 else
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045 for as_dir in $PATH
7046 do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7051 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053 break 2
7054 fi
7055 done
7056 done
7057 IFS=$as_save_IFS
7058
7059 fi
7060 fi
7061 LIPO=$ac_cv_prog_LIPO
7062 if test -n "$LIPO"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7064 $as_echo "$LIPO" >&6; }
7065 else
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7068 fi
7069
7070
7071 fi
7072 if test -z "$ac_cv_prog_LIPO"; then
7073 ac_ct_LIPO=$LIPO
7074 # Extract the first word of "lipo", so it can be a program name with args.
7075 set dummy lipo; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 if test -n "$ac_ct_LIPO"; then
7082 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7083 else
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087 IFS=$as_save_IFS
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091 ac_cv_prog_ac_ct_LIPO="lipo"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 break 2
7094 fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099 fi
7100 fi
7101 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7102 if test -n "$ac_ct_LIPO"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7104 $as_echo "$ac_ct_LIPO" >&6; }
7105 else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108 fi
7109
7110 if test "x$ac_ct_LIPO" = x; then
7111 LIPO=":"
7112 else
7113 case $cross_compiling:$ac_tool_warned in
7114 yes:)
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7117 ac_tool_warned=yes ;;
7118 esac
7119 LIPO=$ac_ct_LIPO
7120 fi
7121 else
7122 LIPO="$ac_cv_prog_LIPO"
7123 fi
7124
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}otool; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_OTOOL+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$OTOOL"; then
7134 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 OTOOL=$ac_cv_prog_OTOOL
7154 if test -n "$OTOOL"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7156 $as_echo "$OTOOL" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163 fi
7164 if test -z "$ac_cv_prog_OTOOL"; then
7165 ac_ct_OTOOL=$OTOOL
7166 # Extract the first word of "otool", so it can be a program name with args.
7167 set dummy otool; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 if test -n "$ac_ct_OTOOL"; then
7174 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7183 ac_cv_prog_ac_ct_OTOOL="otool"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7194 if test -n "$ac_ct_OTOOL"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7196 $as_echo "$ac_ct_OTOOL" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202 if test "x$ac_ct_OTOOL" = x; then
7203 OTOOL=":"
7204 else
7205 case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211 OTOOL=$ac_ct_OTOOL
7212 fi
7213 else
7214 OTOOL="$ac_cv_prog_OTOOL"
7215 fi
7216
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if ${ac_cv_prog_OTOOL64+:} false; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$OTOOL64"; then
7226 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7235 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 OTOOL64=$ac_cv_prog_OTOOL64
7246 if test -n "$OTOOL64"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7248 $as_echo "$OTOOL64" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254
7255 fi
7256 if test -z "$ac_cv_prog_OTOOL64"; then
7257 ac_ct_OTOOL64=$OTOOL64
7258 # Extract the first word of "otool64", so it can be a program name with args.
7259 set dummy otool64; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 if test -n "$ac_ct_OTOOL64"; then
7266 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275 ac_cv_prog_ac_ct_OTOOL64="otool64"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7286 if test -n "$ac_ct_OTOOL64"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7288 $as_echo "$ac_ct_OTOOL64" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294 if test "x$ac_ct_OTOOL64" = x; then
7295 OTOOL64=":"
7296 else
7297 case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303 OTOOL64=$ac_ct_OTOOL64
7304 fi
7305 else
7306 OTOOL64="$ac_cv_prog_OTOOL64"
7307 fi
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7336 $as_echo_n "checking for -single_module linker flag... " >&6; }
7337 if ${lt_cv_apple_cc_single_mod+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 lt_cv_apple_cc_single_mod=no
7341 if test -z "$LT_MULTI_MODULE"; then
7342 # By default we will add the -single_module flag. You can override
7343 # by either setting the environment variable LT_MULTI_MODULE
7344 # non-empty at configure time, or by adding -multi_module to the
7345 # link flags.
7346 rm -rf libconftest.dylib*
7347 echo "int foo(void){return 1;}" > conftest.c
7348 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7349 -dynamiclib -Wl,-single_module conftest.c" >&5
7350 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7351 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7352 _lt_result=$?
7353 # If there is a non-empty error log, and "single_module"
7354 # appears in it, assume the flag caused a linker warning
7355 if test -s conftest.err && $GREP single_module conftest.err; then
7356 cat conftest.err >&5
7357 # Otherwise, if the output was created with a 0 exit code from
7358 # the compiler, it worked.
7359 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7360 lt_cv_apple_cc_single_mod=yes
7361 else
7362 cat conftest.err >&5
7363 fi
7364 rm -rf libconftest.dylib*
7365 rm -f conftest.*
7366 fi
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7369 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7370
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7372 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7373 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 lt_cv_ld_exported_symbols_list=no
7377 save_LDFLAGS=$LDFLAGS
7378 echo "_main" > conftest.sym
7379 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7382
7383 int
7384 main ()
7385 {
7386
7387 ;
7388 return 0;
7389 }
7390 _ACEOF
7391 if ac_fn_c_try_link "$LINENO"; then :
7392 lt_cv_ld_exported_symbols_list=yes
7393 else
7394 lt_cv_ld_exported_symbols_list=no
7395 fi
7396 rm -f core conftest.err conftest.$ac_objext \
7397 conftest$ac_exeext conftest.$ac_ext
7398 LDFLAGS=$save_LDFLAGS
7399
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7402 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7403
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7405 $as_echo_n "checking for -force_load linker flag... " >&6; }
7406 if ${lt_cv_ld_force_load+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 lt_cv_ld_force_load=no
7410 cat > conftest.c << _LT_EOF
7411 int forced_loaded() { return 2;}
7412 _LT_EOF
7413 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7414 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7415 echo "$AR cr libconftest.a conftest.o" >&5
7416 $AR cr libconftest.a conftest.o 2>&5
7417 echo "$RANLIB libconftest.a" >&5
7418 $RANLIB libconftest.a 2>&5
7419 cat > conftest.c << _LT_EOF
7420 int main() { return 0;}
7421 _LT_EOF
7422 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7423 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7424 _lt_result=$?
7425 if test -s conftest.err && $GREP force_load conftest.err; then
7426 cat conftest.err >&5
7427 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7428 lt_cv_ld_force_load=yes
7429 else
7430 cat conftest.err >&5
7431 fi
7432 rm -f conftest.err libconftest.a conftest conftest.c
7433 rm -rf conftest.dSYM
7434
7435 fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7437 $as_echo "$lt_cv_ld_force_load" >&6; }
7438 case $host_os in
7439 rhapsody* | darwin1.[012])
7440 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7441 darwin1.*)
7442 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7443 darwin*) # darwin 5.x on
7444 # if running on 10.5 or later, the deployment target defaults
7445 # to the OS version, if on x86, and 10.4, the deployment
7446 # target defaults to 10.4. Don't you love it?
7447 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7448 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7449 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7450 10.[012][,.]*)
7451 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7452 10.*)
7453 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7454 esac
7455 ;;
7456 esac
7457 if test yes = "$lt_cv_apple_cc_single_mod"; then
7458 _lt_dar_single_mod='$single_module'
7459 fi
7460 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7461 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7462 else
7463 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7464 fi
7465 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7466 _lt_dsymutil='~$DSYMUTIL $lib || :'
7467 else
7468 _lt_dsymutil=
7469 fi
7470 ;;
7471 esac
7472
7473 # func_munge_path_list VARIABLE PATH
7474 # -----------------------------------
7475 # VARIABLE is name of variable containing _space_ separated list of
7476 # directories to be munged by the contents of PATH, which is string
7477 # having a format:
7478 # "DIR[:DIR]:"
7479 # string "DIR[ DIR]" will be prepended to VARIABLE
7480 # ":DIR[:DIR]"
7481 # string "DIR[ DIR]" will be appended to VARIABLE
7482 # "DIRP[:DIRP]::[DIRA:]DIRA"
7483 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7484 # "DIRA[ DIRA]" will be appended to VARIABLE
7485 # "DIR[:DIR]"
7486 # VARIABLE will be replaced by "DIR[ DIR]"
7487 func_munge_path_list ()
7488 {
7489 case x$2 in
7490 x)
7491 ;;
7492 *:)
7493 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7494 ;;
7495 x:*)
7496 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7497 ;;
7498 *::*)
7499 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7500 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7501 ;;
7502 *)
7503 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7504 ;;
7505 esac
7506 }
7507
7508 ac_ext=c
7509 ac_cpp='$CPP $CPPFLAGS'
7510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7514 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7515 # On Suns, sometimes $CPP names a directory.
7516 if test -n "$CPP" && test -d "$CPP"; then
7517 CPP=
7518 fi
7519 if test -z "$CPP"; then
7520 if ${ac_cv_prog_CPP+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 # Double quotes because CPP needs to be expanded
7524 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7525 do
7526 ac_preproc_ok=false
7527 for ac_c_preproc_warn_flag in '' yes
7528 do
7529 # Use a header file that comes with gcc, so configuring glibc
7530 # with a fresh cross-compiler works.
7531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532 # <limits.h> exists even on freestanding compilers.
7533 # On the NeXT, cc -E runs the code through the compiler's parser,
7534 # not just through cpp. "Syntax error" is here to catch this case.
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 #ifdef __STDC__
7538 # include <limits.h>
7539 #else
7540 # include <assert.h>
7541 #endif
7542 Syntax error
7543 _ACEOF
7544 if ac_fn_c_try_cpp "$LINENO"; then :
7545
7546 else
7547 # Broken: fails on valid input.
7548 continue
7549 fi
7550 rm -f conftest.err conftest.i conftest.$ac_ext
7551
7552 # OK, works on sane cases. Now check whether nonexistent headers
7553 # can be detected and how.
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 #include <ac_nonexistent.h>
7557 _ACEOF
7558 if ac_fn_c_try_cpp "$LINENO"; then :
7559 # Broken: success on invalid input.
7560 continue
7561 else
7562 # Passes both tests.
7563 ac_preproc_ok=:
7564 break
7565 fi
7566 rm -f conftest.err conftest.i conftest.$ac_ext
7567
7568 done
7569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7570 rm -f conftest.i conftest.err conftest.$ac_ext
7571 if $ac_preproc_ok; then :
7572 break
7573 fi
7574
7575 done
7576 ac_cv_prog_CPP=$CPP
7577
7578 fi
7579 CPP=$ac_cv_prog_CPP
7580 else
7581 ac_cv_prog_CPP=$CPP
7582 fi
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7584 $as_echo "$CPP" >&6; }
7585 ac_preproc_ok=false
7586 for ac_c_preproc_warn_flag in '' yes
7587 do
7588 # Use a header file that comes with gcc, so configuring glibc
7589 # with a fresh cross-compiler works.
7590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7591 # <limits.h> exists even on freestanding compilers.
7592 # On the NeXT, cc -E runs the code through the compiler's parser,
7593 # not just through cpp. "Syntax error" is here to catch this case.
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7596 #ifdef __STDC__
7597 # include <limits.h>
7598 #else
7599 # include <assert.h>
7600 #endif
7601 Syntax error
7602 _ACEOF
7603 if ac_fn_c_try_cpp "$LINENO"; then :
7604
7605 else
7606 # Broken: fails on valid input.
7607 continue
7608 fi
7609 rm -f conftest.err conftest.i conftest.$ac_ext
7610
7611 # OK, works on sane cases. Now check whether nonexistent headers
7612 # can be detected and how.
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615 #include <ac_nonexistent.h>
7616 _ACEOF
7617 if ac_fn_c_try_cpp "$LINENO"; then :
7618 # Broken: success on invalid input.
7619 continue
7620 else
7621 # Passes both tests.
7622 ac_preproc_ok=:
7623 break
7624 fi
7625 rm -f conftest.err conftest.i conftest.$ac_ext
7626
7627 done
7628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7629 rm -f conftest.i conftest.err conftest.$ac_ext
7630 if $ac_preproc_ok; then :
7631
7632 else
7633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7635 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7636 See \`config.log' for more details" "$LINENO" 5; }
7637 fi
7638
7639 ac_ext=c
7640 ac_cpp='$CPP $CPPFLAGS'
7641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7644
7645
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7647 $as_echo_n "checking for ANSI C header files... " >&6; }
7648 if ${ac_cv_header_stdc+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653 #include <stdlib.h>
7654 #include <stdarg.h>
7655 #include <string.h>
7656 #include <float.h>
7657
7658 int
7659 main ()
7660 {
7661
7662 ;
7663 return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_compile "$LINENO"; then :
7667 ac_cv_header_stdc=yes
7668 else
7669 ac_cv_header_stdc=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672
7673 if test $ac_cv_header_stdc = yes; then
7674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7677 #include <string.h>
7678
7679 _ACEOF
7680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7681 $EGREP "memchr" >/dev/null 2>&1; then :
7682
7683 else
7684 ac_cv_header_stdc=no
7685 fi
7686 rm -f conftest*
7687
7688 fi
7689
7690 if test $ac_cv_header_stdc = yes; then
7691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <stdlib.h>
7695
7696 _ACEOF
7697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7698 $EGREP "free" >/dev/null 2>&1; then :
7699
7700 else
7701 ac_cv_header_stdc=no
7702 fi
7703 rm -f conftest*
7704
7705 fi
7706
7707 if test $ac_cv_header_stdc = yes; then
7708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7709 if test "$cross_compiling" = yes; then :
7710 :
7711 else
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7714 #include <ctype.h>
7715 #include <stdlib.h>
7716 #if ((' ' & 0x0FF) == 0x020)
7717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7719 #else
7720 # define ISLOWER(c) \
7721 (('a' <= (c) && (c) <= 'i') \
7722 || ('j' <= (c) && (c) <= 'r') \
7723 || ('s' <= (c) && (c) <= 'z'))
7724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7725 #endif
7726
7727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7728 int
7729 main ()
7730 {
7731 int i;
7732 for (i = 0; i < 256; i++)
7733 if (XOR (islower (i), ISLOWER (i))
7734 || toupper (i) != TOUPPER (i))
7735 return 2;
7736 return 0;
7737 }
7738 _ACEOF
7739 if ac_fn_c_try_run "$LINENO"; then :
7740
7741 else
7742 ac_cv_header_stdc=no
7743 fi
7744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7745 conftest.$ac_objext conftest.beam conftest.$ac_ext
7746 fi
7747
7748 fi
7749 fi
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7751 $as_echo "$ac_cv_header_stdc" >&6; }
7752 if test $ac_cv_header_stdc = yes; then
7753
7754 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7755
7756 fi
7757
7758 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7759 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7760 inttypes.h stdint.h unistd.h
7761 do :
7762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7763 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7764 "
7765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7766 cat >>confdefs.h <<_ACEOF
7767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7768 _ACEOF
7769
7770 fi
7771
7772 done
7773
7774
7775 for ac_header in dlfcn.h
7776 do :
7777 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7778 "
7779 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7780 cat >>confdefs.h <<_ACEOF
7781 #define HAVE_DLFCN_H 1
7782 _ACEOF
7783
7784 fi
7785
7786 done
7787
7788
7789
7790
7791
7792 # Set options
7793
7794
7795
7796 enable_dlopen=no
7797
7798
7799 enable_win32_dll=no
7800
7801
7802 # Check whether --enable-shared was given.
7803 if test "${enable_shared+set}" = set; then :
7804 enableval=$enable_shared; p=${PACKAGE-default}
7805 case $enableval in
7806 yes) enable_shared=yes ;;
7807 no) enable_shared=no ;;
7808 *)
7809 enable_shared=no
7810 # Look at the argument we got. We use all the common list separators.
7811 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7812 for pkg in $enableval; do
7813 IFS=$lt_save_ifs
7814 if test "X$pkg" = "X$p"; then
7815 enable_shared=yes
7816 fi
7817 done
7818 IFS=$lt_save_ifs
7819 ;;
7820 esac
7821 else
7822 enable_shared=yes
7823 fi
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833 # Check whether --enable-static was given.
7834 if test "${enable_static+set}" = set; then :
7835 enableval=$enable_static; p=${PACKAGE-default}
7836 case $enableval in
7837 yes) enable_static=yes ;;
7838 no) enable_static=no ;;
7839 *)
7840 enable_static=no
7841 # Look at the argument we got. We use all the common list separators.
7842 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7843 for pkg in $enableval; do
7844 IFS=$lt_save_ifs
7845 if test "X$pkg" = "X$p"; then
7846 enable_static=yes
7847 fi
7848 done
7849 IFS=$lt_save_ifs
7850 ;;
7851 esac
7852 else
7853 enable_static=yes
7854 fi
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865 # Check whether --with-pic was given.
7866 if test "${with_pic+set}" = set; then :
7867 withval=$with_pic; lt_p=${PACKAGE-default}
7868 case $withval in
7869 yes|no) pic_mode=$withval ;;
7870 *)
7871 pic_mode=default
7872 # Look at the argument we got. We use all the common list separators.
7873 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7874 for lt_pkg in $withval; do
7875 IFS=$lt_save_ifs
7876 if test "X$lt_pkg" = "X$lt_p"; then
7877 pic_mode=yes
7878 fi
7879 done
7880 IFS=$lt_save_ifs
7881 ;;
7882 esac
7883 else
7884 pic_mode=default
7885 fi
7886
7887
7888
7889
7890
7891
7892
7893
7894 # Check whether --enable-fast-install was given.
7895 if test "${enable_fast_install+set}" = set; then :
7896 enableval=$enable_fast_install; p=${PACKAGE-default}
7897 case $enableval in
7898 yes) enable_fast_install=yes ;;
7899 no) enable_fast_install=no ;;
7900 *)
7901 enable_fast_install=no
7902 # Look at the argument we got. We use all the common list separators.
7903 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7904 for pkg in $enableval; do
7905 IFS=$lt_save_ifs
7906 if test "X$pkg" = "X$p"; then
7907 enable_fast_install=yes
7908 fi
7909 done
7910 IFS=$lt_save_ifs
7911 ;;
7912 esac
7913 else
7914 enable_fast_install=yes
7915 fi
7916
7917
7918
7919
7920
7921
7922
7923
7924 shared_archive_member_spec=
7925 case $host,$enable_shared in
7926 power*-*-aix[5-9]*,yes)
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7928 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7929
7930 # Check whether --with-aix-soname was given.
7931 if test "${with_aix_soname+set}" = set; then :
7932 withval=$with_aix_soname; case $withval in
7933 aix|svr4|both)
7934 ;;
7935 *)
7936 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7937 ;;
7938 esac
7939 lt_cv_with_aix_soname=$with_aix_soname
7940 else
7941 if ${lt_cv_with_aix_soname+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 lt_cv_with_aix_soname=aix
7945 fi
7946
7947 with_aix_soname=$lt_cv_with_aix_soname
7948 fi
7949
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7951 $as_echo "$with_aix_soname" >&6; }
7952 if test aix != "$with_aix_soname"; then
7953 # For the AIX way of multilib, we name the shared archive member
7954 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7955 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7956 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7957 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7958 if test 64 = "${OBJECT_MODE-32}"; then
7959 shared_archive_member_spec=shr_64
7960 else
7961 shared_archive_member_spec=shr
7962 fi
7963 fi
7964 ;;
7965 *)
7966 with_aix_soname=aix
7967 ;;
7968 esac
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979 # This can be used to rebuild libtool when needed
7980 LIBTOOL_DEPS=$ltmain
7981
7982 # Always use our own libtool.
7983 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014 test -z "$LN_S" && LN_S="ln -s"
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 if test -n "${ZSH_VERSION+set}"; then
8030 setopt NO_GLOB_SUBST
8031 fi
8032
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8034 $as_echo_n "checking for objdir... " >&6; }
8035 if ${lt_cv_objdir+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 rm -f .libs 2>/dev/null
8039 mkdir .libs 2>/dev/null
8040 if test -d .libs; then
8041 lt_cv_objdir=.libs
8042 else
8043 # MS-DOS does not allow filenames that begin with a dot.
8044 lt_cv_objdir=_libs
8045 fi
8046 rmdir .libs 2>/dev/null
8047 fi
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8049 $as_echo "$lt_cv_objdir" >&6; }
8050 objdir=$lt_cv_objdir
8051
8052
8053
8054
8055
8056 cat >>confdefs.h <<_ACEOF
8057 #define LT_OBJDIR "$lt_cv_objdir/"
8058 _ACEOF
8059
8060
8061
8062
8063 case $host_os in
8064 aix3*)
8065 # AIX sometimes has problems with the GCC collect2 program. For some
8066 # reason, if we set the COLLECT_NAMES environment variable, the problems
8067 # vanish in a puff of smoke.
8068 if test set != "${COLLECT_NAMES+set}"; then
8069 COLLECT_NAMES=
8070 export COLLECT_NAMES
8071 fi
8072 ;;
8073 esac
8074
8075 # Global variables:
8076 ofile=libtool
8077 can_build_shared=yes
8078
8079 # All known linkers require a '.a' archive for static linking (except MSVC,
8080 # which needs '.lib').
8081 libext=a
8082
8083 with_gnu_ld=$lt_cv_prog_gnu_ld
8084
8085 old_CC=$CC
8086 old_CFLAGS=$CFLAGS
8087
8088 # Set sane defaults for various variables
8089 test -z "$CC" && CC=cc
8090 test -z "$LTCC" && LTCC=$CC
8091 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8092 test -z "$LD" && LD=ld
8093 test -z "$ac_objext" && ac_objext=o
8094
8095 func_cc_basename $compiler
8096 cc_basename=$func_cc_basename_result
8097
8098
8099 # Only perform the check for file, if the check method requires it
8100 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8101 case $deplibs_check_method in
8102 file_magic*)
8103 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8105 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8106 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 case $MAGIC_CMD in
8110 [\\/*] | ?:[\\/]*)
8111 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8112 ;;
8113 *)
8114 lt_save_MAGIC_CMD=$MAGIC_CMD
8115 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8116 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8117 for ac_dir in $ac_dummy; do
8118 IFS=$lt_save_ifs
8119 test -z "$ac_dir" && ac_dir=.
8120 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8121 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8122 if test -n "$file_magic_test_file"; then
8123 case $deplibs_check_method in
8124 "file_magic "*)
8125 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8126 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8127 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8128 $EGREP "$file_magic_regex" > /dev/null; then
8129 :
8130 else
8131 cat <<_LT_EOF 1>&2
8132
8133 *** Warning: the command libtool uses to detect shared libraries,
8134 *** $file_magic_cmd, produces output that libtool cannot recognize.
8135 *** The result is that libtool may fail to recognize shared libraries
8136 *** as such. This will affect the creation of libtool libraries that
8137 *** depend on shared libraries, but programs linked with such libtool
8138 *** libraries will work regardless of this problem. Nevertheless, you
8139 *** may want to report the problem to your system manager and/or to
8140 *** bug-libtool@gnu.org
8141
8142 _LT_EOF
8143 fi ;;
8144 esac
8145 fi
8146 break
8147 fi
8148 done
8149 IFS=$lt_save_ifs
8150 MAGIC_CMD=$lt_save_MAGIC_CMD
8151 ;;
8152 esac
8153 fi
8154
8155 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8156 if test -n "$MAGIC_CMD"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8158 $as_echo "$MAGIC_CMD" >&6; }
8159 else
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8162 fi
8163
8164
8165
8166
8167
8168 if test -z "$lt_cv_path_MAGIC_CMD"; then
8169 if test -n "$ac_tool_prefix"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8171 $as_echo_n "checking for file... " >&6; }
8172 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 case $MAGIC_CMD in
8176 [\\/*] | ?:[\\/]*)
8177 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8178 ;;
8179 *)
8180 lt_save_MAGIC_CMD=$MAGIC_CMD
8181 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8182 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8183 for ac_dir in $ac_dummy; do
8184 IFS=$lt_save_ifs
8185 test -z "$ac_dir" && ac_dir=.
8186 if test -f "$ac_dir/file"; then
8187 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8188 if test -n "$file_magic_test_file"; then
8189 case $deplibs_check_method in
8190 "file_magic "*)
8191 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8192 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8194 $EGREP "$file_magic_regex" > /dev/null; then
8195 :
8196 else
8197 cat <<_LT_EOF 1>&2
8198
8199 *** Warning: the command libtool uses to detect shared libraries,
8200 *** $file_magic_cmd, produces output that libtool cannot recognize.
8201 *** The result is that libtool may fail to recognize shared libraries
8202 *** as such. This will affect the creation of libtool libraries that
8203 *** depend on shared libraries, but programs linked with such libtool
8204 *** libraries will work regardless of this problem. Nevertheless, you
8205 *** may want to report the problem to your system manager and/or to
8206 *** bug-libtool@gnu.org
8207
8208 _LT_EOF
8209 fi ;;
8210 esac
8211 fi
8212 break
8213 fi
8214 done
8215 IFS=$lt_save_ifs
8216 MAGIC_CMD=$lt_save_MAGIC_CMD
8217 ;;
8218 esac
8219 fi
8220
8221 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8222 if test -n "$MAGIC_CMD"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8224 $as_echo "$MAGIC_CMD" >&6; }
8225 else
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8228 fi
8229
8230
8231 else
8232 MAGIC_CMD=:
8233 fi
8234 fi
8235
8236 fi
8237 ;;
8238 esac
8239
8240 # Use C for the default configuration in the libtool script
8241
8242 lt_save_CC=$CC
8243 ac_ext=c
8244 ac_cpp='$CPP $CPPFLAGS'
8245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8248
8249
8250 # Source file extension for C test sources.
8251 ac_ext=c
8252
8253 # Object file extension for compiled C test sources.
8254 objext=o
8255 objext=$objext
8256
8257 # Code to be used in simple compile tests
8258 lt_simple_compile_test_code="int some_variable = 0;"
8259
8260 # Code to be used in simple link tests
8261 lt_simple_link_test_code='int main(){return(0);}'
8262
8263
8264
8265
8266
8267
8268
8269 # If no C compiler was specified, use CC.
8270 LTCC=${LTCC-"$CC"}
8271
8272 # If no C compiler flags were specified, use CFLAGS.
8273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8274
8275 # Allow CC to be a program name with arguments.
8276 compiler=$CC
8277
8278 # Save the default compiler, since it gets overwritten when the other
8279 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8280 compiler_DEFAULT=$CC
8281
8282 # save warnings/boilerplate of simple test code
8283 ac_outfile=conftest.$ac_objext
8284 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8285 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8286 _lt_compiler_boilerplate=`cat conftest.err`
8287 $RM conftest*
8288
8289 ac_outfile=conftest.$ac_objext
8290 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8291 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8292 _lt_linker_boilerplate=`cat conftest.err`
8293 $RM -r conftest*
8294
8295
8296 ## CAVEAT EMPTOR:
8297 ## There is no encapsulation within the following macros, do not change
8298 ## the running order or otherwise move them around unless you know exactly
8299 ## what you are doing...
8300 if test -n "$compiler"; then
8301
8302 lt_prog_compiler_no_builtin_flag=
8303
8304 if test yes = "$GCC"; then
8305 case $cc_basename in
8306 nvcc*)
8307 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8308 *)
8309 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8310 esac
8311
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8313 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8314 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 lt_cv_prog_compiler_rtti_exceptions=no
8318 ac_outfile=conftest.$ac_objext
8319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8320 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8321 # Insert the option either (1) after the last *FLAGS variable, or
8322 # (2) before a word containing "conftest.", or (3) at the end.
8323 # Note that $ac_compile itself does not contain backslashes and begins
8324 # with a dollar sign (not a hyphen), so the echo should work correctly.
8325 # The option is referenced via a variable to avoid confusing sed.
8326 lt_compile=`echo "$ac_compile" | $SED \
8327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8329 -e 's:$: $lt_compiler_flag:'`
8330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8331 (eval "$lt_compile" 2>conftest.err)
8332 ac_status=$?
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 if (exit $ac_status) && test -s "$ac_outfile"; then
8336 # The compiler can only warn and ignore the option if not recognized
8337 # So say no if there are warnings other than the usual output.
8338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8341 lt_cv_prog_compiler_rtti_exceptions=yes
8342 fi
8343 fi
8344 $RM conftest*
8345
8346 fi
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8348 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8349
8350 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8351 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8352 else
8353 :
8354 fi
8355
8356 fi
8357
8358
8359
8360
8361
8362
8363 lt_prog_compiler_wl=
8364 lt_prog_compiler_pic=
8365 lt_prog_compiler_static=
8366
8367
8368 if test yes = "$GCC"; then
8369 lt_prog_compiler_wl='-Wl,'
8370 lt_prog_compiler_static='-static'
8371
8372 case $host_os in
8373 aix*)
8374 # All AIX code is PIC.
8375 if test ia64 = "$host_cpu"; then
8376 # AIX 5 now supports IA64 processor
8377 lt_prog_compiler_static='-Bstatic'
8378 fi
8379 lt_prog_compiler_pic='-fPIC'
8380 ;;
8381
8382 amigaos*)
8383 case $host_cpu in
8384 powerpc)
8385 # see comment about AmigaOS4 .so support
8386 lt_prog_compiler_pic='-fPIC'
8387 ;;
8388 m68k)
8389 # FIXME: we need at least 68020 code to build shared libraries, but
8390 # adding the '-m68020' flag to GCC prevents building anything better,
8391 # like '-m68040'.
8392 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8393 ;;
8394 esac
8395 ;;
8396
8397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8398 # PIC is the default for these OSes.
8399 ;;
8400
8401 mingw* | cygwin* | pw32* | os2* | cegcc*)
8402 # This hack is so that the source file can tell whether it is being
8403 # built for inclusion in a dll (and should export symbols for example).
8404 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8405 # (--disable-auto-import) libraries
8406 lt_prog_compiler_pic='-DDLL_EXPORT'
8407 case $host_os in
8408 os2*)
8409 lt_prog_compiler_static='$wl-static'
8410 ;;
8411 esac
8412 ;;
8413
8414 darwin* | rhapsody*)
8415 # PIC is the default on this platform
8416 # Common symbols not allowed in MH_DYLIB files
8417 lt_prog_compiler_pic='-fno-common'
8418 ;;
8419
8420 haiku*)
8421 # PIC is the default for Haiku.
8422 # The "-static" flag exists, but is broken.
8423 lt_prog_compiler_static=
8424 ;;
8425
8426 hpux*)
8427 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8428 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8429 # sets the default TLS model and affects inlining.
8430 case $host_cpu in
8431 hppa*64*)
8432 # +Z the default
8433 ;;
8434 *)
8435 lt_prog_compiler_pic='-fPIC'
8436 ;;
8437 esac
8438 ;;
8439
8440 interix[3-9]*)
8441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8442 # Instead, we relocate shared libraries at runtime.
8443 ;;
8444
8445 msdosdjgpp*)
8446 # Just because we use GCC doesn't mean we suddenly get shared libraries
8447 # on systems that don't support them.
8448 lt_prog_compiler_can_build_shared=no
8449 enable_shared=no
8450 ;;
8451
8452 *nto* | *qnx*)
8453 # QNX uses GNU C++, but need to define -shared option too, otherwise
8454 # it will coredump.
8455 lt_prog_compiler_pic='-fPIC -shared'
8456 ;;
8457
8458 sysv4*MP*)
8459 if test -d /usr/nec; then
8460 lt_prog_compiler_pic=-Kconform_pic
8461 fi
8462 ;;
8463
8464 *)
8465 lt_prog_compiler_pic='-fPIC'
8466 ;;
8467 esac
8468
8469 case $cc_basename in
8470 nvcc*) # Cuda Compiler Driver 2.2
8471 lt_prog_compiler_wl='-Xlinker '
8472 if test -n "$lt_prog_compiler_pic"; then
8473 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8474 fi
8475 ;;
8476 esac
8477 else
8478 # PORTME Check for flag to pass linker flags through the system compiler.
8479 case $host_os in
8480 aix*)
8481 lt_prog_compiler_wl='-Wl,'
8482 if test ia64 = "$host_cpu"; then
8483 # AIX 5 now supports IA64 processor
8484 lt_prog_compiler_static='-Bstatic'
8485 else
8486 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8487 fi
8488 ;;
8489
8490 darwin* | rhapsody*)
8491 # PIC is the default on this platform
8492 # Common symbols not allowed in MH_DYLIB files
8493 lt_prog_compiler_pic='-fno-common'
8494 case $cc_basename in
8495 nagfor*)
8496 # NAG Fortran compiler
8497 lt_prog_compiler_wl='-Wl,-Wl,,'
8498 lt_prog_compiler_pic='-PIC'
8499 lt_prog_compiler_static='-Bstatic'
8500 ;;
8501 esac
8502 ;;
8503
8504 mingw* | cygwin* | pw32* | os2* | cegcc*)
8505 # This hack is so that the source file can tell whether it is being
8506 # built for inclusion in a dll (and should export symbols for example).
8507 lt_prog_compiler_pic='-DDLL_EXPORT'
8508 case $host_os in
8509 os2*)
8510 lt_prog_compiler_static='$wl-static'
8511 ;;
8512 esac
8513 ;;
8514
8515 hpux9* | hpux10* | hpux11*)
8516 lt_prog_compiler_wl='-Wl,'
8517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8518 # not for PA HP-UX.
8519 case $host_cpu in
8520 hppa*64*|ia64*)
8521 # +Z the default
8522 ;;
8523 *)
8524 lt_prog_compiler_pic='+Z'
8525 ;;
8526 esac
8527 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8528 lt_prog_compiler_static='$wl-a ${wl}archive'
8529 ;;
8530
8531 irix5* | irix6* | nonstopux*)
8532 lt_prog_compiler_wl='-Wl,'
8533 # PIC (with -KPIC) is the default.
8534 lt_prog_compiler_static='-non_shared'
8535 ;;
8536
8537 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8538 case $cc_basename in
8539 # old Intel for x86_64, which still supported -KPIC.
8540 ecc*)
8541 lt_prog_compiler_wl='-Wl,'
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-static'
8544 ;;
8545 # flang / f18. f95 an alias for gfortran or flang on Debian
8546 flang* | f18* | f95*)
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_pic='-fPIC'
8549 lt_prog_compiler_static='-static'
8550 ;;
8551 # icc used to be incompatible with GCC.
8552 # ICC 10 doesn't accept -KPIC any more.
8553 icc* | ifort*)
8554 lt_prog_compiler_wl='-Wl,'
8555 lt_prog_compiler_pic='-fPIC'
8556 lt_prog_compiler_static='-static'
8557 ;;
8558 # Lahey Fortran 8.1.
8559 lf95*)
8560 lt_prog_compiler_wl='-Wl,'
8561 lt_prog_compiler_pic='--shared'
8562 lt_prog_compiler_static='--static'
8563 ;;
8564 nagfor*)
8565 # NAG Fortran compiler
8566 lt_prog_compiler_wl='-Wl,-Wl,,'
8567 lt_prog_compiler_pic='-PIC'
8568 lt_prog_compiler_static='-Bstatic'
8569 ;;
8570 tcc*)
8571 # Fabrice Bellard et al's Tiny C Compiler
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='-fPIC'
8574 lt_prog_compiler_static='-static'
8575 ;;
8576 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8577 # Portland Group compilers (*not* the Pentium gcc compiler,
8578 # which looks to be a dead project)
8579 lt_prog_compiler_wl='-Wl,'
8580 lt_prog_compiler_pic='-fpic'
8581 lt_prog_compiler_static='-Bstatic'
8582 ;;
8583 ccc*)
8584 lt_prog_compiler_wl='-Wl,'
8585 # All Alpha code is PIC.
8586 lt_prog_compiler_static='-non_shared'
8587 ;;
8588 xl* | bgxl* | bgf* | mpixl*)
8589 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-qpic'
8592 lt_prog_compiler_static='-qstaticlink'
8593 ;;
8594 *)
8595 case `$CC -V 2>&1 | sed 5q` in
8596 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8597 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8598 lt_prog_compiler_pic='-KPIC'
8599 lt_prog_compiler_static='-Bstatic'
8600 lt_prog_compiler_wl=''
8601 ;;
8602 *Sun\ F* | *Sun*Fortran*)
8603 lt_prog_compiler_pic='-KPIC'
8604 lt_prog_compiler_static='-Bstatic'
8605 lt_prog_compiler_wl='-Qoption ld '
8606 ;;
8607 *Sun\ C*)
8608 # Sun C 5.9
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 lt_prog_compiler_wl='-Wl,'
8612 ;;
8613 *Intel*\ [CF]*Compiler*)
8614 lt_prog_compiler_wl='-Wl,'
8615 lt_prog_compiler_pic='-fPIC'
8616 lt_prog_compiler_static='-static'
8617 ;;
8618 *Portland\ Group*)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-fpic'
8621 lt_prog_compiler_static='-Bstatic'
8622 ;;
8623 esac
8624 ;;
8625 esac
8626 ;;
8627
8628 newsos6)
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 ;;
8632
8633 *nto* | *qnx*)
8634 # QNX uses GNU C++, but need to define -shared option too, otherwise
8635 # it will coredump.
8636 lt_prog_compiler_pic='-fPIC -shared'
8637 ;;
8638
8639 osf3* | osf4* | osf5*)
8640 lt_prog_compiler_wl='-Wl,'
8641 # All OSF/1 code is PIC.
8642 lt_prog_compiler_static='-non_shared'
8643 ;;
8644
8645 rdos*)
8646 lt_prog_compiler_static='-non_shared'
8647 ;;
8648
8649 solaris*)
8650 lt_prog_compiler_pic='-KPIC'
8651 lt_prog_compiler_static='-Bstatic'
8652 case $cc_basename in
8653 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8654 lt_prog_compiler_wl='-Qoption ld ';;
8655 *)
8656 lt_prog_compiler_wl='-Wl,';;
8657 esac
8658 ;;
8659
8660 sunos4*)
8661 lt_prog_compiler_wl='-Qoption ld '
8662 lt_prog_compiler_pic='-PIC'
8663 lt_prog_compiler_static='-Bstatic'
8664 ;;
8665
8666 sysv4 | sysv4.2uw2* | sysv4.3*)
8667 lt_prog_compiler_wl='-Wl,'
8668 lt_prog_compiler_pic='-KPIC'
8669 lt_prog_compiler_static='-Bstatic'
8670 ;;
8671
8672 sysv4*MP*)
8673 if test -d /usr/nec; then
8674 lt_prog_compiler_pic='-Kconform_pic'
8675 lt_prog_compiler_static='-Bstatic'
8676 fi
8677 ;;
8678
8679 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8680 lt_prog_compiler_wl='-Wl,'
8681 lt_prog_compiler_pic='-KPIC'
8682 lt_prog_compiler_static='-Bstatic'
8683 ;;
8684
8685 unicos*)
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_can_build_shared=no
8688 ;;
8689
8690 uts4*)
8691 lt_prog_compiler_pic='-pic'
8692 lt_prog_compiler_static='-Bstatic'
8693 ;;
8694
8695 *)
8696 lt_prog_compiler_can_build_shared=no
8697 ;;
8698 esac
8699 fi
8700
8701 case $host_os in
8702 # For platforms that do not support PIC, -DPIC is meaningless:
8703 *djgpp*)
8704 lt_prog_compiler_pic=
8705 ;;
8706 *)
8707 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8708 ;;
8709 esac
8710
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8712 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8713 if ${lt_cv_prog_compiler_pic+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8717 fi
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8719 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8720 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8721
8722 #
8723 # Check to make sure the PIC flag actually works.
8724 #
8725 if test -n "$lt_prog_compiler_pic"; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8727 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8728 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 lt_cv_prog_compiler_pic_works=no
8732 ac_outfile=conftest.$ac_objext
8733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8734 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8735 # Insert the option either (1) after the last *FLAGS variable, or
8736 # (2) before a word containing "conftest.", or (3) at the end.
8737 # Note that $ac_compile itself does not contain backslashes and begins
8738 # with a dollar sign (not a hyphen), so the echo should work correctly.
8739 # The option is referenced via a variable to avoid confusing sed.
8740 lt_compile=`echo "$ac_compile" | $SED \
8741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8743 -e 's:$: $lt_compiler_flag:'`
8744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8745 (eval "$lt_compile" 2>conftest.err)
8746 ac_status=$?
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 if (exit $ac_status) && test -s "$ac_outfile"; then
8750 # The compiler can only warn and ignore the option if not recognized
8751 # So say no if there are warnings other than the usual output.
8752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8755 lt_cv_prog_compiler_pic_works=yes
8756 fi
8757 fi
8758 $RM conftest*
8759
8760 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8762 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8763
8764 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8765 case $lt_prog_compiler_pic in
8766 "" | " "*) ;;
8767 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8768 esac
8769 else
8770 lt_prog_compiler_pic=
8771 lt_prog_compiler_can_build_shared=no
8772 fi
8773
8774 fi
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786 #
8787 # Check to make sure the static flag actually works.
8788 #
8789 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8791 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8792 if ${lt_cv_prog_compiler_static_works+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 lt_cv_prog_compiler_static_works=no
8796 save_LDFLAGS=$LDFLAGS
8797 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8798 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8799 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8800 # The linker can only warn and ignore the option if not recognized
8801 # So say no if there are warnings
8802 if test -s conftest.err; then
8803 # Append any errors to the config.log.
8804 cat conftest.err 1>&5
8805 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8807 if diff conftest.exp conftest.er2 >/dev/null; then
8808 lt_cv_prog_compiler_static_works=yes
8809 fi
8810 else
8811 lt_cv_prog_compiler_static_works=yes
8812 fi
8813 fi
8814 $RM -r conftest*
8815 LDFLAGS=$save_LDFLAGS
8816
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8819 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8820
8821 if test yes = "$lt_cv_prog_compiler_static_works"; then
8822 :
8823 else
8824 lt_prog_compiler_static=
8825 fi
8826
8827
8828
8829
8830
8831
8832
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8834 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8835 if ${lt_cv_prog_compiler_c_o+:} false; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 lt_cv_prog_compiler_c_o=no
8839 $RM -r conftest 2>/dev/null
8840 mkdir conftest
8841 cd conftest
8842 mkdir out
8843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8844
8845 lt_compiler_flag="-o out/conftest2.$ac_objext"
8846 # Insert the option either (1) after the last *FLAGS variable, or
8847 # (2) before a word containing "conftest.", or (3) at the end.
8848 # Note that $ac_compile itself does not contain backslashes and begins
8849 # with a dollar sign (not a hyphen), so the echo should work correctly.
8850 lt_compile=`echo "$ac_compile" | $SED \
8851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8853 -e 's:$: $lt_compiler_flag:'`
8854 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8855 (eval "$lt_compile" 2>out/conftest.err)
8856 ac_status=$?
8857 cat out/conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8860 then
8861 # The compiler can only warn and ignore the option if not recognized
8862 # So say no if there are warnings
8863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8864 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8865 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8866 lt_cv_prog_compiler_c_o=yes
8867 fi
8868 fi
8869 chmod u+w . 2>&5
8870 $RM conftest*
8871 # SGI C++ compiler will create directory out/ii_files/ for
8872 # template instantiation
8873 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8874 $RM out/* && rmdir out
8875 cd ..
8876 $RM -r conftest
8877 $RM conftest*
8878
8879 fi
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8881 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8882
8883
8884
8885
8886
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8890 if ${lt_cv_prog_compiler_c_o+:} false; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 lt_cv_prog_compiler_c_o=no
8894 $RM -r conftest 2>/dev/null
8895 mkdir conftest
8896 cd conftest
8897 mkdir out
8898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8899
8900 lt_compiler_flag="-o out/conftest2.$ac_objext"
8901 # Insert the option either (1) after the last *FLAGS variable, or
8902 # (2) before a word containing "conftest.", or (3) at the end.
8903 # Note that $ac_compile itself does not contain backslashes and begins
8904 # with a dollar sign (not a hyphen), so the echo should work correctly.
8905 lt_compile=`echo "$ac_compile" | $SED \
8906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8908 -e 's:$: $lt_compiler_flag:'`
8909 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8910 (eval "$lt_compile" 2>out/conftest.err)
8911 ac_status=$?
8912 cat out/conftest.err >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8915 then
8916 # The compiler can only warn and ignore the option if not recognized
8917 # So say no if there are warnings
8918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8921 lt_cv_prog_compiler_c_o=yes
8922 fi
8923 fi
8924 chmod u+w . 2>&5
8925 $RM conftest*
8926 # SGI C++ compiler will create directory out/ii_files/ for
8927 # template instantiation
8928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8929 $RM out/* && rmdir out
8930 cd ..
8931 $RM -r conftest
8932 $RM conftest*
8933
8934 fi
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8936 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8937
8938
8939
8940
8941 hard_links=nottested
8942 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8943 # do not overwrite the value of need_locks provided by the user
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8945 $as_echo_n "checking if we can lock with hard links... " >&6; }
8946 hard_links=yes
8947 $RM conftest*
8948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8949 touch conftest.a
8950 ln conftest.a conftest.b 2>&5 || hard_links=no
8951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8953 $as_echo "$hard_links" >&6; }
8954 if test no = "$hard_links"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8956 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8957 need_locks=warn
8958 fi
8959 else
8960 need_locks=no
8961 fi
8962
8963
8964
8965
8966
8967
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8969 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8970
8971 runpath_var=
8972 allow_undefined_flag=
8973 always_export_symbols=no
8974 archive_cmds=
8975 archive_expsym_cmds=
8976 compiler_needs_object=no
8977 enable_shared_with_static_runtimes=no
8978 export_dynamic_flag_spec=
8979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8980 hardcode_automatic=no
8981 hardcode_direct=no
8982 hardcode_direct_absolute=no
8983 hardcode_libdir_flag_spec=
8984 hardcode_libdir_separator=
8985 hardcode_minus_L=no
8986 hardcode_shlibpath_var=unsupported
8987 inherit_rpath=no
8988 link_all_deplibs=unknown
8989 module_cmds=
8990 module_expsym_cmds=
8991 old_archive_from_new_cmds=
8992 old_archive_from_expsyms_cmds=
8993 thread_safe_flag_spec=
8994 whole_archive_flag_spec=
8995 # include_expsyms should be a list of space-separated symbols to be *always*
8996 # included in the symbol list
8997 include_expsyms=
8998 # exclude_expsyms can be an extended regexp of symbols to exclude
8999 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9000 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9001 # as well as any symbol that contains 'd'.
9002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9004 # platforms (ab)use it in PIC code, but their linkers get confused if
9005 # the symbol is explicitly referenced. Since portable code cannot
9006 # rely on this symbol name, it's probably fine to never include it in
9007 # preloaded symbol tables.
9008 # Exclude shared library initialization/finalization symbols.
9009 extract_expsyms_cmds=
9010
9011 case $host_os in
9012 cygwin* | mingw* | pw32* | cegcc*)
9013 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9014 # When not using gcc, we currently assume that we are using
9015 # Microsoft Visual C++.
9016 if test yes != "$GCC"; then
9017 with_gnu_ld=no
9018 fi
9019 ;;
9020 interix*)
9021 # we just hope/assume this is gcc and not c89 (= MSVC++)
9022 with_gnu_ld=yes
9023 ;;
9024 openbsd* | bitrig*)
9025 with_gnu_ld=no
9026 ;;
9027 linux* | k*bsd*-gnu | gnu*)
9028 link_all_deplibs=no
9029 ;;
9030 esac
9031
9032 ld_shlibs=yes
9033
9034 # On some targets, GNU ld is compatible enough with the native linker
9035 # that we're better off using the native interface for both.
9036 lt_use_gnu_ld_interface=no
9037 if test yes = "$with_gnu_ld"; then
9038 case $host_os in
9039 aix*)
9040 # The AIX port of GNU ld has always aspired to compatibility
9041 # with the native linker. However, as the warning in the GNU ld
9042 # block says, versions before 2.19.5* couldn't really create working
9043 # shared libraries, regardless of the interface used.
9044 case `$LD -v 2>&1` in
9045 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9046 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9047 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9048 *)
9049 lt_use_gnu_ld_interface=yes
9050 ;;
9051 esac
9052 ;;
9053 *)
9054 lt_use_gnu_ld_interface=yes
9055 ;;
9056 esac
9057 fi
9058
9059 if test yes = "$lt_use_gnu_ld_interface"; then
9060 # If archive_cmds runs LD, not CC, wlarc should be empty
9061 wlarc='$wl'
9062
9063 # Set some defaults for GNU ld with shared library support. These
9064 # are reset later if shared libraries are not supported. Putting them
9065 # here allows them to be overridden if necessary.
9066 runpath_var=LD_RUN_PATH
9067 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9068 export_dynamic_flag_spec='$wl--export-dynamic'
9069 # ancient GNU ld didn't support --whole-archive et. al.
9070 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9071 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9072 else
9073 whole_archive_flag_spec=
9074 fi
9075 supports_anon_versioning=no
9076 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9077 *GNU\ gold*) supports_anon_versioning=yes ;;
9078 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9079 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9080 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9081 *\ 2.11.*) ;; # other 2.11 versions
9082 *) supports_anon_versioning=yes ;;
9083 esac
9084
9085 # See if GNU ld supports shared libraries.
9086 case $host_os in
9087 aix[3-9]*)
9088 # On AIX/PPC, the GNU linker is very broken
9089 if test ia64 != "$host_cpu"; then
9090 ld_shlibs=no
9091 cat <<_LT_EOF 1>&2
9092
9093 *** Warning: the GNU linker, at least up to release 2.19, is reported
9094 *** to be unable to reliably create shared libraries on AIX.
9095 *** Therefore, libtool is disabling shared libraries support. If you
9096 *** really care for shared libraries, you may want to install binutils
9097 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9098 *** You will then need to restart the configuration process.
9099
9100 _LT_EOF
9101 fi
9102 ;;
9103
9104 amigaos*)
9105 case $host_cpu in
9106 powerpc)
9107 # see comment about AmigaOS4 .so support
9108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9109 archive_expsym_cmds=''
9110 ;;
9111 m68k)
9112 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)'
9113 hardcode_libdir_flag_spec='-L$libdir'
9114 hardcode_minus_L=yes
9115 ;;
9116 esac
9117 ;;
9118
9119 beos*)
9120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 allow_undefined_flag=unsupported
9122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9123 # support --undefined. This deserves some investigation. FIXME
9124 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9125 else
9126 ld_shlibs=no
9127 fi
9128 ;;
9129
9130 cygwin* | mingw* | pw32* | cegcc*)
9131 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9132 # as there is no search path for DLLs.
9133 hardcode_libdir_flag_spec='-L$libdir'
9134 export_dynamic_flag_spec='$wl--export-all-symbols'
9135 allow_undefined_flag=unsupported
9136 always_export_symbols=no
9137 enable_shared_with_static_runtimes=yes
9138 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'
9139 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9140
9141 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9143 # If the export-symbols file already is a .def file, use it as
9144 # is; otherwise, prepend EXPORTS...
9145 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9146 cp $export_symbols $output_objdir/$soname.def;
9147 else
9148 echo EXPORTS > $output_objdir/$soname.def;
9149 cat $export_symbols >> $output_objdir/$soname.def;
9150 fi~
9151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9152 else
9153 ld_shlibs=no
9154 fi
9155 ;;
9156
9157 haiku*)
9158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9159 link_all_deplibs=yes
9160 ;;
9161
9162 os2*)
9163 hardcode_libdir_flag_spec='-L$libdir'
9164 hardcode_minus_L=yes
9165 allow_undefined_flag=unsupported
9166 shrext_cmds=.dll
9167 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9168 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9169 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9170 $ECHO EXPORTS >> $output_objdir/$libname.def~
9171 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9173 emximp -o $lib $output_objdir/$libname.def'
9174 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9175 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9176 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9177 $ECHO EXPORTS >> $output_objdir/$libname.def~
9178 prefix_cmds="$SED"~
9179 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9180 prefix_cmds="$prefix_cmds -e 1d";
9181 fi~
9182 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9183 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9184 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9185 emximp -o $lib $output_objdir/$libname.def'
9186 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9187 enable_shared_with_static_runtimes=yes
9188 ;;
9189
9190 interix[3-9]*)
9191 hardcode_direct=no
9192 hardcode_shlibpath_var=no
9193 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9194 export_dynamic_flag_spec='$wl-E'
9195 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9196 # Instead, shared libraries are loaded at an image base (0x10000000 by
9197 # default) and relocated if they conflict, which is a slow very memory
9198 # consuming and fragmenting process. To avoid this, we pick a random,
9199 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9200 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9201 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9202 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'
9203 ;;
9204
9205 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9206 tmp_diet=no
9207 if test linux-dietlibc = "$host_os"; then
9208 case $cc_basename in
9209 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9210 esac
9211 fi
9212 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9213 && test no = "$tmp_diet"
9214 then
9215 tmp_addflag=' $pic_flag'
9216 tmp_sharedflag='-shared'
9217 case $cc_basename,$host_cpu in
9218 pgcc*) # Portland Group C compiler
9219 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'
9220 tmp_addflag=' $pic_flag'
9221 ;;
9222 pgf77* | pgf90* | pgf95* | pgfortran*)
9223 # Portland Group f77 and f90 compilers
9224 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'
9225 tmp_addflag=' $pic_flag -Mnomain' ;;
9226 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9227 tmp_addflag=' -i_dynamic' ;;
9228 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9229 tmp_addflag=' -i_dynamic -nofor_main' ;;
9230 ifc* | ifort*) # Intel Fortran compiler
9231 tmp_addflag=' -nofor_main' ;;
9232 lf95*) # Lahey Fortran 8.1
9233 whole_archive_flag_spec=
9234 tmp_sharedflag='--shared' ;;
9235 nagfor*) # NAGFOR 5.3
9236 tmp_sharedflag='-Wl,-shared' ;;
9237 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9238 tmp_sharedflag='-qmkshrobj'
9239 tmp_addflag= ;;
9240 nvcc*) # Cuda Compiler Driver 2.2
9241 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'
9242 compiler_needs_object=yes
9243 ;;
9244 esac
9245 case `$CC -V 2>&1 | sed 5q` in
9246 *Sun\ C*) # Sun C 5.9
9247 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'
9248 compiler_needs_object=yes
9249 tmp_sharedflag='-G' ;;
9250 *Sun\ F*) # Sun Fortran 8.3
9251 tmp_sharedflag='-G' ;;
9252 esac
9253 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9254
9255 if test yes = "$supports_anon_versioning"; then
9256 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9258 echo "local: *; };" >> $output_objdir/$libname.ver~
9259 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9260 fi
9261
9262 case $cc_basename in
9263 tcc*)
9264 export_dynamic_flag_spec='-rdynamic'
9265 ;;
9266 xlf* | bgf* | bgxlf* | mpixlf*)
9267 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9268 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9269 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9270 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9271 if test yes = "$supports_anon_versioning"; then
9272 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9273 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9274 echo "local: *; };" >> $output_objdir/$libname.ver~
9275 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9276 fi
9277 ;;
9278 esac
9279 else
9280 ld_shlibs=no
9281 fi
9282 ;;
9283
9284 netbsd* | netbsdelf*-gnu)
9285 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9286 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9287 wlarc=
9288 else
9289 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9290 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9291 fi
9292 ;;
9293
9294 solaris*)
9295 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9296 ld_shlibs=no
9297 cat <<_LT_EOF 1>&2
9298
9299 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9300 *** create shared libraries on Solaris systems. Therefore, libtool
9301 *** is disabling shared libraries support. We urge you to upgrade GNU
9302 *** binutils to release 2.9.1 or newer. Another option is to modify
9303 *** your PATH or compiler configuration so that the native linker is
9304 *** used, and then restart.
9305
9306 _LT_EOF
9307 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9308 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9309 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9310 else
9311 ld_shlibs=no
9312 fi
9313 ;;
9314
9315 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9316 case `$LD -v 2>&1` in
9317 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9318 ld_shlibs=no
9319 cat <<_LT_EOF 1>&2
9320
9321 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9322 *** reliably create shared libraries on SCO systems. Therefore, libtool
9323 *** is disabling shared libraries support. We urge you to upgrade GNU
9324 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9325 *** your PATH or compiler configuration so that the native linker is
9326 *** used, and then restart.
9327
9328 _LT_EOF
9329 ;;
9330 *)
9331 # For security reasons, it is highly recommended that you always
9332 # use absolute paths for naming shared libraries, and exclude the
9333 # DT_RUNPATH tag from executables and libraries. But doing so
9334 # requires that you compile everything twice, which is a pain.
9335 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9336 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9339 else
9340 ld_shlibs=no
9341 fi
9342 ;;
9343 esac
9344 ;;
9345
9346 sunos4*)
9347 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9348 wlarc=
9349 hardcode_direct=yes
9350 hardcode_shlibpath_var=no
9351 ;;
9352
9353 *)
9354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9355 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9356 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9357 else
9358 ld_shlibs=no
9359 fi
9360 ;;
9361 esac
9362
9363 if test no = "$ld_shlibs"; then
9364 runpath_var=
9365 hardcode_libdir_flag_spec=
9366 export_dynamic_flag_spec=
9367 whole_archive_flag_spec=
9368 fi
9369 else
9370 # PORTME fill in a description of your system's linker (not GNU ld)
9371 case $host_os in
9372 aix3*)
9373 allow_undefined_flag=unsupported
9374 always_export_symbols=yes
9375 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'
9376 # Note: this linker hardcodes the directories in LIBPATH if there
9377 # are no directories specified by -L.
9378 hardcode_minus_L=yes
9379 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9380 # Neither direct hardcoding nor static linking is supported with a
9381 # broken collect2.
9382 hardcode_direct=unsupported
9383 fi
9384 ;;
9385
9386 aix[4-9]*)
9387 if test ia64 = "$host_cpu"; then
9388 # On IA64, the linker does run time linking by default, so we don't
9389 # have to do anything special.
9390 aix_use_runtimelinking=no
9391 exp_sym_flag='-Bexport'
9392 no_entry_flag=
9393 else
9394 # If we're using GNU nm, then we don't want the "-C" option.
9395 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9396 # Without the "-l" option, or with the "-B" option, AIX nm treats
9397 # weak defined symbols like other global defined symbols, whereas
9398 # GNU nm marks them as "W".
9399 # While the 'weak' keyword is ignored in the Export File, we need
9400 # it in the Import File for the 'aix-soname' feature, so we have
9401 # to replace the "-B" option with "-P" for AIX nm.
9402 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9403 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'
9404 else
9405 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9406 fi
9407 aix_use_runtimelinking=no
9408
9409 # Test if we are trying to use run time linking or normal
9410 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9411 # have runtime linking enabled, and use it for executables.
9412 # For shared libraries, we enable/disable runtime linking
9413 # depending on the kind of the shared library created -
9414 # when "with_aix_soname,aix_use_runtimelinking" is:
9415 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9416 # "aix,yes" lib.so shared, rtl:yes, for executables
9417 # lib.a static archive
9418 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9419 # lib.a(lib.so.V) shared, rtl:no, for executables
9420 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9421 # lib.a(lib.so.V) shared, rtl:no
9422 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9423 # lib.a static archive
9424 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9425 for ld_flag in $LDFLAGS; do
9426 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9427 aix_use_runtimelinking=yes
9428 break
9429 fi
9430 done
9431 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9432 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9433 # so we don't have lib.a shared libs to link our executables.
9434 # We have to force runtime linking in this case.
9435 aix_use_runtimelinking=yes
9436 LDFLAGS="$LDFLAGS -Wl,-brtl"
9437 fi
9438 ;;
9439 esac
9440
9441 exp_sym_flag='-bexport'
9442 no_entry_flag='-bnoentry'
9443 fi
9444
9445 # When large executables or shared objects are built, AIX ld can
9446 # have problems creating the table of contents. If linking a library
9447 # or program results in "error TOC overflow" add -mminimal-toc to
9448 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9449 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9450
9451 archive_cmds=''
9452 hardcode_direct=yes
9453 hardcode_direct_absolute=yes
9454 hardcode_libdir_separator=':'
9455 link_all_deplibs=yes
9456 file_list_spec='$wl-f,'
9457 case $with_aix_soname,$aix_use_runtimelinking in
9458 aix,*) ;; # traditional, no import file
9459 svr4,* | *,yes) # use import file
9460 # The Import File defines what to hardcode.
9461 hardcode_direct=no
9462 hardcode_direct_absolute=no
9463 ;;
9464 esac
9465
9466 if test yes = "$GCC"; then
9467 case $host_os in aix4.[012]|aix4.[012].*)
9468 # We only want to do this on AIX 4.2 and lower, the check
9469 # below for broken collect2 doesn't work under 4.3+
9470 collect2name=`$CC -print-prog-name=collect2`
9471 if test -f "$collect2name" &&
9472 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9473 then
9474 # We have reworked collect2
9475 :
9476 else
9477 # We have old collect2
9478 hardcode_direct=unsupported
9479 # It fails to find uninstalled libraries when the uninstalled
9480 # path is not listed in the libpath. Setting hardcode_minus_L
9481 # to unsupported forces relinking
9482 hardcode_minus_L=yes
9483 hardcode_libdir_flag_spec='-L$libdir'
9484 hardcode_libdir_separator=
9485 fi
9486 ;;
9487 esac
9488 shared_flag='-shared'
9489 if test yes = "$aix_use_runtimelinking"; then
9490 shared_flag="$shared_flag "'$wl-G'
9491 fi
9492 # Need to ensure runtime linking is disabled for the traditional
9493 # shared library, or the linker may eventually find shared libraries
9494 # /with/ Import File - we do not want to mix them.
9495 shared_flag_aix='-shared'
9496 shared_flag_svr4='-shared $wl-G'
9497 else
9498 # not using gcc
9499 if test ia64 = "$host_cpu"; then
9500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9501 # chokes on -Wl,-G. The following line is correct:
9502 shared_flag='-G'
9503 else
9504 if test yes = "$aix_use_runtimelinking"; then
9505 shared_flag='$wl-G'
9506 else
9507 shared_flag='$wl-bM:SRE'
9508 fi
9509 shared_flag_aix='$wl-bM:SRE'
9510 shared_flag_svr4='$wl-G'
9511 fi
9512 fi
9513
9514 export_dynamic_flag_spec='$wl-bexpall'
9515 # It seems that -bexpall does not export symbols beginning with
9516 # underscore (_), so it is better to generate a list of symbols to export.
9517 always_export_symbols=yes
9518 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9519 # Warning - without using the other runtime loading flags (-brtl),
9520 # -berok will link without error, but may produce a broken library.
9521 allow_undefined_flag='-berok'
9522 # Determine the default libpath from the value encoded in an
9523 # empty executable.
9524 if test set = "${lt_cv_aix_libpath+set}"; then
9525 aix_libpath=$lt_cv_aix_libpath
9526 else
9527 if ${lt_cv_aix_libpath_+:} false; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9532
9533 int
9534 main ()
9535 {
9536
9537 ;
9538 return 0;
9539 }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542
9543 lt_aix_libpath_sed='
9544 /Import File Strings/,/^$/ {
9545 /^0/ {
9546 s/^0 *\([^ ]*\) *$/\1/
9547 p
9548 }
9549 }'
9550 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551 # Check for a 64-bit object if we didn't find anything.
9552 if test -z "$lt_cv_aix_libpath_"; then
9553 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9554 fi
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9558 if test -z "$lt_cv_aix_libpath_"; then
9559 lt_cv_aix_libpath_=/usr/lib:/lib
9560 fi
9561
9562 fi
9563
9564 aix_libpath=$lt_cv_aix_libpath_
9565 fi
9566
9567 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9568 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
9569 else
9570 if test ia64 = "$host_cpu"; then
9571 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9572 allow_undefined_flag="-z nodefs"
9573 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"
9574 else
9575 # Determine the default libpath from the value encoded in an
9576 # empty executable.
9577 if test set = "${lt_cv_aix_libpath+set}"; then
9578 aix_libpath=$lt_cv_aix_libpath
9579 else
9580 if ${lt_cv_aix_libpath_+:} false; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585
9586 int
9587 main ()
9588 {
9589
9590 ;
9591 return 0;
9592 }
9593 _ACEOF
9594 if ac_fn_c_try_link "$LINENO"; then :
9595
9596 lt_aix_libpath_sed='
9597 /Import File Strings/,/^$/ {
9598 /^0/ {
9599 s/^0 *\([^ ]*\) *$/\1/
9600 p
9601 }
9602 }'
9603 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9604 # Check for a 64-bit object if we didn't find anything.
9605 if test -z "$lt_cv_aix_libpath_"; then
9606 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 fi
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
9611 if test -z "$lt_cv_aix_libpath_"; then
9612 lt_cv_aix_libpath_=/usr/lib:/lib
9613 fi
9614
9615 fi
9616
9617 aix_libpath=$lt_cv_aix_libpath_
9618 fi
9619
9620 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9621 # Warning - without using the other run time loading flags,
9622 # -berok will link without error, but may produce a broken library.
9623 no_undefined_flag=' $wl-bernotok'
9624 allow_undefined_flag=' $wl-berok'
9625 if test yes = "$with_gnu_ld"; then
9626 # We only use this code for GNU lds that support --whole-archive.
9627 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9628 else
9629 # Exported symbols can be pulled into shared objects from archives
9630 whole_archive_flag_spec='$convenience'
9631 fi
9632 archive_cmds_need_lc=yes
9633 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9634 # -brtl affects multiple linker settings, -berok does not and is overridden later
9635 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9636 if test svr4 != "$with_aix_soname"; then
9637 # This is similar to how AIX traditionally builds its shared libraries.
9638 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'
9639 fi
9640 if test aix != "$with_aix_soname"; then
9641 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'
9642 else
9643 # used by -dlpreopen to get the symbols
9644 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9645 fi
9646 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9647 fi
9648 fi
9649 ;;
9650
9651 amigaos*)
9652 case $host_cpu in
9653 powerpc)
9654 # see comment about AmigaOS4 .so support
9655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9656 archive_expsym_cmds=''
9657 ;;
9658 m68k)
9659 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)'
9660 hardcode_libdir_flag_spec='-L$libdir'
9661 hardcode_minus_L=yes
9662 ;;
9663 esac
9664 ;;
9665
9666 bsdi[45]*)
9667 export_dynamic_flag_spec=-rdynamic
9668 ;;
9669
9670 cygwin* | mingw* | pw32* | cegcc*)
9671 # When not using gcc, we currently assume that we are using
9672 # Microsoft Visual C++.
9673 # hardcode_libdir_flag_spec is actually meaningless, as there is
9674 # no search path for DLLs.
9675 case $cc_basename in
9676 cl*)
9677 # Native MSVC
9678 hardcode_libdir_flag_spec=' '
9679 allow_undefined_flag=unsupported
9680 always_export_symbols=yes
9681 file_list_spec='@'
9682 # Tell ltmain to make .lib files, not .a files.
9683 libext=lib
9684 # Tell ltmain to make .dll files, not .so files.
9685 shrext_cmds=.dll
9686 # FIXME: Setting linknames here is a bad hack.
9687 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9688 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9689 cp "$export_symbols" "$output_objdir/$soname.def";
9690 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9691 else
9692 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9693 fi~
9694 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9695 linknames='
9696 # The linker will not automatically build a static lib if we build a DLL.
9697 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9698 enable_shared_with_static_runtimes=yes
9699 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9700 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9701 # Don't use ranlib
9702 old_postinstall_cmds='chmod 644 $oldlib'
9703 postlink_cmds='lt_outputfile="@OUTPUT@"~
9704 lt_tool_outputfile="@TOOL_OUTPUT@"~
9705 case $lt_outputfile in
9706 *.exe|*.EXE) ;;
9707 *)
9708 lt_outputfile=$lt_outputfile.exe
9709 lt_tool_outputfile=$lt_tool_outputfile.exe
9710 ;;
9711 esac~
9712 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9713 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9714 $RM "$lt_outputfile.manifest";
9715 fi'
9716 ;;
9717 *)
9718 # Assume MSVC wrapper
9719 hardcode_libdir_flag_spec=' '
9720 allow_undefined_flag=unsupported
9721 # Tell ltmain to make .lib files, not .a files.
9722 libext=lib
9723 # Tell ltmain to make .dll files, not .so files.
9724 shrext_cmds=.dll
9725 # FIXME: Setting linknames here is a bad hack.
9726 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9727 # The linker will automatically build a .lib file if we build a DLL.
9728 old_archive_from_new_cmds='true'
9729 # FIXME: Should let the user specify the lib program.
9730 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9731 enable_shared_with_static_runtimes=yes
9732 ;;
9733 esac
9734 ;;
9735
9736 darwin* | rhapsody*)
9737
9738
9739 archive_cmds_need_lc=no
9740 hardcode_direct=no
9741 hardcode_automatic=yes
9742 hardcode_shlibpath_var=unsupported
9743 if test yes = "$lt_cv_ld_force_load"; then
9744 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\"`'
9745
9746 else
9747 whole_archive_flag_spec=''
9748 fi
9749 link_all_deplibs=yes
9750 allow_undefined_flag=$_lt_dar_allow_undefined
9751 case $cc_basename in
9752 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9753 *) _lt_dar_can_shared=$GCC ;;
9754 esac
9755 if test yes = "$_lt_dar_can_shared"; then
9756 output_verbose_link_cmd=func_echo_all
9757 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9758 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9759 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"
9760 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"
9761
9762 else
9763 ld_shlibs=no
9764 fi
9765
9766 ;;
9767
9768 dgux*)
9769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_libdir_flag_spec='-L$libdir'
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9775 # support. Future versions do this automatically, but an explicit c++rt0.o
9776 # does not break anything, and helps significantly (at the cost of a little
9777 # extra space).
9778 freebsd2.2*)
9779 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9780 hardcode_libdir_flag_spec='-R$libdir'
9781 hardcode_direct=yes
9782 hardcode_shlibpath_var=no
9783 ;;
9784
9785 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9786 freebsd2.*)
9787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9788 hardcode_direct=yes
9789 hardcode_minus_L=yes
9790 hardcode_shlibpath_var=no
9791 ;;
9792
9793 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9794 freebsd* | dragonfly*)
9795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9796 hardcode_libdir_flag_spec='-R$libdir'
9797 hardcode_direct=yes
9798 hardcode_shlibpath_var=no
9799 ;;
9800
9801 hpux9*)
9802 if test yes = "$GCC"; then
9803 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'
9804 else
9805 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'
9806 fi
9807 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9808 hardcode_libdir_separator=:
9809 hardcode_direct=yes
9810
9811 # hardcode_minus_L: Not really in the search PATH,
9812 # but as the default location of the library.
9813 hardcode_minus_L=yes
9814 export_dynamic_flag_spec='$wl-E'
9815 ;;
9816
9817 hpux10*)
9818 if test yes,no = "$GCC,$with_gnu_ld"; then
9819 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9820 else
9821 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9822 fi
9823 if test no = "$with_gnu_ld"; then
9824 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9825 hardcode_libdir_separator=:
9826 hardcode_direct=yes
9827 hardcode_direct_absolute=yes
9828 export_dynamic_flag_spec='$wl-E'
9829 # hardcode_minus_L: Not really in the search PATH,
9830 # but as the default location of the library.
9831 hardcode_minus_L=yes
9832 fi
9833 ;;
9834
9835 hpux11*)
9836 if test yes,no = "$GCC,$with_gnu_ld"; then
9837 case $host_cpu in
9838 hppa*64*)
9839 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 ;;
9841 ia64*)
9842 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9843 ;;
9844 *)
9845 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846 ;;
9847 esac
9848 else
9849 case $host_cpu in
9850 hppa*64*)
9851 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9852 ;;
9853 ia64*)
9854 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9855 ;;
9856 *)
9857
9858 # Older versions of the 11.00 compiler do not understand -b yet
9859 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9861 $as_echo_n "checking if $CC understands -b... " >&6; }
9862 if ${lt_cv_prog_compiler__b+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 lt_cv_prog_compiler__b=no
9866 save_LDFLAGS=$LDFLAGS
9867 LDFLAGS="$LDFLAGS -b"
9868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9870 # The linker can only warn and ignore the option if not recognized
9871 # So say no if there are warnings
9872 if test -s conftest.err; then
9873 # Append any errors to the config.log.
9874 cat conftest.err 1>&5
9875 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9877 if diff conftest.exp conftest.er2 >/dev/null; then
9878 lt_cv_prog_compiler__b=yes
9879 fi
9880 else
9881 lt_cv_prog_compiler__b=yes
9882 fi
9883 fi
9884 $RM -r conftest*
9885 LDFLAGS=$save_LDFLAGS
9886
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9889 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9890
9891 if test yes = "$lt_cv_prog_compiler__b"; then
9892 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9893 else
9894 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9895 fi
9896
9897 ;;
9898 esac
9899 fi
9900 if test no = "$with_gnu_ld"; then
9901 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9902 hardcode_libdir_separator=:
9903
9904 case $host_cpu in
9905 hppa*64*|ia64*)
9906 hardcode_direct=no
9907 hardcode_shlibpath_var=no
9908 ;;
9909 *)
9910 hardcode_direct=yes
9911 hardcode_direct_absolute=yes
9912 export_dynamic_flag_spec='$wl-E'
9913
9914 # hardcode_minus_L: Not really in the search PATH,
9915 # but as the default location of the library.
9916 hardcode_minus_L=yes
9917 ;;
9918 esac
9919 fi
9920 ;;
9921
9922 irix5* | irix6* | nonstopux*)
9923 if test yes = "$GCC"; then
9924 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'
9925 # Try to use the -exported_symbol ld option, if it does not
9926 # work, assume that -exports_file does not work either and
9927 # implicitly export all symbols.
9928 # This should be the same for all languages, so no per-tag cache variable.
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9930 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9931 if ${lt_cv_irix_exported_symbol+:} false; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 save_LDFLAGS=$LDFLAGS
9935 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9938 int foo (void) { return 0; }
9939 _ACEOF
9940 if ac_fn_c_try_link "$LINENO"; then :
9941 lt_cv_irix_exported_symbol=yes
9942 else
9943 lt_cv_irix_exported_symbol=no
9944 fi
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LDFLAGS=$save_LDFLAGS
9948 fi
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9950 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9951 if test yes = "$lt_cv_irix_exported_symbol"; then
9952 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'
9953 fi
9954 link_all_deplibs=no
9955 else
9956 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'
9957 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'
9958 fi
9959 archive_cmds_need_lc='no'
9960 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9961 hardcode_libdir_separator=:
9962 inherit_rpath=yes
9963 link_all_deplibs=yes
9964 ;;
9965
9966 linux*)
9967 case $cc_basename in
9968 tcc*)
9969 # Fabrice Bellard et al's Tiny C Compiler
9970 ld_shlibs=yes
9971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9972 ;;
9973 esac
9974 ;;
9975
9976 netbsd* | netbsdelf*-gnu)
9977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9979 else
9980 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9981 fi
9982 hardcode_libdir_flag_spec='-R$libdir'
9983 hardcode_direct=yes
9984 hardcode_shlibpath_var=no
9985 ;;
9986
9987 newsos6)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=yes
9990 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9991 hardcode_libdir_separator=:
9992 hardcode_shlibpath_var=no
9993 ;;
9994
9995 *nto* | *qnx*)
9996 ;;
9997
9998 openbsd* | bitrig*)
9999 if test -f /usr/libexec/ld.so; then
10000 hardcode_direct=yes
10001 hardcode_shlibpath_var=no
10002 hardcode_direct_absolute=yes
10003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10005 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10006 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10007 export_dynamic_flag_spec='$wl-E'
10008 else
10009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10010 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10011 fi
10012 else
10013 ld_shlibs=no
10014 fi
10015 ;;
10016
10017 os2*)
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_minus_L=yes
10020 allow_undefined_flag=unsupported
10021 shrext_cmds=.dll
10022 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10023 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10024 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10025 $ECHO EXPORTS >> $output_objdir/$libname.def~
10026 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10027 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10028 emximp -o $lib $output_objdir/$libname.def'
10029 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10030 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10031 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10032 $ECHO EXPORTS >> $output_objdir/$libname.def~
10033 prefix_cmds="$SED"~
10034 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10035 prefix_cmds="$prefix_cmds -e 1d";
10036 fi~
10037 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10038 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10039 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10040 emximp -o $lib $output_objdir/$libname.def'
10041 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10042 enable_shared_with_static_runtimes=yes
10043 ;;
10044
10045 osf3*)
10046 if test yes = "$GCC"; then
10047 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10048 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'
10049 else
10050 allow_undefined_flag=' -expect_unresolved \*'
10051 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'
10052 fi
10053 archive_cmds_need_lc='no'
10054 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10055 hardcode_libdir_separator=:
10056 ;;
10057
10058 osf4* | osf5*) # as osf3* with the addition of -msym flag
10059 if test yes = "$GCC"; then
10060 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10061 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'
10062 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10063 else
10064 allow_undefined_flag=' -expect_unresolved \*'
10065 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'
10066 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~
10067 $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'
10068
10069 # Both c and cxx compiler support -rpath directly
10070 hardcode_libdir_flag_spec='-rpath $libdir'
10071 fi
10072 archive_cmds_need_lc='no'
10073 hardcode_libdir_separator=:
10074 ;;
10075
10076 solaris*)
10077 no_undefined_flag=' -z defs'
10078 if test yes = "$GCC"; then
10079 wlarc='$wl'
10080 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10082 $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'
10083 else
10084 case `$CC -V 2>&1` in
10085 *"Compilers 5.0"*)
10086 wlarc=''
10087 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10089 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10090 ;;
10091 *)
10092 wlarc='$wl'
10093 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10095 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10096 ;;
10097 esac
10098 fi
10099 hardcode_libdir_flag_spec='-R$libdir'
10100 hardcode_shlibpath_var=no
10101 case $host_os in
10102 solaris2.[0-5] | solaris2.[0-5].*) ;;
10103 *)
10104 # The compiler driver will combine and reorder linker options,
10105 # but understands '-z linker_flag'. GCC discards it without '$wl',
10106 # but is careful enough not to reorder.
10107 # Supported since Solaris 2.6 (maybe 2.5.1?)
10108 if test yes = "$GCC"; then
10109 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10110 else
10111 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10112 fi
10113 ;;
10114 esac
10115 link_all_deplibs=yes
10116 ;;
10117
10118 sunos4*)
10119 if test sequent = "$host_vendor"; then
10120 # Use $CC to link under sequent, because it throws in some extra .o
10121 # files that make .init and .fini sections work.
10122 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10123 else
10124 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10125 fi
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_direct=yes
10128 hardcode_minus_L=yes
10129 hardcode_shlibpath_var=no
10130 ;;
10131
10132 sysv4)
10133 case $host_vendor in
10134 sni)
10135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_direct=yes # is this really true???
10137 ;;
10138 siemens)
10139 ## LD is ld it makes a PLAMLIB
10140 ## CC just makes a GrossModule.
10141 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10142 reload_cmds='$CC -r -o $output$reload_objs'
10143 hardcode_direct=no
10144 ;;
10145 motorola)
10146 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10148 ;;
10149 esac
10150 runpath_var='LD_RUN_PATH'
10151 hardcode_shlibpath_var=no
10152 ;;
10153
10154 sysv4.3*)
10155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156 hardcode_shlibpath_var=no
10157 export_dynamic_flag_spec='-Bexport'
10158 ;;
10159
10160 sysv4*MP*)
10161 if test -d /usr/nec; then
10162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163 hardcode_shlibpath_var=no
10164 runpath_var=LD_RUN_PATH
10165 hardcode_runpath_var=yes
10166 ld_shlibs=yes
10167 fi
10168 ;;
10169
10170 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10171 no_undefined_flag='$wl-z,text'
10172 archive_cmds_need_lc=no
10173 hardcode_shlibpath_var=no
10174 runpath_var='LD_RUN_PATH'
10175
10176 if test yes = "$GCC"; then
10177 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 else
10180 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 fi
10183 ;;
10184
10185 sysv5* | sco3.2v5* | sco5v6*)
10186 # Note: We CANNOT use -z defs as we might desire, because we do not
10187 # link with -lc, and that would cause any symbols used from libc to
10188 # always be unresolved, which means just about no library would
10189 # ever link correctly. If we're not using GNU ld we use -z text
10190 # though, which does catch some bad symbols but isn't as heavy-handed
10191 # as -z defs.
10192 no_undefined_flag='$wl-z,text'
10193 allow_undefined_flag='$wl-z,nodefs'
10194 archive_cmds_need_lc=no
10195 hardcode_shlibpath_var=no
10196 hardcode_libdir_flag_spec='$wl-R,$libdir'
10197 hardcode_libdir_separator=':'
10198 link_all_deplibs=yes
10199 export_dynamic_flag_spec='$wl-Bexport'
10200 runpath_var='LD_RUN_PATH'
10201
10202 if test yes = "$GCC"; then
10203 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10204 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10205 else
10206 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208 fi
10209 ;;
10210
10211 uts4*)
10212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213 hardcode_libdir_flag_spec='-L$libdir'
10214 hardcode_shlibpath_var=no
10215 ;;
10216
10217 *)
10218 ld_shlibs=no
10219 ;;
10220 esac
10221
10222 if test sni = "$host_vendor"; then
10223 case $host in
10224 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10225 export_dynamic_flag_spec='$wl-Blargedynsym'
10226 ;;
10227 esac
10228 fi
10229 fi
10230
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10232 $as_echo "$ld_shlibs" >&6; }
10233 test no = "$ld_shlibs" && can_build_shared=no
10234
10235 with_gnu_ld=$with_gnu_ld
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251 #
10252 # Do we need to explicitly link libc?
10253 #
10254 case "x$archive_cmds_need_lc" in
10255 x|xyes)
10256 # Assume -lc should be added
10257 archive_cmds_need_lc=yes
10258
10259 if test yes,yes = "$GCC,$enable_shared"; then
10260 case $archive_cmds in
10261 *'~'*)
10262 # FIXME: we may have to deal with multi-command sequences.
10263 ;;
10264 '$CC '*)
10265 # Test whether the compiler implicitly links with -lc since on some
10266 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10267 # to ld, don't add -lc before -lgcc.
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10269 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10270 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 $RM conftest*
10274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10275
10276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10277 (eval $ac_compile) 2>&5
10278 ac_status=$?
10279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10280 test $ac_status = 0; } 2>conftest.err; then
10281 soname=conftest
10282 lib=conftest
10283 libobjs=conftest.$ac_objext
10284 deplibs=
10285 wl=$lt_prog_compiler_wl
10286 pic_flag=$lt_prog_compiler_pic
10287 compiler_flags=-v
10288 linker_flags=-v
10289 verstring=
10290 output_objdir=.
10291 libname=conftest
10292 lt_save_allow_undefined_flag=$allow_undefined_flag
10293 allow_undefined_flag=
10294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10295 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10296 ac_status=$?
10297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10298 test $ac_status = 0; }
10299 then
10300 lt_cv_archive_cmds_need_lc=no
10301 else
10302 lt_cv_archive_cmds_need_lc=yes
10303 fi
10304 allow_undefined_flag=$lt_save_allow_undefined_flag
10305 else
10306 cat conftest.err 1>&5
10307 fi
10308 $RM conftest*
10309
10310 fi
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10312 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10313 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10314 ;;
10315 esac
10316 fi
10317 ;;
10318 esac
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10472 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10473
10474 if test yes = "$GCC"; then
10475 case $host_os in
10476 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10477 *) lt_awk_arg='/^libraries:/' ;;
10478 esac
10479 case $host_os in
10480 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10481 *) lt_sed_strip_eq='s|=/|/|g' ;;
10482 esac
10483 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10484 case $lt_search_path_spec in
10485 *\;*)
10486 # if the path contains ";" then we assume it to be the separator
10487 # otherwise default to the standard path separator (i.e. ":") - it is
10488 # assumed that no part of a normal pathname contains ";" but that should
10489 # okay in the real world where ";" in dirpaths is itself problematic.
10490 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10491 ;;
10492 *)
10493 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10494 ;;
10495 esac
10496 # Ok, now we have the path, separated by spaces, we can step through it
10497 # and add multilib dir if necessary...
10498 lt_tmp_lt_search_path_spec=
10499 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10500 # ...but if some path component already ends with the multilib dir we assume
10501 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10502 case "$lt_multi_os_dir; $lt_search_path_spec " in
10503 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10504 lt_multi_os_dir=
10505 ;;
10506 esac
10507 for lt_sys_path in $lt_search_path_spec; do
10508 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10509 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10510 elif test -n "$lt_multi_os_dir"; then
10511 test -d "$lt_sys_path" && \
10512 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10513 fi
10514 done
10515 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10516 BEGIN {RS = " "; FS = "/|\n";} {
10517 lt_foo = "";
10518 lt_count = 0;
10519 for (lt_i = NF; lt_i > 0; lt_i--) {
10520 if ($lt_i != "" && $lt_i != ".") {
10521 if ($lt_i == "..") {
10522 lt_count++;
10523 } else {
10524 if (lt_count == 0) {
10525 lt_foo = "/" $lt_i lt_foo;
10526 } else {
10527 lt_count--;
10528 }
10529 }
10530 }
10531 }
10532 if (lt_foo != "") { lt_freq[lt_foo]++; }
10533 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10534 }'`
10535 # AWK program above erroneously prepends '/' to C:/dos/paths
10536 # for these hosts.
10537 case $host_os in
10538 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10539 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10540 esac
10541 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10542 else
10543 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10544 fi
10545 library_names_spec=
10546 libname_spec='lib$name'
10547 soname_spec=
10548 shrext_cmds=.so
10549 postinstall_cmds=
10550 postuninstall_cmds=
10551 finish_cmds=
10552 finish_eval=
10553 shlibpath_var=
10554 shlibpath_overrides_runpath=unknown
10555 version_type=none
10556 dynamic_linker="$host_os ld.so"
10557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10558 need_lib_prefix=unknown
10559 hardcode_into_libs=no
10560
10561 # when you set need_version to no, make sure it does not cause -set_version
10562 # flags to be left without arguments
10563 need_version=unknown
10564
10565
10566
10567 case $host_os in
10568 aix3*)
10569 version_type=linux # correct to gnu/linux during the next big refactor
10570 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10571 shlibpath_var=LIBPATH
10572
10573 # AIX 3 has no versioning support, so we append a major version to the name.
10574 soname_spec='$libname$release$shared_ext$major'
10575 ;;
10576
10577 aix[4-9]*)
10578 version_type=linux # correct to gnu/linux during the next big refactor
10579 need_lib_prefix=no
10580 need_version=no
10581 hardcode_into_libs=yes
10582 if test ia64 = "$host_cpu"; then
10583 # AIX 5 supports IA64
10584 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10585 shlibpath_var=LD_LIBRARY_PATH
10586 else
10587 # With GCC up to 2.95.x, collect2 would create an import file
10588 # for dependence libraries. The import file would start with
10589 # the line '#! .'. This would cause the generated library to
10590 # depend on '.', always an invalid library. This was fixed in
10591 # development snapshots of GCC prior to 3.0.
10592 case $host_os in
10593 aix4 | aix4.[01] | aix4.[01].*)
10594 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10595 echo ' yes '
10596 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10597 :
10598 else
10599 can_build_shared=no
10600 fi
10601 ;;
10602 esac
10603 # Using Import Files as archive members, it is possible to support
10604 # filename-based versioning of shared library archives on AIX. While
10605 # this would work for both with and without runtime linking, it will
10606 # prevent static linking of such archives. So we do filename-based
10607 # shared library versioning with .so extension only, which is used
10608 # when both runtime linking and shared linking is enabled.
10609 # Unfortunately, runtime linking may impact performance, so we do
10610 # not want this to be the default eventually. Also, we use the
10611 # versioned .so libs for executables only if there is the -brtl
10612 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10613 # To allow for filename-based versioning support, we need to create
10614 # libNAME.so.V as an archive file, containing:
10615 # *) an Import File, referring to the versioned filename of the
10616 # archive as well as the shared archive member, telling the
10617 # bitwidth (32 or 64) of that shared object, and providing the
10618 # list of exported symbols of that shared object, eventually
10619 # decorated with the 'weak' keyword
10620 # *) the shared object with the F_LOADONLY flag set, to really avoid
10621 # it being seen by the linker.
10622 # At run time we better use the real file rather than another symlink,
10623 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10624
10625 case $with_aix_soname,$aix_use_runtimelinking in
10626 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10627 # soname into executable. Probably we can add versioning support to
10628 # collect2, so additional links can be useful in future.
10629 aix,yes) # traditional libtool
10630 dynamic_linker='AIX unversionable lib.so'
10631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10632 # instead of lib<name>.a to let people know that these are not
10633 # typical AIX shared libraries.
10634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10635 ;;
10636 aix,no) # traditional AIX only
10637 dynamic_linker='AIX lib.a(lib.so.V)'
10638 # We preserve .a as extension for shared libraries through AIX4.2
10639 # and later when we are not doing run time linking.
10640 library_names_spec='$libname$release.a $libname.a'
10641 soname_spec='$libname$release$shared_ext$major'
10642 ;;
10643 svr4,*) # full svr4 only
10644 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10645 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10646 # We do not specify a path in Import Files, so LIBPATH fires.
10647 shlibpath_overrides_runpath=yes
10648 ;;
10649 *,yes) # both, prefer svr4
10650 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10651 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10652 # unpreferred sharedlib libNAME.a needs extra handling
10653 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"'
10654 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"'
10655 # We do not specify a path in Import Files, so LIBPATH fires.
10656 shlibpath_overrides_runpath=yes
10657 ;;
10658 *,no) # both, prefer aix
10659 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10660 library_names_spec='$libname$release.a $libname.a'
10661 soname_spec='$libname$release$shared_ext$major'
10662 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10663 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)'
10664 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"'
10665 ;;
10666 esac
10667 shlibpath_var=LIBPATH
10668 fi
10669 ;;
10670
10671 amigaos*)
10672 case $host_cpu in
10673 powerpc)
10674 # Since July 2007 AmigaOS4 officially supports .so libraries.
10675 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10677 ;;
10678 m68k)
10679 library_names_spec='$libname.ixlibrary $libname.a'
10680 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10681 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'
10682 ;;
10683 esac
10684 ;;
10685
10686 beos*)
10687 library_names_spec='$libname$shared_ext'
10688 dynamic_linker="$host_os ld.so"
10689 shlibpath_var=LIBRARY_PATH
10690 ;;
10691
10692 bsdi[45]*)
10693 version_type=linux # correct to gnu/linux during the next big refactor
10694 need_version=no
10695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10696 soname_spec='$libname$release$shared_ext$major'
10697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10701 # the default ld.so.conf also contains /usr/contrib/lib and
10702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10703 # libtool to hard-code these into programs
10704 ;;
10705
10706 cygwin* | mingw* | pw32* | cegcc*)
10707 version_type=windows
10708 shrext_cmds=.dll
10709 need_version=no
10710 need_lib_prefix=no
10711
10712 case $GCC,$cc_basename in
10713 yes,*)
10714 # gcc
10715 library_names_spec='$libname.dll.a'
10716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10717 postinstall_cmds='base_file=`basename \$file`~
10718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10719 dldir=$destdir/`dirname \$dlpath`~
10720 test -d \$dldir || mkdir -p \$dldir~
10721 $install_prog $dir/$dlname \$dldir/$dlname~
10722 chmod a+x \$dldir/$dlname~
10723 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10724 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10725 fi'
10726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10727 dlpath=$dir/\$dldll~
10728 $RM \$dlpath'
10729 shlibpath_overrides_runpath=yes
10730
10731 case $host_os in
10732 cygwin*)
10733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10734 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10735
10736 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10737 ;;
10738 mingw* | cegcc*)
10739 # MinGW DLLs use traditional 'lib' prefix
10740 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10741 ;;
10742 pw32*)
10743 # pw32 DLLs use 'pw' prefix rather than 'lib'
10744 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10745 ;;
10746 esac
10747 dynamic_linker='Win32 ld.exe'
10748 ;;
10749
10750 *,cl*)
10751 # Native MSVC
10752 libname_spec='$name'
10753 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10754 library_names_spec='$libname.dll.lib'
10755
10756 case $build_os in
10757 mingw*)
10758 sys_lib_search_path_spec=
10759 lt_save_ifs=$IFS
10760 IFS=';'
10761 for lt_path in $LIB
10762 do
10763 IFS=$lt_save_ifs
10764 # Let DOS variable expansion print the short 8.3 style file name.
10765 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10766 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10767 done
10768 IFS=$lt_save_ifs
10769 # Convert to MSYS style.
10770 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10771 ;;
10772 cygwin*)
10773 # Convert to unix form, then to dos form, then back to unix form
10774 # but this time dos style (no spaces!) so that the unix form looks
10775 # like /cygdrive/c/PROGRA~1:/cygdr...
10776 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10777 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10778 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10779 ;;
10780 *)
10781 sys_lib_search_path_spec=$LIB
10782 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10783 # It is most probably a Windows format PATH.
10784 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10785 else
10786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10787 fi
10788 # FIXME: find the short name or the path components, as spaces are
10789 # common. (e.g. "Program Files" -> "PROGRA~1")
10790 ;;
10791 esac
10792
10793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10794 postinstall_cmds='base_file=`basename \$file`~
10795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10796 dldir=$destdir/`dirname \$dlpath`~
10797 test -d \$dldir || mkdir -p \$dldir~
10798 $install_prog $dir/$dlname \$dldir/$dlname'
10799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10800 dlpath=$dir/\$dldll~
10801 $RM \$dlpath'
10802 shlibpath_overrides_runpath=yes
10803 dynamic_linker='Win32 link.exe'
10804 ;;
10805
10806 *)
10807 # Assume MSVC wrapper
10808 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10809 dynamic_linker='Win32 ld.exe'
10810 ;;
10811 esac
10812 # FIXME: first we should search . and the directory the executable is in
10813 shlibpath_var=PATH
10814 ;;
10815
10816 darwin* | rhapsody*)
10817 dynamic_linker="$host_os dyld"
10818 version_type=darwin
10819 need_lib_prefix=no
10820 need_version=no
10821 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10822 soname_spec='$libname$release$major$shared_ext'
10823 shlibpath_overrides_runpath=yes
10824 shlibpath_var=DYLD_LIBRARY_PATH
10825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10826
10827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10829 ;;
10830
10831 dgux*)
10832 version_type=linux # correct to gnu/linux during the next big refactor
10833 need_lib_prefix=no
10834 need_version=no
10835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10836 soname_spec='$libname$release$shared_ext$major'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 ;;
10839
10840 freebsd* | dragonfly*)
10841 # DragonFly does not have aout. When/if they implement a new
10842 # versioning mechanism, adjust this.
10843 if test -x /usr/bin/objformat; then
10844 objformat=`/usr/bin/objformat`
10845 else
10846 case $host_os in
10847 freebsd[23].*) objformat=aout ;;
10848 *) objformat=elf ;;
10849 esac
10850 fi
10851 version_type=freebsd-$objformat
10852 case $version_type in
10853 freebsd-elf*)
10854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10855 soname_spec='$libname$release$shared_ext$major'
10856 need_version=no
10857 need_lib_prefix=no
10858 ;;
10859 freebsd-*)
10860 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10861 need_version=yes
10862 ;;
10863 esac
10864 shlibpath_var=LD_LIBRARY_PATH
10865 case $host_os in
10866 freebsd2.*)
10867 shlibpath_overrides_runpath=yes
10868 ;;
10869 freebsd3.[01]* | freebsdelf3.[01]*)
10870 shlibpath_overrides_runpath=yes
10871 hardcode_into_libs=yes
10872 ;;
10873 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10874 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10875 shlibpath_overrides_runpath=no
10876 hardcode_into_libs=yes
10877 ;;
10878 *) # from 4.6 on, and DragonFly
10879 shlibpath_overrides_runpath=yes
10880 hardcode_into_libs=yes
10881 ;;
10882 esac
10883 ;;
10884
10885 haiku*)
10886 version_type=linux # correct to gnu/linux during the next big refactor
10887 need_lib_prefix=no
10888 need_version=no
10889 dynamic_linker="$host_os runtime_loader"
10890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10891 soname_spec='$libname$release$shared_ext$major'
10892 shlibpath_var=LIBRARY_PATH
10893 shlibpath_overrides_runpath=no
10894 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10895 hardcode_into_libs=yes
10896 ;;
10897
10898 hpux9* | hpux10* | hpux11*)
10899 # Give a soname corresponding to the major version so that dld.sl refuses to
10900 # link against other versions.
10901 version_type=sunos
10902 need_lib_prefix=no
10903 need_version=no
10904 case $host_cpu in
10905 ia64*)
10906 shrext_cmds='.so'
10907 hardcode_into_libs=yes
10908 dynamic_linker="$host_os dld.so"
10909 shlibpath_var=LD_LIBRARY_PATH
10910 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10912 soname_spec='$libname$release$shared_ext$major'
10913 if test 32 = "$HPUX_IA64_MODE"; then
10914 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10915 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10916 else
10917 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10918 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10919 fi
10920 ;;
10921 hppa*64*)
10922 shrext_cmds='.sl'
10923 hardcode_into_libs=yes
10924 dynamic_linker="$host_os dld.sl"
10925 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10928 soname_spec='$libname$release$shared_ext$major'
10929 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10931 ;;
10932 *)
10933 shrext_cmds='.sl'
10934 dynamic_linker="$host_os dld.sl"
10935 shlibpath_var=SHLIB_PATH
10936 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10938 soname_spec='$libname$release$shared_ext$major'
10939 ;;
10940 esac
10941 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10942 postinstall_cmds='chmod 555 $lib'
10943 # or fails outright, so override atomically:
10944 install_override_mode=555
10945 ;;
10946
10947 interix[3-9]*)
10948 version_type=linux # correct to gnu/linux during the next big refactor
10949 need_lib_prefix=no
10950 need_version=no
10951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10952 soname_spec='$libname$release$shared_ext$major'
10953 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath=no
10956 hardcode_into_libs=yes
10957 ;;
10958
10959 irix5* | irix6* | nonstopux*)
10960 case $host_os in
10961 nonstopux*) version_type=nonstopux ;;
10962 *)
10963 if test yes = "$lt_cv_prog_gnu_ld"; then
10964 version_type=linux # correct to gnu/linux during the next big refactor
10965 else
10966 version_type=irix
10967 fi ;;
10968 esac
10969 need_lib_prefix=no
10970 need_version=no
10971 soname_spec='$libname$release$shared_ext$major'
10972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10973 case $host_os in
10974 irix5* | nonstopux*)
10975 libsuff= shlibsuff=
10976 ;;
10977 *)
10978 case $LD in # libtool.m4 will add one of these switches to LD
10979 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10980 libsuff= shlibsuff= libmagic=32-bit;;
10981 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10982 libsuff=32 shlibsuff=N32 libmagic=N32;;
10983 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10984 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10985 *) libsuff= shlibsuff= libmagic=never-match;;
10986 esac
10987 ;;
10988 esac
10989 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10990 shlibpath_overrides_runpath=no
10991 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10992 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10993 hardcode_into_libs=yes
10994 ;;
10995
10996 # No shared lib support for Linux oldld, aout, or coff.
10997 linux*oldld* | linux*aout* | linux*coff*)
10998 dynamic_linker=no
10999 ;;
11000
11001 linux*android*)
11002 version_type=none # Android doesn't support versioned libraries.
11003 need_lib_prefix=no
11004 need_version=no
11005 library_names_spec='$libname$release$shared_ext'
11006 soname_spec='$libname$release$shared_ext'
11007 finish_cmds=
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=yes
11010
11011 # This implies no fast_install, which is unacceptable.
11012 # Some rework will be needed to allow for fast_install
11013 # before this can be enabled.
11014 hardcode_into_libs=yes
11015
11016 dynamic_linker='Android linker'
11017 # Don't embed -rpath directories since the linker doesn't support them.
11018 hardcode_libdir_flag_spec='-L$libdir'
11019 ;;
11020
11021 # This must be glibc/ELF.
11022 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11023 version_type=linux # correct to gnu/linux during the next big refactor
11024 need_lib_prefix=no
11025 need_version=no
11026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11027 soname_spec='$libname$release$shared_ext$major'
11028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=no
11031
11032 # Some binutils ld are patched to set DT_RUNPATH
11033 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 lt_cv_shlibpath_overrides_runpath=no
11037 save_LDFLAGS=$LDFLAGS
11038 save_libdir=$libdir
11039 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11040 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043
11044 int
11045 main ()
11046 {
11047
11048 ;
11049 return 0;
11050 }
11051 _ACEOF
11052 if ac_fn_c_try_link "$LINENO"; then :
11053 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11054 lt_cv_shlibpath_overrides_runpath=yes
11055 fi
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LDFLAGS=$save_LDFLAGS
11060 libdir=$save_libdir
11061
11062 fi
11063
11064 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11065
11066 # This implies no fast_install, which is unacceptable.
11067 # Some rework will be needed to allow for fast_install
11068 # before this can be enabled.
11069 hardcode_into_libs=yes
11070
11071 # Ideally, we could use ldconfig to report *all* directores which are
11072 # searched for libraries, however this is still not possible. Aside from not
11073 # being certain /sbin/ldconfig is available, command
11074 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11075 # even though it is searched at run-time. Try to do the best guess by
11076 # appending ld.so.conf contents (and includes) to the search path.
11077 if test -f /etc/ld.so.conf; then
11078 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' ' '`
11079 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11080 fi
11081
11082 # We used to test for /lib/ld.so.1 and disable shared libraries on
11083 # powerpc, because MkLinux only supported shared libraries with the
11084 # GNU dynamic linker. Since this was broken with cross compilers,
11085 # most powerpc-linux boxes support dynamic linking these days and
11086 # people can always --disable-shared, the test was removed, and we
11087 # assume the GNU/Linux dynamic linker is in use.
11088 dynamic_linker='GNU/Linux ld.so'
11089 ;;
11090
11091 netbsdelf*-gnu)
11092 version_type=linux
11093 need_lib_prefix=no
11094 need_version=no
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11097 shlibpath_var=LD_LIBRARY_PATH
11098 shlibpath_overrides_runpath=no
11099 hardcode_into_libs=yes
11100 dynamic_linker='NetBSD ld.elf_so'
11101 ;;
11102
11103 netbsd*)
11104 version_type=sunos
11105 need_lib_prefix=no
11106 need_version=no
11107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11110 dynamic_linker='NetBSD (a.out) ld.so'
11111 else
11112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11113 soname_spec='$libname$release$shared_ext$major'
11114 dynamic_linker='NetBSD ld.elf_so'
11115 fi
11116 shlibpath_var=LD_LIBRARY_PATH
11117 shlibpath_overrides_runpath=yes
11118 hardcode_into_libs=yes
11119 ;;
11120
11121 newsos6)
11122 version_type=linux # correct to gnu/linux during the next big refactor
11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=yes
11126 ;;
11127
11128 *nto* | *qnx*)
11129 version_type=qnx
11130 need_lib_prefix=no
11131 need_version=no
11132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11133 soname_spec='$libname$release$shared_ext$major'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 shlibpath_overrides_runpath=no
11136 hardcode_into_libs=yes
11137 dynamic_linker='ldqnx.so'
11138 ;;
11139
11140 openbsd* | bitrig*)
11141 version_type=sunos
11142 sys_lib_dlsearch_path_spec=/usr/lib
11143 need_lib_prefix=no
11144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11145 need_version=no
11146 else
11147 need_version=yes
11148 fi
11149 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 shlibpath_overrides_runpath=yes
11153 ;;
11154
11155 os2*)
11156 libname_spec='$name'
11157 version_type=windows
11158 shrext_cmds=.dll
11159 need_version=no
11160 need_lib_prefix=no
11161 # OS/2 can only load a DLL with a base name of 8 characters or less.
11162 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11163 v=$($ECHO $release$versuffix | tr -d .-);
11164 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11165 $ECHO $n$v`$shared_ext'
11166 library_names_spec='${libname}_dll.$libext'
11167 dynamic_linker='OS/2 ld.exe'
11168 shlibpath_var=BEGINLIBPATH
11169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11171 postinstall_cmds='base_file=`basename \$file`~
11172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11173 dldir=$destdir/`dirname \$dlpath`~
11174 test -d \$dldir || mkdir -p \$dldir~
11175 $install_prog $dir/$dlname \$dldir/$dlname~
11176 chmod a+x \$dldir/$dlname~
11177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11179 fi'
11180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11181 dlpath=$dir/\$dldll~
11182 $RM \$dlpath'
11183 ;;
11184
11185 osf3* | osf4* | osf5*)
11186 version_type=osf
11187 need_lib_prefix=no
11188 need_version=no
11189 soname_spec='$libname$release$shared_ext$major'
11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11194 ;;
11195
11196 rdos*)
11197 dynamic_linker=no
11198 ;;
11199
11200 solaris*)
11201 version_type=linux # correct to gnu/linux during the next big refactor
11202 need_lib_prefix=no
11203 need_version=no
11204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11205 soname_spec='$libname$release$shared_ext$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 shlibpath_overrides_runpath=yes
11208 hardcode_into_libs=yes
11209 # ldd complains unless libraries are executable
11210 postinstall_cmds='chmod +x $lib'
11211 ;;
11212
11213 sunos4*)
11214 version_type=sunos
11215 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 shlibpath_overrides_runpath=yes
11219 if test yes = "$with_gnu_ld"; then
11220 need_lib_prefix=no
11221 fi
11222 need_version=yes
11223 ;;
11224
11225 sysv4 | sysv4.3*)
11226 version_type=linux # correct to gnu/linux during the next big refactor
11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11228 soname_spec='$libname$release$shared_ext$major'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 case $host_vendor in
11231 sni)
11232 shlibpath_overrides_runpath=no
11233 need_lib_prefix=no
11234 runpath_var=LD_RUN_PATH
11235 ;;
11236 siemens)
11237 need_lib_prefix=no
11238 ;;
11239 motorola)
11240 need_lib_prefix=no
11241 need_version=no
11242 shlibpath_overrides_runpath=no
11243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11244 ;;
11245 esac
11246 ;;
11247
11248 sysv4*MP*)
11249 if test -d /usr/nec; then
11250 version_type=linux # correct to gnu/linux during the next big refactor
11251 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11252 soname_spec='$libname$shared_ext.$major'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 fi
11255 ;;
11256
11257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11258 version_type=sco
11259 need_lib_prefix=no
11260 need_version=no
11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11262 soname_spec='$libname$release$shared_ext$major'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=yes
11265 hardcode_into_libs=yes
11266 if test yes = "$with_gnu_ld"; then
11267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11268 else
11269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11270 case $host_os in
11271 sco3.2v5*)
11272 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11273 ;;
11274 esac
11275 fi
11276 sys_lib_dlsearch_path_spec='/usr/lib'
11277 ;;
11278
11279 tpf*)
11280 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11281 version_type=linux # correct to gnu/linux during the next big refactor
11282 need_lib_prefix=no
11283 need_version=no
11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11285 shlibpath_var=LD_LIBRARY_PATH
11286 shlibpath_overrides_runpath=no
11287 hardcode_into_libs=yes
11288 ;;
11289
11290 uts4*)
11291 version_type=linux # correct to gnu/linux during the next big refactor
11292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11293 soname_spec='$libname$release$shared_ext$major'
11294 shlibpath_var=LD_LIBRARY_PATH
11295 ;;
11296
11297 *)
11298 dynamic_linker=no
11299 ;;
11300 esac
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11302 $as_echo "$dynamic_linker" >&6; }
11303 test no = "$dynamic_linker" && can_build_shared=no
11304
11305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11306 if test yes = "$GCC"; then
11307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11308 fi
11309
11310 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11311 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11312 fi
11313
11314 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11315 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11316 fi
11317
11318 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11319 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11320
11321 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11322 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11323
11324 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11325 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11424 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11425 hardcode_action=
11426 if test -n "$hardcode_libdir_flag_spec" ||
11427 test -n "$runpath_var" ||
11428 test yes = "$hardcode_automatic"; then
11429
11430 # We can hardcode non-existent directories.
11431 if test no != "$hardcode_direct" &&
11432 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11433 # have to relink, otherwise we might link with an installed library
11434 # when we should be linking with a yet-to-be-installed one
11435 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11436 test no != "$hardcode_minus_L"; then
11437 # Linking always hardcodes the temporary library directory.
11438 hardcode_action=relink
11439 else
11440 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11441 hardcode_action=immediate
11442 fi
11443 else
11444 # We cannot hardcode anything, or else we can only hardcode existing
11445 # directories.
11446 hardcode_action=unsupported
11447 fi
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11449 $as_echo "$hardcode_action" >&6; }
11450
11451 if test relink = "$hardcode_action" ||
11452 test yes = "$inherit_rpath"; then
11453 # Fast installation is not supported
11454 enable_fast_install=no
11455 elif test yes = "$shlibpath_overrides_runpath" ||
11456 test no = "$enable_shared"; then
11457 # Fast installation is not necessary
11458 enable_fast_install=needless
11459 fi
11460
11461
11462
11463
11464
11465
11466 if test yes != "$enable_dlopen"; then
11467 enable_dlopen=unknown
11468 enable_dlopen_self=unknown
11469 enable_dlopen_self_static=unknown
11470 else
11471 lt_cv_dlopen=no
11472 lt_cv_dlopen_libs=
11473
11474 case $host_os in
11475 beos*)
11476 lt_cv_dlopen=load_add_on
11477 lt_cv_dlopen_libs=
11478 lt_cv_dlopen_self=yes
11479 ;;
11480
11481 mingw* | pw32* | cegcc*)
11482 lt_cv_dlopen=LoadLibrary
11483 lt_cv_dlopen_libs=
11484 ;;
11485
11486 cygwin*)
11487 lt_cv_dlopen=dlopen
11488 lt_cv_dlopen_libs=
11489 ;;
11490
11491 darwin*)
11492 # if libdl is installed we need to link against it
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11494 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11495 if ${ac_cv_lib_dl_dlopen+:} false; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 ac_check_lib_save_LIBS=$LIBS
11499 LIBS="-ldl $LIBS"
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char dlopen ();
11510 int
11511 main ()
11512 {
11513 return dlopen ();
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11519 ac_cv_lib_dl_dlopen=yes
11520 else
11521 ac_cv_lib_dl_dlopen=no
11522 fi
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11528 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11529 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11530 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11531 else
11532
11533 lt_cv_dlopen=dyld
11534 lt_cv_dlopen_libs=
11535 lt_cv_dlopen_self=yes
11536
11537 fi
11538
11539 ;;
11540
11541 tpf*)
11542 # Don't try to run any link tests for TPF. We know it's impossible
11543 # because TPF is a cross-compiler, and we know how we open DSOs.
11544 lt_cv_dlopen=dlopen
11545 lt_cv_dlopen_libs=
11546 lt_cv_dlopen_self=no
11547 ;;
11548
11549 *)
11550 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11551 if test "x$ac_cv_func_shl_load" = xyes; then :
11552 lt_cv_dlopen=shl_load
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11555 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11556 if ${ac_cv_lib_dld_shl_load+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 ac_check_lib_save_LIBS=$LIBS
11560 LIBS="-ldld $LIBS"
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11563
11564 /* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11567 #ifdef __cplusplus
11568 extern "C"
11569 #endif
11570 char shl_load ();
11571 int
11572 main ()
11573 {
11574 return shl_load ();
11575 ;
11576 return 0;
11577 }
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"; then :
11580 ac_cv_lib_dld_shl_load=yes
11581 else
11582 ac_cv_lib_dld_shl_load=no
11583 fi
11584 rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
11586 LIBS=$ac_check_lib_save_LIBS
11587 fi
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11589 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11590 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11591 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11592 else
11593 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11594 if test "x$ac_cv_func_dlopen" = xyes; then :
11595 lt_cv_dlopen=dlopen
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11598 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11599 if ${ac_cv_lib_dl_dlopen+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 ac_check_lib_save_LIBS=$LIBS
11603 LIBS="-ldl $LIBS"
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11606
11607 /* Override any GCC internal prototype to avoid an error.
11608 Use char because int might match the return type of a GCC
11609 builtin and then its argument prototype would still apply. */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 char dlopen ();
11614 int
11615 main ()
11616 {
11617 return dlopen ();
11618 ;
11619 return 0;
11620 }
11621 _ACEOF
11622 if ac_fn_c_try_link "$LINENO"; then :
11623 ac_cv_lib_dl_dlopen=yes
11624 else
11625 ac_cv_lib_dl_dlopen=no
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11629 LIBS=$ac_check_lib_save_LIBS
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11632 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11633 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11634 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11635 else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11637 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11638 if ${ac_cv_lib_svld_dlopen+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 ac_check_lib_save_LIBS=$LIBS
11642 LIBS="-lsvld $LIBS"
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645
11646 /* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 char dlopen ();
11653 int
11654 main ()
11655 {
11656 return dlopen ();
11657 ;
11658 return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662 ac_cv_lib_svld_dlopen=yes
11663 else
11664 ac_cv_lib_svld_dlopen=no
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668 LIBS=$ac_check_lib_save_LIBS
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11671 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11672 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11673 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11676 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11677 if ${ac_cv_lib_dld_dld_link+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 ac_check_lib_save_LIBS=$LIBS
11681 LIBS="-ldld $LIBS"
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684
11685 /* Override any GCC internal prototype to avoid an error.
11686 Use char because int might match the return type of a GCC
11687 builtin and then its argument prototype would still apply. */
11688 #ifdef __cplusplus
11689 extern "C"
11690 #endif
11691 char dld_link ();
11692 int
11693 main ()
11694 {
11695 return dld_link ();
11696 ;
11697 return 0;
11698 }
11699 _ACEOF
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 ac_cv_lib_dld_dld_link=yes
11702 else
11703 ac_cv_lib_dld_dld_link=no
11704 fi
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LIBS=$ac_check_lib_save_LIBS
11708 fi
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11710 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11711 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11712 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11713 fi
11714
11715
11716 fi
11717
11718
11719 fi
11720
11721
11722 fi
11723
11724
11725 fi
11726
11727
11728 fi
11729
11730 ;;
11731 esac
11732
11733 if test no = "$lt_cv_dlopen"; then
11734 enable_dlopen=no
11735 else
11736 enable_dlopen=yes
11737 fi
11738
11739 case $lt_cv_dlopen in
11740 dlopen)
11741 save_CPPFLAGS=$CPPFLAGS
11742 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11743
11744 save_LDFLAGS=$LDFLAGS
11745 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11746
11747 save_LIBS=$LIBS
11748 LIBS="$lt_cv_dlopen_libs $LIBS"
11749
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11751 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11752 if ${lt_cv_dlopen_self+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 if test yes = "$cross_compiling"; then :
11756 lt_cv_dlopen_self=cross
11757 else
11758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11759 lt_status=$lt_dlunknown
11760 cat > conftest.$ac_ext <<_LT_EOF
11761 #line $LINENO "configure"
11762 #include "confdefs.h"
11763
11764 #if HAVE_DLFCN_H
11765 #include <dlfcn.h>
11766 #endif
11767
11768 #include <stdio.h>
11769
11770 #ifdef RTLD_GLOBAL
11771 # define LT_DLGLOBAL RTLD_GLOBAL
11772 #else
11773 # ifdef DL_GLOBAL
11774 # define LT_DLGLOBAL DL_GLOBAL
11775 # else
11776 # define LT_DLGLOBAL 0
11777 # endif
11778 #endif
11779
11780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11781 find out it does not work in some platform. */
11782 #ifndef LT_DLLAZY_OR_NOW
11783 # ifdef RTLD_LAZY
11784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11785 # else
11786 # ifdef DL_LAZY
11787 # define LT_DLLAZY_OR_NOW DL_LAZY
11788 # else
11789 # ifdef RTLD_NOW
11790 # define LT_DLLAZY_OR_NOW RTLD_NOW
11791 # else
11792 # ifdef DL_NOW
11793 # define LT_DLLAZY_OR_NOW DL_NOW
11794 # else
11795 # define LT_DLLAZY_OR_NOW 0
11796 # endif
11797 # endif
11798 # endif
11799 # endif
11800 #endif
11801
11802 /* When -fvisibility=hidden is used, assume the code has been annotated
11803 correspondingly for the symbols needed. */
11804 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11805 int fnord () __attribute__((visibility("default")));
11806 #endif
11807
11808 int fnord () { return 42; }
11809 int main ()
11810 {
11811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11812 int status = $lt_dlunknown;
11813
11814 if (self)
11815 {
11816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11817 else
11818 {
11819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11820 else puts (dlerror ());
11821 }
11822 /* dlclose (self); */
11823 }
11824 else
11825 puts (dlerror ());
11826
11827 return status;
11828 }
11829 _LT_EOF
11830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11831 (eval $ac_link) 2>&5
11832 ac_status=$?
11833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11835 (./conftest; exit; ) >&5 2>/dev/null
11836 lt_status=$?
11837 case x$lt_status in
11838 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11839 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11840 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11841 esac
11842 else :
11843 # compilation failed
11844 lt_cv_dlopen_self=no
11845 fi
11846 fi
11847 rm -fr conftest*
11848
11849
11850 fi
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11852 $as_echo "$lt_cv_dlopen_self" >&6; }
11853
11854 if test yes = "$lt_cv_dlopen_self"; then
11855 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11857 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11858 if ${lt_cv_dlopen_self_static+:} false; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test yes = "$cross_compiling"; then :
11862 lt_cv_dlopen_self_static=cross
11863 else
11864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11865 lt_status=$lt_dlunknown
11866 cat > conftest.$ac_ext <<_LT_EOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11869
11870 #if HAVE_DLFCN_H
11871 #include <dlfcn.h>
11872 #endif
11873
11874 #include <stdio.h>
11875
11876 #ifdef RTLD_GLOBAL
11877 # define LT_DLGLOBAL RTLD_GLOBAL
11878 #else
11879 # ifdef DL_GLOBAL
11880 # define LT_DLGLOBAL DL_GLOBAL
11881 # else
11882 # define LT_DLGLOBAL 0
11883 # endif
11884 #endif
11885
11886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11887 find out it does not work in some platform. */
11888 #ifndef LT_DLLAZY_OR_NOW
11889 # ifdef RTLD_LAZY
11890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11891 # else
11892 # ifdef DL_LAZY
11893 # define LT_DLLAZY_OR_NOW DL_LAZY
11894 # else
11895 # ifdef RTLD_NOW
11896 # define LT_DLLAZY_OR_NOW RTLD_NOW
11897 # else
11898 # ifdef DL_NOW
11899 # define LT_DLLAZY_OR_NOW DL_NOW
11900 # else
11901 # define LT_DLLAZY_OR_NOW 0
11902 # endif
11903 # endif
11904 # endif
11905 # endif
11906 #endif
11907
11908 /* When -fvisibility=hidden is used, assume the code has been annotated
11909 correspondingly for the symbols needed. */
11910 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11911 int fnord () __attribute__((visibility("default")));
11912 #endif
11913
11914 int fnord () { return 42; }
11915 int main ()
11916 {
11917 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11918 int status = $lt_dlunknown;
11919
11920 if (self)
11921 {
11922 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11923 else
11924 {
11925 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11926 else puts (dlerror ());
11927 }
11928 /* dlclose (self); */
11929 }
11930 else
11931 puts (dlerror ());
11932
11933 return status;
11934 }
11935 _LT_EOF
11936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11937 (eval $ac_link) 2>&5
11938 ac_status=$?
11939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11940 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11941 (./conftest; exit; ) >&5 2>/dev/null
11942 lt_status=$?
11943 case x$lt_status in
11944 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11945 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11946 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11947 esac
11948 else :
11949 # compilation failed
11950 lt_cv_dlopen_self_static=no
11951 fi
11952 fi
11953 rm -fr conftest*
11954
11955
11956 fi
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11958 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11959 fi
11960
11961 CPPFLAGS=$save_CPPFLAGS
11962 LDFLAGS=$save_LDFLAGS
11963 LIBS=$save_LIBS
11964 ;;
11965 esac
11966
11967 case $lt_cv_dlopen_self in
11968 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11969 *) enable_dlopen_self=unknown ;;
11970 esac
11971
11972 case $lt_cv_dlopen_self_static in
11973 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11974 *) enable_dlopen_self_static=unknown ;;
11975 esac
11976 fi
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994 striplib=
11995 old_striplib=
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11997 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11998 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11999 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12000 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12002 $as_echo "yes" >&6; }
12003 else
12004 # FIXME - insert some real tests, host_os isn't really good enough
12005 case $host_os in
12006 darwin*)
12007 if test -n "$STRIP"; then
12008 striplib="$STRIP -x"
12009 old_striplib="$STRIP -S"
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12011 $as_echo "yes" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12015 fi
12016 ;;
12017 *)
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12020 ;;
12021 esac
12022 fi
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035 # Report what library types will actually be built
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12037 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12039 $as_echo "$can_build_shared" >&6; }
12040
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12042 $as_echo_n "checking whether to build shared libraries... " >&6; }
12043 test no = "$can_build_shared" && enable_shared=no
12044
12045 # On AIX, shared libraries and static libraries use the same namespace, and
12046 # are all built from PIC.
12047 case $host_os in
12048 aix3*)
12049 test yes = "$enable_shared" && enable_static=no
12050 if test -n "$RANLIB"; then
12051 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12052 postinstall_cmds='$RANLIB $lib'
12053 fi
12054 ;;
12055
12056 aix[4-9]*)
12057 if test ia64 != "$host_cpu"; then
12058 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12059 yes,aix,yes) ;; # shared object as lib.so file only
12060 yes,svr4,*) ;; # shared object as lib.so archive member only
12061 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12062 esac
12063 fi
12064 ;;
12065 esac
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12067 $as_echo "$enable_shared" >&6; }
12068
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12070 $as_echo_n "checking whether to build static libraries... " >&6; }
12071 # Make sure either enable_shared or enable_static is yes.
12072 test yes = "$enable_shared" || enable_static=yes
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12074 $as_echo "$enable_static" >&6; }
12075
12076
12077
12078
12079 fi
12080 ac_ext=c
12081 ac_cpp='$CPP $CPPFLAGS'
12082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12085
12086 CC=$lt_save_CC
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102 ac_config_commands="$ac_config_commands libtool"
12103
12104
12105
12106
12107 # Only expand once:
12108
12109
12110
12111
12112 for ac_prog in 'bison -y' byacc
12113 do
12114 # Extract the first word of "$ac_prog", so it can be a program name with args.
12115 set dummy $ac_prog; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if ${ac_cv_prog_YACC+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 if test -n "$YACC"; then
12122 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12123 else
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12126 do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131 ac_cv_prog_YACC="$ac_prog"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12134 fi
12135 done
12136 done
12137 IFS=$as_save_IFS
12138
12139 fi
12140 fi
12141 YACC=$ac_cv_prog_YACC
12142 if test -n "$YACC"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12144 $as_echo "$YACC" >&6; }
12145 else
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12148 fi
12149
12150
12151 test -n "$YACC" && break
12152 done
12153 test -n "$YACC" || YACC="yacc"
12154
12155
12156 for ac_prog in flex lex
12157 do
12158 # Extract the first word of "$ac_prog", so it can be a program name with args.
12159 set dummy $ac_prog; ac_word=$2
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12161 $as_echo_n "checking for $ac_word... " >&6; }
12162 if ${ac_cv_prog_LEX+:} false; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 if test -n "$LEX"; then
12166 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12167 else
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12170 do
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175 ac_cv_prog_LEX="$ac_prog"
12176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12177 break 2
12178 fi
12179 done
12180 done
12181 IFS=$as_save_IFS
12182
12183 fi
12184 fi
12185 LEX=$ac_cv_prog_LEX
12186 if test -n "$LEX"; then
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12188 $as_echo "$LEX" >&6; }
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191 $as_echo "no" >&6; }
12192 fi
12193
12194
12195 test -n "$LEX" && break
12196 done
12197 test -n "$LEX" || LEX=":"
12198
12199 if test "x$LEX" != "x:"; then
12200 cat >conftest.l <<_ACEOF
12201 %%
12202 a { ECHO; }
12203 b { REJECT; }
12204 c { yymore (); }
12205 d { yyless (1); }
12206 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12207 yyless ((input () != 0)); }
12208 f { unput (yytext[0]); }
12209 . { BEGIN INITIAL; }
12210 %%
12211 #ifdef YYTEXT_POINTER
12212 extern char *yytext;
12213 #endif
12214 int
12215 main (void)
12216 {
12217 return ! yylex () + ! yywrap ();
12218 }
12219 _ACEOF
12220 { { ac_try="$LEX conftest.l"
12221 case "(($ac_try" in
12222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12223 *) ac_try_echo=$ac_try;;
12224 esac
12225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12226 $as_echo "$ac_try_echo"; } >&5
12227 (eval "$LEX conftest.l") 2>&5
12228 ac_status=$?
12229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12230 test $ac_status = 0; }
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12232 $as_echo_n "checking lex output file root... " >&6; }
12233 if ${ac_cv_prog_lex_root+:} false; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236
12237 if test -f lex.yy.c; then
12238 ac_cv_prog_lex_root=lex.yy
12239 elif test -f lexyy.c; then
12240 ac_cv_prog_lex_root=lexyy
12241 else
12242 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12243 fi
12244 fi
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12246 $as_echo "$ac_cv_prog_lex_root" >&6; }
12247 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12248
12249 if test -z "${LEXLIB+set}"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12251 $as_echo_n "checking lex library... " >&6; }
12252 if ${ac_cv_lib_lex+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255
12256 ac_save_LIBS=$LIBS
12257 ac_cv_lib_lex='none needed'
12258 for ac_lib in '' -lfl -ll; do
12259 LIBS="$ac_lib $ac_save_LIBS"
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12262 `cat $LEX_OUTPUT_ROOT.c`
12263 _ACEOF
12264 if ac_fn_c_try_link "$LINENO"; then :
12265 ac_cv_lib_lex=$ac_lib
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269 test "$ac_cv_lib_lex" != 'none needed' && break
12270 done
12271 LIBS=$ac_save_LIBS
12272
12273 fi
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12275 $as_echo "$ac_cv_lib_lex" >&6; }
12276 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12277 fi
12278
12279
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12281 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12282 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284 else
12285 # POSIX says lex can declare yytext either as a pointer or an array; the
12286 # default is implementation-dependent. Figure out which it is, since
12287 # not all implementations provide the %pointer and %array declarations.
12288 ac_cv_prog_lex_yytext_pointer=no
12289 ac_save_LIBS=$LIBS
12290 LIBS="$LEXLIB $ac_save_LIBS"
12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12293
12294 #define YYTEXT_POINTER 1
12295 `cat $LEX_OUTPUT_ROOT.c`
12296 _ACEOF
12297 if ac_fn_c_try_link "$LINENO"; then :
12298 ac_cv_prog_lex_yytext_pointer=yes
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_save_LIBS
12303
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12306 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12307 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12308
12309 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12310
12311 fi
12312 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12313
12314 fi
12315 if test "$LEX" = :; then
12316 LEX=${am_missing_run}flex
12317 fi
12318
12319
12320
12321 if test "X$CC" != "X"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
12323 $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
12324 if ${ssp_cv_cc+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 ssp_old_cflags="$CFLAGS"
12328 CFLAGS="$CFLAGS -fstack-protector-strong"
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12331
12332 int
12333 main ()
12334 {
12335
12336 ;
12337 return 0;
12338 }
12339 _ACEOF
12340 if ac_fn_c_try_compile "$LINENO"; then :
12341 ssp_cv_cc=yes
12342 else
12343 ssp_cv_cc=no
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346 CFLAGS="$ssp_old_cflags"
12347
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12350 $as_echo "$ssp_cv_cc" >&6; }
12351 if test $ssp_cv_cc = yes; then
12352 CFLAGS="$CFLAGS -fstack-protector-strong"
12353
12354 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12355
12356 else
12357 unset ssp_cv_cc
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
12359 $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
12360 if ${ssp_cv_cc+:} false; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 ssp_old_cflags="$CFLAGS"
12364 CFLAGS="$CFLAGS -fstack-protector"
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367
12368 int
12369 main ()
12370 {
12371
12372 ;
12373 return 0;
12374 }
12375 _ACEOF
12376 if ac_fn_c_try_compile "$LINENO"; then :
12377 ssp_cv_cc=yes
12378 else
12379 ssp_cv_cc=no
12380 fi
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 CFLAGS="$ssp_old_cflags"
12383
12384 fi
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12386 $as_echo "$ssp_cv_cc" >&6; }
12387 if test $ssp_cv_cc = yes; then
12388 CFLAGS="$CFLAGS -fstack-protector"
12389
12390 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12391
12392 fi
12393 fi
12394 fi
12395
12396
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
12398 $as_echo_n "checking whether libssp exists... " >&6; }
12399 if ${ssp_cv_lib+:} false; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12402 ssp_old_libs="$LIBS"
12403 LIBS="$LIBS -lssp"
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12406
12407 int
12408 main ()
12409 {
12410
12411 ;
12412 return 0;
12413 }
12414 _ACEOF
12415 if ac_fn_c_try_link "$LINENO"; then :
12416 ssp_cv_lib=yes
12417 else
12418 ssp_cv_lib=no
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext \
12421 conftest$ac_exeext conftest.$ac_ext
12422 LIBS="$ssp_old_libs"
12423
12424 fi
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
12426 $as_echo "$ssp_cv_lib" >&6; }
12427 if test $ssp_cv_lib = yes; then
12428 LIBS="$LIBS -lssp"
12429 fi
12430
12431
12432
12433 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12434 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12435
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12438 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12439 if ${ac_cv_search_getaddrinfo+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 ac_func_search_save_LIBS=$LIBS
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445
12446 /* Override any GCC internal prototype to avoid an error.
12447 Use char because int might match the return type of a GCC
12448 builtin and then its argument prototype would still apply. */
12449 #ifdef __cplusplus
12450 extern "C"
12451 #endif
12452 char getaddrinfo ();
12453 int
12454 main ()
12455 {
12456 return getaddrinfo ();
12457 ;
12458 return 0;
12459 }
12460 _ACEOF
12461 for ac_lib in '' nsl; do
12462 if test -z "$ac_lib"; then
12463 ac_res="none required"
12464 else
12465 ac_res=-l$ac_lib
12466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12467 fi
12468 if ac_fn_c_try_link "$LINENO"; then :
12469 ac_cv_search_getaddrinfo=$ac_res
12470 fi
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext
12473 if ${ac_cv_search_getaddrinfo+:} false; then :
12474 break
12475 fi
12476 done
12477 if ${ac_cv_search_getaddrinfo+:} false; then :
12478
12479 else
12480 ac_cv_search_getaddrinfo=no
12481 fi
12482 rm conftest.$ac_ext
12483 LIBS=$ac_func_search_save_LIBS
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12486 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12487 ac_res=$ac_cv_search_getaddrinfo
12488 if test "$ac_res" != no; then :
12489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12490
12491 fi
12492
12493 fi
12494
12495 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12496 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12497
12498 else
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12500 $as_echo_n "checking for library containing getnameinfo... " >&6; }
12501 if ${ac_cv_search_getnameinfo+:} false; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 ac_func_search_save_LIBS=$LIBS
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507
12508 /* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
12511 #ifdef __cplusplus
12512 extern "C"
12513 #endif
12514 char getnameinfo ();
12515 int
12516 main ()
12517 {
12518 return getnameinfo ();
12519 ;
12520 return 0;
12521 }
12522 _ACEOF
12523 for ac_lib in '' nsl; do
12524 if test -z "$ac_lib"; then
12525 ac_res="none required"
12526 else
12527 ac_res=-l$ac_lib
12528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12529 fi
12530 if ac_fn_c_try_link "$LINENO"; then :
12531 ac_cv_search_getnameinfo=$ac_res
12532 fi
12533 rm -f core conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext
12535 if ${ac_cv_search_getnameinfo+:} false; then :
12536 break
12537 fi
12538 done
12539 if ${ac_cv_search_getnameinfo+:} false; then :
12540
12541 else
12542 ac_cv_search_getnameinfo=no
12543 fi
12544 rm conftest.$ac_ext
12545 LIBS=$ac_func_search_save_LIBS
12546 fi
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12548 $as_echo "$ac_cv_search_getnameinfo" >&6; }
12549 ac_res=$ac_cv_search_getnameinfo
12550 if test "$ac_res" != no; then :
12551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12552
12553 fi
12554
12555 fi
12556
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12558 $as_echo_n "checking for library containing socket... " >&6; }
12559 if ${ac_cv_search_socket+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 ac_func_search_save_LIBS=$LIBS
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12565
12566 /* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
12569 #ifdef __cplusplus
12570 extern "C"
12571 #endif
12572 char socket ();
12573 int
12574 main ()
12575 {
12576 return socket ();
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 for ac_lib in '' socket; do
12582 if test -z "$ac_lib"; then
12583 ac_res="none required"
12584 else
12585 ac_res=-l$ac_lib
12586 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12587 fi
12588 if ac_fn_c_try_link "$LINENO"; then :
12589 ac_cv_search_socket=$ac_res
12590 fi
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext
12593 if ${ac_cv_search_socket+:} false; then :
12594 break
12595 fi
12596 done
12597 if ${ac_cv_search_socket+:} false; then :
12598
12599 else
12600 ac_cv_search_socket=no
12601 fi
12602 rm conftest.$ac_ext
12603 LIBS=$ac_func_search_save_LIBS
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12606 $as_echo "$ac_cv_search_socket" >&6; }
12607 ac_res=$ac_cv_search_socket
12608 if test "$ac_res" != no; then :
12609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12610
12611 else
12612 as_fn_error $? "socket library not found" "$LINENO" 5
12613 fi
12614
12615
12616
12617 # Check whether --enable-openssl was given.
12618 if test "${enable_openssl+set}" = set; then :
12619 enableval=$enable_openssl; cf_enable_openssl=$enableval
12620 else
12621 cf_enable_openssl="auto"
12622 fi
12623
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
12625 $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
12626 if test "$cf_enable_openssl" != "no"; then
12627 cf_openssl_basedir=""
12628 if test "$cf_enable_openssl" != "auto" &&
12629 test "$cf_enable_openssl" != "yes"; then
12630 cf_openssl_basedir="${cf_enable_openssl}"
12631 else
12632 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12633 /opt /opt/openssl /usr/local/openssl; do
12634 if test -f "${dirs}/include/openssl/opensslv.h"; then
12635 cf_openssl_basedir="${dirs}"
12636 break
12637 fi
12638 done
12639 unset dirs
12640 fi
12641
12642 if test ! -z "$cf_openssl_basedir"; then
12643 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12644 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12645 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12646 else
12647 cf_openssl_basedir=""
12648 fi
12649 else
12650 if test -f "/usr/include/openssl/opensslv.h"; then
12651 cf_openssl_basedir="/usr"
12652 fi
12653 fi
12654
12655 if test ! -z "$cf_openssl_basedir"; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12657 $as_echo "$cf_openssl_basedir" >&6; }
12658 cf_enable_openssl="yes"
12659 else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12661 $as_echo "not found. Please check your path." >&6; }
12662 cf_enable_openssl="no"
12663 fi
12664 unset cf_openssl_basedir
12665 else
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12667 $as_echo "disabled" >&6; }
12668 fi
12669
12670 if test "$cf_enable_openssl" != "no"; then :
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL, or OpenSSL 1.1.1 and above" >&5
12672 $as_echo_n "checking for LibreSSL, or OpenSSL 1.1.1 and above... " >&6; }
12673 if test "$cross_compiling" = yes; then :
12674 cf_openssl_version_ok=no
12675 else
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678
12679
12680 #include <openssl/opensslv.h>
12681 #include <stdlib.h>
12682 int
12683 main ()
12684 {
12685 exit(!(OPENSSL_VERSION_NUMBER >= 0x1010100fL));
12686 ;
12687 return 0;
12688 }
12689 _ACEOF
12690 if ac_fn_c_try_run "$LINENO"; then :
12691 cf_openssl_version_ok=yes
12692 else
12693 cf_openssl_version_ok=no
12694 fi
12695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12696 conftest.$ac_objext conftest.beam conftest.$ac_ext
12697 fi
12698
12699
12700 if test "$cf_openssl_version_ok" = "yes"; then :
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12702 $as_echo "found" >&6; }
12703
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12705 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12706 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 ac_check_lib_save_LIBS=$LIBS
12710 LIBS="-lcrypto $LIBS"
12711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12713
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12717 #ifdef __cplusplus
12718 extern "C"
12719 #endif
12720 char RSA_free ();
12721 int
12722 main ()
12723 {
12724 return RSA_free ();
12725 ;
12726 return 0;
12727 }
12728 _ACEOF
12729 if ac_fn_c_try_link "$LINENO"; then :
12730 ac_cv_lib_crypto_RSA_free=yes
12731 else
12732 ac_cv_lib_crypto_RSA_free=no
12733 fi
12734 rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736 LIBS=$ac_check_lib_save_LIBS
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12739 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12740 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
12741 cat >>confdefs.h <<_ACEOF
12742 #define HAVE_LIBCRYPTO 1
12743 _ACEOF
12744
12745 LIBS="-lcrypto $LIBS"
12746
12747 fi
12748
12749 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
12751 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
12752 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lssl $LIBS"
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 char SSL_connect ();
12767 int
12768 main ()
12769 {
12770 return SSL_connect ();
12771 ;
12772 return 0;
12773 }
12774 _ACEOF
12775 if ac_fn_c_try_link "$LINENO"; then :
12776 ac_cv_lib_ssl_SSL_connect=yes
12777 else
12778 ac_cv_lib_ssl_SSL_connect=no
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
12785 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
12786 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
12787 cat >>confdefs.h <<_ACEOF
12788 #define HAVE_LIBSSL 1
12789 _ACEOF
12790
12791 LIBS="-lssl $LIBS"
12792
12793 fi
12794
12795 fi
12796
12797 else
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
12799 $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
12800 cf_enable_openssl="no"
12801 fi
12802 fi
12803
12804
12805 # Check whether --enable-assert was given.
12806 if test "${enable_assert+set}" = set; then :
12807 enableval=$enable_assert; assert=$enableval
12808 else
12809 assert=no
12810 fi
12811
12812
12813 if test "$assert" = "no"; then :
12814
12815 $as_echo "#define NDEBUG 1" >>confdefs.h
12816
12817 fi
12818
12819
12820 # Check whether --enable-warnings was given.
12821 if test "${enable_warnings+set}" = set; then :
12822 enableval=$enable_warnings; warnings="$enableval"
12823 else
12824 warnings="no"
12825 fi
12826
12827
12828 if test "$warnings" = "yes"; then :
12829
12830
12831
12832
12833
12834 for flag in -Wall; do
12835 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12837 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12838 if eval \${$as_CACHEVAR+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841
12842 ax_check_save_flags=$CFLAGS
12843 CFLAGS="$CFLAGS $flag"
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846
12847 int
12848 main ()
12849 {
12850
12851 ;
12852 return 0;
12853 }
12854 _ACEOF
12855 if ac_fn_c_try_compile "$LINENO"; then :
12856 eval "$as_CACHEVAR=yes"
12857 else
12858 eval "$as_CACHEVAR=no"
12859 fi
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 CFLAGS=$ax_check_save_flags
12862 fi
12863 eval ac_res=\$$as_CACHEVAR
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12865 $as_echo "$ac_res" >&6; }
12866 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12867
12868 if ${CFLAGS+:} false; then :
12869
12870 case " $CFLAGS " in #(
12871 *" $flag "*) :
12872 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12873 (: CFLAGS already contains $flag) 2>&5
12874 ac_status=$?
12875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876 test $ac_status = 0; } ;; #(
12877 *) :
12878
12879 as_fn_append CFLAGS " $flag"
12880 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12881 (: CFLAGS="$CFLAGS") 2>&5
12882 ac_status=$?
12883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884 test $ac_status = 0; }
12885 ;;
12886 esac
12887
12888 else
12889
12890 CFLAGS=$flag
12891 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12892 (: CFLAGS="$CFLAGS") 2>&5
12893 ac_status=$?
12894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12895 test $ac_status = 0; }
12896
12897 fi
12898
12899 else
12900 :
12901 fi
12902
12903 done
12904
12905
12906
12907
12908
12909 for flag in -Wbad-function-cast; do
12910 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12912 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12913 if eval \${$as_CACHEVAR+:} false; then :
12914 $as_echo_n "(cached) " >&6
12915 else
12916
12917 ax_check_save_flags=$CFLAGS
12918 CFLAGS="$CFLAGS $flag"
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921
12922 int
12923 main ()
12924 {
12925
12926 ;
12927 return 0;
12928 }
12929 _ACEOF
12930 if ac_fn_c_try_compile "$LINENO"; then :
12931 eval "$as_CACHEVAR=yes"
12932 else
12933 eval "$as_CACHEVAR=no"
12934 fi
12935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12936 CFLAGS=$ax_check_save_flags
12937 fi
12938 eval ac_res=\$$as_CACHEVAR
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12940 $as_echo "$ac_res" >&6; }
12941 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12942
12943 if ${CFLAGS+:} false; then :
12944
12945 case " $CFLAGS " in #(
12946 *" $flag "*) :
12947 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12948 (: CFLAGS already contains $flag) 2>&5
12949 ac_status=$?
12950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12951 test $ac_status = 0; } ;; #(
12952 *) :
12953
12954 as_fn_append CFLAGS " $flag"
12955 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12956 (: CFLAGS="$CFLAGS") 2>&5
12957 ac_status=$?
12958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12959 test $ac_status = 0; }
12960 ;;
12961 esac
12962
12963 else
12964
12965 CFLAGS=$flag
12966 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12967 (: CFLAGS="$CFLAGS") 2>&5
12968 ac_status=$?
12969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12970 test $ac_status = 0; }
12971
12972 fi
12973
12974 else
12975 :
12976 fi
12977
12978 done
12979
12980
12981
12982
12983
12984 for flag in -Wcast-align; do
12985 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12987 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12988 if eval \${$as_CACHEVAR+:} false; then :
12989 $as_echo_n "(cached) " >&6
12990 else
12991
12992 ax_check_save_flags=$CFLAGS
12993 CFLAGS="$CFLAGS $flag"
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12996
12997 int
12998 main ()
12999 {
13000
13001 ;
13002 return 0;
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_compile "$LINENO"; then :
13006 eval "$as_CACHEVAR=yes"
13007 else
13008 eval "$as_CACHEVAR=no"
13009 fi
13010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011 CFLAGS=$ax_check_save_flags
13012 fi
13013 eval ac_res=\$$as_CACHEVAR
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13015 $as_echo "$ac_res" >&6; }
13016 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13017
13018 if ${CFLAGS+:} false; then :
13019
13020 case " $CFLAGS " in #(
13021 *" $flag "*) :
13022 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13023 (: CFLAGS already contains $flag) 2>&5
13024 ac_status=$?
13025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13026 test $ac_status = 0; } ;; #(
13027 *) :
13028
13029 as_fn_append CFLAGS " $flag"
13030 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13031 (: CFLAGS="$CFLAGS") 2>&5
13032 ac_status=$?
13033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13034 test $ac_status = 0; }
13035 ;;
13036 esac
13037
13038 else
13039
13040 CFLAGS=$flag
13041 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13042 (: CFLAGS="$CFLAGS") 2>&5
13043 ac_status=$?
13044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13045 test $ac_status = 0; }
13046
13047 fi
13048
13049 else
13050 :
13051 fi
13052
13053 done
13054
13055
13056
13057
13058
13059 for flag in -Wcast-function-type; do
13060 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13062 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13063 if eval \${$as_CACHEVAR+:} false; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066
13067 ax_check_save_flags=$CFLAGS
13068 CFLAGS="$CFLAGS $flag"
13069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070 /* end confdefs.h. */
13071
13072 int
13073 main ()
13074 {
13075
13076 ;
13077 return 0;
13078 }
13079 _ACEOF
13080 if ac_fn_c_try_compile "$LINENO"; then :
13081 eval "$as_CACHEVAR=yes"
13082 else
13083 eval "$as_CACHEVAR=no"
13084 fi
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 CFLAGS=$ax_check_save_flags
13087 fi
13088 eval ac_res=\$$as_CACHEVAR
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13090 $as_echo "$ac_res" >&6; }
13091 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13092
13093 if ${CFLAGS+:} false; then :
13094
13095 case " $CFLAGS " in #(
13096 *" $flag "*) :
13097 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13098 (: CFLAGS already contains $flag) 2>&5
13099 ac_status=$?
13100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13101 test $ac_status = 0; } ;; #(
13102 *) :
13103
13104 as_fn_append CFLAGS " $flag"
13105 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13106 (: CFLAGS="$CFLAGS") 2>&5
13107 ac_status=$?
13108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13109 test $ac_status = 0; }
13110 ;;
13111 esac
13112
13113 else
13114
13115 CFLAGS=$flag
13116 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13117 (: CFLAGS="$CFLAGS") 2>&5
13118 ac_status=$?
13119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13120 test $ac_status = 0; }
13121
13122 fi
13123
13124 else
13125 :
13126 fi
13127
13128 done
13129
13130
13131
13132
13133
13134 for flag in -Wcast-qual; do
13135 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13137 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13138 if eval \${$as_CACHEVAR+:} false; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141
13142 ax_check_save_flags=$CFLAGS
13143 CFLAGS="$CFLAGS $flag"
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146
13147 int
13148 main ()
13149 {
13150
13151 ;
13152 return 0;
13153 }
13154 _ACEOF
13155 if ac_fn_c_try_compile "$LINENO"; then :
13156 eval "$as_CACHEVAR=yes"
13157 else
13158 eval "$as_CACHEVAR=no"
13159 fi
13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161 CFLAGS=$ax_check_save_flags
13162 fi
13163 eval ac_res=\$$as_CACHEVAR
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13165 $as_echo "$ac_res" >&6; }
13166 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13167
13168 if ${CFLAGS+:} false; then :
13169
13170 case " $CFLAGS " in #(
13171 *" $flag "*) :
13172 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13173 (: CFLAGS already contains $flag) 2>&5
13174 ac_status=$?
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; } ;; #(
13177 *) :
13178
13179 as_fn_append CFLAGS " $flag"
13180 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13181 (: CFLAGS="$CFLAGS") 2>&5
13182 ac_status=$?
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; }
13185 ;;
13186 esac
13187
13188 else
13189
13190 CFLAGS=$flag
13191 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13192 (: CFLAGS="$CFLAGS") 2>&5
13193 ac_status=$?
13194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13195 test $ac_status = 0; }
13196
13197 fi
13198
13199 else
13200 :
13201 fi
13202
13203 done
13204
13205
13206
13207
13208
13209 for flag in -Wclobbered; do
13210 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13212 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13213 if eval \${$as_CACHEVAR+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216
13217 ax_check_save_flags=$CFLAGS
13218 CFLAGS="$CFLAGS $flag"
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13221
13222 int
13223 main ()
13224 {
13225
13226 ;
13227 return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_compile "$LINENO"; then :
13231 eval "$as_CACHEVAR=yes"
13232 else
13233 eval "$as_CACHEVAR=no"
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 CFLAGS=$ax_check_save_flags
13237 fi
13238 eval ac_res=\$$as_CACHEVAR
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13240 $as_echo "$ac_res" >&6; }
13241 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13242
13243 if ${CFLAGS+:} false; then :
13244
13245 case " $CFLAGS " in #(
13246 *" $flag "*) :
13247 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13248 (: CFLAGS already contains $flag) 2>&5
13249 ac_status=$?
13250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13251 test $ac_status = 0; } ;; #(
13252 *) :
13253
13254 as_fn_append CFLAGS " $flag"
13255 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13256 (: CFLAGS="$CFLAGS") 2>&5
13257 ac_status=$?
13258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13259 test $ac_status = 0; }
13260 ;;
13261 esac
13262
13263 else
13264
13265 CFLAGS=$flag
13266 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13267 (: CFLAGS="$CFLAGS") 2>&5
13268 ac_status=$?
13269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13270 test $ac_status = 0; }
13271
13272 fi
13273
13274 else
13275 :
13276 fi
13277
13278 done
13279
13280
13281
13282
13283
13284 for flag in -Wduplicated-cond; do
13285 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13287 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13288 if eval \${$as_CACHEVAR+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291
13292 ax_check_save_flags=$CFLAGS
13293 CFLAGS="$CFLAGS $flag"
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296
13297 int
13298 main ()
13299 {
13300
13301 ;
13302 return 0;
13303 }
13304 _ACEOF
13305 if ac_fn_c_try_compile "$LINENO"; then :
13306 eval "$as_CACHEVAR=yes"
13307 else
13308 eval "$as_CACHEVAR=no"
13309 fi
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 CFLAGS=$ax_check_save_flags
13312 fi
13313 eval ac_res=\$$as_CACHEVAR
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13315 $as_echo "$ac_res" >&6; }
13316 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13317
13318 if ${CFLAGS+:} false; then :
13319
13320 case " $CFLAGS " in #(
13321 *" $flag "*) :
13322 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13323 (: CFLAGS already contains $flag) 2>&5
13324 ac_status=$?
13325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13326 test $ac_status = 0; } ;; #(
13327 *) :
13328
13329 as_fn_append CFLAGS " $flag"
13330 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13331 (: CFLAGS="$CFLAGS") 2>&5
13332 ac_status=$?
13333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13334 test $ac_status = 0; }
13335 ;;
13336 esac
13337
13338 else
13339
13340 CFLAGS=$flag
13341 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13342 (: CFLAGS="$CFLAGS") 2>&5
13343 ac_status=$?
13344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13345 test $ac_status = 0; }
13346
13347 fi
13348
13349 else
13350 :
13351 fi
13352
13353 done
13354
13355
13356
13357
13358
13359 for flag in -Wempty-body; do
13360 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13362 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13363 if eval \${$as_CACHEVAR+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366
13367 ax_check_save_flags=$CFLAGS
13368 CFLAGS="$CFLAGS $flag"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13371
13372 int
13373 main ()
13374 {
13375
13376 ;
13377 return 0;
13378 }
13379 _ACEOF
13380 if ac_fn_c_try_compile "$LINENO"; then :
13381 eval "$as_CACHEVAR=yes"
13382 else
13383 eval "$as_CACHEVAR=no"
13384 fi
13385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13386 CFLAGS=$ax_check_save_flags
13387 fi
13388 eval ac_res=\$$as_CACHEVAR
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13390 $as_echo "$ac_res" >&6; }
13391 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13392
13393 if ${CFLAGS+:} false; then :
13394
13395 case " $CFLAGS " in #(
13396 *" $flag "*) :
13397 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13398 (: CFLAGS already contains $flag) 2>&5
13399 ac_status=$?
13400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13401 test $ac_status = 0; } ;; #(
13402 *) :
13403
13404 as_fn_append CFLAGS " $flag"
13405 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13406 (: CFLAGS="$CFLAGS") 2>&5
13407 ac_status=$?
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; }
13410 ;;
13411 esac
13412
13413 else
13414
13415 CFLAGS=$flag
13416 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13417 (: CFLAGS="$CFLAGS") 2>&5
13418 ac_status=$?
13419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13420 test $ac_status = 0; }
13421
13422 fi
13423
13424 else
13425 :
13426 fi
13427
13428 done
13429
13430
13431
13432
13433
13434 for flag in -Wignored-qualifiers; do
13435 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13437 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13438 if eval \${$as_CACHEVAR+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441
13442 ax_check_save_flags=$CFLAGS
13443 CFLAGS="$CFLAGS $flag"
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13446
13447 int
13448 main ()
13449 {
13450
13451 ;
13452 return 0;
13453 }
13454 _ACEOF
13455 if ac_fn_c_try_compile "$LINENO"; then :
13456 eval "$as_CACHEVAR=yes"
13457 else
13458 eval "$as_CACHEVAR=no"
13459 fi
13460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461 CFLAGS=$ax_check_save_flags
13462 fi
13463 eval ac_res=\$$as_CACHEVAR
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13465 $as_echo "$ac_res" >&6; }
13466 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13467
13468 if ${CFLAGS+:} false; then :
13469
13470 case " $CFLAGS " in #(
13471 *" $flag "*) :
13472 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13473 (: CFLAGS already contains $flag) 2>&5
13474 ac_status=$?
13475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13476 test $ac_status = 0; } ;; #(
13477 *) :
13478
13479 as_fn_append CFLAGS " $flag"
13480 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13481 (: CFLAGS="$CFLAGS") 2>&5
13482 ac_status=$?
13483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13484 test $ac_status = 0; }
13485 ;;
13486 esac
13487
13488 else
13489
13490 CFLAGS=$flag
13491 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13492 (: CFLAGS="$CFLAGS") 2>&5
13493 ac_status=$?
13494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13495 test $ac_status = 0; }
13496
13497 fi
13498
13499 else
13500 :
13501 fi
13502
13503 done
13504
13505
13506
13507
13508
13509 for flag in -Wlogical-op; do
13510 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13512 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13513 if eval \${$as_CACHEVAR+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516
13517 ax_check_save_flags=$CFLAGS
13518 CFLAGS="$CFLAGS $flag"
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h. */
13521
13522 int
13523 main ()
13524 {
13525
13526 ;
13527 return 0;
13528 }
13529 _ACEOF
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 eval "$as_CACHEVAR=yes"
13532 else
13533 eval "$as_CACHEVAR=no"
13534 fi
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 CFLAGS=$ax_check_save_flags
13537 fi
13538 eval ac_res=\$$as_CACHEVAR
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13540 $as_echo "$ac_res" >&6; }
13541 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13542
13543 if ${CFLAGS+:} false; then :
13544
13545 case " $CFLAGS " in #(
13546 *" $flag "*) :
13547 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13548 (: CFLAGS already contains $flag) 2>&5
13549 ac_status=$?
13550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13551 test $ac_status = 0; } ;; #(
13552 *) :
13553
13554 as_fn_append CFLAGS " $flag"
13555 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13556 (: CFLAGS="$CFLAGS") 2>&5
13557 ac_status=$?
13558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13559 test $ac_status = 0; }
13560 ;;
13561 esac
13562
13563 else
13564
13565 CFLAGS=$flag
13566 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13567 (: CFLAGS="$CFLAGS") 2>&5
13568 ac_status=$?
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570 test $ac_status = 0; }
13571
13572 fi
13573
13574 else
13575 :
13576 fi
13577
13578 done
13579
13580
13581
13582
13583
13584 for flag in -Wmissing-declarations; do
13585 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13587 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13588 if eval \${$as_CACHEVAR+:} false; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591
13592 ax_check_save_flags=$CFLAGS
13593 CFLAGS="$CFLAGS $flag"
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596
13597 int
13598 main ()
13599 {
13600
13601 ;
13602 return 0;
13603 }
13604 _ACEOF
13605 if ac_fn_c_try_compile "$LINENO"; then :
13606 eval "$as_CACHEVAR=yes"
13607 else
13608 eval "$as_CACHEVAR=no"
13609 fi
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 CFLAGS=$ax_check_save_flags
13612 fi
13613 eval ac_res=\$$as_CACHEVAR
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13615 $as_echo "$ac_res" >&6; }
13616 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13617
13618 if ${CFLAGS+:} false; then :
13619
13620 case " $CFLAGS " in #(
13621 *" $flag "*) :
13622 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13623 (: CFLAGS already contains $flag) 2>&5
13624 ac_status=$?
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; } ;; #(
13627 *) :
13628
13629 as_fn_append CFLAGS " $flag"
13630 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13631 (: CFLAGS="$CFLAGS") 2>&5
13632 ac_status=$?
13633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634 test $ac_status = 0; }
13635 ;;
13636 esac
13637
13638 else
13639
13640 CFLAGS=$flag
13641 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13642 (: CFLAGS="$CFLAGS") 2>&5
13643 ac_status=$?
13644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13645 test $ac_status = 0; }
13646
13647 fi
13648
13649 else
13650 :
13651 fi
13652
13653 done
13654
13655
13656
13657
13658
13659 for flag in -Wmissing-field-initializers; do
13660 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13662 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13663 if eval \${$as_CACHEVAR+:} false; then :
13664 $as_echo_n "(cached) " >&6
13665 else
13666
13667 ax_check_save_flags=$CFLAGS
13668 CFLAGS="$CFLAGS $flag"
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671
13672 int
13673 main ()
13674 {
13675
13676 ;
13677 return 0;
13678 }
13679 _ACEOF
13680 if ac_fn_c_try_compile "$LINENO"; then :
13681 eval "$as_CACHEVAR=yes"
13682 else
13683 eval "$as_CACHEVAR=no"
13684 fi
13685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13686 CFLAGS=$ax_check_save_flags
13687 fi
13688 eval ac_res=\$$as_CACHEVAR
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13690 $as_echo "$ac_res" >&6; }
13691 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13692
13693 if ${CFLAGS+:} false; then :
13694
13695 case " $CFLAGS " in #(
13696 *" $flag "*) :
13697 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13698 (: CFLAGS already contains $flag) 2>&5
13699 ac_status=$?
13700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13701 test $ac_status = 0; } ;; #(
13702 *) :
13703
13704 as_fn_append CFLAGS " $flag"
13705 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13706 (: CFLAGS="$CFLAGS") 2>&5
13707 ac_status=$?
13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709 test $ac_status = 0; }
13710 ;;
13711 esac
13712
13713 else
13714
13715 CFLAGS=$flag
13716 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13717 (: CFLAGS="$CFLAGS") 2>&5
13718 ac_status=$?
13719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13720 test $ac_status = 0; }
13721
13722 fi
13723
13724 else
13725 :
13726 fi
13727
13728 done
13729
13730
13731
13732
13733
13734 for flag in -Wmissing-include-dirs; do
13735 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13737 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13738 if eval \${$as_CACHEVAR+:} false; then :
13739 $as_echo_n "(cached) " >&6
13740 else
13741
13742 ax_check_save_flags=$CFLAGS
13743 CFLAGS="$CFLAGS $flag"
13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746
13747 int
13748 main ()
13749 {
13750
13751 ;
13752 return 0;
13753 }
13754 _ACEOF
13755 if ac_fn_c_try_compile "$LINENO"; then :
13756 eval "$as_CACHEVAR=yes"
13757 else
13758 eval "$as_CACHEVAR=no"
13759 fi
13760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13761 CFLAGS=$ax_check_save_flags
13762 fi
13763 eval ac_res=\$$as_CACHEVAR
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13765 $as_echo "$ac_res" >&6; }
13766 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13767
13768 if ${CFLAGS+:} false; then :
13769
13770 case " $CFLAGS " in #(
13771 *" $flag "*) :
13772 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13773 (: CFLAGS already contains $flag) 2>&5
13774 ac_status=$?
13775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776 test $ac_status = 0; } ;; #(
13777 *) :
13778
13779 as_fn_append CFLAGS " $flag"
13780 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13781 (: CFLAGS="$CFLAGS") 2>&5
13782 ac_status=$?
13783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13784 test $ac_status = 0; }
13785 ;;
13786 esac
13787
13788 else
13789
13790 CFLAGS=$flag
13791 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13792 (: CFLAGS="$CFLAGS") 2>&5
13793 ac_status=$?
13794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13795 test $ac_status = 0; }
13796
13797 fi
13798
13799 else
13800 :
13801 fi
13802
13803 done
13804
13805
13806
13807
13808
13809 for flag in -Wmissing-parameter-type; do
13810 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13812 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13813 if eval \${$as_CACHEVAR+:} false; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816
13817 ax_check_save_flags=$CFLAGS
13818 CFLAGS="$CFLAGS $flag"
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821
13822 int
13823 main ()
13824 {
13825
13826 ;
13827 return 0;
13828 }
13829 _ACEOF
13830 if ac_fn_c_try_compile "$LINENO"; then :
13831 eval "$as_CACHEVAR=yes"
13832 else
13833 eval "$as_CACHEVAR=no"
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 CFLAGS=$ax_check_save_flags
13837 fi
13838 eval ac_res=\$$as_CACHEVAR
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13840 $as_echo "$ac_res" >&6; }
13841 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13842
13843 if ${CFLAGS+:} false; then :
13844
13845 case " $CFLAGS " in #(
13846 *" $flag "*) :
13847 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13848 (: CFLAGS already contains $flag) 2>&5
13849 ac_status=$?
13850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13851 test $ac_status = 0; } ;; #(
13852 *) :
13853
13854 as_fn_append CFLAGS " $flag"
13855 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13856 (: CFLAGS="$CFLAGS") 2>&5
13857 ac_status=$?
13858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13859 test $ac_status = 0; }
13860 ;;
13861 esac
13862
13863 else
13864
13865 CFLAGS=$flag
13866 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13867 (: CFLAGS="$CFLAGS") 2>&5
13868 ac_status=$?
13869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13870 test $ac_status = 0; }
13871
13872 fi
13873
13874 else
13875 :
13876 fi
13877
13878 done
13879
13880
13881
13882
13883
13884 for flag in -Wmissing-prototypes; do
13885 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13887 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13888 if eval \${$as_CACHEVAR+:} false; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891
13892 ax_check_save_flags=$CFLAGS
13893 CFLAGS="$CFLAGS $flag"
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13896
13897 int
13898 main ()
13899 {
13900
13901 ;
13902 return 0;
13903 }
13904 _ACEOF
13905 if ac_fn_c_try_compile "$LINENO"; then :
13906 eval "$as_CACHEVAR=yes"
13907 else
13908 eval "$as_CACHEVAR=no"
13909 fi
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 CFLAGS=$ax_check_save_flags
13912 fi
13913 eval ac_res=\$$as_CACHEVAR
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13915 $as_echo "$ac_res" >&6; }
13916 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13917
13918 if ${CFLAGS+:} false; then :
13919
13920 case " $CFLAGS " in #(
13921 *" $flag "*) :
13922 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13923 (: CFLAGS already contains $flag) 2>&5
13924 ac_status=$?
13925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13926 test $ac_status = 0; } ;; #(
13927 *) :
13928
13929 as_fn_append CFLAGS " $flag"
13930 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13931 (: CFLAGS="$CFLAGS") 2>&5
13932 ac_status=$?
13933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13934 test $ac_status = 0; }
13935 ;;
13936 esac
13937
13938 else
13939
13940 CFLAGS=$flag
13941 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13942 (: CFLAGS="$CFLAGS") 2>&5
13943 ac_status=$?
13944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945 test $ac_status = 0; }
13946
13947 fi
13948
13949 else
13950 :
13951 fi
13952
13953 done
13954
13955
13956
13957
13958
13959 for flag in -Wnested-externs; do
13960 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13962 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13963 if eval \${$as_CACHEVAR+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966
13967 ax_check_save_flags=$CFLAGS
13968 CFLAGS="$CFLAGS $flag"
13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h. */
13971
13972 int
13973 main ()
13974 {
13975
13976 ;
13977 return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_compile "$LINENO"; then :
13981 eval "$as_CACHEVAR=yes"
13982 else
13983 eval "$as_CACHEVAR=no"
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 CFLAGS=$ax_check_save_flags
13987 fi
13988 eval ac_res=\$$as_CACHEVAR
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13990 $as_echo "$ac_res" >&6; }
13991 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13992
13993 if ${CFLAGS+:} false; then :
13994
13995 case " $CFLAGS " in #(
13996 *" $flag "*) :
13997 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13998 (: CFLAGS already contains $flag) 2>&5
13999 ac_status=$?
14000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14001 test $ac_status = 0; } ;; #(
14002 *) :
14003
14004 as_fn_append CFLAGS " $flag"
14005 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14006 (: CFLAGS="$CFLAGS") 2>&5
14007 ac_status=$?
14008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009 test $ac_status = 0; }
14010 ;;
14011 esac
14012
14013 else
14014
14015 CFLAGS=$flag
14016 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14017 (: CFLAGS="$CFLAGS") 2>&5
14018 ac_status=$?
14019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020 test $ac_status = 0; }
14021
14022 fi
14023
14024 else
14025 :
14026 fi
14027
14028 done
14029
14030
14031
14032
14033
14034 for flag in -Wold-style-declaration; do
14035 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14037 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14038 if eval \${$as_CACHEVAR+:} false; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041
14042 ax_check_save_flags=$CFLAGS
14043 CFLAGS="$CFLAGS $flag"
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046
14047 int
14048 main ()
14049 {
14050
14051 ;
14052 return 0;
14053 }
14054 _ACEOF
14055 if ac_fn_c_try_compile "$LINENO"; then :
14056 eval "$as_CACHEVAR=yes"
14057 else
14058 eval "$as_CACHEVAR=no"
14059 fi
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 CFLAGS=$ax_check_save_flags
14062 fi
14063 eval ac_res=\$$as_CACHEVAR
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14065 $as_echo "$ac_res" >&6; }
14066 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14067
14068 if ${CFLAGS+:} false; then :
14069
14070 case " $CFLAGS " in #(
14071 *" $flag "*) :
14072 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14073 (: CFLAGS already contains $flag) 2>&5
14074 ac_status=$?
14075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14076 test $ac_status = 0; } ;; #(
14077 *) :
14078
14079 as_fn_append CFLAGS " $flag"
14080 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14081 (: CFLAGS="$CFLAGS") 2>&5
14082 ac_status=$?
14083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14084 test $ac_status = 0; }
14085 ;;
14086 esac
14087
14088 else
14089
14090 CFLAGS=$flag
14091 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14092 (: CFLAGS="$CFLAGS") 2>&5
14093 ac_status=$?
14094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14095 test $ac_status = 0; }
14096
14097 fi
14098
14099 else
14100 :
14101 fi
14102
14103 done
14104
14105
14106
14107
14108
14109 for flag in -Woverride-init; do
14110 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14112 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14113 if eval \${$as_CACHEVAR+:} false; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116
14117 ax_check_save_flags=$CFLAGS
14118 CFLAGS="$CFLAGS $flag"
14119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120 /* end confdefs.h. */
14121
14122 int
14123 main ()
14124 {
14125
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_compile "$LINENO"; then :
14131 eval "$as_CACHEVAR=yes"
14132 else
14133 eval "$as_CACHEVAR=no"
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14136 CFLAGS=$ax_check_save_flags
14137 fi
14138 eval ac_res=\$$as_CACHEVAR
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14140 $as_echo "$ac_res" >&6; }
14141 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14142
14143 if ${CFLAGS+:} false; then :
14144
14145 case " $CFLAGS " in #(
14146 *" $flag "*) :
14147 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14148 (: CFLAGS already contains $flag) 2>&5
14149 ac_status=$?
14150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14151 test $ac_status = 0; } ;; #(
14152 *) :
14153
14154 as_fn_append CFLAGS " $flag"
14155 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14156 (: CFLAGS="$CFLAGS") 2>&5
14157 ac_status=$?
14158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14159 test $ac_status = 0; }
14160 ;;
14161 esac
14162
14163 else
14164
14165 CFLAGS=$flag
14166 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14167 (: CFLAGS="$CFLAGS") 2>&5
14168 ac_status=$?
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }
14171
14172 fi
14173
14174 else
14175 :
14176 fi
14177
14178 done
14179
14180
14181
14182
14183
14184 for flag in -Wpointer-arith; do
14185 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14187 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14188 if eval \${$as_CACHEVAR+:} false; then :
14189 $as_echo_n "(cached) " >&6
14190 else
14191
14192 ax_check_save_flags=$CFLAGS
14193 CFLAGS="$CFLAGS $flag"
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196
14197 int
14198 main ()
14199 {
14200
14201 ;
14202 return 0;
14203 }
14204 _ACEOF
14205 if ac_fn_c_try_compile "$LINENO"; then :
14206 eval "$as_CACHEVAR=yes"
14207 else
14208 eval "$as_CACHEVAR=no"
14209 fi
14210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14211 CFLAGS=$ax_check_save_flags
14212 fi
14213 eval ac_res=\$$as_CACHEVAR
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14215 $as_echo "$ac_res" >&6; }
14216 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14217
14218 if ${CFLAGS+:} false; then :
14219
14220 case " $CFLAGS " in #(
14221 *" $flag "*) :
14222 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14223 (: CFLAGS already contains $flag) 2>&5
14224 ac_status=$?
14225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14226 test $ac_status = 0; } ;; #(
14227 *) :
14228
14229 as_fn_append CFLAGS " $flag"
14230 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14231 (: CFLAGS="$CFLAGS") 2>&5
14232 ac_status=$?
14233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14234 test $ac_status = 0; }
14235 ;;
14236 esac
14237
14238 else
14239
14240 CFLAGS=$flag
14241 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14242 (: CFLAGS="$CFLAGS") 2>&5
14243 ac_status=$?
14244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14245 test $ac_status = 0; }
14246
14247 fi
14248
14249 else
14250 :
14251 fi
14252
14253 done
14254
14255
14256
14257
14258
14259 for flag in -Wredundant-decls; do
14260 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14262 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14263 if eval \${$as_CACHEVAR+:} false; then :
14264 $as_echo_n "(cached) " >&6
14265 else
14266
14267 ax_check_save_flags=$CFLAGS
14268 CFLAGS="$CFLAGS $flag"
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271
14272 int
14273 main ()
14274 {
14275
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 if ac_fn_c_try_compile "$LINENO"; then :
14281 eval "$as_CACHEVAR=yes"
14282 else
14283 eval "$as_CACHEVAR=no"
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286 CFLAGS=$ax_check_save_flags
14287 fi
14288 eval ac_res=\$$as_CACHEVAR
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14290 $as_echo "$ac_res" >&6; }
14291 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14292
14293 if ${CFLAGS+:} false; then :
14294
14295 case " $CFLAGS " in #(
14296 *" $flag "*) :
14297 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14298 (: CFLAGS already contains $flag) 2>&5
14299 ac_status=$?
14300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301 test $ac_status = 0; } ;; #(
14302 *) :
14303
14304 as_fn_append CFLAGS " $flag"
14305 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14306 (: CFLAGS="$CFLAGS") 2>&5
14307 ac_status=$?
14308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14309 test $ac_status = 0; }
14310 ;;
14311 esac
14312
14313 else
14314
14315 CFLAGS=$flag
14316 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14317 (: CFLAGS="$CFLAGS") 2>&5
14318 ac_status=$?
14319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14320 test $ac_status = 0; }
14321
14322 fi
14323
14324 else
14325 :
14326 fi
14327
14328 done
14329
14330
14331
14332
14333
14334 for flag in -Wshadow; do
14335 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14337 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14338 if eval \${$as_CACHEVAR+:} false; then :
14339 $as_echo_n "(cached) " >&6
14340 else
14341
14342 ax_check_save_flags=$CFLAGS
14343 CFLAGS="$CFLAGS $flag"
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346
14347 int
14348 main ()
14349 {
14350
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356 eval "$as_CACHEVAR=yes"
14357 else
14358 eval "$as_CACHEVAR=no"
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 CFLAGS=$ax_check_save_flags
14362 fi
14363 eval ac_res=\$$as_CACHEVAR
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14365 $as_echo "$ac_res" >&6; }
14366 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14367
14368 if ${CFLAGS+:} false; then :
14369
14370 case " $CFLAGS " in #(
14371 *" $flag "*) :
14372 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14373 (: CFLAGS already contains $flag) 2>&5
14374 ac_status=$?
14375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14376 test $ac_status = 0; } ;; #(
14377 *) :
14378
14379 as_fn_append CFLAGS " $flag"
14380 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14381 (: CFLAGS="$CFLAGS") 2>&5
14382 ac_status=$?
14383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14384 test $ac_status = 0; }
14385 ;;
14386 esac
14387
14388 else
14389
14390 CFLAGS=$flag
14391 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14392 (: CFLAGS="$CFLAGS") 2>&5
14393 ac_status=$?
14394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14395 test $ac_status = 0; }
14396
14397 fi
14398
14399 else
14400 :
14401 fi
14402
14403 done
14404
14405
14406
14407
14408
14409 for flag in -Wshift-negative-value; do
14410 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14412 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14413 if eval \${$as_CACHEVAR+:} false; then :
14414 $as_echo_n "(cached) " >&6
14415 else
14416
14417 ax_check_save_flags=$CFLAGS
14418 CFLAGS="$CFLAGS $flag"
14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14421
14422 int
14423 main ()
14424 {
14425
14426 ;
14427 return 0;
14428 }
14429 _ACEOF
14430 if ac_fn_c_try_compile "$LINENO"; then :
14431 eval "$as_CACHEVAR=yes"
14432 else
14433 eval "$as_CACHEVAR=no"
14434 fi
14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14436 CFLAGS=$ax_check_save_flags
14437 fi
14438 eval ac_res=\$$as_CACHEVAR
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14440 $as_echo "$ac_res" >&6; }
14441 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14442
14443 if ${CFLAGS+:} false; then :
14444
14445 case " $CFLAGS " in #(
14446 *" $flag "*) :
14447 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14448 (: CFLAGS already contains $flag) 2>&5
14449 ac_status=$?
14450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14451 test $ac_status = 0; } ;; #(
14452 *) :
14453
14454 as_fn_append CFLAGS " $flag"
14455 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14456 (: CFLAGS="$CFLAGS") 2>&5
14457 ac_status=$?
14458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14459 test $ac_status = 0; }
14460 ;;
14461 esac
14462
14463 else
14464
14465 CFLAGS=$flag
14466 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14467 (: CFLAGS="$CFLAGS") 2>&5
14468 ac_status=$?
14469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14470 test $ac_status = 0; }
14471
14472 fi
14473
14474 else
14475 :
14476 fi
14477
14478 done
14479
14480
14481
14482
14483
14484 for flag in -Wsign-compare; do
14485 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14487 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14488 if eval \${$as_CACHEVAR+:} false; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491
14492 ax_check_save_flags=$CFLAGS
14493 CFLAGS="$CFLAGS $flag"
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496
14497 int
14498 main ()
14499 {
14500
14501 ;
14502 return 0;
14503 }
14504 _ACEOF
14505 if ac_fn_c_try_compile "$LINENO"; then :
14506 eval "$as_CACHEVAR=yes"
14507 else
14508 eval "$as_CACHEVAR=no"
14509 fi
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 CFLAGS=$ax_check_save_flags
14512 fi
14513 eval ac_res=\$$as_CACHEVAR
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14515 $as_echo "$ac_res" >&6; }
14516 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14517
14518 if ${CFLAGS+:} false; then :
14519
14520 case " $CFLAGS " in #(
14521 *" $flag "*) :
14522 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14523 (: CFLAGS already contains $flag) 2>&5
14524 ac_status=$?
14525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14526 test $ac_status = 0; } ;; #(
14527 *) :
14528
14529 as_fn_append CFLAGS " $flag"
14530 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14531 (: CFLAGS="$CFLAGS") 2>&5
14532 ac_status=$?
14533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14534 test $ac_status = 0; }
14535 ;;
14536 esac
14537
14538 else
14539
14540 CFLAGS=$flag
14541 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14542 (: CFLAGS="$CFLAGS") 2>&5
14543 ac_status=$?
14544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14545 test $ac_status = 0; }
14546
14547 fi
14548
14549 else
14550 :
14551 fi
14552
14553 done
14554
14555
14556
14557
14558
14559 for flag in -Wtype-limits; do
14560 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14562 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14563 if eval \${$as_CACHEVAR+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
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 ()
14574 {
14575
14576 ;
14577 return 0;
14578 }
14579 _ACEOF
14580 if ac_fn_c_try_compile "$LINENO"; then :
14581 eval "$as_CACHEVAR=yes"
14582 else
14583 eval "$as_CACHEVAR=no"
14584 fi
14585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14586 CFLAGS=$ax_check_save_flags
14587 fi
14588 eval ac_res=\$$as_CACHEVAR
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14590 $as_echo "$ac_res" >&6; }
14591 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14592
14593 if ${CFLAGS+:} false; then :
14594
14595 case " $CFLAGS " in #(
14596 *" $flag "*) :
14597 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14598 (: CFLAGS already contains $flag) 2>&5
14599 ac_status=$?
14600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14601 test $ac_status = 0; } ;; #(
14602 *) :
14603
14604 as_fn_append CFLAGS " $flag"
14605 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14606 (: CFLAGS="$CFLAGS") 2>&5
14607 ac_status=$?
14608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609 test $ac_status = 0; }
14610 ;;
14611 esac
14612
14613 else
14614
14615 CFLAGS=$flag
14616 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14617 (: CFLAGS="$CFLAGS") 2>&5
14618 ac_status=$?
14619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14620 test $ac_status = 0; }
14621
14622 fi
14623
14624 else
14625 :
14626 fi
14627
14628 done
14629
14630
14631
14632
14633
14634 for flag in -Wundef; do
14635 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14637 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14638 if eval \${$as_CACHEVAR+:} false; then :
14639 $as_echo_n "(cached) " >&6
14640 else
14641
14642 ax_check_save_flags=$CFLAGS
14643 CFLAGS="$CFLAGS $flag"
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14646
14647 int
14648 main ()
14649 {
14650
14651 ;
14652 return 0;
14653 }
14654 _ACEOF
14655 if ac_fn_c_try_compile "$LINENO"; then :
14656 eval "$as_CACHEVAR=yes"
14657 else
14658 eval "$as_CACHEVAR=no"
14659 fi
14660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14661 CFLAGS=$ax_check_save_flags
14662 fi
14663 eval ac_res=\$$as_CACHEVAR
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14665 $as_echo "$ac_res" >&6; }
14666 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14667
14668 if ${CFLAGS+:} false; then :
14669
14670 case " $CFLAGS " in #(
14671 *" $flag "*) :
14672 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14673 (: CFLAGS already contains $flag) 2>&5
14674 ac_status=$?
14675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14676 test $ac_status = 0; } ;; #(
14677 *) :
14678
14679 as_fn_append CFLAGS " $flag"
14680 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14681 (: CFLAGS="$CFLAGS") 2>&5
14682 ac_status=$?
14683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14684 test $ac_status = 0; }
14685 ;;
14686 esac
14687
14688 else
14689
14690 CFLAGS=$flag
14691 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14692 (: CFLAGS="$CFLAGS") 2>&5
14693 ac_status=$?
14694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14695 test $ac_status = 0; }
14696
14697 fi
14698
14699 else
14700 :
14701 fi
14702
14703 done
14704
14705
14706
14707
14708
14709 for flag in -Wuninitialized; do
14710 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14712 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14713 if eval \${$as_CACHEVAR+:} false; then :
14714 $as_echo_n "(cached) " >&6
14715 else
14716
14717 ax_check_save_flags=$CFLAGS
14718 CFLAGS="$CFLAGS $flag"
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721
14722 int
14723 main ()
14724 {
14725
14726 ;
14727 return 0;
14728 }
14729 _ACEOF
14730 if ac_fn_c_try_compile "$LINENO"; then :
14731 eval "$as_CACHEVAR=yes"
14732 else
14733 eval "$as_CACHEVAR=no"
14734 fi
14735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736 CFLAGS=$ax_check_save_flags
14737 fi
14738 eval ac_res=\$$as_CACHEVAR
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14740 $as_echo "$ac_res" >&6; }
14741 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14742
14743 if ${CFLAGS+:} false; then :
14744
14745 case " $CFLAGS " in #(
14746 *" $flag "*) :
14747 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14748 (: CFLAGS already contains $flag) 2>&5
14749 ac_status=$?
14750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14751 test $ac_status = 0; } ;; #(
14752 *) :
14753
14754 as_fn_append CFLAGS " $flag"
14755 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14756 (: CFLAGS="$CFLAGS") 2>&5
14757 ac_status=$?
14758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14759 test $ac_status = 0; }
14760 ;;
14761 esac
14762
14763 else
14764
14765 CFLAGS=$flag
14766 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14767 (: CFLAGS="$CFLAGS") 2>&5
14768 ac_status=$?
14769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14770 test $ac_status = 0; }
14771
14772 fi
14773
14774 else
14775 :
14776 fi
14777
14778 done
14779
14780
14781
14782
14783
14784 for flag in -Wwrite-strings; do
14785 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14787 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14788 if eval \${$as_CACHEVAR+:} false; then :
14789 $as_echo_n "(cached) " >&6
14790 else
14791
14792 ax_check_save_flags=$CFLAGS
14793 CFLAGS="$CFLAGS $flag"
14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14796
14797 int
14798 main ()
14799 {
14800
14801 ;
14802 return 0;
14803 }
14804 _ACEOF
14805 if ac_fn_c_try_compile "$LINENO"; then :
14806 eval "$as_CACHEVAR=yes"
14807 else
14808 eval "$as_CACHEVAR=no"
14809 fi
14810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811 CFLAGS=$ax_check_save_flags
14812 fi
14813 eval ac_res=\$$as_CACHEVAR
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14815 $as_echo "$ac_res" >&6; }
14816 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14817
14818 if ${CFLAGS+:} false; then :
14819
14820 case " $CFLAGS " in #(
14821 *" $flag "*) :
14822 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14823 (: CFLAGS already contains $flag) 2>&5
14824 ac_status=$?
14825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14826 test $ac_status = 0; } ;; #(
14827 *) :
14828
14829 as_fn_append CFLAGS " $flag"
14830 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14831 (: CFLAGS="$CFLAGS") 2>&5
14832 ac_status=$?
14833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14834 test $ac_status = 0; }
14835 ;;
14836 esac
14837
14838 else
14839
14840 CFLAGS=$flag
14841 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14842 (: CFLAGS="$CFLAGS") 2>&5
14843 ac_status=$?
14844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14845 test $ac_status = 0; }
14846
14847 fi
14848
14849 else
14850 :
14851 fi
14852
14853 done
14854
14855
14856 fi
14857
14858
14859 # Check whether --enable-efence was given.
14860 if test "${enable_efence+set}" = set; then :
14861 enableval=$enable_efence; efence="$enableval"
14862 else
14863 efence="no"
14864 fi
14865
14866
14867 if test "$efence" = "yes"; then :
14868
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
14870 $as_echo_n "checking for library containing EF_Print... " >&6; }
14871 if ${ac_cv_search_EF_Print+:} false; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 ac_func_search_save_LIBS=$LIBS
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h. */
14877
14878 /* Override any GCC internal prototype to avoid an error.
14879 Use char because int might match the return type of a GCC
14880 builtin and then its argument prototype would still apply. */
14881 #ifdef __cplusplus
14882 extern "C"
14883 #endif
14884 char EF_Print ();
14885 int
14886 main ()
14887 {
14888 return EF_Print ();
14889 ;
14890 return 0;
14891 }
14892 _ACEOF
14893 for ac_lib in '' efence; do
14894 if test -z "$ac_lib"; then
14895 ac_res="none required"
14896 else
14897 ac_res=-l$ac_lib
14898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14899 fi
14900 if ac_fn_c_try_link "$LINENO"; then :
14901 ac_cv_search_EF_Print=$ac_res
14902 fi
14903 rm -f core conftest.err conftest.$ac_objext \
14904 conftest$ac_exeext
14905 if ${ac_cv_search_EF_Print+:} false; then :
14906 break
14907 fi
14908 done
14909 if ${ac_cv_search_EF_Print+:} false; then :
14910
14911 else
14912 ac_cv_search_EF_Print=no
14913 fi
14914 rm conftest.$ac_ext
14915 LIBS=$ac_func_search_save_LIBS
14916 fi
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
14918 $as_echo "$ac_cv_search_EF_Print" >&6; }
14919 ac_res=$ac_cv_search_EF_Print
14920 if test "$ac_res" != no; then :
14921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14922
14923 else
14924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14926 as_fn_error $? "Electric Fence 'efence' library not found
14927 See \`config.log' for more details" "$LINENO" 5; }
14928 fi
14929
14930
14931 fi
14932
14933
14934 for ac_func in strlcpy strlcat
14935 do :
14936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14937 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14938 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14939 cat >>confdefs.h <<_ACEOF
14940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14941 _ACEOF
14942
14943 fi
14944 done
14945
14946
14947 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
14948
14949 cat >confcache <<\_ACEOF
14950 # This file is a shell script that caches the results of configure
14951 # tests run on this system so they can be shared between configure
14952 # scripts and configure runs, see configure's option --config-cache.
14953 # It is not useful on other systems. If it contains results you don't
14954 # want to keep, you may remove or edit it.
14955 #
14956 # config.status only pays attention to the cache file if you give it
14957 # the --recheck option to rerun configure.
14958 #
14959 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14960 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14961 # following values.
14962
14963 _ACEOF
14964
14965 # The following way of writing the cache mishandles newlines in values,
14966 # but we know of no workaround that is simple, portable, and efficient.
14967 # So, we kill variables containing newlines.
14968 # Ultrix sh set writes to stderr and can't be redirected directly,
14969 # and sets the high bit in the cache file unless we assign to the vars.
14970 (
14971 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14972 eval ac_val=\$$ac_var
14973 case $ac_val in #(
14974 *${as_nl}*)
14975 case $ac_var in #(
14976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14978 esac
14979 case $ac_var in #(
14980 _ | IFS | as_nl) ;; #(
14981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14982 *) { eval $ac_var=; unset $ac_var;} ;;
14983 esac ;;
14984 esac
14985 done
14986
14987 (set) 2>&1 |
14988 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14989 *${as_nl}ac_space=\ *)
14990 # `set' does not quote correctly, so add quotes: double-quote
14991 # substitution turns \\\\ into \\, and sed turns \\ into \.
14992 sed -n \
14993 "s/'/'\\\\''/g;
14994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14995 ;; #(
14996 *)
14997 # `set' quotes correctly as required by POSIX, so do not add quotes.
14998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14999 ;;
15000 esac |
15001 sort
15002 ) |
15003 sed '
15004 /^ac_cv_env_/b end
15005 t clear
15006 :clear
15007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15008 t end
15009 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15010 :end' >>confcache
15011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15012 if test -w "$cache_file"; then
15013 if test "x$cache_file" != "x/dev/null"; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15015 $as_echo "$as_me: updating cache $cache_file" >&6;}
15016 if test ! -f "$cache_file" || test -h "$cache_file"; then
15017 cat confcache >"$cache_file"
15018 else
15019 case $cache_file in #(
15020 */* | ?:*)
15021 mv -f confcache "$cache_file"$$ &&
15022 mv -f "$cache_file"$$ "$cache_file" ;; #(
15023 *)
15024 mv -f confcache "$cache_file" ;;
15025 esac
15026 fi
15027 fi
15028 else
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15030 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15031 fi
15032 fi
15033 rm -f confcache
15034
15035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15036 # Let make expand exec_prefix.
15037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15038
15039 DEFS=-DHAVE_CONFIG_H
15040
15041 ac_libobjs=
15042 ac_ltlibobjs=
15043 U=
15044 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15045 # 1. Remove the extension, and $U if already installed.
15046 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15047 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15048 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15049 # will be set to the directory where LIBOBJS objects are built.
15050 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15051 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15052 done
15053 LIBOBJS=$ac_libobjs
15054
15055 LTLIBOBJS=$ac_ltlibobjs
15056
15057
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15059 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15060 if test -n "$am_sleep_pid"; then
15061 # Hide warnings about reused PIDs.
15062 wait $am_sleep_pid 2>/dev/null
15063 fi
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15065 $as_echo "done" >&6; }
15066 if test -n "$EXEEXT"; then
15067 am__EXEEXT_TRUE=
15068 am__EXEEXT_FALSE='#'
15069 else
15070 am__EXEEXT_TRUE='#'
15071 am__EXEEXT_FALSE=
15072 fi
15073
15074 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15075 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15077 fi
15078 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15079 as_fn_error $? "conditional \"AMDEP\" was never defined.
15080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15081 fi
15082 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15083 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15085 fi
15086
15087 : "${CONFIG_STATUS=./config.status}"
15088 ac_write_fail=0
15089 ac_clean_files_save=$ac_clean_files
15090 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15092 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15093 as_write_fail=0
15094 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15095 #! $SHELL
15096 # Generated by $as_me.
15097 # Run this file to recreate the current configuration.
15098 # Compiler output produced by configure, useful for debugging
15099 # configure, is in config.log if it exists.
15100
15101 debug=false
15102 ac_cs_recheck=false
15103 ac_cs_silent=false
15104
15105 SHELL=\${CONFIG_SHELL-$SHELL}
15106 export SHELL
15107 _ASEOF
15108 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15109 ## -------------------- ##
15110 ## M4sh Initialization. ##
15111 ## -------------------- ##
15112
15113 # Be more Bourne compatible
15114 DUALCASE=1; export DUALCASE # for MKS sh
15115 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15116 emulate sh
15117 NULLCMD=:
15118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15119 # is contrary to our usage. Disable this feature.
15120 alias -g '${1+"$@"}'='"$@"'
15121 setopt NO_GLOB_SUBST
15122 else
15123 case `(set -o) 2>/dev/null` in #(
15124 *posix*) :
15125 set -o posix ;; #(
15126 *) :
15127 ;;
15128 esac
15129 fi
15130
15131
15132 as_nl='
15133 '
15134 export as_nl
15135 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15136 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15139 # Prefer a ksh shell builtin over an external printf program on Solaris,
15140 # but without wasting forks for bash or zsh.
15141 if test -z "$BASH_VERSION$ZSH_VERSION" \
15142 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15143 as_echo='print -r --'
15144 as_echo_n='print -rn --'
15145 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15146 as_echo='printf %s\n'
15147 as_echo_n='printf %s'
15148 else
15149 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15150 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15151 as_echo_n='/usr/ucb/echo -n'
15152 else
15153 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15154 as_echo_n_body='eval
15155 arg=$1;
15156 case $arg in #(
15157 *"$as_nl"*)
15158 expr "X$arg" : "X\\(.*\\)$as_nl";
15159 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15160 esac;
15161 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15162 '
15163 export as_echo_n_body
15164 as_echo_n='sh -c $as_echo_n_body as_echo'
15165 fi
15166 export as_echo_body
15167 as_echo='sh -c $as_echo_body as_echo'
15168 fi
15169
15170 # The user is always right.
15171 if test "${PATH_SEPARATOR+set}" != set; then
15172 PATH_SEPARATOR=:
15173 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15174 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15175 PATH_SEPARATOR=';'
15176 }
15177 fi
15178
15179
15180 # IFS
15181 # We need space, tab and new line, in precisely that order. Quoting is
15182 # there to prevent editors from complaining about space-tab.
15183 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15184 # splitting by setting IFS to empty value.)
15185 IFS=" "" $as_nl"
15186
15187 # Find who we are. Look in the path if we contain no directory separator.
15188 as_myself=
15189 case $0 in #((
15190 *[\\/]* ) as_myself=$0 ;;
15191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192 for as_dir in $PATH
15193 do
15194 IFS=$as_save_IFS
15195 test -z "$as_dir" && as_dir=.
15196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15197 done
15198 IFS=$as_save_IFS
15199
15200 ;;
15201 esac
15202 # We did not find ourselves, most probably we were run as `sh COMMAND'
15203 # in which case we are not to be found in the path.
15204 if test "x$as_myself" = x; then
15205 as_myself=$0
15206 fi
15207 if test ! -f "$as_myself"; then
15208 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15209 exit 1
15210 fi
15211
15212 # Unset variables that we do not need and which cause bugs (e.g. in
15213 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15214 # suppresses any "Segmentation fault" message there. '((' could
15215 # trigger a bug in pdksh 5.2.14.
15216 for as_var in BASH_ENV ENV MAIL MAILPATH
15217 do eval test x\${$as_var+set} = xset \
15218 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15219 done
15220 PS1='$ '
15221 PS2='> '
15222 PS4='+ '
15223
15224 # NLS nuisances.
15225 LC_ALL=C
15226 export LC_ALL
15227 LANGUAGE=C
15228 export LANGUAGE
15229
15230 # CDPATH.
15231 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15232
15233
15234 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15235 # ----------------------------------------
15236 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15237 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15238 # script with STATUS, using 1 if that was 0.
15239 as_fn_error ()
15240 {
15241 as_status=$1; test $as_status -eq 0 && as_status=1
15242 if test "$4"; then
15243 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15244 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15245 fi
15246 $as_echo "$as_me: error: $2" >&2
15247 as_fn_exit $as_status
15248 } # as_fn_error
15249
15250
15251 # as_fn_set_status STATUS
15252 # -----------------------
15253 # Set $? to STATUS, without forking.
15254 as_fn_set_status ()
15255 {
15256 return $1
15257 } # as_fn_set_status
15258
15259 # as_fn_exit STATUS
15260 # -----------------
15261 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15262 as_fn_exit ()
15263 {
15264 set +e
15265 as_fn_set_status $1
15266 exit $1
15267 } # as_fn_exit
15268
15269 # as_fn_unset VAR
15270 # ---------------
15271 # Portably unset VAR.
15272 as_fn_unset ()
15273 {
15274 { eval $1=; unset $1;}
15275 }
15276 as_unset=as_fn_unset
15277 # as_fn_append VAR VALUE
15278 # ----------------------
15279 # Append the text in VALUE to the end of the definition contained in VAR. Take
15280 # advantage of any shell optimizations that allow amortized linear growth over
15281 # repeated appends, instead of the typical quadratic growth present in naive
15282 # implementations.
15283 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15284 eval 'as_fn_append ()
15285 {
15286 eval $1+=\$2
15287 }'
15288 else
15289 as_fn_append ()
15290 {
15291 eval $1=\$$1\$2
15292 }
15293 fi # as_fn_append
15294
15295 # as_fn_arith ARG...
15296 # ------------------
15297 # Perform arithmetic evaluation on the ARGs, and store the result in the
15298 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15299 # must be portable across $(()) and expr.
15300 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15301 eval 'as_fn_arith ()
15302 {
15303 as_val=$(( $* ))
15304 }'
15305 else
15306 as_fn_arith ()
15307 {
15308 as_val=`expr "$@" || test $? -eq 1`
15309 }
15310 fi # as_fn_arith
15311
15312
15313 if expr a : '\(a\)' >/dev/null 2>&1 &&
15314 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15315 as_expr=expr
15316 else
15317 as_expr=false
15318 fi
15319
15320 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15321 as_basename=basename
15322 else
15323 as_basename=false
15324 fi
15325
15326 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15327 as_dirname=dirname
15328 else
15329 as_dirname=false
15330 fi
15331
15332 as_me=`$as_basename -- "$0" ||
15333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15334 X"$0" : 'X\(//\)$' \| \
15335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15336 $as_echo X/"$0" |
15337 sed '/^.*\/\([^/][^/]*\)\/*$/{
15338 s//\1/
15339 q
15340 }
15341 /^X\/\(\/\/\)$/{
15342 s//\1/
15343 q
15344 }
15345 /^X\/\(\/\).*/{
15346 s//\1/
15347 q
15348 }
15349 s/.*/./; q'`
15350
15351 # Avoid depending upon Character Ranges.
15352 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15353 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15354 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15355 as_cr_digits='0123456789'
15356 as_cr_alnum=$as_cr_Letters$as_cr_digits
15357
15358 ECHO_C= ECHO_N= ECHO_T=
15359 case `echo -n x` in #(((((
15360 -n*)
15361 case `echo 'xy\c'` in
15362 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15363 xy) ECHO_C='\c';;
15364 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15365 ECHO_T=' ';;
15366 esac;;
15367 *)
15368 ECHO_N='-n';;
15369 esac
15370
15371 rm -f conf$$ conf$$.exe conf$$.file
15372 if test -d conf$$.dir; then
15373 rm -f conf$$.dir/conf$$.file
15374 else
15375 rm -f conf$$.dir
15376 mkdir conf$$.dir 2>/dev/null
15377 fi
15378 if (echo >conf$$.file) 2>/dev/null; then
15379 if ln -s conf$$.file conf$$ 2>/dev/null; then
15380 as_ln_s='ln -s'
15381 # ... but there are two gotchas:
15382 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15383 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15384 # In both cases, we have to default to `cp -pR'.
15385 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15386 as_ln_s='cp -pR'
15387 elif ln conf$$.file conf$$ 2>/dev/null; then
15388 as_ln_s=ln
15389 else
15390 as_ln_s='cp -pR'
15391 fi
15392 else
15393 as_ln_s='cp -pR'
15394 fi
15395 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15396 rmdir conf$$.dir 2>/dev/null
15397
15398
15399 # as_fn_mkdir_p
15400 # -------------
15401 # Create "$as_dir" as a directory, including parents if necessary.
15402 as_fn_mkdir_p ()
15403 {
15404
15405 case $as_dir in #(
15406 -*) as_dir=./$as_dir;;
15407 esac
15408 test -d "$as_dir" || eval $as_mkdir_p || {
15409 as_dirs=
15410 while :; do
15411 case $as_dir in #(
15412 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15413 *) as_qdir=$as_dir;;
15414 esac
15415 as_dirs="'$as_qdir' $as_dirs"
15416 as_dir=`$as_dirname -- "$as_dir" ||
15417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15418 X"$as_dir" : 'X\(//\)[^/]' \| \
15419 X"$as_dir" : 'X\(//\)$' \| \
15420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15421 $as_echo X"$as_dir" |
15422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15423 s//\1/
15424 q
15425 }
15426 /^X\(\/\/\)[^/].*/{
15427 s//\1/
15428 q
15429 }
15430 /^X\(\/\/\)$/{
15431 s//\1/
15432 q
15433 }
15434 /^X\(\/\).*/{
15435 s//\1/
15436 q
15437 }
15438 s/.*/./; q'`
15439 test -d "$as_dir" && break
15440 done
15441 test -z "$as_dirs" || eval "mkdir $as_dirs"
15442 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15443
15444
15445 } # as_fn_mkdir_p
15446 if mkdir -p . 2>/dev/null; then
15447 as_mkdir_p='mkdir -p "$as_dir"'
15448 else
15449 test -d ./-p && rmdir ./-p
15450 as_mkdir_p=false
15451 fi
15452
15453
15454 # as_fn_executable_p FILE
15455 # -----------------------
15456 # Test if FILE is an executable regular file.
15457 as_fn_executable_p ()
15458 {
15459 test -f "$1" && test -x "$1"
15460 } # as_fn_executable_p
15461 as_test_x='test -x'
15462 as_executable_p=as_fn_executable_p
15463
15464 # Sed expression to map a string onto a valid CPP name.
15465 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15466
15467 # Sed expression to map a string onto a valid variable name.
15468 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15469
15470
15471 exec 6>&1
15472 ## ----------------------------------- ##
15473 ## Main body of $CONFIG_STATUS script. ##
15474 ## ----------------------------------- ##
15475 _ASEOF
15476 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15477
15478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15479 # Save the log message, to keep $0 and so on meaningful, and to
15480 # report actual input values of CONFIG_FILES etc. instead of their
15481 # values after options handling.
15482 ac_log="
15483 This file was extended by hopm $as_me TRUNK, which was
15484 generated by GNU Autoconf 2.69. Invocation command line was
15485
15486 CONFIG_FILES = $CONFIG_FILES
15487 CONFIG_HEADERS = $CONFIG_HEADERS
15488 CONFIG_LINKS = $CONFIG_LINKS
15489 CONFIG_COMMANDS = $CONFIG_COMMANDS
15490 $ $0 $@
15491
15492 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15493 "
15494
15495 _ACEOF
15496
15497 case $ac_config_files in *"
15498 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15499 esac
15500
15501 case $ac_config_headers in *"
15502 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15503 esac
15504
15505
15506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15507 # Files that config.status was made for.
15508 config_files="$ac_config_files"
15509 config_headers="$ac_config_headers"
15510 config_commands="$ac_config_commands"
15511
15512 _ACEOF
15513
15514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15515 ac_cs_usage="\
15516 \`$as_me' instantiates files and other configuration actions
15517 from templates according to the current configuration. Unless the files
15518 and actions are specified as TAGs, all are instantiated by default.
15519
15520 Usage: $0 [OPTION]... [TAG]...
15521
15522 -h, --help print this help, then exit
15523 -V, --version print version number and configuration settings, then exit
15524 --config print configuration, then exit
15525 -q, --quiet, --silent
15526 do not print progress messages
15527 -d, --debug don't remove temporary files
15528 --recheck update $as_me by reconfiguring in the same conditions
15529 --file=FILE[:TEMPLATE]
15530 instantiate the configuration file FILE
15531 --header=FILE[:TEMPLATE]
15532 instantiate the configuration header FILE
15533
15534 Configuration files:
15535 $config_files
15536
15537 Configuration headers:
15538 $config_headers
15539
15540 Configuration commands:
15541 $config_commands
15542
15543 Report bugs to <bugs@ircd-hybrid.org>."
15544
15545 _ACEOF
15546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15547 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15548 ac_cs_version="\\
15549 hopm config.status TRUNK
15550 configured by $0, generated by GNU Autoconf 2.69,
15551 with options \\"\$ac_cs_config\\"
15552
15553 Copyright (C) 2012 Free Software Foundation, Inc.
15554 This config.status script is free software; the Free Software Foundation
15555 gives unlimited permission to copy, distribute and modify it."
15556
15557 ac_pwd='$ac_pwd'
15558 srcdir='$srcdir'
15559 INSTALL='$INSTALL'
15560 MKDIR_P='$MKDIR_P'
15561 AWK='$AWK'
15562 test -n "\$AWK" || AWK=awk
15563 _ACEOF
15564
15565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566 # The default lists apply if the user does not specify any file.
15567 ac_need_defaults=:
15568 while test $# != 0
15569 do
15570 case $1 in
15571 --*=?*)
15572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15573 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15574 ac_shift=:
15575 ;;
15576 --*=)
15577 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15578 ac_optarg=
15579 ac_shift=:
15580 ;;
15581 *)
15582 ac_option=$1
15583 ac_optarg=$2
15584 ac_shift=shift
15585 ;;
15586 esac
15587
15588 case $ac_option in
15589 # Handling of the options.
15590 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15591 ac_cs_recheck=: ;;
15592 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15593 $as_echo "$ac_cs_version"; exit ;;
15594 --config | --confi | --conf | --con | --co | --c )
15595 $as_echo "$ac_cs_config"; exit ;;
15596 --debug | --debu | --deb | --de | --d | -d )
15597 debug=: ;;
15598 --file | --fil | --fi | --f )
15599 $ac_shift
15600 case $ac_optarg in
15601 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15602 '') as_fn_error $? "missing file argument" ;;
15603 esac
15604 as_fn_append CONFIG_FILES " '$ac_optarg'"
15605 ac_need_defaults=false;;
15606 --header | --heade | --head | --hea )
15607 $ac_shift
15608 case $ac_optarg in
15609 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15610 esac
15611 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15612 ac_need_defaults=false;;
15613 --he | --h)
15614 # Conflict between --help and --header
15615 as_fn_error $? "ambiguous option: \`$1'
15616 Try \`$0 --help' for more information.";;
15617 --help | --hel | -h )
15618 $as_echo "$ac_cs_usage"; exit ;;
15619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15620 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15621 ac_cs_silent=: ;;
15622
15623 # This is an error.
15624 -*) as_fn_error $? "unrecognized option: \`$1'
15625 Try \`$0 --help' for more information." ;;
15626
15627 *) as_fn_append ac_config_targets " $1"
15628 ac_need_defaults=false ;;
15629
15630 esac
15631 shift
15632 done
15633
15634 ac_configure_extra_args=
15635
15636 if $ac_cs_silent; then
15637 exec 6>/dev/null
15638 ac_configure_extra_args="$ac_configure_extra_args --silent"
15639 fi
15640
15641 _ACEOF
15642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15643 if \$ac_cs_recheck; then
15644 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15645 shift
15646 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15647 CONFIG_SHELL='$SHELL'
15648 export CONFIG_SHELL
15649 exec "\$@"
15650 fi
15651
15652 _ACEOF
15653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15654 exec 5>>config.log
15655 {
15656 echo
15657 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15658 ## Running $as_me. ##
15659 _ASBOX
15660 $as_echo "$ac_log"
15661 } >&5
15662
15663 _ACEOF
15664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15665 #
15666 # INIT-COMMANDS
15667 #
15668 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15669
15670
15671 # The HP-UX ksh and POSIX shell print the target directory to stdout
15672 # if CDPATH is set.
15673 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15674
15675 sed_quote_subst='$sed_quote_subst'
15676 double_quote_subst='$double_quote_subst'
15677 delay_variable_subst='$delay_variable_subst'
15678 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15679 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15680 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15681 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15682 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15683 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15684 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15685 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15686 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15687 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15688 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15689 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15690 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15691 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15692 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15693 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15694 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15695 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15696 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15697 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15698 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15699 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15700 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15701 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15702 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15703 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15704 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15705 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15706 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15707 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15708 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15709 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15710 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15711 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15712 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15713 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15714 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15715 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15716 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15717 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15718 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15719 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15720 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15721 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15722 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15723 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15724 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15725 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15726 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15727 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15728 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15729 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15730 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15731 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15732 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15733 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15734 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15735 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15736 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"`'
15737 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15738 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15739 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15740 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15741 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15742 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15743 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15744 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15745 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15746 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15747 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15748 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15749 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15750 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15751 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15752 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15753 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15754 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15755 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15756 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15757 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15758 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15759 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15760 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15761 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15762 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15763 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15764 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15765 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15766 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15767 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15768 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15769 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15770 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15771 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15772 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15773 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15774 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15775 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15776 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15777 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15778 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15779 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15780 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15781 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15782 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15783 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15784 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15785 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15786 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15787 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15788 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15789 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15790 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15791 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15792 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15793 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15794 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15795 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15796 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15797 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15798 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15799 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15800 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15801 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15802 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15803 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15804 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15805 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15806 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15807 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15808 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15809 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15810 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15811 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15812 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15813
15814 LTCC='$LTCC'
15815 LTCFLAGS='$LTCFLAGS'
15816 compiler='$compiler_DEFAULT'
15817
15818 # A function that is used when there is no print builtin or printf.
15819 func_fallback_echo ()
15820 {
15821 eval 'cat <<_LTECHO_EOF
15822 \$1
15823 _LTECHO_EOF'
15824 }
15825
15826 # Quote evaled strings.
15827 for var in SHELL \
15828 ECHO \
15829 PATH_SEPARATOR \
15830 SED \
15831 GREP \
15832 EGREP \
15833 FGREP \
15834 LD \
15835 NM \
15836 LN_S \
15837 lt_SP2NL \
15838 lt_NL2SP \
15839 reload_flag \
15840 OBJDUMP \
15841 deplibs_check_method \
15842 file_magic_cmd \
15843 file_magic_glob \
15844 want_nocaseglob \
15845 DLLTOOL \
15846 sharedlib_from_linklib_cmd \
15847 AR \
15848 AR_FLAGS \
15849 archiver_list_spec \
15850 STRIP \
15851 RANLIB \
15852 CC \
15853 CFLAGS \
15854 compiler \
15855 lt_cv_sys_global_symbol_pipe \
15856 lt_cv_sys_global_symbol_to_cdecl \
15857 lt_cv_sys_global_symbol_to_import \
15858 lt_cv_sys_global_symbol_to_c_name_address \
15859 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15860 lt_cv_nm_interface \
15861 nm_file_list_spec \
15862 lt_cv_truncate_bin \
15863 lt_prog_compiler_no_builtin_flag \
15864 lt_prog_compiler_pic \
15865 lt_prog_compiler_wl \
15866 lt_prog_compiler_static \
15867 lt_cv_prog_compiler_c_o \
15868 need_locks \
15869 MANIFEST_TOOL \
15870 DSYMUTIL \
15871 NMEDIT \
15872 LIPO \
15873 OTOOL \
15874 OTOOL64 \
15875 shrext_cmds \
15876 export_dynamic_flag_spec \
15877 whole_archive_flag_spec \
15878 compiler_needs_object \
15879 with_gnu_ld \
15880 allow_undefined_flag \
15881 no_undefined_flag \
15882 hardcode_libdir_flag_spec \
15883 hardcode_libdir_separator \
15884 exclude_expsyms \
15885 include_expsyms \
15886 file_list_spec \
15887 variables_saved_for_relink \
15888 libname_spec \
15889 library_names_spec \
15890 soname_spec \
15891 install_override_mode \
15892 finish_eval \
15893 old_striplib \
15894 striplib; do
15895 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15896 *[\\\\\\\`\\"\\\$]*)
15897 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15898 ;;
15899 *)
15900 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15901 ;;
15902 esac
15903 done
15904
15905 # Double-quote double-evaled strings.
15906 for var in reload_cmds \
15907 old_postinstall_cmds \
15908 old_postuninstall_cmds \
15909 old_archive_cmds \
15910 extract_expsyms_cmds \
15911 old_archive_from_new_cmds \
15912 old_archive_from_expsyms_cmds \
15913 archive_cmds \
15914 archive_expsym_cmds \
15915 module_cmds \
15916 module_expsym_cmds \
15917 export_symbols_cmds \
15918 prelink_cmds \
15919 postlink_cmds \
15920 postinstall_cmds \
15921 postuninstall_cmds \
15922 finish_cmds \
15923 sys_lib_search_path_spec \
15924 configure_time_dlsearch_path \
15925 configure_time_lt_sys_library_path; do
15926 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15927 *[\\\\\\\`\\"\\\$]*)
15928 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15929 ;;
15930 *)
15931 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15932 ;;
15933 esac
15934 done
15935
15936 ac_aux_dir='$ac_aux_dir'
15937
15938 # See if we are running on zsh, and set the options that allow our
15939 # commands through without removal of \ escapes INIT.
15940 if test -n "\${ZSH_VERSION+set}"; then
15941 setopt NO_GLOB_SUBST
15942 fi
15943
15944
15945 PACKAGE='$PACKAGE'
15946 VERSION='$VERSION'
15947 RM='$RM'
15948 ofile='$ofile'
15949
15950
15951
15952
15953 _ACEOF
15954
15955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15956
15957 # Handling of arguments.
15958 for ac_config_target in $ac_config_targets
15959 do
15960 case $ac_config_target in
15961 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
15962 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15963 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15964 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15965 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15966 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15967 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
15968 "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
15969
15970 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15971 esac
15972 done
15973
15974
15975 # If the user did not use the arguments to specify the items to instantiate,
15976 # then the envvar interface is used. Set only those that are not.
15977 # We use the long form for the default assignment because of an extremely
15978 # bizarre bug on SunOS 4.1.3.
15979 if $ac_need_defaults; then
15980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15983 fi
15984
15985 # Have a temporary directory for convenience. Make it in the build tree
15986 # simply because there is no reason against having it here, and in addition,
15987 # creating and moving files from /tmp can sometimes cause problems.
15988 # Hook for its removal unless debugging.
15989 # Note that there is a small window in which the directory will not be cleaned:
15990 # after its creation but before its name has been assigned to `$tmp'.
15991 $debug ||
15992 {
15993 tmp= ac_tmp=
15994 trap 'exit_status=$?
15995 : "${ac_tmp:=$tmp}"
15996 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15997 ' 0
15998 trap 'as_fn_exit 1' 1 2 13 15
15999 }
16000 # Create a (secure) tmp directory for tmp files.
16001
16002 {
16003 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16004 test -d "$tmp"
16005 } ||
16006 {
16007 tmp=./conf$$-$RANDOM
16008 (umask 077 && mkdir "$tmp")
16009 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16010 ac_tmp=$tmp
16011
16012 # Set up the scripts for CONFIG_FILES section.
16013 # No need to generate them if there are no CONFIG_FILES.
16014 # This happens for instance with `./config.status config.h'.
16015 if test -n "$CONFIG_FILES"; then
16016
16017
16018 ac_cr=`echo X | tr X '\015'`
16019 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16020 # But we know of no other shell where ac_cr would be empty at this
16021 # point, so we can use a bashism as a fallback.
16022 if test "x$ac_cr" = x; then
16023 eval ac_cr=\$\'\\r\'
16024 fi
16025 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16026 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16027 ac_cs_awk_cr='\\r'
16028 else
16029 ac_cs_awk_cr=$ac_cr
16030 fi
16031
16032 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16033 _ACEOF
16034
16035
16036 {
16037 echo "cat >conf$$subs.awk <<_ACEOF" &&
16038 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16039 echo "_ACEOF"
16040 } >conf$$subs.sh ||
16041 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16042 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16043 ac_delim='%!_!# '
16044 for ac_last_try in false false false false false :; do
16045 . ./conf$$subs.sh ||
16046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16047
16048 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16049 if test $ac_delim_n = $ac_delim_num; then
16050 break
16051 elif $ac_last_try; then
16052 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16053 else
16054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16055 fi
16056 done
16057 rm -f conf$$subs.sh
16058
16059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16060 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16061 _ACEOF
16062 sed -n '
16063 h
16064 s/^/S["/; s/!.*/"]=/
16065 p
16066 g
16067 s/^[^!]*!//
16068 :repl
16069 t repl
16070 s/'"$ac_delim"'$//
16071 t delim
16072 :nl
16073 h
16074 s/\(.\{148\}\)..*/\1/
16075 t more1
16076 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16077 p
16078 n
16079 b repl
16080 :more1
16081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16082 p
16083 g
16084 s/.\{148\}//
16085 t nl
16086 :delim
16087 h
16088 s/\(.\{148\}\)..*/\1/
16089 t more2
16090 s/["\\]/\\&/g; s/^/"/; s/$/"/
16091 p
16092 b
16093 :more2
16094 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16095 p
16096 g
16097 s/.\{148\}//
16098 t delim
16099 ' <conf$$subs.awk | sed '
16100 /^[^""]/{
16101 N
16102 s/\n//
16103 }
16104 ' >>$CONFIG_STATUS || ac_write_fail=1
16105 rm -f conf$$subs.awk
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107 _ACAWK
16108 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16109 for (key in S) S_is_set[key] = 1
16110 FS = ""
16111
16112 }
16113 {
16114 line = $ 0
16115 nfields = split(line, field, "@")
16116 substed = 0
16117 len = length(field[1])
16118 for (i = 2; i < nfields; i++) {
16119 key = field[i]
16120 keylen = length(key)
16121 if (S_is_set[key]) {
16122 value = S[key]
16123 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16124 len += length(value) + length(field[++i])
16125 substed = 1
16126 } else
16127 len += 1 + keylen
16128 }
16129
16130 print line
16131 }
16132
16133 _ACAWK
16134 _ACEOF
16135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16136 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16137 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16138 else
16139 cat
16140 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16141 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16142 _ACEOF
16143
16144 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16145 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16146 # trailing colons and then remove the whole line if VPATH becomes empty
16147 # (actually we leave an empty line to preserve line numbers).
16148 if test "x$srcdir" = x.; then
16149 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16150 h
16151 s///
16152 s/^/:/
16153 s/[ ]*$/:/
16154 s/:\$(srcdir):/:/g
16155 s/:\${srcdir}:/:/g
16156 s/:@srcdir@:/:/g
16157 s/^:*//
16158 s/:*$//
16159 x
16160 s/\(=[ ]*\).*/\1/
16161 G
16162 s/\n//
16163 s/^[^=]*=[ ]*$//
16164 }'
16165 fi
16166
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16168 fi # test -n "$CONFIG_FILES"
16169
16170 # Set up the scripts for CONFIG_HEADERS section.
16171 # No need to generate them if there are no CONFIG_HEADERS.
16172 # This happens for instance with `./config.status Makefile'.
16173 if test -n "$CONFIG_HEADERS"; then
16174 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16175 BEGIN {
16176 _ACEOF
16177
16178 # Transform confdefs.h into an awk script `defines.awk', embedded as
16179 # here-document in config.status, that substitutes the proper values into
16180 # config.h.in to produce config.h.
16181
16182 # Create a delimiter string that does not exist in confdefs.h, to ease
16183 # handling of long lines.
16184 ac_delim='%!_!# '
16185 for ac_last_try in false false :; do
16186 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16187 if test -z "$ac_tt"; then
16188 break
16189 elif $ac_last_try; then
16190 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16191 else
16192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16193 fi
16194 done
16195
16196 # For the awk script, D is an array of macro values keyed by name,
16197 # likewise P contains macro parameters if any. Preserve backslash
16198 # newline sequences.
16199
16200 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16201 sed -n '
16202 s/.\{148\}/&'"$ac_delim"'/g
16203 t rset
16204 :rset
16205 s/^[ ]*#[ ]*define[ ][ ]*/ /
16206 t def
16207 d
16208 :def
16209 s/\\$//
16210 t bsnl
16211 s/["\\]/\\&/g
16212 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16213 D["\1"]=" \3"/p
16214 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16215 d
16216 :bsnl
16217 s/["\\]/\\&/g
16218 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16219 D["\1"]=" \3\\\\\\n"\\/p
16220 t cont
16221 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16222 t cont
16223 d
16224 :cont
16225 n
16226 s/.\{148\}/&'"$ac_delim"'/g
16227 t clear
16228 :clear
16229 s/\\$//
16230 t bsnlc
16231 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16232 d
16233 :bsnlc
16234 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16235 b cont
16236 ' <confdefs.h | sed '
16237 s/'"$ac_delim"'/"\\\
16238 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16239
16240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16241 for (key in D) D_is_set[key] = 1
16242 FS = ""
16243 }
16244 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16245 line = \$ 0
16246 split(line, arg, " ")
16247 if (arg[1] == "#") {
16248 defundef = arg[2]
16249 mac1 = arg[3]
16250 } else {
16251 defundef = substr(arg[1], 2)
16252 mac1 = arg[2]
16253 }
16254 split(mac1, mac2, "(") #)
16255 macro = mac2[1]
16256 prefix = substr(line, 1, index(line, defundef) - 1)
16257 if (D_is_set[macro]) {
16258 # Preserve the white space surrounding the "#".
16259 print prefix "define", macro P[macro] D[macro]
16260 next
16261 } else {
16262 # Replace #undef with comments. This is necessary, for example,
16263 # in the case of _POSIX_SOURCE, which is predefined and required
16264 # on some systems where configure will not decide to define it.
16265 if (defundef == "undef") {
16266 print "/*", prefix defundef, macro, "*/"
16267 next
16268 }
16269 }
16270 }
16271 { print }
16272 _ACAWK
16273 _ACEOF
16274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16275 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16276 fi # test -n "$CONFIG_HEADERS"
16277
16278
16279 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16280 shift
16281 for ac_tag
16282 do
16283 case $ac_tag in
16284 :[FHLC]) ac_mode=$ac_tag; continue;;
16285 esac
16286 case $ac_mode$ac_tag in
16287 :[FHL]*:*);;
16288 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16289 :[FH]-) ac_tag=-:-;;
16290 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16291 esac
16292 ac_save_IFS=$IFS
16293 IFS=:
16294 set x $ac_tag
16295 IFS=$ac_save_IFS
16296 shift
16297 ac_file=$1
16298 shift
16299
16300 case $ac_mode in
16301 :L) ac_source=$1;;
16302 :[FH])
16303 ac_file_inputs=
16304 for ac_f
16305 do
16306 case $ac_f in
16307 -) ac_f="$ac_tmp/stdin";;
16308 *) # Look for the file first in the build tree, then in the source tree
16309 # (if the path is not absolute). The absolute path cannot be DOS-style,
16310 # because $ac_f cannot contain `:'.
16311 test -f "$ac_f" ||
16312 case $ac_f in
16313 [\\/$]*) false;;
16314 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16315 esac ||
16316 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16317 esac
16318 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16319 as_fn_append ac_file_inputs " '$ac_f'"
16320 done
16321
16322 # Let's still pretend it is `configure' which instantiates (i.e., don't
16323 # use $as_me), people would be surprised to read:
16324 # /* config.h. Generated by config.status. */
16325 configure_input='Generated from '`
16326 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16327 `' by configure.'
16328 if test x"$ac_file" != x-; then
16329 configure_input="$ac_file. $configure_input"
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16331 $as_echo "$as_me: creating $ac_file" >&6;}
16332 fi
16333 # Neutralize special characters interpreted by sed in replacement strings.
16334 case $configure_input in #(
16335 *\&* | *\|* | *\\* )
16336 ac_sed_conf_input=`$as_echo "$configure_input" |
16337 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16338 *) ac_sed_conf_input=$configure_input;;
16339 esac
16340
16341 case $ac_tag in
16342 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16344 esac
16345 ;;
16346 esac
16347
16348 ac_dir=`$as_dirname -- "$ac_file" ||
16349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16350 X"$ac_file" : 'X\(//\)[^/]' \| \
16351 X"$ac_file" : 'X\(//\)$' \| \
16352 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16353 $as_echo X"$ac_file" |
16354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16355 s//\1/
16356 q
16357 }
16358 /^X\(\/\/\)[^/].*/{
16359 s//\1/
16360 q
16361 }
16362 /^X\(\/\/\)$/{
16363 s//\1/
16364 q
16365 }
16366 /^X\(\/\).*/{
16367 s//\1/
16368 q
16369 }
16370 s/.*/./; q'`
16371 as_dir="$ac_dir"; as_fn_mkdir_p
16372 ac_builddir=.
16373
16374 case "$ac_dir" in
16375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16376 *)
16377 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16378 # A ".." for each directory in $ac_dir_suffix.
16379 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16380 case $ac_top_builddir_sub in
16381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16383 esac ;;
16384 esac
16385 ac_abs_top_builddir=$ac_pwd
16386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16387 # for backward compatibility:
16388 ac_top_builddir=$ac_top_build_prefix
16389
16390 case $srcdir in
16391 .) # We are building in place.
16392 ac_srcdir=.
16393 ac_top_srcdir=$ac_top_builddir_sub
16394 ac_abs_top_srcdir=$ac_pwd ;;
16395 [\\/]* | ?:[\\/]* ) # Absolute name.
16396 ac_srcdir=$srcdir$ac_dir_suffix;
16397 ac_top_srcdir=$srcdir
16398 ac_abs_top_srcdir=$srcdir ;;
16399 *) # Relative name.
16400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16401 ac_top_srcdir=$ac_top_build_prefix$srcdir
16402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16403 esac
16404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16405
16406
16407 case $ac_mode in
16408 :F)
16409 #
16410 # CONFIG_FILE
16411 #
16412
16413 case $INSTALL in
16414 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16415 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16416 esac
16417 ac_MKDIR_P=$MKDIR_P
16418 case $MKDIR_P in
16419 [\\/$]* | ?:[\\/]* ) ;;
16420 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16421 esac
16422 _ACEOF
16423
16424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16425 # If the template does not know about datarootdir, expand it.
16426 # FIXME: This hack should be removed a few years after 2.60.
16427 ac_datarootdir_hack=; ac_datarootdir_seen=
16428 ac_sed_dataroot='
16429 /datarootdir/ {
16430 p
16431 q
16432 }
16433 /@datadir@/p
16434 /@docdir@/p
16435 /@infodir@/p
16436 /@localedir@/p
16437 /@mandir@/p'
16438 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16439 *datarootdir*) ac_datarootdir_seen=yes;;
16440 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16442 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16443 _ACEOF
16444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16445 ac_datarootdir_hack='
16446 s&@datadir@&$datadir&g
16447 s&@docdir@&$docdir&g
16448 s&@infodir@&$infodir&g
16449 s&@localedir@&$localedir&g
16450 s&@mandir@&$mandir&g
16451 s&\\\${datarootdir}&$datarootdir&g' ;;
16452 esac
16453 _ACEOF
16454
16455 # Neutralize VPATH when `$srcdir' = `.'.
16456 # Shell code in configure.ac might set extrasub.
16457 # FIXME: do we really want to maintain this feature?
16458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16459 ac_sed_extra="$ac_vpsub
16460 $extrasub
16461 _ACEOF
16462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16463 :t
16464 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16465 s|@configure_input@|$ac_sed_conf_input|;t t
16466 s&@top_builddir@&$ac_top_builddir_sub&;t t
16467 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16468 s&@srcdir@&$ac_srcdir&;t t
16469 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16470 s&@top_srcdir@&$ac_top_srcdir&;t t
16471 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16472 s&@builddir@&$ac_builddir&;t t
16473 s&@abs_builddir@&$ac_abs_builddir&;t t
16474 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16475 s&@INSTALL@&$ac_INSTALL&;t t
16476 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16477 $ac_datarootdir_hack
16478 "
16479 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16480 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16481
16482 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16483 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16484 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16485 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16487 which seems to be undefined. Please make sure it is defined" >&5
16488 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16489 which seems to be undefined. Please make sure it is defined" >&2;}
16490
16491 rm -f "$ac_tmp/stdin"
16492 case $ac_file in
16493 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16494 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16495 esac \
16496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16497 ;;
16498 :H)
16499 #
16500 # CONFIG_HEADER
16501 #
16502 if test x"$ac_file" != x-; then
16503 {
16504 $as_echo "/* $configure_input */" \
16505 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16506 } >"$ac_tmp/config.h" \
16507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16508 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16510 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16511 else
16512 rm -f "$ac_file"
16513 mv "$ac_tmp/config.h" "$ac_file" \
16514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16515 fi
16516 else
16517 $as_echo "/* $configure_input */" \
16518 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16519 || as_fn_error $? "could not create -" "$LINENO" 5
16520 fi
16521 # Compute "$ac_file"'s index in $config_headers.
16522 _am_arg="$ac_file"
16523 _am_stamp_count=1
16524 for _am_header in $config_headers :; do
16525 case $_am_header in
16526 $_am_arg | $_am_arg:* )
16527 break ;;
16528 * )
16529 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16530 esac
16531 done
16532 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16533 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16534 X"$_am_arg" : 'X\(//\)[^/]' \| \
16535 X"$_am_arg" : 'X\(//\)$' \| \
16536 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16537 $as_echo X"$_am_arg" |
16538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16539 s//\1/
16540 q
16541 }
16542 /^X\(\/\/\)[^/].*/{
16543 s//\1/
16544 q
16545 }
16546 /^X\(\/\/\)$/{
16547 s//\1/
16548 q
16549 }
16550 /^X\(\/\).*/{
16551 s//\1/
16552 q
16553 }
16554 s/.*/./; q'`/stamp-h$_am_stamp_count
16555 ;;
16556
16557 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16558 $as_echo "$as_me: executing $ac_file commands" >&6;}
16559 ;;
16560 esac
16561
16562
16563 case $ac_file$ac_mode in
16564 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16565 # Older Autoconf quotes --file arguments for eval, but not when files
16566 # are listed without --file. Let's play safe and only enable the eval
16567 # if we detect the quoting.
16568 # TODO: see whether this extra hack can be removed once we start
16569 # requiring Autoconf 2.70 or later.
16570 case $CONFIG_FILES in #(
16571 *\'*) :
16572 eval set x "$CONFIG_FILES" ;; #(
16573 *) :
16574 set x $CONFIG_FILES ;; #(
16575 *) :
16576 ;;
16577 esac
16578 shift
16579 # Used to flag and report bootstrapping failures.
16580 am_rc=0
16581 for am_mf
16582 do
16583 # Strip MF so we end up with the name of the file.
16584 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
16585 # Check whether this is an Automake generated Makefile which includes
16586 # dependency-tracking related rules and includes.
16587 # Grep'ing the whole file directly is not great: AIX grep has a line
16588 # limit of 2048, but all sed's we know have understand at least 4000.
16589 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16590 || continue
16591 am_dirpart=`$as_dirname -- "$am_mf" ||
16592 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16593 X"$am_mf" : 'X\(//\)[^/]' \| \
16594 X"$am_mf" : 'X\(//\)$' \| \
16595 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16596 $as_echo X"$am_mf" |
16597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16598 s//\1/
16599 q
16600 }
16601 /^X\(\/\/\)[^/].*/{
16602 s//\1/
16603 q
16604 }
16605 /^X\(\/\/\)$/{
16606 s//\1/
16607 q
16608 }
16609 /^X\(\/\).*/{
16610 s//\1/
16611 q
16612 }
16613 s/.*/./; q'`
16614 am_filepart=`$as_basename -- "$am_mf" ||
16615 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16616 X"$am_mf" : 'X\(//\)$' \| \
16617 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16618 $as_echo X/"$am_mf" |
16619 sed '/^.*\/\([^/][^/]*\)\/*$/{
16620 s//\1/
16621 q
16622 }
16623 /^X\/\(\/\/\)$/{
16624 s//\1/
16625 q
16626 }
16627 /^X\/\(\/\).*/{
16628 s//\1/
16629 q
16630 }
16631 s/.*/./; q'`
16632 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16633 && sed -e '/# am--include-marker/d' "$am_filepart" \
16634 | $MAKE -f - am--depfiles" >&5
16635 (cd "$am_dirpart" \
16636 && sed -e '/# am--include-marker/d' "$am_filepart" \
16637 | $MAKE -f - am--depfiles) >&5 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } || am_rc=$?
16641 done
16642 if test $am_rc -ne 0; then
16643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16645 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16646 for automatic dependency tracking. Try re-running configure with the
16647 '--disable-dependency-tracking' option to at least be able to build
16648 the package (albeit without support for automatic dependency tracking).
16649 See \`config.log' for more details" "$LINENO" 5; }
16650 fi
16651 { am_dirpart=; unset am_dirpart;}
16652 { am_filepart=; unset am_filepart;}
16653 { am_mf=; unset am_mf;}
16654 { am_rc=; unset am_rc;}
16655 rm -f conftest-deps.mk
16656 }
16657 ;;
16658 "libtool":C)
16659
16660 # See if we are running on zsh, and set the options that allow our
16661 # commands through without removal of \ escapes.
16662 if test -n "${ZSH_VERSION+set}"; then
16663 setopt NO_GLOB_SUBST
16664 fi
16665
16666 cfgfile=${ofile}T
16667 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16668 $RM "$cfgfile"
16669
16670 cat <<_LT_EOF >> "$cfgfile"
16671 #! $SHELL
16672 # Generated automatically by $as_me ($PACKAGE) $VERSION
16673 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16674
16675 # Provide generalized library-building support services.
16676 # Written by Gordon Matzigkeit, 1996
16677
16678 # Copyright (C) 2014 Free Software Foundation, Inc.
16679 # This is free software; see the source for copying conditions. There is NO
16680 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16681
16682 # GNU Libtool is free software; you can redistribute it and/or modify
16683 # it under the terms of the GNU General Public License as published by
16684 # the Free Software Foundation; either version 2 of of the License, or
16685 # (at your option) any later version.
16686 #
16687 # As a special exception to the GNU General Public License, if you
16688 # distribute this file as part of a program or library that is built
16689 # using GNU Libtool, you may include this file under the same
16690 # distribution terms that you use for the rest of that program.
16691 #
16692 # GNU Libtool is distributed in the hope that it will be useful, but
16693 # WITHOUT ANY WARRANTY; without even the implied warranty of
16694 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16695 # GNU General Public License for more details.
16696 #
16697 # You should have received a copy of the GNU General Public License
16698 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16699
16700
16701 # The names of the tagged configurations supported by this script.
16702 available_tags=''
16703
16704 # Configured defaults for sys_lib_dlsearch_path munging.
16705 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16706
16707 # ### BEGIN LIBTOOL CONFIG
16708
16709 # Which release of libtool.m4 was used?
16710 macro_version=$macro_version
16711 macro_revision=$macro_revision
16712
16713 # Whether or not to build shared libraries.
16714 build_libtool_libs=$enable_shared
16715
16716 # Whether or not to build static libraries.
16717 build_old_libs=$enable_static
16718
16719 # What type of objects to build.
16720 pic_mode=$pic_mode
16721
16722 # Whether or not to optimize for fast installation.
16723 fast_install=$enable_fast_install
16724
16725 # Shared archive member basename,for filename based shared library versioning on AIX.
16726 shared_archive_member_spec=$shared_archive_member_spec
16727
16728 # Shell to use when invoking shell scripts.
16729 SHELL=$lt_SHELL
16730
16731 # An echo program that protects backslashes.
16732 ECHO=$lt_ECHO
16733
16734 # The PATH separator for the build system.
16735 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16736
16737 # The host system.
16738 host_alias=$host_alias
16739 host=$host
16740 host_os=$host_os
16741
16742 # The build system.
16743 build_alias=$build_alias
16744 build=$build
16745 build_os=$build_os
16746
16747 # A sed program that does not truncate output.
16748 SED=$lt_SED
16749
16750 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16751 Xsed="\$SED -e 1s/^X//"
16752
16753 # A grep program that handles long lines.
16754 GREP=$lt_GREP
16755
16756 # An ERE matcher.
16757 EGREP=$lt_EGREP
16758
16759 # A literal string matcher.
16760 FGREP=$lt_FGREP
16761
16762 # A BSD- or MS-compatible name lister.
16763 NM=$lt_NM
16764
16765 # Whether we need soft or hard links.
16766 LN_S=$lt_LN_S
16767
16768 # What is the maximum length of a command?
16769 max_cmd_len=$max_cmd_len
16770
16771 # Object file suffix (normally "o").
16772 objext=$ac_objext
16773
16774 # Executable file suffix (normally "").
16775 exeext=$exeext
16776
16777 # whether the shell understands "unset".
16778 lt_unset=$lt_unset
16779
16780 # turn spaces into newlines.
16781 SP2NL=$lt_lt_SP2NL
16782
16783 # turn newlines into spaces.
16784 NL2SP=$lt_lt_NL2SP
16785
16786 # convert \$build file names to \$host format.
16787 to_host_file_cmd=$lt_cv_to_host_file_cmd
16788
16789 # convert \$build files to toolchain format.
16790 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16791
16792 # An object symbol dumper.
16793 OBJDUMP=$lt_OBJDUMP
16794
16795 # Method to check whether dependent libraries are shared objects.
16796 deplibs_check_method=$lt_deplibs_check_method
16797
16798 # Command to use when deplibs_check_method = "file_magic".
16799 file_magic_cmd=$lt_file_magic_cmd
16800
16801 # How to find potential files when deplibs_check_method = "file_magic".
16802 file_magic_glob=$lt_file_magic_glob
16803
16804 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16805 want_nocaseglob=$lt_want_nocaseglob
16806
16807 # DLL creation program.
16808 DLLTOOL=$lt_DLLTOOL
16809
16810 # Command to associate shared and link libraries.
16811 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16812
16813 # The archiver.
16814 AR=$lt_AR
16815
16816 # Flags to create an archive.
16817 AR_FLAGS=$lt_AR_FLAGS
16818
16819 # How to feed a file listing to the archiver.
16820 archiver_list_spec=$lt_archiver_list_spec
16821
16822 # A symbol stripping program.
16823 STRIP=$lt_STRIP
16824
16825 # Commands used to install an old-style archive.
16826 RANLIB=$lt_RANLIB
16827 old_postinstall_cmds=$lt_old_postinstall_cmds
16828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16829
16830 # Whether to use a lock for old archive extraction.
16831 lock_old_archive_extraction=$lock_old_archive_extraction
16832
16833 # A C compiler.
16834 LTCC=$lt_CC
16835
16836 # LTCC compiler flags.
16837 LTCFLAGS=$lt_CFLAGS
16838
16839 # Take the output of nm and produce a listing of raw symbols and C names.
16840 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16841
16842 # Transform the output of nm in a proper C declaration.
16843 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16844
16845 # Transform the output of nm into a list of symbols to manually relocate.
16846 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16847
16848 # Transform the output of nm in a C name address pair.
16849 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16850
16851 # Transform the output of nm in a C name address pair when lib prefix is needed.
16852 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16853
16854 # The name lister interface.
16855 nm_interface=$lt_lt_cv_nm_interface
16856
16857 # Specify filename containing input files for \$NM.
16858 nm_file_list_spec=$lt_nm_file_list_spec
16859
16860 # The root where to search for dependent libraries,and where our libraries should be installed.
16861 lt_sysroot=$lt_sysroot
16862
16863 # Command to truncate a binary pipe.
16864 lt_truncate_bin=$lt_lt_cv_truncate_bin
16865
16866 # The name of the directory that contains temporary libtool files.
16867 objdir=$objdir
16868
16869 # Used to examine libraries when file_magic_cmd begins with "file".
16870 MAGIC_CMD=$MAGIC_CMD
16871
16872 # Must we lock files when doing compilation?
16873 need_locks=$lt_need_locks
16874
16875 # Manifest tool.
16876 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16877
16878 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16879 DSYMUTIL=$lt_DSYMUTIL
16880
16881 # Tool to change global to local symbols on Mac OS X.
16882 NMEDIT=$lt_NMEDIT
16883
16884 # Tool to manipulate fat objects and archives on Mac OS X.
16885 LIPO=$lt_LIPO
16886
16887 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16888 OTOOL=$lt_OTOOL
16889
16890 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16891 OTOOL64=$lt_OTOOL64
16892
16893 # Old archive suffix (normally "a").
16894 libext=$libext
16895
16896 # Shared library suffix (normally ".so").
16897 shrext_cmds=$lt_shrext_cmds
16898
16899 # The commands to extract the exported symbol list from a shared archive.
16900 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16901
16902 # Variables whose values should be saved in libtool wrapper scripts and
16903 # restored at link time.
16904 variables_saved_for_relink=$lt_variables_saved_for_relink
16905
16906 # Do we need the "lib" prefix for modules?
16907 need_lib_prefix=$need_lib_prefix
16908
16909 # Do we need a version for libraries?
16910 need_version=$need_version
16911
16912 # Library versioning type.
16913 version_type=$version_type
16914
16915 # Shared library runtime path variable.
16916 runpath_var=$runpath_var
16917
16918 # Shared library path variable.
16919 shlibpath_var=$shlibpath_var
16920
16921 # Is shlibpath searched before the hard-coded library search path?
16922 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16923
16924 # Format of library name prefix.
16925 libname_spec=$lt_libname_spec
16926
16927 # List of archive names. First name is the real one, the rest are links.
16928 # The last name is the one that the linker finds with -lNAME
16929 library_names_spec=$lt_library_names_spec
16930
16931 # The coded name of the library, if different from the real name.
16932 soname_spec=$lt_soname_spec
16933
16934 # Permission mode override for installation of shared libraries.
16935 install_override_mode=$lt_install_override_mode
16936
16937 # Command to use after installation of a shared archive.
16938 postinstall_cmds=$lt_postinstall_cmds
16939
16940 # Command to use after uninstallation of a shared archive.
16941 postuninstall_cmds=$lt_postuninstall_cmds
16942
16943 # Commands used to finish a libtool library installation in a directory.
16944 finish_cmds=$lt_finish_cmds
16945
16946 # As "finish_cmds", except a single script fragment to be evaled but
16947 # not shown.
16948 finish_eval=$lt_finish_eval
16949
16950 # Whether we should hardcode library paths into libraries.
16951 hardcode_into_libs=$hardcode_into_libs
16952
16953 # Compile-time system search path for libraries.
16954 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16955
16956 # Detected run-time system search path for libraries.
16957 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16958
16959 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16960 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16961
16962 # Whether dlopen is supported.
16963 dlopen_support=$enable_dlopen
16964
16965 # Whether dlopen of programs is supported.
16966 dlopen_self=$enable_dlopen_self
16967
16968 # Whether dlopen of statically linked programs is supported.
16969 dlopen_self_static=$enable_dlopen_self_static
16970
16971 # Commands to strip libraries.
16972 old_striplib=$lt_old_striplib
16973 striplib=$lt_striplib
16974
16975
16976 # The linker used to build libraries.
16977 LD=$lt_LD
16978
16979 # How to create reloadable object files.
16980 reload_flag=$lt_reload_flag
16981 reload_cmds=$lt_reload_cmds
16982
16983 # Commands used to build an old-style archive.
16984 old_archive_cmds=$lt_old_archive_cmds
16985
16986 # A language specific compiler.
16987 CC=$lt_compiler
16988
16989 # Is the compiler the GNU compiler?
16990 with_gcc=$GCC
16991
16992 # Compiler flag to turn off builtin functions.
16993 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16994
16995 # Additional compiler flags for building library objects.
16996 pic_flag=$lt_lt_prog_compiler_pic
16997
16998 # How to pass a linker flag through the compiler.
16999 wl=$lt_lt_prog_compiler_wl
17000
17001 # Compiler flag to prevent dynamic linking.
17002 link_static_flag=$lt_lt_prog_compiler_static
17003
17004 # Does compiler simultaneously support -c and -o options?
17005 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17006
17007 # Whether or not to add -lc for building shared libraries.
17008 build_libtool_need_lc=$archive_cmds_need_lc
17009
17010 # Whether or not to disallow shared libs when runtime libs are static.
17011 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17012
17013 # Compiler flag to allow reflexive dlopens.
17014 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17015
17016 # Compiler flag to generate shared objects directly from archives.
17017 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17018
17019 # Whether the compiler copes with passing no objects directly.
17020 compiler_needs_object=$lt_compiler_needs_object
17021
17022 # Create an old-style archive from a shared archive.
17023 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17024
17025 # Create a temporary old-style archive to link instead of a shared archive.
17026 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17027
17028 # Commands used to build a shared archive.
17029 archive_cmds=$lt_archive_cmds
17030 archive_expsym_cmds=$lt_archive_expsym_cmds
17031
17032 # Commands used to build a loadable module if different from building
17033 # a shared archive.
17034 module_cmds=$lt_module_cmds
17035 module_expsym_cmds=$lt_module_expsym_cmds
17036
17037 # Whether we are building with GNU ld or not.
17038 with_gnu_ld=$lt_with_gnu_ld
17039
17040 # Flag that allows shared libraries with undefined symbols to be built.
17041 allow_undefined_flag=$lt_allow_undefined_flag
17042
17043 # Flag that enforces no undefined symbols.
17044 no_undefined_flag=$lt_no_undefined_flag
17045
17046 # Flag to hardcode \$libdir into a binary during linking.
17047 # This must work even if \$libdir does not exist
17048 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17049
17050 # Whether we need a single "-rpath" flag with a separated argument.
17051 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17052
17053 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17054 # DIR into the resulting binary.
17055 hardcode_direct=$hardcode_direct
17056
17057 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17058 # DIR into the resulting binary and the resulting library dependency is
17059 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17060 # library is relocated.
17061 hardcode_direct_absolute=$hardcode_direct_absolute
17062
17063 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17064 # into the resulting binary.
17065 hardcode_minus_L=$hardcode_minus_L
17066
17067 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17068 # into the resulting binary.
17069 hardcode_shlibpath_var=$hardcode_shlibpath_var
17070
17071 # Set to "yes" if building a shared library automatically hardcodes DIR
17072 # into the library and all subsequent libraries and executables linked
17073 # against it.
17074 hardcode_automatic=$hardcode_automatic
17075
17076 # Set to yes if linker adds runtime paths of dependent libraries
17077 # to runtime path list.
17078 inherit_rpath=$inherit_rpath
17079
17080 # Whether libtool must link a program against all its dependency libraries.
17081 link_all_deplibs=$link_all_deplibs
17082
17083 # Set to "yes" if exported symbols are required.
17084 always_export_symbols=$always_export_symbols
17085
17086 # The commands to list exported symbols.
17087 export_symbols_cmds=$lt_export_symbols_cmds
17088
17089 # Symbols that should not be listed in the preloaded symbols.
17090 exclude_expsyms=$lt_exclude_expsyms
17091
17092 # Symbols that must always be exported.
17093 include_expsyms=$lt_include_expsyms
17094
17095 # Commands necessary for linking programs (against libraries) with templates.
17096 prelink_cmds=$lt_prelink_cmds
17097
17098 # Commands necessary for finishing linking programs.
17099 postlink_cmds=$lt_postlink_cmds
17100
17101 # Specify filename containing input files.
17102 file_list_spec=$lt_file_list_spec
17103
17104 # How to hardcode a shared library path into an executable.
17105 hardcode_action=$hardcode_action
17106
17107 # ### END LIBTOOL CONFIG
17108
17109 _LT_EOF
17110
17111 cat <<'_LT_EOF' >> "$cfgfile"
17112
17113 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17114
17115 # func_munge_path_list VARIABLE PATH
17116 # -----------------------------------
17117 # VARIABLE is name of variable containing _space_ separated list of
17118 # directories to be munged by the contents of PATH, which is string
17119 # having a format:
17120 # "DIR[:DIR]:"
17121 # string "DIR[ DIR]" will be prepended to VARIABLE
17122 # ":DIR[:DIR]"
17123 # string "DIR[ DIR]" will be appended to VARIABLE
17124 # "DIRP[:DIRP]::[DIRA:]DIRA"
17125 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17126 # "DIRA[ DIRA]" will be appended to VARIABLE
17127 # "DIR[:DIR]"
17128 # VARIABLE will be replaced by "DIR[ DIR]"
17129 func_munge_path_list ()
17130 {
17131 case x$2 in
17132 x)
17133 ;;
17134 *:)
17135 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17136 ;;
17137 x:*)
17138 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17139 ;;
17140 *::*)
17141 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17142 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17143 ;;
17144 *)
17145 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17146 ;;
17147 esac
17148 }
17149
17150
17151 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17152 func_cc_basename ()
17153 {
17154 for cc_temp in $*""; do
17155 case $cc_temp in
17156 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17157 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17158 \-*) ;;
17159 *) break;;
17160 esac
17161 done
17162 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17163 }
17164
17165
17166 # ### END FUNCTIONS SHARED WITH CONFIGURE
17167
17168 _LT_EOF
17169
17170 case $host_os in
17171 aix3*)
17172 cat <<\_LT_EOF >> "$cfgfile"
17173 # AIX sometimes has problems with the GCC collect2 program. For some
17174 # reason, if we set the COLLECT_NAMES environment variable, the problems
17175 # vanish in a puff of smoke.
17176 if test set != "${COLLECT_NAMES+set}"; then
17177 COLLECT_NAMES=
17178 export COLLECT_NAMES
17179 fi
17180 _LT_EOF
17181 ;;
17182 esac
17183
17184
17185 ltmain=$ac_aux_dir/ltmain.sh
17186
17187
17188 # We use sed instead of cat because bash on DJGPP gets confused if
17189 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17190 # text mode, it properly converts lines to CR/LF. This bash problem
17191 # is reportedly fixed, but why not run on old versions too?
17192 sed '$q' "$ltmain" >> "$cfgfile" \
17193 || (rm -f "$cfgfile"; exit 1)
17194
17195 mv -f "$cfgfile" "$ofile" ||
17196 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17197 chmod +x "$ofile"
17198
17199 ;;
17200
17201 esac
17202 done # for ac_tag
17203
17204
17205 as_fn_exit 0
17206 _ACEOF
17207 ac_clean_files=$ac_clean_files_save
17208
17209 test $ac_write_fail = 0 ||
17210 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17211
17212
17213 # configure is writing to config.log, and then calls config.status.
17214 # config.status does its own redirection, appending to config.log.
17215 # Unfortunately, on DOS this fails, as config.log is still kept open
17216 # by configure, so config.status won't be able to write to it; its
17217 # output is simply discarded. So we exec the FD to /dev/null,
17218 # effectively closing config.log, so it can be properly (re)opened and
17219 # appended to by config.status. When coming back to configure, we
17220 # need to make the FD available again.
17221 if test "$no_create" != yes; then
17222 ac_cs_success=:
17223 ac_config_status_args=
17224 test "$silent" = yes &&
17225 ac_config_status_args="$ac_config_status_args --quiet"
17226 exec 5>/dev/null
17227 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17228 exec 5>>config.log
17229 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17230 # would make configure fail if this is the last instruction.
17231 $ac_cs_success || as_fn_exit 1
17232 fi
17233 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17235 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17236 fi
17237
17238
17239
17240 echo "###############################################################################"
17241 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
17242 echo
17243 echo "HOPM will be installed in ${prefix}. To change this, run:"
17244 echo " ./configure --prefix=DIRECTORY"
17245 echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:executable
svn:keywords Id