ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
Revision: 8578
Committed: Sun Oct 14 09:32:34 2018 UTC (7 years, 9 months ago) by michael
File size: 495573 byte(s)
Log Message:
- Recreate autogenerated files

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 8559 2018-09-23 09:25:41Z 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__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 am__untar
702 am__tar
703 AMTAR
704 am__leading_dot
705 SET_MAKE
706 AWK
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 STRIP
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
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 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_silent_rules
766 enable_maintainer_mode
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_aix_soname
773 with_gnu_ld
774 with_sysroot
775 enable_libtool_lock
776 enable_openssl
777 enable_assert
778 enable_warnings
779 enable_efence
780 '
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 LT_SYS_LIBRARY_PATH
790 CPP
791 YACC
792 YFLAGS'
793
794
795 # Initialize some variables set by options.
796 ac_init_help=
797 ac_init_version=false
798 ac_unrecognized_opts=
799 ac_unrecognized_sep=
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
802 cache_file=/dev/null
803 exec_prefix=NONE
804 no_create=
805 no_recursion=
806 prefix=NONE
807 program_prefix=NONE
808 program_suffix=NONE
809 program_transform_name=s,x,x,
810 silent=
811 site=
812 srcdir=
813 verbose=
814 x_includes=NONE
815 x_libraries=NONE
816
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
923
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1088
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1099
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1104
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1109
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1116
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1121
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1124
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1127
1128 -with-* | --with-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid package name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1136 *"
1137 "with_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval with_$ac_useropt=\$ac_optarg ;;
1143
1144 -without-* | --without-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1152 *"
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=no ;;
1159
1160 --x)
1161 # Obsolete; use --with-x.
1162 with_x=yes ;;
1163
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1170
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1177
1178 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1179 Try \`$0 --help' for more information"
1180 ;;
1181
1182 *=*)
1183 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1184 # Reject names that are not valid shell variable names.
1185 case $ac_envvar in #(
1186 '' | [0-9]* | *[!_$as_cr_alnum]* )
1187 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188 esac
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1191
1192 *)
1193 # FIXME: should be removed in autoconf 3.0.
1194 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 ;;
1199
1200 esac
1201 done
1202
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 as_fn_error $? "missing argument to $ac_option"
1206 fi
1207
1208 if test -n "$ac_unrecognized_opts"; then
1209 case $enable_option_checking in
1210 no) ;;
1211 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1212 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1213 esac
1214 fi
1215
1216 # Check all directory arguments for consistency.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1221 do
1222 eval ac_val=\$$ac_var
1223 # Remove trailing slashes.
1224 case $ac_val in
1225 */ )
1226 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1227 eval $ac_var=\$ac_val;;
1228 esac
1229 # Be sure to have absolute directory names.
1230 case $ac_val in
1231 [\\/$]* | ?:[\\/]* ) continue;;
1232 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 esac
1234 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 done
1236
1237 # There might be people who depend on the old broken behavior: `$host'
1238 # used to hold the argument of --host etc.
1239 # FIXME: To remove some day.
1240 build=$build_alias
1241 host=$host_alias
1242 target=$target_alias
1243
1244 # FIXME: To remove some day.
1245 if test "x$host_alias" != x; then
1246 if test "x$build_alias" = x; then
1247 cross_compiling=maybe
1248 elif test "x$build_alias" != "x$host_alias"; then
1249 cross_compiling=yes
1250 fi
1251 fi
1252
1253 ac_tool_prefix=
1254 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255
1256 test "$silent" = yes && exec 6>/dev/null
1257
1258
1259 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1260 ac_ls_di=`ls -di .` &&
1261 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1262 as_fn_error $? "working directory cannot be determined"
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264 as_fn_error $? "pwd does not report name of working directory"
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269 ac_srcdir_defaulted=yes
1270 # Try the directory containing this script, then the parent directory.
1271 ac_confdir=`$as_dirname -- "$as_myself" ||
1272 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273 X"$as_myself" : 'X\(//\)[^/]' \| \
1274 X"$as_myself" : 'X\(//\)$' \| \
1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1276 $as_echo X"$as_myself" |
1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\/\)[^/].*/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)$/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\).*/{
1290 s//\1/
1291 q
1292 }
1293 s/.*/./; q'`
1294 srcdir=$ac_confdir
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 srcdir=..
1297 fi
1298 else
1299 ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1304 fi
1305 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 ac_abs_confdir=`(
1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1312 fi
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1325
1326 #
1327 # Report the --help message.
1328 #
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures hopm TRUNK to adapt to many kinds of systems.
1334
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1336
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1339
1340 Defaults for the options are specified in brackets.
1341
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking ...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1358
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1363
1364 For better control, use the options below.
1365
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1387
1388 cat <<\_ACEOF
1389
1390 Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 _ACEOF
1399 fi
1400
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of hopm TRUNK:";;
1404 esac
1405 cat <<\_ACEOF
1406
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-silent-rules less verbose build output (undo: "make V=1")
1412 --disable-silent-rules verbose build output (undo: "make V=0")
1413 --enable-maintainer-mode
1414 enable make rules and dependencies not useful (and
1415 sometimes confusing) to the casual installer
1416 --enable-dependency-tracking
1417 do not reject slow dependency extractors
1418 --disable-dependency-tracking
1419 speeds up one-time build
1420 --enable-shared[=PKGS] build shared libraries [default=yes]
1421 --enable-static[=PKGS] build static libraries [default=yes]
1422 --enable-fast-install[=PKGS]
1423 optimize for fast installation [default=yes]
1424 --disable-libtool-lock avoid locking (might break parallel builds)
1425 --enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional).
1426 --disable-openssl Disable LibreSSL/OpenSSL support.
1427 --enable-assert Enable assert() statements
1428 --enable-warnings Enable compiler warnings.
1429 --enable-efence Enable linking with Electric Fence 'efence' memory
1430 debugger library.
1431
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-aix-soname=aix|svr4|both
1438 shared library versioning (aka "SONAME") variant to
1439 provide on AIX, [default=aix].
1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1442 compiler's sysroot if not specified).
1443
1444 Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 LT_SYS_LIBRARY_PATH
1453 User-defined run-time library search path.
1454 CPP C preprocessor
1455 YACC The `Yet Another Compiler Compiler' implementation to use.
1456 Defaults to the first program found out of: `bison -y', `byacc',
1457 `yacc'.
1458 YFLAGS The list of arguments that will be passed by default to $YACC.
1459 This script will default YFLAGS to the empty string to avoid a
1460 default value of `-d' given by some make applications.
1461
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1464
1465 Report bugs to <bugs@ircd-hybrid.org>.
1466 _ACEOF
1467 ac_status=$?
1468 fi
1469
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 continue
1476 ac_builddir=.
1477
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *)
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1493
1494 case $srcdir in
1495 .) # We are building in place.
1496 ac_srcdir=.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1518 else
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 fi || ac_status=$?
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1522 done
1523 fi
1524
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527 cat <<\_ACEOF
1528 hopm configure TRUNK
1529 generated by GNU Autoconf 2.69
1530
1531 Copyright (C) 2012 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534 _ACEOF
1535 exit
1536 fi
1537
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1541
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1546 {
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573 ac_retval=1
1574 fi
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_compile
1579
1580 # ac_fn_c_try_link LINENO
1581 # -----------------------
1582 # Try to link conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_link ()
1584 {
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext conftest$ac_exeext
1587 if { { ac_try="$ac_link"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_link") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest$ac_exeext && {
1606 test "$cross_compiling" = yes ||
1607 test -x conftest$ac_exeext
1608 }; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1617 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1618 # interfere with the next link command; also delete a directory that is
1619 # left behind by Apple's compiler. We do this before executing the actions.
1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_link
1625
1626 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1627 # -------------------------------------------------------
1628 # Tests whether HEADER exists and can be compiled using the include files in
1629 # INCLUDES, setting the cache variable VAR accordingly.
1630 ac_fn_c_check_header_compile ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634 $as_echo_n "checking for $2... " >&6; }
1635 if eval \${$3+:} false; then :
1636 $as_echo_n "(cached) " >&6
1637 else
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 $4
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 eval "$3=yes"
1645 else
1646 eval "$3=no"
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 fi
1650 eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654
1655 } # ac_fn_c_check_header_compile
1656
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_cpp ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } > conftest.i && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688 fi
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_c_try_cpp
1693
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=$ac_status
1729 fi
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_run
1735
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746 else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1751 #define $2 innocuous_$2
1752
1753 /* System header to define __stub macros and hopefully few prototypes,
1754 which can conflict with char $2 (); below.
1755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1756 <limits.h> exists even on freestanding compilers. */
1757
1758 #ifdef __STDC__
1759 # include <limits.h>
1760 #else
1761 # include <assert.h>
1762 #endif
1763
1764 #undef $2
1765
1766 /* Override any GCC internal prototype to avoid an error.
1767 Use char because int might match the return type of a GCC
1768 builtin and then its argument prototype would still apply. */
1769 #ifdef __cplusplus
1770 extern "C"
1771 #endif
1772 char $2 ();
1773 /* The GNU C library defines this for functions which it implements
1774 to always fail with ENOSYS. Some functions are actually named
1775 something starting with __ and the normal name is an alias. */
1776 #if defined __stub_$2 || defined __stub___$2
1777 choke me
1778 #endif
1779
1780 int
1781 main ()
1782 {
1783 return $2 ();
1784 ;
1785 return 0;
1786 }
1787 _ACEOF
1788 if ac_fn_c_try_link "$LINENO"; then :
1789 eval "$3=yes"
1790 else
1791 eval "$3=no"
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext \
1794 conftest$ac_exeext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_c_check_func
1802 cat >config.log <<_ACEOF
1803 This file contains any messages produced by compilers while
1804 running configure, to aid debugging if configure makes a mistake.
1805
1806 It was created by hopm $as_me TRUNK, which was
1807 generated by GNU Autoconf 2.69. Invocation command line was
1808
1809 $ $0 $@
1810
1811 _ACEOF
1812 exec 5>>config.log
1813 {
1814 cat <<_ASUNAME
1815 ## --------- ##
1816 ## Platform. ##
1817 ## --------- ##
1818
1819 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1820 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1821 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1822 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1823 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1824
1825 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1826 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1827
1828 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1829 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1830 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1831 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1832 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1833 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1834 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1835
1836 _ASUNAME
1837
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841 IFS=$as_save_IFS
1842 test -z "$as_dir" && as_dir=.
1843 $as_echo "PATH: $as_dir"
1844 done
1845 IFS=$as_save_IFS
1846
1847 } >&5
1848
1849 cat >&5 <<_ACEOF
1850
1851
1852 ## ----------- ##
1853 ## Core tests. ##
1854 ## ----------- ##
1855
1856 _ACEOF
1857
1858
1859 # Keep a trace of the command line.
1860 # Strip out --no-create and --no-recursion so they do not pile up.
1861 # Strip out --silent because we don't want to record it for future runs.
1862 # Also quote any args containing shell meta-characters.
1863 # Make two passes to allow for proper duplicate-argument suppression.
1864 ac_configure_args=
1865 ac_configure_args0=
1866 ac_configure_args1=
1867 ac_must_keep_next=false
1868 for ac_pass in 1 2
1869 do
1870 for ac_arg
1871 do
1872 case $ac_arg in
1873 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1875 | -silent | --silent | --silen | --sile | --sil)
1876 continue ;;
1877 *\'*)
1878 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1879 esac
1880 case $ac_pass in
1881 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1882 2)
1883 as_fn_append ac_configure_args1 " '$ac_arg'"
1884 if test $ac_must_keep_next = true; then
1885 ac_must_keep_next=false # Got value, back to normal.
1886 else
1887 case $ac_arg in
1888 *=* | --config-cache | -C | -disable-* | --disable-* \
1889 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1890 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1891 | -with-* | --with-* | -without-* | --without-* | --x)
1892 case "$ac_configure_args0 " in
1893 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1894 esac
1895 ;;
1896 -* ) ac_must_keep_next=true ;;
1897 esac
1898 fi
1899 as_fn_append ac_configure_args " '$ac_arg'"
1900 ;;
1901 esac
1902 done
1903 done
1904 { ac_configure_args0=; unset ac_configure_args0;}
1905 { ac_configure_args1=; unset ac_configure_args1;}
1906
1907 # When interrupted or exit'd, cleanup temporary files, and complete
1908 # config.log. We remove comments because anyway the quotes in there
1909 # would cause problems or look ugly.
1910 # WARNING: Use '\'' to represent an apostrophe within the trap.
1911 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1912 trap 'exit_status=$?
1913 # Save into config.log some information that might help in debugging.
1914 {
1915 echo
1916
1917 $as_echo "## ---------------- ##
1918 ## Cache variables. ##
1919 ## ---------------- ##"
1920 echo
1921 # The following way of writing the cache mishandles newlines in values,
1922 (
1923 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1924 eval ac_val=\$$ac_var
1925 case $ac_val in #(
1926 *${as_nl}*)
1927 case $ac_var in #(
1928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1930 esac
1931 case $ac_var in #(
1932 _ | IFS | as_nl) ;; #(
1933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1934 *) { eval $ac_var=; unset $ac_var;} ;;
1935 esac ;;
1936 esac
1937 done
1938 (set) 2>&1 |
1939 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1940 *${as_nl}ac_space=\ *)
1941 sed -n \
1942 "s/'\''/'\''\\\\'\'''\''/g;
1943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1944 ;; #(
1945 *)
1946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1947 ;;
1948 esac |
1949 sort
1950 )
1951 echo
1952
1953 $as_echo "## ----------------- ##
1954 ## Output variables. ##
1955 ## ----------------- ##"
1956 echo
1957 for ac_var in $ac_subst_vars
1958 do
1959 eval ac_val=\$$ac_var
1960 case $ac_val in
1961 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 esac
1963 $as_echo "$ac_var='\''$ac_val'\''"
1964 done | sort
1965 echo
1966
1967 if test -n "$ac_subst_files"; then
1968 $as_echo "## ------------------- ##
1969 ## File substitutions. ##
1970 ## ------------------- ##"
1971 echo
1972 for ac_var in $ac_subst_files
1973 do
1974 eval ac_val=\$$ac_var
1975 case $ac_val in
1976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 esac
1978 $as_echo "$ac_var='\''$ac_val'\''"
1979 done | sort
1980 echo
1981 fi
1982
1983 if test -s confdefs.h; then
1984 $as_echo "## ----------- ##
1985 ## confdefs.h. ##
1986 ## ----------- ##"
1987 echo
1988 cat confdefs.h
1989 echo
1990 fi
1991 test "$ac_signal" != 0 &&
1992 $as_echo "$as_me: caught signal $ac_signal"
1993 $as_echo "$as_me: exit $exit_status"
1994 } >&5
1995 rm -f core *.core core.conftest.* &&
1996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1997 exit $exit_status
1998 ' 0
1999 for ac_signal in 1 2 13 15; do
2000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2001 done
2002 ac_signal=0
2003
2004 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2005 rm -f -r conftest* confdefs.h
2006
2007 $as_echo "/* confdefs.h */" > confdefs.h
2008
2009 # Predefined preprocessor variables.
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_NAME "$PACKAGE_NAME"
2013 _ACEOF
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2017 _ACEOF
2018
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2021 _ACEOF
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_STRING "$PACKAGE_STRING"
2025 _ACEOF
2026
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2029 _ACEOF
2030
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_URL "$PACKAGE_URL"
2033 _ACEOF
2034
2035
2036 # Let the site file select an alternate cache file if it wants to.
2037 # Prefer an explicitly selected file to automatically selected ones.
2038 ac_site_file1=NONE
2039 ac_site_file2=NONE
2040 if test -n "$CONFIG_SITE"; then
2041 # We do not want a PATH search for config.site.
2042 case $CONFIG_SITE in #((
2043 -*) ac_site_file1=./$CONFIG_SITE;;
2044 */*) ac_site_file1=$CONFIG_SITE;;
2045 *) ac_site_file1=./$CONFIG_SITE;;
2046 esac
2047 elif test "x$prefix" != xNONE; then
2048 ac_site_file1=$prefix/share/config.site
2049 ac_site_file2=$prefix/etc/config.site
2050 else
2051 ac_site_file1=$ac_default_prefix/share/config.site
2052 ac_site_file2=$ac_default_prefix/etc/config.site
2053 fi
2054 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2055 do
2056 test "x$ac_site_file" = xNONE && continue
2057 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2059 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2060 sed 's/^/| /' "$ac_site_file" >&5
2061 . "$ac_site_file" \
2062 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2064 as_fn_error $? "failed to load site script $ac_site_file
2065 See \`config.log' for more details" "$LINENO" 5; }
2066 fi
2067 done
2068
2069 if test -r "$cache_file"; then
2070 # Some versions of bash will fail to source /dev/null (special files
2071 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2072 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2074 $as_echo "$as_me: loading cache $cache_file" >&6;}
2075 case $cache_file in
2076 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2077 *) . "./$cache_file";;
2078 esac
2079 fi
2080 else
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2082 $as_echo "$as_me: creating cache $cache_file" >&6;}
2083 >$cache_file
2084 fi
2085
2086 # Check that the precious variables saved in the cache have kept the same
2087 # value.
2088 ac_cache_corrupted=false
2089 for ac_var in $ac_precious_vars; do
2090 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2091 eval ac_new_set=\$ac_env_${ac_var}_set
2092 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2093 eval ac_new_val=\$ac_env_${ac_var}_value
2094 case $ac_old_set,$ac_new_set in
2095 set,)
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2097 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2098 ac_cache_corrupted=: ;;
2099 ,set)
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2101 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2102 ac_cache_corrupted=: ;;
2103 ,);;
2104 *)
2105 if test "x$ac_old_val" != "x$ac_new_val"; then
2106 # differences in whitespace do not lead to failure.
2107 ac_old_val_w=`echo x $ac_old_val`
2108 ac_new_val_w=`echo x $ac_new_val`
2109 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2111 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2112 ac_cache_corrupted=:
2113 else
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2115 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2116 eval $ac_var=\$ac_old_val
2117 fi
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2119 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2121 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2122 fi;;
2123 esac
2124 # Pass precious variables to config.status.
2125 if test "$ac_new_set" = set; then
2126 case $ac_new_val in
2127 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2128 *) ac_arg=$ac_var=$ac_new_val ;;
2129 esac
2130 case " $ac_configure_args " in
2131 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2132 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2133 esac
2134 fi
2135 done
2136 if $ac_cache_corrupted; then
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2140 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2141 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2142 fi
2143 ## -------------------- ##
2144 ## Main body of script. ##
2145 ## -------------------- ##
2146
2147 ac_ext=c
2148 ac_cpp='$CPP $CPPFLAGS'
2149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2152
2153
2154 am__api_version='1.15'
2155
2156 ac_aux_dir=
2157 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2158 if test -f "$ac_dir/install-sh"; then
2159 ac_aux_dir=$ac_dir
2160 ac_install_sh="$ac_aux_dir/install-sh -c"
2161 break
2162 elif test -f "$ac_dir/install.sh"; then
2163 ac_aux_dir=$ac_dir
2164 ac_install_sh="$ac_aux_dir/install.sh -c"
2165 break
2166 elif test -f "$ac_dir/shtool"; then
2167 ac_aux_dir=$ac_dir
2168 ac_install_sh="$ac_aux_dir/shtool install -c"
2169 break
2170 fi
2171 done
2172 if test -z "$ac_aux_dir"; then
2173 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2174 fi
2175
2176 # These three variables are undocumented and unsupported,
2177 # and are intended to be withdrawn in a future Autoconf release.
2178 # They can cause serious problems if a builder's source tree is in a directory
2179 # whose full name contains unusual characters.
2180 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2181 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2182 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2183
2184
2185 # Find a good install program. We prefer a C program (faster),
2186 # so one script is as good as another. But avoid the broken or
2187 # incompatible versions:
2188 # SysV /etc/install, /usr/sbin/install
2189 # SunOS /usr/etc/install
2190 # IRIX /sbin/install
2191 # AIX /bin/install
2192 # AmigaOS /C/install, which installs bootblocks on floppy discs
2193 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2194 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2195 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2196 # OS/2's system install, which has a completely different semantic
2197 # ./install, which can be erroneously created by make from ./install.sh.
2198 # Reject install programs that cannot install multiple files.
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2200 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2201 if test -z "$INSTALL"; then
2202 if ${ac_cv_path_install+:} false; then :
2203 $as_echo_n "(cached) " >&6
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 # Account for people who put trailing slashes in PATH elements.
2211 case $as_dir/ in #((
2212 ./ | .// | /[cC]/* | \
2213 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2214 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2215 /usr/ucb/* ) ;;
2216 *)
2217 # OSF1 and SCO ODT 3.0 have their own names for install.
2218 # Don't use installbsd from OSF since it installs stuff as root
2219 # by default.
2220 for ac_prog in ginstall scoinst install; do
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2223 if test $ac_prog = install &&
2224 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2225 # AIX install. It has an incompatible calling convention.
2226 :
2227 elif test $ac_prog = install &&
2228 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2229 # program-specific install script used by HP pwplus--don't use.
2230 :
2231 else
2232 rm -rf conftest.one conftest.two conftest.dir
2233 echo one > conftest.one
2234 echo two > conftest.two
2235 mkdir conftest.dir
2236 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2237 test -s conftest.one && test -s conftest.two &&
2238 test -s conftest.dir/conftest.one &&
2239 test -s conftest.dir/conftest.two
2240 then
2241 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2242 break 3
2243 fi
2244 fi
2245 fi
2246 done
2247 done
2248 ;;
2249 esac
2250
2251 done
2252 IFS=$as_save_IFS
2253
2254 rm -rf conftest.one conftest.two conftest.dir
2255
2256 fi
2257 if test "${ac_cv_path_install+set}" = set; then
2258 INSTALL=$ac_cv_path_install
2259 else
2260 # As a last resort, use the slow shell script. Don't cache a
2261 # value for INSTALL within a source directory, because that will
2262 # break other packages using the cache if that directory is
2263 # removed, or if the value is a relative name.
2264 INSTALL=$ac_install_sh
2265 fi
2266 fi
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2268 $as_echo "$INSTALL" >&6; }
2269
2270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2271 # It thinks the first close brace ends the variable substitution.
2272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2273
2274 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2275
2276 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2277
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2279 $as_echo_n "checking whether build environment is sane... " >&6; }
2280 # Reject unsafe characters in $srcdir or the absolute working directory
2281 # name. Accept space and tab only in the latter.
2282 am_lf='
2283 '
2284 case `pwd` in
2285 *[\\\"\#\$\&\'\`$am_lf]*)
2286 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2287 esac
2288 case $srcdir in
2289 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2290 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2291 esac
2292
2293 # Do 'set' in a subshell so we don't clobber the current shell's
2294 # arguments. Must try -L first in case configure is actually a
2295 # symlink; some systems play weird games with the mod time of symlinks
2296 # (eg FreeBSD returns the mod time of the symlink's containing
2297 # directory).
2298 if (
2299 am_has_slept=no
2300 for am_try in 1 2; do
2301 echo "timestamp, slept: $am_has_slept" > conftest.file
2302 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2303 if test "$*" = "X"; then
2304 # -L didn't work.
2305 set X `ls -t "$srcdir/configure" conftest.file`
2306 fi
2307 if test "$*" != "X $srcdir/configure conftest.file" \
2308 && test "$*" != "X conftest.file $srcdir/configure"; then
2309
2310 # If neither matched, then we have a broken ls. This can happen
2311 # if, for instance, CONFIG_SHELL is bash and it inherits a
2312 # broken ls alias from the environment. This has actually
2313 # happened. Such a system could not be considered "sane".
2314 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2315 alias in your environment" "$LINENO" 5
2316 fi
2317 if test "$2" = conftest.file || test $am_try -eq 2; then
2318 break
2319 fi
2320 # Just in case.
2321 sleep 1
2322 am_has_slept=yes
2323 done
2324 test "$2" = conftest.file
2325 )
2326 then
2327 # Ok.
2328 :
2329 else
2330 as_fn_error $? "newly created file is older than distributed files!
2331 Check your system clock" "$LINENO" 5
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2334 $as_echo "yes" >&6; }
2335 # If we didn't sleep, we still need to ensure time stamps of config.status and
2336 # generated files are strictly newer.
2337 am_sleep_pid=
2338 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2339 ( sleep 1 ) &
2340 am_sleep_pid=$!
2341 fi
2342
2343 rm -f conftest.file
2344
2345 test "$program_prefix" != NONE &&
2346 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2347 # Use a double $ so make ignores it.
2348 test "$program_suffix" != NONE &&
2349 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2350 # Double any \ or $.
2351 # By default was `s,x,x', remove it if useless.
2352 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2353 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2354
2355 # Expand $ac_aux_dir to an absolute path.
2356 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2357
2358 if test x"${MISSING+set}" != xset; then
2359 case $am_aux_dir in
2360 *\ * | *\ *)
2361 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2362 *)
2363 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2364 esac
2365 fi
2366 # Use eval to expand $SHELL
2367 if eval "$MISSING --is-lightweight"; then
2368 am_missing_run="$MISSING "
2369 else
2370 am_missing_run=
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2372 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2373 fi
2374
2375 if test x"${install_sh+set}" != xset; then
2376 case $am_aux_dir in
2377 *\ * | *\ *)
2378 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2379 *)
2380 install_sh="\${SHELL} $am_aux_dir/install-sh"
2381 esac
2382 fi
2383
2384 # Installed binaries are usually stripped using 'strip' when the user
2385 # run "make install-strip". However 'strip' might not be the right
2386 # tool to use in cross-compilation environments, therefore Automake
2387 # will honor the 'STRIP' environment variable to overrule this program.
2388 if test "$cross_compiling" != no; then
2389 if test -n "$ac_tool_prefix"; then
2390 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2391 set dummy ${ac_tool_prefix}strip; ac_word=$2
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2393 $as_echo_n "checking for $ac_word... " >&6; }
2394 if ${ac_cv_prog_STRIP+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 if test -n "$STRIP"; then
2398 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 break 2
2410 fi
2411 done
2412 done
2413 IFS=$as_save_IFS
2414
2415 fi
2416 fi
2417 STRIP=$ac_cv_prog_STRIP
2418 if test -n "$STRIP"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2420 $as_echo "$STRIP" >&6; }
2421 else
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2423 $as_echo "no" >&6; }
2424 fi
2425
2426
2427 fi
2428 if test -z "$ac_cv_prog_STRIP"; then
2429 ac_ct_STRIP=$STRIP
2430 # Extract the first word of "strip", so it can be a program name with args.
2431 set dummy strip; ac_word=$2
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433 $as_echo_n "checking for $ac_word... " >&6; }
2434 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 if test -n "$ac_ct_STRIP"; then
2438 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_ac_ct_STRIP="strip"
2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451 done
2452 done
2453 IFS=$as_save_IFS
2454
2455 fi
2456 fi
2457 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2458 if test -n "$ac_ct_STRIP"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2460 $as_echo "$ac_ct_STRIP" >&6; }
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463 $as_echo "no" >&6; }
2464 fi
2465
2466 if test "x$ac_ct_STRIP" = x; then
2467 STRIP=":"
2468 else
2469 case $cross_compiling:$ac_tool_warned in
2470 yes:)
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2473 ac_tool_warned=yes ;;
2474 esac
2475 STRIP=$ac_ct_STRIP
2476 fi
2477 else
2478 STRIP="$ac_cv_prog_STRIP"
2479 fi
2480
2481 fi
2482 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2483
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2485 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2486 if test -z "$MKDIR_P"; then
2487 if ${ac_cv_path_mkdir+:} false; then :
2488 $as_echo_n "(cached) " >&6
2489 else
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2492 do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_prog in mkdir gmkdir; do
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2498 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2499 'mkdir (GNU coreutils) '* | \
2500 'mkdir (coreutils) '* | \
2501 'mkdir (fileutils) '4.1*)
2502 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2503 break 3;;
2504 esac
2505 done
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511
2512 test -d ./--version && rmdir ./--version
2513 if test "${ac_cv_path_mkdir+set}" = set; then
2514 MKDIR_P="$ac_cv_path_mkdir -p"
2515 else
2516 # As a last resort, use the slow shell script. Don't cache a
2517 # value for MKDIR_P within a source directory, because that will
2518 # break other packages using the cache if that directory is
2519 # removed, or if the value is a relative name.
2520 MKDIR_P="$ac_install_sh -d"
2521 fi
2522 fi
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2524 $as_echo "$MKDIR_P" >&6; }
2525
2526 for ac_prog in gawk mawk nawk awk
2527 do
2528 # Extract the first word of "$ac_prog", so it can be a program name with args.
2529 set dummy $ac_prog; ac_word=$2
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531 $as_echo_n "checking for $ac_word... " >&6; }
2532 if ${ac_cv_prog_AWK+:} false; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 if test -n "$AWK"; then
2536 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2545 ac_cv_prog_AWK="$ac_prog"
2546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 break 2
2548 fi
2549 done
2550 done
2551 IFS=$as_save_IFS
2552
2553 fi
2554 fi
2555 AWK=$ac_cv_prog_AWK
2556 if test -n "$AWK"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2558 $as_echo "$AWK" >&6; }
2559 else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561 $as_echo "no" >&6; }
2562 fi
2563
2564
2565 test -n "$AWK" && break
2566 done
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2569 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2570 set x ${MAKE-make}
2571 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2572 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 cat >conftest.make <<\_ACEOF
2576 SHELL = /bin/sh
2577 all:
2578 @echo '@@@%%%=$(MAKE)=@@@%%%'
2579 _ACEOF
2580 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2582 *@@@%%%=?*=@@@%%%*)
2583 eval ac_cv_prog_make_${ac_make}_set=yes;;
2584 *)
2585 eval ac_cv_prog_make_${ac_make}_set=no;;
2586 esac
2587 rm -f conftest.make
2588 fi
2589 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591 $as_echo "yes" >&6; }
2592 SET_MAKE=
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2596 SET_MAKE="MAKE=${MAKE-make}"
2597 fi
2598
2599 rm -rf .tst 2>/dev/null
2600 mkdir .tst 2>/dev/null
2601 if test -d .tst; then
2602 am__leading_dot=.
2603 else
2604 am__leading_dot=_
2605 fi
2606 rmdir .tst 2>/dev/null
2607
2608 # Check whether --enable-silent-rules was given.
2609 if test "${enable_silent_rules+set}" = set; then :
2610 enableval=$enable_silent_rules;
2611 fi
2612
2613 case $enable_silent_rules in # (((
2614 yes) AM_DEFAULT_VERBOSITY=0;;
2615 no) AM_DEFAULT_VERBOSITY=1;;
2616 *) AM_DEFAULT_VERBOSITY=1;;
2617 esac
2618 am_make=${MAKE-make}
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2620 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2621 if ${am_cv_make_support_nested_variables+:} false; then :
2622 $as_echo_n "(cached) " >&6
2623 else
2624 if $as_echo 'TRUE=$(BAR$(V))
2625 BAR0=false
2626 BAR1=true
2627 V=1
2628 am__doit:
2629 @$(TRUE)
2630 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2631 am_cv_make_support_nested_variables=yes
2632 else
2633 am_cv_make_support_nested_variables=no
2634 fi
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2637 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2638 if test $am_cv_make_support_nested_variables = yes; then
2639 AM_V='$(V)'
2640 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2641 else
2642 AM_V=$AM_DEFAULT_VERBOSITY
2643 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2644 fi
2645 AM_BACKSLASH='\'
2646
2647 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2648 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2649 # is not polluted with repeated "-I."
2650 am__isrc=' -I$(srcdir)'
2651 # test to see if srcdir already configured
2652 if test -f $srcdir/config.status; then
2653 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2654 fi
2655 fi
2656
2657 # test whether we have cygpath
2658 if test -z "$CYGPATH_W"; then
2659 if (cygpath --version) >/dev/null 2>/dev/null; then
2660 CYGPATH_W='cygpath -w'
2661 else
2662 CYGPATH_W=echo
2663 fi
2664 fi
2665
2666
2667 # Define the identity of the package.
2668 PACKAGE='hopm'
2669 VERSION='TRUNK'
2670
2671
2672 cat >>confdefs.h <<_ACEOF
2673 #define PACKAGE "$PACKAGE"
2674 _ACEOF
2675
2676
2677 cat >>confdefs.h <<_ACEOF
2678 #define VERSION "$VERSION"
2679 _ACEOF
2680
2681 # Some tools Automake needs.
2682
2683 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2684
2685
2686 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2687
2688
2689 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2690
2691
2692 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2693
2694
2695 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2696
2697 # For better backward compatibility. To be removed once Automake 1.9.x
2698 # dies out for good. For more background, see:
2699 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2700 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2701 mkdir_p='$(MKDIR_P)'
2702
2703 # We need awk for the "check" target (and possibly the TAP driver). The
2704 # system "awk" is bad on some platforms.
2705 # Always define AMTAR for backward compatibility. Yes, it's still used
2706 # in the wild :-( We should find a proper way to deprecate it ...
2707 AMTAR='$${TAR-tar}'
2708
2709
2710 # We'll loop over all known methods to create a tar archive until one works.
2711 _am_tools='gnutar pax cpio none'
2712
2713 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2714
2715
2716
2717
2718
2719
2720 # POSIX will say in a future version that running "rm -f" with no argument
2721 # is OK; and we want to be able to make that assumption in our Makefile
2722 # recipes. So use an aggressive probe to check that the usage we want is
2723 # actually supported "in the wild" to an acceptable degree.
2724 # See automake bug#10828.
2725 # To make any issue more visible, cause the running configure to be aborted
2726 # by default if the 'rm' program in use doesn't match our expectations; the
2727 # user can still override this though.
2728 if rm -f && rm -fr && rm -rf; then : OK; else
2729 cat >&2 <<'END'
2730 Oops!
2731
2732 Your 'rm' program seems unable to run without file operands specified
2733 on the command line, even when the '-f' option is present. This is contrary
2734 to the behaviour of most rm programs out there, and not conforming with
2735 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2736
2737 Please tell bug-automake@gnu.org about your system, including the value
2738 of your $PATH and any error possibly output before this message. This
2739 can help us improve future automake versions.
2740
2741 END
2742 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2743 echo 'Configuration will proceed anyway, since you have set the' >&2
2744 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2745 echo >&2
2746 else
2747 cat >&2 <<'END'
2748 Aborting the configuration process, to ensure you take notice of the issue.
2749
2750 You can download and install GNU coreutils to get an 'rm' implementation
2751 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2752
2753 If you want to complete the configuration process using your problematic
2754 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2755 to "yes", and re-run configure.
2756
2757 END
2758 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2759 fi
2760 fi
2761
2762
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2764 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2765 # Check whether --enable-maintainer-mode was given.
2766 if test "${enable_maintainer_mode+set}" = set; then :
2767 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2768 else
2769 USE_MAINTAINER_MODE=no
2770 fi
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2773 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2774 if test $USE_MAINTAINER_MODE = yes; then
2775 MAINTAINER_MODE_TRUE=
2776 MAINTAINER_MODE_FALSE='#'
2777 else
2778 MAINTAINER_MODE_TRUE='#'
2779 MAINTAINER_MODE_FALSE=
2780 fi
2781
2782 MAINT=$MAINTAINER_MODE_TRUE
2783
2784
2785
2786 ac_config_headers="$ac_config_headers src/setup.h"
2787
2788
2789
2790
2791 DEPDIR="${am__leading_dot}deps"
2792
2793 ac_config_commands="$ac_config_commands depfiles"
2794
2795
2796 am_make=${MAKE-make}
2797 cat > confinc << 'END'
2798 am__doit:
2799 @echo this is the am__doit target
2800 .PHONY: am__doit
2801 END
2802 # If we don't find an include directive, just comment out the code.
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2804 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2805 am__include="#"
2806 am__quote=
2807 _am_result=none
2808 # First try GNU make style include.
2809 echo "include confinc" > confmf
2810 # Ignore all kinds of additional output from 'make'.
2811 case `$am_make -s -f confmf 2> /dev/null` in #(
2812 *the\ am__doit\ target*)
2813 am__include=include
2814 am__quote=
2815 _am_result=GNU
2816 ;;
2817 esac
2818 # Now try BSD make style include.
2819 if test "$am__include" = "#"; then
2820 echo '.include "confinc"' > confmf
2821 case `$am_make -s -f confmf 2> /dev/null` in #(
2822 *the\ am__doit\ target*)
2823 am__include=.include
2824 am__quote="\""
2825 _am_result=BSD
2826 ;;
2827 esac
2828 fi
2829
2830
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2832 $as_echo "$_am_result" >&6; }
2833 rm -f confinc confmf
2834
2835 # Check whether --enable-dependency-tracking was given.
2836 if test "${enable_dependency_tracking+set}" = set; then :
2837 enableval=$enable_dependency_tracking;
2838 fi
2839
2840 if test "x$enable_dependency_tracking" != xno; then
2841 am_depcomp="$ac_aux_dir/depcomp"
2842 AMDEPBACKSLASH='\'
2843 am__nodep='_no'
2844 fi
2845 if test "x$enable_dependency_tracking" != xno; then
2846 AMDEP_TRUE=
2847 AMDEP_FALSE='#'
2848 else
2849 AMDEP_TRUE='#'
2850 AMDEP_FALSE=
2851 fi
2852
2853
2854 ac_ext=c
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2861 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if ${ac_cv_prog_CC+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 CC=$ac_cv_prog_CC
2888 if test -n "$CC"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2890 $as_echo "$CC" >&6; }
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 fi
2895
2896
2897 fi
2898 if test -z "$ac_cv_prog_CC"; then
2899 ac_ct_CC=$CC
2900 # Extract the first word of "gcc", so it can be a program name with args.
2901 set dummy gcc; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_ac_ct_CC="gcc"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928 if test -n "$ac_ct_CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2930 $as_echo "$ac_ct_CC" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936 if test "x$ac_ct_CC" = x; then
2937 CC=""
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940 yes:)
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943 ac_tool_warned=yes ;;
2944 esac
2945 CC=$ac_ct_CC
2946 fi
2947 else
2948 CC="$ac_cv_prog_CC"
2949 fi
2950
2951 if test -z "$CC"; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}cc; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_CC+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_CC="${ac_tool_prefix}cc"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990 fi
2991 fi
2992 if test -z "$CC"; then
2993 # Extract the first word of "cc", so it can be a program name with args.
2994 set dummy cc; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_CC+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 ac_prog_rejected=no
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3012 ac_prog_rejected=yes
3013 continue
3014 fi
3015 ac_cv_prog_CC="cc"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 if test $ac_prog_rejected = yes; then
3024 # We found a bogon in the path, so make sure we never use it.
3025 set dummy $ac_cv_prog_CC
3026 shift
3027 if test $# != 0; then
3028 # We chose a different compiler from the bogus one.
3029 # However, it has the same basename, so the bogon will be chosen
3030 # first if we set CC to just the basename; use the full file name.
3031 shift
3032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3033 fi
3034 fi
3035 fi
3036 fi
3037 CC=$ac_cv_prog_CC
3038 if test -n "$CC"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3040 $as_echo "$CC" >&6; }
3041 else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3045
3046
3047 fi
3048 if test -z "$CC"; then
3049 if test -n "$ac_tool_prefix"; then
3050 for ac_prog in cl.exe
3051 do
3052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if ${ac_cv_prog_CC+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3072 fi
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 fi
3078 fi
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088
3089 test -n "$CC" && break
3090 done
3091 fi
3092 if test -z "$CC"; then
3093 ac_ct_CC=$CC
3094 for ac_prog in cl.exe
3095 do
3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
3097 set dummy $ac_prog; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test -n "$ac_ct_CC"; then
3104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_ac_ct_CC="$ac_prog"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 fi
3122 fi
3123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3124 if test -n "$ac_ct_CC"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3126 $as_echo "$ac_ct_CC" >&6; }
3127 else
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 fi
3131
3132
3133 test -n "$ac_ct_CC" && break
3134 done
3135
3136 if test "x$ac_ct_CC" = x; then
3137 CC=""
3138 else
3139 case $cross_compiling:$ac_tool_warned in
3140 yes:)
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143 ac_tool_warned=yes ;;
3144 esac
3145 CC=$ac_ct_CC
3146 fi
3147 fi
3148
3149 fi
3150
3151
3152 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error $? "no acceptable C compiler found in \$PATH
3155 See \`config.log' for more details" "$LINENO" 5; }
3156
3157 # Provide some information about the compiler.
3158 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3159 set X $ac_compile
3160 ac_compiler=$2
3161 for ac_option in --version -v -V -qversion; do
3162 { { ac_try="$ac_compiler $ac_option >&5"
3163 case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166 esac
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 $as_echo "$ac_try_echo"; } >&5
3169 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3170 ac_status=$?
3171 if test -s conftest.err; then
3172 sed '10a\
3173 ... rest of stderr output deleted ...
3174 10q' conftest.err >conftest.er1
3175 cat conftest.er1 >&5
3176 fi
3177 rm -f conftest.er1 conftest.err
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }
3180 done
3181
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3184
3185 int
3186 main ()
3187 {
3188
3189 ;
3190 return 0;
3191 }
3192 _ACEOF
3193 ac_clean_files_save=$ac_clean_files
3194 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3195 # Try to create an executable without -o first, disregard a.out.
3196 # It will help us diagnose broken compilers, and finding out an intuition
3197 # of exeext.
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3199 $as_echo_n "checking whether the C compiler works... " >&6; }
3200 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3201
3202 # The possible output files:
3203 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3204
3205 ac_rmfiles=
3206 for ac_file in $ac_files
3207 do
3208 case $ac_file in
3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3210 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3211 esac
3212 done
3213 rm -f $ac_rmfiles
3214
3215 if { { ac_try="$ac_link_default"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_link_default") 2>&5
3223 ac_status=$?
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }; then :
3226 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3227 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3228 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3229 # so that the user can short-circuit this test for compilers unknown to
3230 # Autoconf.
3231 for ac_file in $ac_files ''
3232 do
3233 test -f "$ac_file" || continue
3234 case $ac_file in
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3236 ;;
3237 [ab].out )
3238 # We found the default executable, but exeext='' is most
3239 # certainly right.
3240 break;;
3241 *.* )
3242 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3243 then :; else
3244 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3245 fi
3246 # We set ac_cv_exeext here because the later test for it is not
3247 # safe: cross compilers may not add the suffix if given an `-o'
3248 # argument, so we may need to know it at that point already.
3249 # Even if this section looks crufty: it has the advantage of
3250 # actually working.
3251 break;;
3252 * )
3253 break;;
3254 esac
3255 done
3256 test "$ac_cv_exeext" = no && ac_cv_exeext=
3257
3258 else
3259 ac_file=''
3260 fi
3261 if test -z "$ac_file"; then :
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 $as_echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 as_fn_error 77 "C compiler cannot create executables
3270 See \`config.log' for more details" "$LINENO" 5; }
3271 else
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3274 fi
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3276 $as_echo_n "checking for C compiler default output file name... " >&6; }
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3278 $as_echo "$ac_file" >&6; }
3279 ac_exeext=$ac_cv_exeext
3280
3281 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3282 ac_clean_files=$ac_clean_files_save
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3284 $as_echo_n "checking for suffix of executables... " >&6; }
3285 if { { ac_try="$ac_link"
3286 case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_link") 2>&5
3293 ac_status=$?
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }; then :
3296 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3297 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3298 # work properly (i.e., refer to `conftest.exe'), while it won't with
3299 # `rm'.
3300 for ac_file in conftest.exe conftest conftest.*; do
3301 test -f "$ac_file" || continue
3302 case $ac_file in
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3304 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305 break;;
3306 * ) break;;
3307 esac
3308 done
3309 else
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 fi
3315 rm -f conftest conftest$ac_cv_exeext
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3317 $as_echo "$ac_cv_exeext" >&6; }
3318
3319 rm -f conftest.$ac_ext
3320 EXEEXT=$ac_cv_exeext
3321 ac_exeext=$EXEEXT
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324 #include <stdio.h>
3325 int
3326 main ()
3327 {
3328 FILE *f = fopen ("conftest.out", "w");
3329 return ferror (f) || fclose (f) != 0;
3330
3331 ;
3332 return 0;
3333 }
3334 _ACEOF
3335 ac_clean_files="$ac_clean_files conftest.out"
3336 # Check that the compiler produces executables we can run. If not, either
3337 # the compiler is broken, or we cross compile.
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3339 $as_echo_n "checking whether we are cross compiling... " >&6; }
3340 if test "$cross_compiling" != yes; then
3341 { { ac_try="$ac_link"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_link") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }
3352 if { ac_try='./conftest$ac_cv_exeext'
3353 { { case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_try") 2>&5
3360 ac_status=$?
3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 test $ac_status = 0; }; }; then
3363 cross_compiling=no
3364 else
3365 if test "$cross_compiling" = maybe; then
3366 cross_compiling=yes
3367 else
3368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 as_fn_error $? "cannot run C compiled programs.
3371 If you meant to cross compile, use \`--host'.
3372 See \`config.log' for more details" "$LINENO" 5; }
3373 fi
3374 fi
3375 fi
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3377 $as_echo "$cross_compiling" >&6; }
3378
3379 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3380 ac_clean_files=$ac_clean_files_save
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3382 $as_echo_n "checking for suffix of object files... " >&6; }
3383 if ${ac_cv_objext+:} false; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3388
3389 int
3390 main ()
3391 {
3392
3393 ;
3394 return 0;
3395 }
3396 _ACEOF
3397 rm -f conftest.o conftest.obj
3398 if { { ac_try="$ac_compile"
3399 case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402 esac
3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404 $as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_compile") 2>&5
3406 ac_status=$?
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }; then :
3409 for ac_file in conftest.o conftest.obj conftest.*; do
3410 test -f "$ac_file" || continue;
3411 case $ac_file in
3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3413 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3414 break;;
3415 esac
3416 done
3417 else
3418 $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error $? "cannot compute suffix of object files: cannot compile
3424 See \`config.log' for more details" "$LINENO" 5; }
3425 fi
3426 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3427 fi
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3429 $as_echo "$ac_cv_objext" >&6; }
3430 OBJEXT=$ac_cv_objext
3431 ac_objext=$OBJEXT
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3433 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3434 if ${ac_cv_c_compiler_gnu+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3439
3440 int
3441 main ()
3442 {
3443 #ifndef __GNUC__
3444 choke me
3445 #endif
3446
3447 ;
3448 return 0;
3449 }
3450 _ACEOF
3451 if ac_fn_c_try_compile "$LINENO"; then :
3452 ac_compiler_gnu=yes
3453 else
3454 ac_compiler_gnu=no
3455 fi
3456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3458
3459 fi
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3461 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3462 if test $ac_compiler_gnu = yes; then
3463 GCC=yes
3464 else
3465 GCC=
3466 fi
3467 ac_test_CFLAGS=${CFLAGS+set}
3468 ac_save_CFLAGS=$CFLAGS
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3470 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3471 if ${ac_cv_prog_cc_g+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 ac_save_c_werror_flag=$ac_c_werror_flag
3475 ac_c_werror_flag=yes
3476 ac_cv_prog_cc_g=no
3477 CFLAGS="-g"
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480
3481 int
3482 main ()
3483 {
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490 ac_cv_prog_cc_g=yes
3491 else
3492 CFLAGS=""
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495
3496 int
3497 main ()
3498 {
3499
3500 ;
3501 return 0;
3502 }
3503 _ACEOF
3504 if ac_fn_c_try_compile "$LINENO"; then :
3505
3506 else
3507 ac_c_werror_flag=$ac_save_c_werror_flag
3508 CFLAGS="-g"
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511
3512 int
3513 main ()
3514 {
3515
3516 ;
3517 return 0;
3518 }
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521 ac_cv_prog_cc_g=yes
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 fi
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 fi
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 ac_c_werror_flag=$ac_save_c_werror_flag
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3531 $as_echo "$ac_cv_prog_cc_g" >&6; }
3532 if test "$ac_test_CFLAGS" = set; then
3533 CFLAGS=$ac_save_CFLAGS
3534 elif test $ac_cv_prog_cc_g = yes; then
3535 if test "$GCC" = yes; then
3536 CFLAGS="-g -O2"
3537 else
3538 CFLAGS="-g"
3539 fi
3540 else
3541 if test "$GCC" = yes; then
3542 CFLAGS="-O2"
3543 else
3544 CFLAGS=
3545 fi
3546 fi
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3548 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3549 if ${ac_cv_prog_cc_c89+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 ac_cv_prog_cc_c89=no
3553 ac_save_CC=$CC
3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h. */
3556 #include <stdarg.h>
3557 #include <stdio.h>
3558 struct stat;
3559 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3560 struct buf { int x; };
3561 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3562 static char *e (p, i)
3563 char **p;
3564 int i;
3565 {
3566 return p[i];
3567 }
3568 static char *f (char * (*g) (char **, int), char **p, ...)
3569 {
3570 char *s;
3571 va_list v;
3572 va_start (v,p);
3573 s = g (p, va_arg (v,int));
3574 va_end (v);
3575 return s;
3576 }
3577
3578 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3579 function prototypes and stuff, but not '\xHH' hex character constants.
3580 These don't provoke an error unfortunately, instead are silently treated
3581 as 'x'. The following induces an error, until -std is added to get
3582 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3583 array size at least. It's necessary to write '\x00'==0 to get something
3584 that's true only with -std. */
3585 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3586
3587 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3588 inside strings and character constants. */
3589 #define FOO(x) 'x'
3590 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3591
3592 int test (int i, double x);
3593 struct s1 {int (*f) (int a);};
3594 struct s2 {int (*f) (double a);};
3595 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3596 int argc;
3597 char **argv;
3598 int
3599 main ()
3600 {
3601 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3602 ;
3603 return 0;
3604 }
3605 _ACEOF
3606 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3607 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3608 do
3609 CC="$ac_save_CC $ac_arg"
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611 ac_cv_prog_cc_c89=$ac_arg
3612 fi
3613 rm -f core conftest.err conftest.$ac_objext
3614 test "x$ac_cv_prog_cc_c89" != "xno" && break
3615 done
3616 rm -f conftest.$ac_ext
3617 CC=$ac_save_CC
3618
3619 fi
3620 # AC_CACHE_VAL
3621 case "x$ac_cv_prog_cc_c89" in
3622 x)
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3624 $as_echo "none needed" >&6; } ;;
3625 xno)
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3627 $as_echo "unsupported" >&6; } ;;
3628 *)
3629 CC="$CC $ac_cv_prog_cc_c89"
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3631 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3632 esac
3633 if test "x$ac_cv_prog_cc_c89" != xno; then :
3634
3635 fi
3636
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3649 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3650 if ${am_cv_prog_cc_c_o+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655
3656 int
3657 main ()
3658 {
3659
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 # Make sure it works both with $CC and with simple cc.
3665 # Following AC_PROG_CC_C_O, we do the test twice because some
3666 # compilers refuse to overwrite an existing .o file with -o,
3667 # though they will create one.
3668 am_cv_prog_cc_c_o=yes
3669 for am_i in 1 2; do
3670 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3671 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } \
3675 && test -f conftest2.$ac_objext; then
3676 : OK
3677 else
3678 am_cv_prog_cc_c_o=no
3679 break
3680 fi
3681 done
3682 rm -f core conftest*
3683 unset am_i
3684 fi
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3686 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3687 if test "$am_cv_prog_cc_c_o" != yes; then
3688 # Losing compiler, so override with the script.
3689 # FIXME: It is wrong to rewrite CC.
3690 # But if we don't then we get into trouble of one sort or another.
3691 # A longer-term fix would be to have automake use am__CC in this case,
3692 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3693 CC="$am_aux_dir/compile $CC"
3694 fi
3695 ac_ext=c
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700
3701
3702 depcc="$CC" am_compiler_list=
3703
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3705 $as_echo_n "checking dependency style of $depcc... " >&6; }
3706 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3710 # We make a subdir and do the tests there. Otherwise we can end up
3711 # making bogus files that we don't know about and never remove. For
3712 # instance it was reported that on HP-UX the gcc test will end up
3713 # making a dummy file named 'D' -- because '-MD' means "put the output
3714 # in D".
3715 rm -rf conftest.dir
3716 mkdir conftest.dir
3717 # Copy depcomp to subdir because otherwise we won't find it if we're
3718 # using a relative directory.
3719 cp "$am_depcomp" conftest.dir
3720 cd conftest.dir
3721 # We will build objects and dependencies in a subdirectory because
3722 # it helps to detect inapplicable dependency modes. For instance
3723 # both Tru64's cc and ICC support -MD to output dependencies as a
3724 # side effect of compilation, but ICC will put the dependencies in
3725 # the current directory while Tru64 will put them in the object
3726 # directory.
3727 mkdir sub
3728
3729 am_cv_CC_dependencies_compiler_type=none
3730 if test "$am_compiler_list" = ""; then
3731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3732 fi
3733 am__universal=false
3734 case " $depcc " in #(
3735 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3736 esac
3737
3738 for depmode in $am_compiler_list; do
3739 # Setup a source with many dependencies, because some compilers
3740 # like to wrap large dependency lists on column 80 (with \), and
3741 # we should not choose a depcomp mode which is confused by this.
3742 #
3743 # We need to recreate these files for each test, as the compiler may
3744 # overwrite some of them when testing with obscure command lines.
3745 # This happens at least with the AIX C compiler.
3746 : > sub/conftest.c
3747 for i in 1 2 3 4 5 6; do
3748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3750 # Solaris 10 /bin/sh.
3751 echo '/* dummy */' > sub/conftst$i.h
3752 done
3753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754
3755 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3756 # mode. It turns out that the SunPro C++ compiler does not properly
3757 # handle '-M -o', and we need to detect this. Also, some Intel
3758 # versions had trouble with output in subdirs.
3759 am__obj=sub/conftest.${OBJEXT-o}
3760 am__minus_obj="-o $am__obj"
3761 case $depmode in
3762 gcc)
3763 # This depmode causes a compiler race in universal mode.
3764 test "$am__universal" = false || continue
3765 ;;
3766 nosideeffect)
3767 # After this tag, mechanisms are not by side-effect, so they'll
3768 # only be used when explicitly requested.
3769 if test "x$enable_dependency_tracking" = xyes; then
3770 continue
3771 else
3772 break
3773 fi
3774 ;;
3775 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3776 # This compiler won't grok '-c -o', but also, the minuso test has
3777 # not run yet. These depmodes are late enough in the game, and
3778 # so weak that their functioning should not be impacted.
3779 am__obj=conftest.${OBJEXT-o}
3780 am__minus_obj=
3781 ;;
3782 none) break ;;
3783 esac
3784 if depmode=$depmode \
3785 source=sub/conftest.c object=$am__obj \
3786 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3787 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3788 >/dev/null 2>conftest.err &&
3789 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3790 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3791 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3792 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3793 # icc doesn't choke on unknown options, it will just issue warnings
3794 # or remarks (even with -Werror). So we grep stderr for any message
3795 # that says an option was ignored or not supported.
3796 # When given -MP, icc 7.0 and 7.1 complain thusly:
3797 # icc: Command line warning: ignoring option '-M'; no argument required
3798 # The diagnosis changed in icc 8.0:
3799 # icc: Command line remark: option '-MP' not supported
3800 if (grep 'ignoring option' conftest.err ||
3801 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3802 am_cv_CC_dependencies_compiler_type=$depmode
3803 break
3804 fi
3805 fi
3806 done
3807
3808 cd ..
3809 rm -rf conftest.dir
3810 else
3811 am_cv_CC_dependencies_compiler_type=none
3812 fi
3813
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3816 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3817 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3818
3819 if
3820 test "x$enable_dependency_tracking" != xno \
3821 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3822 am__fastdepCC_TRUE=
3823 am__fastdepCC_FALSE='#'
3824 else
3825 am__fastdepCC_TRUE='#'
3826 am__fastdepCC_FALSE=
3827 fi
3828
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3831 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3832 if ${ac_cv_prog_cc_c99+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834 else
3835 ac_cv_prog_cc_c99=no
3836 ac_save_CC=$CC
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839 #include <stdarg.h>
3840 #include <stdbool.h>
3841 #include <stdlib.h>
3842 #include <wchar.h>
3843 #include <stdio.h>
3844
3845 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3846 #define debug(...) fprintf (stderr, __VA_ARGS__)
3847 #define showlist(...) puts (#__VA_ARGS__)
3848 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3849 static void
3850 test_varargs_macros (void)
3851 {
3852 int x = 1234;
3853 int y = 5678;
3854 debug ("Flag");
3855 debug ("X = %d\n", x);
3856 showlist (The first, second, and third items.);
3857 report (x>y, "x is %d but y is %d", x, y);
3858 }
3859
3860 // Check long long types.
3861 #define BIG64 18446744073709551615ull
3862 #define BIG32 4294967295ul
3863 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3864 #if !BIG_OK
3865 your preprocessor is broken;
3866 #endif
3867 #if BIG_OK
3868 #else
3869 your preprocessor is broken;
3870 #endif
3871 static long long int bignum = -9223372036854775807LL;
3872 static unsigned long long int ubignum = BIG64;
3873
3874 struct incomplete_array
3875 {
3876 int datasize;
3877 double data[];
3878 };
3879
3880 struct named_init {
3881 int number;
3882 const wchar_t *name;
3883 double average;
3884 };
3885
3886 typedef const char *ccp;
3887
3888 static inline int
3889 test_restrict (ccp restrict text)
3890 {
3891 // See if C++-style comments work.
3892 // Iterate through items via the restricted pointer.
3893 // Also check for declarations in for loops.
3894 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3895 continue;
3896 return 0;
3897 }
3898
3899 // Check varargs and va_copy.
3900 static void
3901 test_varargs (const char *format, ...)
3902 {
3903 va_list args;
3904 va_start (args, format);
3905 va_list args_copy;
3906 va_copy (args_copy, args);
3907
3908 const char *str;
3909 int number;
3910 float fnumber;
3911
3912 while (*format)
3913 {
3914 switch (*format++)
3915 {
3916 case 's': // string
3917 str = va_arg (args_copy, const char *);
3918 break;
3919 case 'd': // int
3920 number = va_arg (args_copy, int);
3921 break;
3922 case 'f': // float
3923 fnumber = va_arg (args_copy, double);
3924 break;
3925 default:
3926 break;
3927 }
3928 }
3929 va_end (args_copy);
3930 va_end (args);
3931 }
3932
3933 int
3934 main ()
3935 {
3936
3937 // Check bool.
3938 _Bool success = false;
3939
3940 // Check restrict.
3941 if (test_restrict ("String literal") == 0)
3942 success = true;
3943 char *restrict newvar = "Another string";
3944
3945 // Check varargs.
3946 test_varargs ("s, d' f .", "string", 65, 34.234);
3947 test_varargs_macros ();
3948
3949 // Check flexible array members.
3950 struct incomplete_array *ia =
3951 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3952 ia->datasize = 10;
3953 for (int i = 0; i < ia->datasize; ++i)
3954 ia->data[i] = i * 1.234;
3955
3956 // Check named initializers.
3957 struct named_init ni = {
3958 .number = 34,
3959 .name = L"Test wide string",
3960 .average = 543.34343,
3961 };
3962
3963 ni.number = 58;
3964
3965 int dynamic_array[ni.number];
3966 dynamic_array[ni.number - 1] = 543;
3967
3968 // work around unused variable warnings
3969 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3970 || dynamic_array[ni.number - 1] != 543);
3971
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3977 do
3978 CC="$ac_save_CC $ac_arg"
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_cv_prog_cc_c99=$ac_arg
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext
3983 test "x$ac_cv_prog_cc_c99" != "xno" && break
3984 done
3985 rm -f conftest.$ac_ext
3986 CC=$ac_save_CC
3987
3988 fi
3989 # AC_CACHE_VAL
3990 case "x$ac_cv_prog_cc_c99" in
3991 x)
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3993 $as_echo "none needed" >&6; } ;;
3994 xno)
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996 $as_echo "unsupported" >&6; } ;;
3997 *)
3998 CC="$CC $ac_cv_prog_cc_c99"
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4000 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4001 esac
4002 if test "x$ac_cv_prog_cc_c99" != xno; then :
4003
4004 fi
4005
4006
4007 if test "$ac_cv_prog_cc_c99" = "no"; then :
4008 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4009 fi
4010 case `pwd` in
4011 *\ * | *\ *)
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4013 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4014 esac
4015
4016
4017
4018 macro_version='2.4.6'
4019 macro_revision='2.4.6'
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033 ltmain=$ac_aux_dir/ltmain.sh
4034
4035 # Make sure we can run config.sub.
4036 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4037 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4040 $as_echo_n "checking build system type... " >&6; }
4041 if ${ac_cv_build+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 ac_build_alias=$build_alias
4045 test "x$ac_build_alias" = x &&
4046 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4047 test "x$ac_build_alias" = x &&
4048 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4049 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4050 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4051
4052 fi
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4054 $as_echo "$ac_cv_build" >&6; }
4055 case $ac_cv_build in
4056 *-*-*) ;;
4057 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4058 esac
4059 build=$ac_cv_build
4060 ac_save_IFS=$IFS; IFS='-'
4061 set x $ac_cv_build
4062 shift
4063 build_cpu=$1
4064 build_vendor=$2
4065 shift; shift
4066 # Remember, the first character of IFS is used to create $*,
4067 # except with old shells:
4068 build_os=$*
4069 IFS=$ac_save_IFS
4070 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4071
4072
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4074 $as_echo_n "checking host system type... " >&6; }
4075 if ${ac_cv_host+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 if test "x$host_alias" = x; then
4079 ac_cv_host=$ac_cv_build
4080 else
4081 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4082 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4083 fi
4084
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4087 $as_echo "$ac_cv_host" >&6; }
4088 case $ac_cv_host in
4089 *-*-*) ;;
4090 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4091 esac
4092 host=$ac_cv_host
4093 ac_save_IFS=$IFS; IFS='-'
4094 set x $ac_cv_host
4095 shift
4096 host_cpu=$1
4097 host_vendor=$2
4098 shift; shift
4099 # Remember, the first character of IFS is used to create $*,
4100 # except with old shells:
4101 host_os=$*
4102 IFS=$ac_save_IFS
4103 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4104
4105
4106 # Backslashify metacharacters that are still active within
4107 # double-quoted strings.
4108 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4109
4110 # Same as above, but do not quote variable references.
4111 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4112
4113 # Sed substitution to delay expansion of an escaped shell variable in a
4114 # double_quote_subst'ed string.
4115 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4116
4117 # Sed substitution to delay expansion of an escaped single quote.
4118 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4119
4120 # Sed substitution to avoid accidental globbing in evaled expressions
4121 no_glob_subst='s/\*/\\\*/g'
4122
4123 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4124 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4125 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4126
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4128 $as_echo_n "checking how to print strings... " >&6; }
4129 # Test print first, because it will be a builtin if present.
4130 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4131 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4132 ECHO='print -r --'
4133 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4134 ECHO='printf %s\n'
4135 else
4136 # Use this function as a fallback that always works.
4137 func_fallback_echo ()
4138 {
4139 eval 'cat <<_LTECHO_EOF
4140 $1
4141 _LTECHO_EOF'
4142 }
4143 ECHO='func_fallback_echo'
4144 fi
4145
4146 # func_echo_all arg...
4147 # Invoke $ECHO with all args, space-separated.
4148 func_echo_all ()
4149 {
4150 $ECHO ""
4151 }
4152
4153 case $ECHO in
4154 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4155 $as_echo "printf" >&6; } ;;
4156 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4157 $as_echo "print -r" >&6; } ;;
4158 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4159 $as_echo "cat" >&6; } ;;
4160 esac
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4176 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4177 if ${ac_cv_path_SED+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4181 for ac_i in 1 2 3 4 5 6 7; do
4182 ac_script="$ac_script$as_nl$ac_script"
4183 done
4184 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4185 { ac_script=; unset ac_script;}
4186 if test -z "$SED"; then
4187 ac_path_SED_found=false
4188 # Loop through the user's path and test for each of PROGNAME-LIST
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_prog in sed gsed; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4197 as_fn_executable_p "$ac_path_SED" || continue
4198 # Check for GNU ac_path_SED and select it if it is found.
4199 # Check for GNU $ac_path_SED
4200 case `"$ac_path_SED" --version 2>&1` in
4201 *GNU*)
4202 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4203 *)
4204 ac_count=0
4205 $as_echo_n 0123456789 >"conftest.in"
4206 while :
4207 do
4208 cat "conftest.in" "conftest.in" >"conftest.tmp"
4209 mv "conftest.tmp" "conftest.in"
4210 cp "conftest.in" "conftest.nl"
4211 $as_echo '' >> "conftest.nl"
4212 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214 as_fn_arith $ac_count + 1 && ac_count=$as_val
4215 if test $ac_count -gt ${ac_path_SED_max-0}; then
4216 # Best one so far, save it but keep looking for a better one
4217 ac_cv_path_SED="$ac_path_SED"
4218 ac_path_SED_max=$ac_count
4219 fi
4220 # 10*(2^10) chars as input seems more than enough
4221 test $ac_count -gt 10 && break
4222 done
4223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4224 esac
4225
4226 $ac_path_SED_found && break 3
4227 done
4228 done
4229 done
4230 IFS=$as_save_IFS
4231 if test -z "$ac_cv_path_SED"; then
4232 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4233 fi
4234 else
4235 ac_cv_path_SED=$SED
4236 fi
4237
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4240 $as_echo "$ac_cv_path_SED" >&6; }
4241 SED="$ac_cv_path_SED"
4242 rm -f conftest.sed
4243
4244 test -z "$SED" && SED=sed
4245 Xsed="$SED -e 1s/^X//"
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4258 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4259 if ${ac_cv_path_GREP+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -z "$GREP"; then
4263 ac_path_GREP_found=false
4264 # Loop through the user's path and test for each of PROGNAME-LIST
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_prog in grep ggrep; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4273 as_fn_executable_p "$ac_path_GREP" || continue
4274 # Check for GNU ac_path_GREP and select it if it is found.
4275 # Check for GNU $ac_path_GREP
4276 case `"$ac_path_GREP" --version 2>&1` in
4277 *GNU*)
4278 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4279 *)
4280 ac_count=0
4281 $as_echo_n 0123456789 >"conftest.in"
4282 while :
4283 do
4284 cat "conftest.in" "conftest.in" >"conftest.tmp"
4285 mv "conftest.tmp" "conftest.in"
4286 cp "conftest.in" "conftest.nl"
4287 $as_echo 'GREP' >> "conftest.nl"
4288 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4290 as_fn_arith $ac_count + 1 && ac_count=$as_val
4291 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4292 # Best one so far, save it but keep looking for a better one
4293 ac_cv_path_GREP="$ac_path_GREP"
4294 ac_path_GREP_max=$ac_count
4295 fi
4296 # 10*(2^10) chars as input seems more than enough
4297 test $ac_count -gt 10 && break
4298 done
4299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300 esac
4301
4302 $ac_path_GREP_found && break 3
4303 done
4304 done
4305 done
4306 IFS=$as_save_IFS
4307 if test -z "$ac_cv_path_GREP"; then
4308 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4309 fi
4310 else
4311 ac_cv_path_GREP=$GREP
4312 fi
4313
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4316 $as_echo "$ac_cv_path_GREP" >&6; }
4317 GREP="$ac_cv_path_GREP"
4318
4319
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4321 $as_echo_n "checking for egrep... " >&6; }
4322 if ${ac_cv_path_EGREP+:} false; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4326 then ac_cv_path_EGREP="$GREP -E"
4327 else
4328 if test -z "$EGREP"; then
4329 ac_path_EGREP_found=false
4330 # Loop through the user's path and test for each of PROGNAME-LIST
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4333 do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_prog in egrep; do
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4339 as_fn_executable_p "$ac_path_EGREP" || continue
4340 # Check for GNU ac_path_EGREP and select it if it is found.
4341 # Check for GNU $ac_path_EGREP
4342 case `"$ac_path_EGREP" --version 2>&1` in
4343 *GNU*)
4344 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4345 *)
4346 ac_count=0
4347 $as_echo_n 0123456789 >"conftest.in"
4348 while :
4349 do
4350 cat "conftest.in" "conftest.in" >"conftest.tmp"
4351 mv "conftest.tmp" "conftest.in"
4352 cp "conftest.in" "conftest.nl"
4353 $as_echo 'EGREP' >> "conftest.nl"
4354 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4356 as_fn_arith $ac_count + 1 && ac_count=$as_val
4357 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4358 # Best one so far, save it but keep looking for a better one
4359 ac_cv_path_EGREP="$ac_path_EGREP"
4360 ac_path_EGREP_max=$ac_count
4361 fi
4362 # 10*(2^10) chars as input seems more than enough
4363 test $ac_count -gt 10 && break
4364 done
4365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4366 esac
4367
4368 $ac_path_EGREP_found && break 3
4369 done
4370 done
4371 done
4372 IFS=$as_save_IFS
4373 if test -z "$ac_cv_path_EGREP"; then
4374 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4375 fi
4376 else
4377 ac_cv_path_EGREP=$EGREP
4378 fi
4379
4380 fi
4381 fi
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4383 $as_echo "$ac_cv_path_EGREP" >&6; }
4384 EGREP="$ac_cv_path_EGREP"
4385
4386
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4388 $as_echo_n "checking for fgrep... " >&6; }
4389 if ${ac_cv_path_FGREP+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4393 then ac_cv_path_FGREP="$GREP -F"
4394 else
4395 if test -z "$FGREP"; then
4396 ac_path_FGREP_found=false
4397 # Loop through the user's path and test for each of PROGNAME-LIST
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_prog in fgrep; do
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4406 as_fn_executable_p "$ac_path_FGREP" || continue
4407 # Check for GNU ac_path_FGREP and select it if it is found.
4408 # Check for GNU $ac_path_FGREP
4409 case `"$ac_path_FGREP" --version 2>&1` in
4410 *GNU*)
4411 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4412 *)
4413 ac_count=0
4414 $as_echo_n 0123456789 >"conftest.in"
4415 while :
4416 do
4417 cat "conftest.in" "conftest.in" >"conftest.tmp"
4418 mv "conftest.tmp" "conftest.in"
4419 cp "conftest.in" "conftest.nl"
4420 $as_echo 'FGREP' >> "conftest.nl"
4421 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423 as_fn_arith $ac_count + 1 && ac_count=$as_val
4424 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4425 # Best one so far, save it but keep looking for a better one
4426 ac_cv_path_FGREP="$ac_path_FGREP"
4427 ac_path_FGREP_max=$ac_count
4428 fi
4429 # 10*(2^10) chars as input seems more than enough
4430 test $ac_count -gt 10 && break
4431 done
4432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433 esac
4434
4435 $ac_path_FGREP_found && break 3
4436 done
4437 done
4438 done
4439 IFS=$as_save_IFS
4440 if test -z "$ac_cv_path_FGREP"; then
4441 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4442 fi
4443 else
4444 ac_cv_path_FGREP=$FGREP
4445 fi
4446
4447 fi
4448 fi
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4450 $as_echo "$ac_cv_path_FGREP" >&6; }
4451 FGREP="$ac_cv_path_FGREP"
4452
4453
4454 test -z "$GREP" && GREP=grep
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474 # Check whether --with-gnu-ld was given.
4475 if test "${with_gnu_ld+set}" = set; then :
4476 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4477 else
4478 with_gnu_ld=no
4479 fi
4480
4481 ac_prog=ld
4482 if test yes = "$GCC"; then
4483 # Check if gcc -print-prog-name=ld gives a path.
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4485 $as_echo_n "checking for ld used by $CC... " >&6; }
4486 case $host in
4487 *-*-mingw*)
4488 # gcc leaves a trailing carriage return, which upsets mingw
4489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4490 *)
4491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4492 esac
4493 case $ac_prog in
4494 # Accept absolute paths.
4495 [\\/]* | ?:[\\/]*)
4496 re_direlt='/[^/][^/]*/\.\./'
4497 # Canonicalize the pathname of ld
4498 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4499 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4500 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4501 done
4502 test -z "$LD" && LD=$ac_prog
4503 ;;
4504 "")
4505 # If it fails, then pretend we aren't using GCC.
4506 ac_prog=ld
4507 ;;
4508 *)
4509 # If it is relative, then search for the first ld in PATH.
4510 with_gnu_ld=unknown
4511 ;;
4512 esac
4513 elif test yes = "$with_gnu_ld"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4515 $as_echo_n "checking for GNU ld... " >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4518 $as_echo_n "checking for non-GNU ld... " >&6; }
4519 fi
4520 if ${lt_cv_path_LD+:} false; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -z "$LD"; then
4524 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4525 for ac_dir in $PATH; do
4526 IFS=$lt_save_ifs
4527 test -z "$ac_dir" && ac_dir=.
4528 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4529 lt_cv_path_LD=$ac_dir/$ac_prog
4530 # Check to see if the program is GNU ld. I'd rather use --version,
4531 # but apparently some variants of GNU ld only accept -v.
4532 # Break only if it was the GNU/non-GNU ld that we prefer.
4533 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4534 *GNU* | *'with BFD'*)
4535 test no != "$with_gnu_ld" && break
4536 ;;
4537 *)
4538 test yes != "$with_gnu_ld" && break
4539 ;;
4540 esac
4541 fi
4542 done
4543 IFS=$lt_save_ifs
4544 else
4545 lt_cv_path_LD=$LD # Let the user override the test with a path.
4546 fi
4547 fi
4548
4549 LD=$lt_cv_path_LD
4550 if test -n "$LD"; then
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4552 $as_echo "$LD" >&6; }
4553 else
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4556 fi
4557 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4559 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4560 if ${lt_cv_prog_gnu_ld+:} false; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4564 case `$LD -v 2>&1 </dev/null` in
4565 *GNU* | *'with BFD'*)
4566 lt_cv_prog_gnu_ld=yes
4567 ;;
4568 *)
4569 lt_cv_prog_gnu_ld=no
4570 ;;
4571 esac
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4574 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4575 with_gnu_ld=$lt_cv_prog_gnu_ld
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4586 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4587 if ${lt_cv_path_NM+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if test -n "$NM"; then
4591 # Let the user override the test.
4592 lt_cv_path_NM=$NM
4593 else
4594 lt_nm_to_check=${ac_tool_prefix}nm
4595 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4596 lt_nm_to_check="$lt_nm_to_check nm"
4597 fi
4598 for lt_tmp_nm in $lt_nm_to_check; do
4599 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4600 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4601 IFS=$lt_save_ifs
4602 test -z "$ac_dir" && ac_dir=.
4603 tmp_nm=$ac_dir/$lt_tmp_nm
4604 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4605 # Check to see if the nm accepts a BSD-compat flag.
4606 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4607 # nm: unknown option "B" ignored
4608 # Tru64's nm complains that /dev/null is an invalid object file
4609 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4610 case $build_os in
4611 mingw*) lt_bad_file=conftest.nm/nofile ;;
4612 *) lt_bad_file=/dev/null ;;
4613 esac
4614 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4615 *$lt_bad_file* | *'Invalid file or object type'*)
4616 lt_cv_path_NM="$tmp_nm -B"
4617 break 2
4618 ;;
4619 *)
4620 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4621 */dev/null*)
4622 lt_cv_path_NM="$tmp_nm -p"
4623 break 2
4624 ;;
4625 *)
4626 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4627 continue # so that we can try to find one that supports BSD flags
4628 ;;
4629 esac
4630 ;;
4631 esac
4632 fi
4633 done
4634 IFS=$lt_save_ifs
4635 done
4636 : ${lt_cv_path_NM=no}
4637 fi
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4640 $as_echo "$lt_cv_path_NM" >&6; }
4641 if test no != "$lt_cv_path_NM"; then
4642 NM=$lt_cv_path_NM
4643 else
4644 # Didn't find any BSD compatible name lister, look for dumpbin.
4645 if test -n "$DUMPBIN"; then :
4646 # Let the user override the test.
4647 else
4648 if test -n "$ac_tool_prefix"; then
4649 for ac_prog in dumpbin "link -dump"
4650 do
4651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if ${ac_cv_prog_DUMPBIN+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$DUMPBIN"; then
4659 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 fi
4677 fi
4678 DUMPBIN=$ac_cv_prog_DUMPBIN
4679 if test -n "$DUMPBIN"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4681 $as_echo "$DUMPBIN" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4685 fi
4686
4687
4688 test -n "$DUMPBIN" && break
4689 done
4690 fi
4691 if test -z "$DUMPBIN"; then
4692 ac_ct_DUMPBIN=$DUMPBIN
4693 for ac_prog in dumpbin "link -dump"
4694 do
4695 # Extract the first word of "$ac_prog", so it can be a program name with args.
4696 set dummy $ac_prog; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$ac_ct_DUMPBIN"; then
4703 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4723 if test -n "$ac_ct_DUMPBIN"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4725 $as_echo "$ac_ct_DUMPBIN" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731
4732 test -n "$ac_ct_DUMPBIN" && break
4733 done
4734
4735 if test "x$ac_ct_DUMPBIN" = x; then
4736 DUMPBIN=":"
4737 else
4738 case $cross_compiling:$ac_tool_warned in
4739 yes:)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742 ac_tool_warned=yes ;;
4743 esac
4744 DUMPBIN=$ac_ct_DUMPBIN
4745 fi
4746 fi
4747
4748 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4749 *COFF*)
4750 DUMPBIN="$DUMPBIN -symbols -headers"
4751 ;;
4752 *)
4753 DUMPBIN=:
4754 ;;
4755 esac
4756 fi
4757
4758 if test : != "$DUMPBIN"; then
4759 NM=$DUMPBIN
4760 fi
4761 fi
4762 test -z "$NM" && NM=nm
4763
4764
4765
4766
4767
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4770 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4771 if ${lt_cv_nm_interface+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 lt_cv_nm_interface="BSD nm"
4775 echo "int some_variable = 0;" > conftest.$ac_ext
4776 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4777 (eval "$ac_compile" 2>conftest.err)
4778 cat conftest.err >&5
4779 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4780 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4781 cat conftest.err >&5
4782 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4783 cat conftest.out >&5
4784 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4785 lt_cv_nm_interface="MS dumpbin"
4786 fi
4787 rm -f conftest*
4788 fi
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4790 $as_echo "$lt_cv_nm_interface" >&6; }
4791
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4793 $as_echo_n "checking whether ln -s works... " >&6; }
4794 LN_S=$as_ln_s
4795 if test "$LN_S" = "ln -s"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4797 $as_echo "yes" >&6; }
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4800 $as_echo "no, using $LN_S" >&6; }
4801 fi
4802
4803 # find the maximum length of command line arguments
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4805 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4806 if ${lt_cv_sys_max_cmd_len+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 i=0
4810 teststring=ABCD
4811
4812 case $build_os in
4813 msdosdjgpp*)
4814 # On DJGPP, this test can blow up pretty badly due to problems in libc
4815 # (any single argument exceeding 2000 bytes causes a buffer overrun
4816 # during glob expansion). Even if it were fixed, the result of this
4817 # check would be larger than it should be.
4818 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4819 ;;
4820
4821 gnu*)
4822 # Under GNU Hurd, this test is not required because there is
4823 # no limit to the length of command line arguments.
4824 # Libtool will interpret -1 as no limit whatsoever
4825 lt_cv_sys_max_cmd_len=-1;
4826 ;;
4827
4828 cygwin* | mingw* | cegcc*)
4829 # On Win9x/ME, this test blows up -- it succeeds, but takes
4830 # about 5 minutes as the teststring grows exponentially.
4831 # Worse, since 9x/ME are not pre-emptively multitasking,
4832 # you end up with a "frozen" computer, even though with patience
4833 # the test eventually succeeds (with a max line length of 256k).
4834 # Instead, let's just punt: use the minimum linelength reported by
4835 # all of the supported platforms: 8192 (on NT/2K/XP).
4836 lt_cv_sys_max_cmd_len=8192;
4837 ;;
4838
4839 mint*)
4840 # On MiNT this can take a long time and run out of memory.
4841 lt_cv_sys_max_cmd_len=8192;
4842 ;;
4843
4844 amigaos*)
4845 # On AmigaOS with pdksh, this test takes hours, literally.
4846 # So we just punt and use a minimum line length of 8192.
4847 lt_cv_sys_max_cmd_len=8192;
4848 ;;
4849
4850 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4851 # This has been around since 386BSD, at least. Likely further.
4852 if test -x /sbin/sysctl; then
4853 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4854 elif test -x /usr/sbin/sysctl; then
4855 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4856 else
4857 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4858 fi
4859 # And add a safety zone
4860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4862 ;;
4863
4864 interix*)
4865 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4866 lt_cv_sys_max_cmd_len=196608
4867 ;;
4868
4869 os2*)
4870 # The test takes a long time on OS/2.
4871 lt_cv_sys_max_cmd_len=8192
4872 ;;
4873
4874 osf*)
4875 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4876 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4877 # nice to cause kernel panics so lets avoid the loop below.
4878 # First set a reasonable default.
4879 lt_cv_sys_max_cmd_len=16384
4880 #
4881 if test -x /sbin/sysconfig; then
4882 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4883 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4884 esac
4885 fi
4886 ;;
4887 sco3.2v5*)
4888 lt_cv_sys_max_cmd_len=102400
4889 ;;
4890 sysv5* | sco5v6* | sysv4.2uw2*)
4891 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4892 if test -n "$kargmax"; then
4893 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4894 else
4895 lt_cv_sys_max_cmd_len=32768
4896 fi
4897 ;;
4898 *)
4899 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4900 if test -n "$lt_cv_sys_max_cmd_len" && \
4901 test undefined != "$lt_cv_sys_max_cmd_len"; then
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4904 else
4905 # Make teststring a little bigger before we do anything with it.
4906 # a 1K string should be a reasonable start.
4907 for i in 1 2 3 4 5 6 7 8; do
4908 teststring=$teststring$teststring
4909 done
4910 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4911 # If test is not a shell built-in, we'll probably end up computing a
4912 # maximum length that is only half of the actual maximum length, but
4913 # we can't tell.
4914 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4915 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4916 test 17 != "$i" # 1/2 MB should be enough
4917 do
4918 i=`expr $i + 1`
4919 teststring=$teststring$teststring
4920 done
4921 # Only check the string length outside the loop.
4922 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4923 teststring=
4924 # Add a significant safety factor because C++ compilers can tack on
4925 # massive amounts of additional arguments before passing them to the
4926 # linker. It appears as though 1/2 is a usable value.
4927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4928 fi
4929 ;;
4930 esac
4931
4932 fi
4933
4934 if test -n "$lt_cv_sys_max_cmd_len"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4936 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4939 $as_echo "none" >&6; }
4940 fi
4941 max_cmd_len=$lt_cv_sys_max_cmd_len
4942
4943
4944
4945
4946
4947
4948 : ${CP="cp -f"}
4949 : ${MV="mv -f"}
4950 : ${RM="rm -f"}
4951
4952 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4953 lt_unset=unset
4954 else
4955 lt_unset=false
4956 fi
4957
4958
4959
4960
4961
4962 # test EBCDIC or ASCII
4963 case `echo X|tr X '\101'` in
4964 A) # ASCII based system
4965 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4966 lt_SP2NL='tr \040 \012'
4967 lt_NL2SP='tr \015\012 \040\040'
4968 ;;
4969 *) # EBCDIC based system
4970 lt_SP2NL='tr \100 \n'
4971 lt_NL2SP='tr \r\n \100\100'
4972 ;;
4973 esac
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4984 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4985 if ${lt_cv_to_host_file_cmd+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 case $host in
4989 *-*-mingw* )
4990 case $build in
4991 *-*-mingw* ) # actually msys
4992 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4993 ;;
4994 *-*-cygwin* )
4995 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4996 ;;
4997 * ) # otherwise, assume *nix
4998 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4999 ;;
5000 esac
5001 ;;
5002 *-*-cygwin* )
5003 case $build in
5004 *-*-mingw* ) # actually msys
5005 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5006 ;;
5007 *-*-cygwin* )
5008 lt_cv_to_host_file_cmd=func_convert_file_noop
5009 ;;
5010 * ) # otherwise, assume *nix
5011 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5012 ;;
5013 esac
5014 ;;
5015 * ) # unhandled hosts (and "normal" native builds)
5016 lt_cv_to_host_file_cmd=func_convert_file_noop
5017 ;;
5018 esac
5019
5020 fi
5021
5022 to_host_file_cmd=$lt_cv_to_host_file_cmd
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5024 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5025
5026
5027
5028
5029
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5031 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5032 if ${lt_cv_to_tool_file_cmd+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 #assume ordinary cross tools, or native build.
5036 lt_cv_to_tool_file_cmd=func_convert_file_noop
5037 case $host in
5038 *-*-mingw* )
5039 case $build in
5040 *-*-mingw* ) # actually msys
5041 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5042 ;;
5043 esac
5044 ;;
5045 esac
5046
5047 fi
5048
5049 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5051 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5052
5053
5054
5055
5056
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5058 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5059 if ${lt_cv_ld_reload_flag+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 lt_cv_ld_reload_flag='-r'
5063 fi
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5065 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5066 reload_flag=$lt_cv_ld_reload_flag
5067 case $reload_flag in
5068 "" | " "*) ;;
5069 *) reload_flag=" $reload_flag" ;;
5070 esac
5071 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5072 case $host_os in
5073 cygwin* | mingw* | pw32* | cegcc*)
5074 if test yes != "$GCC"; then
5075 reload_cmds=false
5076 fi
5077 ;;
5078 darwin*)
5079 if test yes = "$GCC"; then
5080 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5081 else
5082 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5083 fi
5084 ;;
5085 esac
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095 if test -n "$ac_tool_prefix"; then
5096 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5097 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_OBJDUMP+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$OBJDUMP"; then
5104 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121 fi
5122 fi
5123 OBJDUMP=$ac_cv_prog_OBJDUMP
5124 if test -n "$OBJDUMP"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5126 $as_echo "$OBJDUMP" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5130 fi
5131
5132
5133 fi
5134 if test -z "$ac_cv_prog_OBJDUMP"; then
5135 ac_ct_OBJDUMP=$OBJDUMP
5136 # Extract the first word of "objdump", so it can be a program name with args.
5137 set dummy objdump; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -n "$ac_ct_OBJDUMP"; then
5144 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161 fi
5162 fi
5163 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5164 if test -n "$ac_ct_OBJDUMP"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5166 $as_echo "$ac_ct_OBJDUMP" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171
5172 if test "x$ac_ct_OBJDUMP" = x; then
5173 OBJDUMP="false"
5174 else
5175 case $cross_compiling:$ac_tool_warned in
5176 yes:)
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5179 ac_tool_warned=yes ;;
5180 esac
5181 OBJDUMP=$ac_ct_OBJDUMP
5182 fi
5183 else
5184 OBJDUMP="$ac_cv_prog_OBJDUMP"
5185 fi
5186
5187 test -z "$OBJDUMP" && OBJDUMP=objdump
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5198 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5199 if ${lt_cv_deplibs_check_method+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 lt_cv_file_magic_cmd='$MAGIC_CMD'
5203 lt_cv_file_magic_test_file=
5204 lt_cv_deplibs_check_method='unknown'
5205 # Need to set the preceding variable on all platforms that support
5206 # interlibrary dependencies.
5207 # 'none' -- dependencies not supported.
5208 # 'unknown' -- same as none, but documents that we really don't know.
5209 # 'pass_all' -- all dependencies passed with no checks.
5210 # 'test_compile' -- check by making test program.
5211 # 'file_magic [[regex]]' -- check by looking for files in library path
5212 # that responds to the $file_magic_cmd with a given extended regex.
5213 # If you have 'file' or equivalent on your system and you're not sure
5214 # whether 'pass_all' will *always* work, you probably want this one.
5215
5216 case $host_os in
5217 aix[4-9]*)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220
5221 beos*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224
5225 bsdi[45]*)
5226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5227 lt_cv_file_magic_cmd='/usr/bin/file -L'
5228 lt_cv_file_magic_test_file=/shlib/libc.so
5229 ;;
5230
5231 cygwin*)
5232 # func_win32_libid is a shell function defined in ltmain.sh
5233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5234 lt_cv_file_magic_cmd='func_win32_libid'
5235 ;;
5236
5237 mingw* | pw32*)
5238 # Base MSYS/MinGW do not provide the 'file' command needed by
5239 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5240 # unless we find 'file', for example because we are cross-compiling.
5241 if ( file / ) >/dev/null 2>&1; then
5242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5243 lt_cv_file_magic_cmd='func_win32_libid'
5244 else
5245 # Keep this pattern in sync with the one in func_win32_libid.
5246 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5247 lt_cv_file_magic_cmd='$OBJDUMP -f'
5248 fi
5249 ;;
5250
5251 cegcc*)
5252 # use the weaker test based on 'objdump'. See mingw*.
5253 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5254 lt_cv_file_magic_cmd='$OBJDUMP -f'
5255 ;;
5256
5257 darwin* | rhapsody*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261 freebsd* | dragonfly*)
5262 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5263 case $host_cpu in
5264 i*86 )
5265 # Not sure whether the presence of OpenBSD here was a mistake.
5266 # Let's accept both of them until this is cleared up.
5267 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5268 lt_cv_file_magic_cmd=/usr/bin/file
5269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5270 ;;
5271 esac
5272 else
5273 lt_cv_deplibs_check_method=pass_all
5274 fi
5275 ;;
5276
5277 haiku*)
5278 lt_cv_deplibs_check_method=pass_all
5279 ;;
5280
5281 hpux10.20* | hpux11*)
5282 lt_cv_file_magic_cmd=/usr/bin/file
5283 case $host_cpu in
5284 ia64*)
5285 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5286 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5287 ;;
5288 hppa*64*)
5289 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]'
5290 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5291 ;;
5292 *)
5293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5294 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5295 ;;
5296 esac
5297 ;;
5298
5299 interix[3-9]*)
5300 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5302 ;;
5303
5304 irix5* | irix6* | nonstopux*)
5305 case $LD in
5306 *-32|*"-32 ") libmagic=32-bit;;
5307 *-n32|*"-n32 ") libmagic=N32;;
5308 *-64|*"-64 ") libmagic=64-bit;;
5309 *) libmagic=never-match;;
5310 esac
5311 lt_cv_deplibs_check_method=pass_all
5312 ;;
5313
5314 # This must be glibc/ELF.
5315 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318
5319 netbsd*)
5320 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322 else
5323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5324 fi
5325 ;;
5326
5327 newos6*)
5328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5329 lt_cv_file_magic_cmd=/usr/bin/file
5330 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5331 ;;
5332
5333 *nto* | *qnx*)
5334 lt_cv_deplibs_check_method=pass_all
5335 ;;
5336
5337 openbsd* | bitrig*)
5338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5340 else
5341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5342 fi
5343 ;;
5344
5345 osf3* | osf4* | osf5*)
5346 lt_cv_deplibs_check_method=pass_all
5347 ;;
5348
5349 rdos*)
5350 lt_cv_deplibs_check_method=pass_all
5351 ;;
5352
5353 solaris*)
5354 lt_cv_deplibs_check_method=pass_all
5355 ;;
5356
5357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5358 lt_cv_deplibs_check_method=pass_all
5359 ;;
5360
5361 sysv4 | sysv4.3*)
5362 case $host_vendor in
5363 motorola)
5364 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]'
5365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5366 ;;
5367 ncr)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370 sequent)
5371 lt_cv_file_magic_cmd='/bin/file'
5372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5373 ;;
5374 sni)
5375 lt_cv_file_magic_cmd='/bin/file'
5376 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5377 lt_cv_file_magic_test_file=/lib/libc.so
5378 ;;
5379 siemens)
5380 lt_cv_deplibs_check_method=pass_all
5381 ;;
5382 pc)
5383 lt_cv_deplibs_check_method=pass_all
5384 ;;
5385 esac
5386 ;;
5387
5388 tpf*)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391 os2*)
5392 lt_cv_deplibs_check_method=pass_all
5393 ;;
5394 esac
5395
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5398 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5399
5400 file_magic_glob=
5401 want_nocaseglob=no
5402 if test "$build" = "$host"; then
5403 case $host_os in
5404 mingw* | pw32*)
5405 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5406 want_nocaseglob=yes
5407 else
5408 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5409 fi
5410 ;;
5411 esac
5412 fi
5413
5414 file_magic_cmd=$lt_cv_file_magic_cmd
5415 deplibs_check_method=$lt_cv_deplibs_check_method
5416 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439 if test -n "$ac_tool_prefix"; then
5440 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5441 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_prog_DLLTOOL+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 if test -n "$DLLTOOL"; then
5448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5449 else
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461 done
5462 done
5463 IFS=$as_save_IFS
5464
5465 fi
5466 fi
5467 DLLTOOL=$ac_cv_prog_DLLTOOL
5468 if test -n "$DLLTOOL"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5470 $as_echo "$DLLTOOL" >&6; }
5471 else
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474 fi
5475
5476
5477 fi
5478 if test -z "$ac_cv_prog_DLLTOOL"; then
5479 ac_ct_DLLTOOL=$DLLTOOL
5480 # Extract the first word of "dlltool", so it can be a program name with args.
5481 set dummy dlltool; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if test -n "$ac_ct_DLLTOOL"; then
5488 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5489 else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5500 fi
5501 done
5502 done
5503 IFS=$as_save_IFS
5504
5505 fi
5506 fi
5507 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5508 if test -n "$ac_ct_DLLTOOL"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5510 $as_echo "$ac_ct_DLLTOOL" >&6; }
5511 else
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5514 fi
5515
5516 if test "x$ac_ct_DLLTOOL" = x; then
5517 DLLTOOL="false"
5518 else
5519 case $cross_compiling:$ac_tool_warned in
5520 yes:)
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned=yes ;;
5524 esac
5525 DLLTOOL=$ac_ct_DLLTOOL
5526 fi
5527 else
5528 DLLTOOL="$ac_cv_prog_DLLTOOL"
5529 fi
5530
5531 test -z "$DLLTOOL" && DLLTOOL=dlltool
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5543 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5544 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 lt_cv_sharedlib_from_linklib_cmd='unknown'
5548
5549 case $host_os in
5550 cygwin* | mingw* | pw32* | cegcc*)
5551 # two different shell functions defined in ltmain.sh;
5552 # decide which one to use based on capabilities of $DLLTOOL
5553 case `$DLLTOOL --help 2>&1` in
5554 *--identify-strict*)
5555 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5556 ;;
5557 *)
5558 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5559 ;;
5560 esac
5561 ;;
5562 *)
5563 # fallback: assume linklib IS sharedlib
5564 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5565 ;;
5566 esac
5567
5568 fi
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5570 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5571 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5572 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5573
5574
5575
5576
5577
5578
5579
5580
5581 if test -n "$ac_tool_prefix"; then
5582 for ac_prog in ar
5583 do
5584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5585 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_AR+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 if test -n "$AR"; then
5592 ac_cv_prog_AR="$AR" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5604 fi
5605 done
5606 done
5607 IFS=$as_save_IFS
5608
5609 fi
5610 fi
5611 AR=$ac_cv_prog_AR
5612 if test -n "$AR"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5614 $as_echo "$AR" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5618 fi
5619
5620
5621 test -n "$AR" && break
5622 done
5623 fi
5624 if test -z "$AR"; then
5625 ac_ct_AR=$AR
5626 for ac_prog in ar
5627 do
5628 # Extract the first word of "$ac_prog", so it can be a program name with args.
5629 set dummy $ac_prog; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -n "$ac_ct_AR"; then
5636 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_ac_ct_AR="$ac_prog"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5648 fi
5649 done
5650 done
5651 IFS=$as_save_IFS
5652
5653 fi
5654 fi
5655 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5656 if test -n "$ac_ct_AR"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5658 $as_echo "$ac_ct_AR" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662 fi
5663
5664
5665 test -n "$ac_ct_AR" && break
5666 done
5667
5668 if test "x$ac_ct_AR" = x; then
5669 AR="false"
5670 else
5671 case $cross_compiling:$ac_tool_warned in
5672 yes:)
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5675 ac_tool_warned=yes ;;
5676 esac
5677 AR=$ac_ct_AR
5678 fi
5679 fi
5680
5681 : ${AR=ar}
5682 : ${AR_FLAGS=cru}
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5695 $as_echo_n "checking for archiver @FILE support... " >&6; }
5696 if ${lt_cv_ar_at_file+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 lt_cv_ar_at_file=no
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702
5703 int
5704 main ()
5705 {
5706
5707 ;
5708 return 0;
5709 }
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 echo conftest.$ac_objext > conftest.lst
5713 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5715 (eval $lt_ar_try) 2>&5
5716 ac_status=$?
5717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718 test $ac_status = 0; }
5719 if test 0 -eq "$ac_status"; then
5720 # Ensure the archiver fails upon bogus file names.
5721 rm -f conftest.$ac_objext libconftest.a
5722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5723 (eval $lt_ar_try) 2>&5
5724 ac_status=$?
5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726 test $ac_status = 0; }
5727 if test 0 -ne "$ac_status"; then
5728 lt_cv_ar_at_file=@
5729 fi
5730 fi
5731 rm -f conftest.* libconftest.a
5732
5733 fi
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735
5736 fi
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5738 $as_echo "$lt_cv_ar_at_file" >&6; }
5739
5740 if test no = "$lt_cv_ar_at_file"; then
5741 archiver_list_spec=
5742 else
5743 archiver_list_spec=$lt_cv_ar_at_file
5744 fi
5745
5746
5747
5748
5749
5750
5751
5752 if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}strip; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_STRIP+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if test -n "$STRIP"; then
5761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 break 2
5773 fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 STRIP=$ac_cv_prog_STRIP
5781 if test -n "$STRIP"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5783 $as_echo "$STRIP" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789
5790 fi
5791 if test -z "$ac_cv_prog_STRIP"; then
5792 ac_ct_STRIP=$STRIP
5793 # Extract the first word of "strip", so it can be a program name with args.
5794 set dummy strip; ac_word=$2
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 if test -n "$ac_ct_STRIP"; then
5801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_ac_ct_STRIP="strip"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5813 fi
5814 done
5815 done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5821 if test -n "$ac_ct_STRIP"; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5823 $as_echo "$ac_ct_STRIP" >&6; }
5824 else
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829 if test "x$ac_ct_STRIP" = x; then
5830 STRIP=":"
5831 else
5832 case $cross_compiling:$ac_tool_warned in
5833 yes:)
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5837 esac
5838 STRIP=$ac_ct_STRIP
5839 fi
5840 else
5841 STRIP="$ac_cv_prog_STRIP"
5842 fi
5843
5844 test -z "$STRIP" && STRIP=:
5845
5846
5847
5848
5849
5850
5851 if test -n "$ac_tool_prefix"; then
5852 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 $as_echo_n "checking for $ac_word... " >&6; }
5856 if ${ac_cv_prog_RANLIB+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 if test -n "$RANLIB"; then
5860 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5861 else
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_exec_ext in '' $ac_executable_extensions; do
5868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871 break 2
5872 fi
5873 done
5874 done
5875 IFS=$as_save_IFS
5876
5877 fi
5878 fi
5879 RANLIB=$ac_cv_prog_RANLIB
5880 if test -n "$RANLIB"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5882 $as_echo "$RANLIB" >&6; }
5883 else
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887
5888
5889 fi
5890 if test -z "$ac_cv_prog_RANLIB"; then
5891 ac_ct_RANLIB=$RANLIB
5892 # Extract the first word of "ranlib", so it can be a program name with args.
5893 set dummy ranlib; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5897 $as_echo_n "(cached) " >&6
5898 else
5899 if test -n "$ac_ct_RANLIB"; then
5900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909 ac_cv_prog_ac_ct_RANLIB="ranlib"
5910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 break 2
5912 fi
5913 done
5914 done
5915 IFS=$as_save_IFS
5916
5917 fi
5918 fi
5919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5920 if test -n "$ac_ct_RANLIB"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5922 $as_echo "$ac_ct_RANLIB" >&6; }
5923 else
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5926 fi
5927
5928 if test "x$ac_ct_RANLIB" = x; then
5929 RANLIB=":"
5930 else
5931 case $cross_compiling:$ac_tool_warned in
5932 yes:)
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5935 ac_tool_warned=yes ;;
5936 esac
5937 RANLIB=$ac_ct_RANLIB
5938 fi
5939 else
5940 RANLIB="$ac_cv_prog_RANLIB"
5941 fi
5942
5943 test -z "$RANLIB" && RANLIB=:
5944
5945
5946
5947
5948
5949
5950 # Determine commands to create old-style static archives.
5951 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5952 old_postinstall_cmds='chmod 644 $oldlib'
5953 old_postuninstall_cmds=
5954
5955 if test -n "$RANLIB"; then
5956 case $host_os in
5957 bitrig* | openbsd*)
5958 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5959 ;;
5960 *)
5961 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5962 ;;
5963 esac
5964 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5965 fi
5966
5967 case $host_os in
5968 darwin*)
5969 lock_old_archive_extraction=yes ;;
5970 *)
5971 lock_old_archive_extraction=no ;;
5972 esac
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
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 # If no C compiler was specified, use CC.
6013 LTCC=${LTCC-"$CC"}
6014
6015 # If no C compiler flags were specified, use CFLAGS.
6016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6017
6018 # Allow CC to be a program name with arguments.
6019 compiler=$CC
6020
6021
6022 # Check for command to grab the raw symbol name followed by C symbol from nm.
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6024 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6025 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028
6029 # These are sane defaults that work on at least a few old systems.
6030 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6031
6032 # Character class describing NM global symbol codes.
6033 symcode='[BCDEGRST]'
6034
6035 # Regexp to match symbols that can be accessed directly from C.
6036 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6037
6038 # Define system-specific variables.
6039 case $host_os in
6040 aix*)
6041 symcode='[BCDT]'
6042 ;;
6043 cygwin* | mingw* | pw32* | cegcc*)
6044 symcode='[ABCDGISTW]'
6045 ;;
6046 hpux*)
6047 if test ia64 = "$host_cpu"; then
6048 symcode='[ABCDEGRST]'
6049 fi
6050 ;;
6051 irix* | nonstopux*)
6052 symcode='[BCDEGRST]'
6053 ;;
6054 osf*)
6055 symcode='[BCDEGQRST]'
6056 ;;
6057 solaris*)
6058 symcode='[BDRT]'
6059 ;;
6060 sco3.2v5*)
6061 symcode='[DT]'
6062 ;;
6063 sysv4.2uw2*)
6064 symcode='[DT]'
6065 ;;
6066 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6067 symcode='[ABDT]'
6068 ;;
6069 sysv4)
6070 symcode='[DFNSTU]'
6071 ;;
6072 esac
6073
6074 # If we're using GNU nm, then use its standard symbol codes.
6075 case `$NM -V 2>&1` in
6076 *GNU* | *'with BFD'*)
6077 symcode='[ABCDGIRSTW]' ;;
6078 esac
6079
6080 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6081 # Gets list of data symbols to import.
6082 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6083 # Adjust the below global symbol transforms to fixup imported variables.
6084 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6085 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6086 lt_c_name_lib_hook="\
6087 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6088 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6089 else
6090 # Disable hooks by default.
6091 lt_cv_sys_global_symbol_to_import=
6092 lt_cdecl_hook=
6093 lt_c_name_hook=
6094 lt_c_name_lib_hook=
6095 fi
6096
6097 # Transform an extracted symbol line into a proper C declaration.
6098 # Some systems (esp. on ia64) link data and code symbols differently,
6099 # so use this general approach.
6100 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6101 $lt_cdecl_hook\
6102 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6103 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6104
6105 # Transform an extracted symbol line into symbol name and symbol address
6106 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6107 $lt_c_name_hook\
6108 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6109 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6110
6111 # Transform an extracted symbol line into symbol name with lib prefix and
6112 # symbol address.
6113 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6114 $lt_c_name_lib_hook\
6115 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6116 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6117 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6118
6119 # Handle CRLF in mingw tool chain
6120 opt_cr=
6121 case $build_os in
6122 mingw*)
6123 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6124 ;;
6125 esac
6126
6127 # Try without a prefix underscore, then with it.
6128 for ac_symprfx in "" "_"; do
6129
6130 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6131 symxfrm="\\1 $ac_symprfx\\2 \\2"
6132
6133 # Write the raw and C identifiers.
6134 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6135 # Fake it for dumpbin and say T for any non-static function,
6136 # D for any global variable and I for any imported variable.
6137 # Also find C++ and __fastcall symbols from MSVC++,
6138 # which start with @ or ?.
6139 lt_cv_sys_global_symbol_pipe="$AWK '"\
6140 " {last_section=section; section=\$ 3};"\
6141 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6142 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6143 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6144 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6145 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6146 " \$ 0!~/External *\|/{next};"\
6147 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6148 " {if(hide[section]) next};"\
6149 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6150 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6151 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6152 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6153 " ' prfx=^$ac_symprfx"
6154 else
6155 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6156 fi
6157 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6158
6159 # Check to see that the pipe works correctly.
6160 pipe_works=no
6161
6162 rm -f conftest*
6163 cat > conftest.$ac_ext <<_LT_EOF
6164 #ifdef __cplusplus
6165 extern "C" {
6166 #endif
6167 char nm_test_var;
6168 void nm_test_func(void);
6169 void nm_test_func(void){}
6170 #ifdef __cplusplus
6171 }
6172 #endif
6173 int main(){nm_test_var='a';nm_test_func();return(0);}
6174 _LT_EOF
6175
6176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6177 (eval $ac_compile) 2>&5
6178 ac_status=$?
6179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180 test $ac_status = 0; }; then
6181 # Now try to grab the symbols.
6182 nlist=conftest.nm
6183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6184 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6185 ac_status=$?
6186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; } && test -s "$nlist"; then
6188 # Try sorting and uniquifying the output.
6189 if sort "$nlist" | uniq > "$nlist"T; then
6190 mv -f "$nlist"T "$nlist"
6191 else
6192 rm -f "$nlist"T
6193 fi
6194
6195 # Make sure that we snagged all the symbols we need.
6196 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6197 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6198 cat <<_LT_EOF > conftest.$ac_ext
6199 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6200 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6201 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6202 relocations are performed -- see ld's documentation on pseudo-relocs. */
6203 # define LT_DLSYM_CONST
6204 #elif defined __osf__
6205 /* This system does not cope well with relocations in const data. */
6206 # define LT_DLSYM_CONST
6207 #else
6208 # define LT_DLSYM_CONST const
6209 #endif
6210
6211 #ifdef __cplusplus
6212 extern "C" {
6213 #endif
6214
6215 _LT_EOF
6216 # Now generate the symbol file.
6217 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6218
6219 cat <<_LT_EOF >> conftest.$ac_ext
6220
6221 /* The mapping between symbol names and symbols. */
6222 LT_DLSYM_CONST struct {
6223 const char *name;
6224 void *address;
6225 }
6226 lt__PROGRAM__LTX_preloaded_symbols[] =
6227 {
6228 { "@PROGRAM@", (void *) 0 },
6229 _LT_EOF
6230 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6231 cat <<\_LT_EOF >> conftest.$ac_ext
6232 {0, (void *) 0}
6233 };
6234
6235 /* This works around a problem in FreeBSD linker */
6236 #ifdef FREEBSD_WORKAROUND
6237 static const void *lt_preloaded_setup() {
6238 return lt__PROGRAM__LTX_preloaded_symbols;
6239 }
6240 #endif
6241
6242 #ifdef __cplusplus
6243 }
6244 #endif
6245 _LT_EOF
6246 # Now try linking the two files.
6247 mv conftest.$ac_objext conftstm.$ac_objext
6248 lt_globsym_save_LIBS=$LIBS
6249 lt_globsym_save_CFLAGS=$CFLAGS
6250 LIBS=conftstm.$ac_objext
6251 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6253 (eval $ac_link) 2>&5
6254 ac_status=$?
6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6257 pipe_works=yes
6258 fi
6259 LIBS=$lt_globsym_save_LIBS
6260 CFLAGS=$lt_globsym_save_CFLAGS
6261 else
6262 echo "cannot find nm_test_func in $nlist" >&5
6263 fi
6264 else
6265 echo "cannot find nm_test_var in $nlist" >&5
6266 fi
6267 else
6268 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6269 fi
6270 else
6271 echo "$progname: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6273 fi
6274 rm -rf conftest* conftst*
6275
6276 # Do not use the global_symbol_pipe unless it works.
6277 if test yes = "$pipe_works"; then
6278 break
6279 else
6280 lt_cv_sys_global_symbol_pipe=
6281 fi
6282 done
6283
6284 fi
6285
6286 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6287 lt_cv_sys_global_symbol_to_cdecl=
6288 fi
6289 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6291 $as_echo "failed" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6294 $as_echo "ok" >&6; }
6295 fi
6296
6297 # Response file support.
6298 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6299 nm_file_list_spec='@'
6300 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6301 nm_file_list_spec='@'
6302 fi
6303
6304
6305
6306
6307
6308
6309
6310
6311
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6341 $as_echo_n "checking for sysroot... " >&6; }
6342
6343 # Check whether --with-sysroot was given.
6344 if test "${with_sysroot+set}" = set; then :
6345 withval=$with_sysroot;
6346 else
6347 with_sysroot=no
6348 fi
6349
6350
6351 lt_sysroot=
6352 case $with_sysroot in #(
6353 yes)
6354 if test yes = "$GCC"; then
6355 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6356 fi
6357 ;; #(
6358 /*)
6359 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6360 ;; #(
6361 no|'')
6362 ;; #(
6363 *)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6365 $as_echo "$with_sysroot" >&6; }
6366 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6367 ;;
6368 esac
6369
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6371 $as_echo "${lt_sysroot:-no}" >&6; }
6372
6373
6374
6375
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6378 $as_echo_n "checking for a working dd... " >&6; }
6379 if ${ac_cv_path_lt_DD+:} false; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 printf 0123456789abcdef0123456789abcdef >conftest.i
6383 cat conftest.i conftest.i >conftest2.i
6384 : ${lt_DD:=$DD}
6385 if test -z "$lt_DD"; then
6386 ac_path_lt_DD_found=false
6387 # Loop through the user's path and test for each of PROGNAME-LIST
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_prog in dd; do
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6396 as_fn_executable_p "$ac_path_lt_DD" || continue
6397 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6398 cmp -s conftest.i conftest.out \
6399 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6400 fi
6401 $ac_path_lt_DD_found && break 3
6402 done
6403 done
6404 done
6405 IFS=$as_save_IFS
6406 if test -z "$ac_cv_path_lt_DD"; then
6407 :
6408 fi
6409 else
6410 ac_cv_path_lt_DD=$lt_DD
6411 fi
6412
6413 rm -f conftest.i conftest2.i conftest.out
6414 fi
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6416 $as_echo "$ac_cv_path_lt_DD" >&6; }
6417
6418
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6420 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6421 if ${lt_cv_truncate_bin+:} false; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 printf 0123456789abcdef0123456789abcdef >conftest.i
6425 cat conftest.i conftest.i >conftest2.i
6426 lt_cv_truncate_bin=
6427 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6428 cmp -s conftest.i conftest.out \
6429 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6430 fi
6431 rm -f conftest.i conftest2.i conftest.out
6432 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6433 fi
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6435 $as_echo "$lt_cv_truncate_bin" >&6; }
6436
6437
6438
6439
6440
6441
6442
6443 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6444 func_cc_basename ()
6445 {
6446 for cc_temp in $*""; do
6447 case $cc_temp in
6448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6450 \-*) ;;
6451 *) break;;
6452 esac
6453 done
6454 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6455 }
6456
6457 # Check whether --enable-libtool-lock was given.
6458 if test "${enable_libtool_lock+set}" = set; then :
6459 enableval=$enable_libtool_lock;
6460 fi
6461
6462 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6463
6464 # Some flags need to be propagated to the compiler or linker for good
6465 # libtool support.
6466 case $host in
6467 ia64-*-hpux*)
6468 # Find out what ABI is being produced by ac_compile, and set mode
6469 # options accordingly.
6470 echo 'int i;' > conftest.$ac_ext
6471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6472 (eval $ac_compile) 2>&5
6473 ac_status=$?
6474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475 test $ac_status = 0; }; then
6476 case `/usr/bin/file conftest.$ac_objext` in
6477 *ELF-32*)
6478 HPUX_IA64_MODE=32
6479 ;;
6480 *ELF-64*)
6481 HPUX_IA64_MODE=64
6482 ;;
6483 esac
6484 fi
6485 rm -rf conftest*
6486 ;;
6487 *-*-irix6*)
6488 # Find out what ABI is being produced by ac_compile, and set linker
6489 # options accordingly.
6490 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6492 (eval $ac_compile) 2>&5
6493 ac_status=$?
6494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6495 test $ac_status = 0; }; then
6496 if test yes = "$lt_cv_prog_gnu_ld"; then
6497 case `/usr/bin/file conftest.$ac_objext` in
6498 *32-bit*)
6499 LD="${LD-ld} -melf32bsmip"
6500 ;;
6501 *N32*)
6502 LD="${LD-ld} -melf32bmipn32"
6503 ;;
6504 *64-bit*)
6505 LD="${LD-ld} -melf64bmip"
6506 ;;
6507 esac
6508 else
6509 case `/usr/bin/file conftest.$ac_objext` in
6510 *32-bit*)
6511 LD="${LD-ld} -32"
6512 ;;
6513 *N32*)
6514 LD="${LD-ld} -n32"
6515 ;;
6516 *64-bit*)
6517 LD="${LD-ld} -64"
6518 ;;
6519 esac
6520 fi
6521 fi
6522 rm -rf conftest*
6523 ;;
6524
6525 mips64*-*linux*)
6526 # Find out what ABI is being produced by ac_compile, and set linker
6527 # options accordingly.
6528 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6530 (eval $ac_compile) 2>&5
6531 ac_status=$?
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }; then
6534 emul=elf
6535 case `/usr/bin/file conftest.$ac_objext` in
6536 *32-bit*)
6537 emul="${emul}32"
6538 ;;
6539 *64-bit*)
6540 emul="${emul}64"
6541 ;;
6542 esac
6543 case `/usr/bin/file conftest.$ac_objext` in
6544 *MSB*)
6545 emul="${emul}btsmip"
6546 ;;
6547 *LSB*)
6548 emul="${emul}ltsmip"
6549 ;;
6550 esac
6551 case `/usr/bin/file conftest.$ac_objext` in
6552 *N32*)
6553 emul="${emul}n32"
6554 ;;
6555 esac
6556 LD="${LD-ld} -m $emul"
6557 fi
6558 rm -rf conftest*
6559 ;;
6560
6561 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6562 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6563 # Find out what ABI is being produced by ac_compile, and set linker
6564 # options accordingly. Note that the listed cases only cover the
6565 # situations where additional linker options are needed (such as when
6566 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6567 # vice versa); the common cases where no linker options are needed do
6568 # not appear in the list.
6569 echo 'int i;' > conftest.$ac_ext
6570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6571 (eval $ac_compile) 2>&5
6572 ac_status=$?
6573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574 test $ac_status = 0; }; then
6575 case `/usr/bin/file conftest.o` in
6576 *32-bit*)
6577 case $host in
6578 x86_64-*kfreebsd*-gnu)
6579 LD="${LD-ld} -m elf_i386_fbsd"
6580 ;;
6581 x86_64-*linux*)
6582 case `/usr/bin/file conftest.o` in
6583 *x86-64*)
6584 LD="${LD-ld} -m elf32_x86_64"
6585 ;;
6586 *)
6587 LD="${LD-ld} -m elf_i386"
6588 ;;
6589 esac
6590 ;;
6591 powerpc64le-*linux*)
6592 LD="${LD-ld} -m elf32lppclinux"
6593 ;;
6594 powerpc64-*linux*)
6595 LD="${LD-ld} -m elf32ppclinux"
6596 ;;
6597 s390x-*linux*)
6598 LD="${LD-ld} -m elf_s390"
6599 ;;
6600 sparc64-*linux*)
6601 LD="${LD-ld} -m elf32_sparc"
6602 ;;
6603 esac
6604 ;;
6605 *64-bit*)
6606 case $host in
6607 x86_64-*kfreebsd*-gnu)
6608 LD="${LD-ld} -m elf_x86_64_fbsd"
6609 ;;
6610 x86_64-*linux*)
6611 LD="${LD-ld} -m elf_x86_64"
6612 ;;
6613 powerpcle-*linux*)
6614 LD="${LD-ld} -m elf64lppc"
6615 ;;
6616 powerpc-*linux*)
6617 LD="${LD-ld} -m elf64ppc"
6618 ;;
6619 s390*-*linux*|s390*-*tpf*)
6620 LD="${LD-ld} -m elf64_s390"
6621 ;;
6622 sparc*-*linux*)
6623 LD="${LD-ld} -m elf64_sparc"
6624 ;;
6625 esac
6626 ;;
6627 esac
6628 fi
6629 rm -rf conftest*
6630 ;;
6631
6632 *-*-sco3.2v5*)
6633 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6634 SAVE_CFLAGS=$CFLAGS
6635 CFLAGS="$CFLAGS -belf"
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6637 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6638 if ${lt_cv_cc_needs_belf+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 ac_ext=c
6642 ac_cpp='$CPP $CPPFLAGS'
6643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649
6650 int
6651 main ()
6652 {
6653
6654 ;
6655 return 0;
6656 }
6657 _ACEOF
6658 if ac_fn_c_try_link "$LINENO"; then :
6659 lt_cv_cc_needs_belf=yes
6660 else
6661 lt_cv_cc_needs_belf=no
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext \
6664 conftest$ac_exeext conftest.$ac_ext
6665 ac_ext=c
6666 ac_cpp='$CPP $CPPFLAGS'
6667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6670
6671 fi
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6673 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6674 if test yes != "$lt_cv_cc_needs_belf"; then
6675 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6676 CFLAGS=$SAVE_CFLAGS
6677 fi
6678 ;;
6679 *-*solaris*)
6680 # Find out what ABI is being produced by ac_compile, and set linker
6681 # options accordingly.
6682 echo 'int i;' > conftest.$ac_ext
6683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6684 (eval $ac_compile) 2>&5
6685 ac_status=$?
6686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687 test $ac_status = 0; }; then
6688 case `/usr/bin/file conftest.o` in
6689 *64-bit*)
6690 case $lt_cv_prog_gnu_ld in
6691 yes*)
6692 case $host in
6693 i?86-*-solaris*|x86_64-*-solaris*)
6694 LD="${LD-ld} -m elf_x86_64"
6695 ;;
6696 sparc*-*-solaris*)
6697 LD="${LD-ld} -m elf64_sparc"
6698 ;;
6699 esac
6700 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6701 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6702 LD=${LD-ld}_sol2
6703 fi
6704 ;;
6705 *)
6706 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6707 LD="${LD-ld} -64"
6708 fi
6709 ;;
6710 esac
6711 ;;
6712 esac
6713 fi
6714 rm -rf conftest*
6715 ;;
6716 esac
6717
6718 need_locks=$enable_libtool_lock
6719
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}mt; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$MANIFEST_TOOL"; then
6729 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6733 do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742 done
6743 done
6744 IFS=$as_save_IFS
6745
6746 fi
6747 fi
6748 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6749 if test -n "$MANIFEST_TOOL"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6751 $as_echo "$MANIFEST_TOOL" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6755 fi
6756
6757
6758 fi
6759 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6760 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6761 # Extract the first word of "mt", so it can be a program name with args.
6762 set dummy mt; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 if test -n "$ac_ct_MANIFEST_TOOL"; then
6769 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6781 fi
6782 done
6783 done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6789 if test -n "$ac_ct_MANIFEST_TOOL"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6791 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6795 fi
6796
6797 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6798 MANIFEST_TOOL=":"
6799 else
6800 case $cross_compiling:$ac_tool_warned in
6801 yes:)
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804 ac_tool_warned=yes ;;
6805 esac
6806 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6807 fi
6808 else
6809 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6810 fi
6811
6812 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6814 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6815 if ${lt_cv_path_mainfest_tool+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 lt_cv_path_mainfest_tool=no
6819 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6820 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6821 cat conftest.err >&5
6822 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6823 lt_cv_path_mainfest_tool=yes
6824 fi
6825 rm -f conftest*
6826 fi
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6828 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6829 if test yes != "$lt_cv_path_mainfest_tool"; then
6830 MANIFEST_TOOL=:
6831 fi
6832
6833
6834
6835
6836
6837
6838 case $host_os in
6839 rhapsody* | darwin*)
6840 if test -n "$ac_tool_prefix"; then
6841 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6842 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 if test -n "$DSYMUTIL"; then
6849 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866 fi
6867 fi
6868 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6869 if test -n "$DSYMUTIL"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6871 $as_echo "$DSYMUTIL" >&6; }
6872 else
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6875 fi
6876
6877
6878 fi
6879 if test -z "$ac_cv_prog_DSYMUTIL"; then
6880 ac_ct_DSYMUTIL=$DSYMUTIL
6881 # Extract the first word of "dsymutil", so it can be a program name with args.
6882 set dummy dsymutil; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 if test -n "$ac_ct_DSYMUTIL"; then
6889 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6890 else
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894 IFS=$as_save_IFS
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902 done
6903 done
6904 IFS=$as_save_IFS
6905
6906 fi
6907 fi
6908 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6909 if test -n "$ac_ct_DSYMUTIL"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6911 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6912 else
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6915 fi
6916
6917 if test "x$ac_ct_DSYMUTIL" = x; then
6918 DSYMUTIL=":"
6919 else
6920 case $cross_compiling:$ac_tool_warned in
6921 yes:)
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924 ac_tool_warned=yes ;;
6925 esac
6926 DSYMUTIL=$ac_ct_DSYMUTIL
6927 fi
6928 else
6929 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6930 fi
6931
6932 if test -n "$ac_tool_prefix"; then
6933 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6934 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_NMEDIT+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939 else
6940 if test -n "$NMEDIT"; then
6941 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946 IFS=$as_save_IFS
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952 break 2
6953 fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 NMEDIT=$ac_cv_prog_NMEDIT
6961 if test -n "$NMEDIT"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6963 $as_echo "$NMEDIT" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969
6970 fi
6971 if test -z "$ac_cv_prog_NMEDIT"; then
6972 ac_ct_NMEDIT=$NMEDIT
6973 # Extract the first word of "nmedit", so it can be a program name with args.
6974 set dummy nmedit; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 if test -n "$ac_ct_NMEDIT"; then
6981 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7001 if test -n "$ac_ct_NMEDIT"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7003 $as_echo "$ac_ct_NMEDIT" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009 if test "x$ac_ct_NMEDIT" = x; then
7010 NMEDIT=":"
7011 else
7012 case $cross_compiling:$ac_tool_warned in
7013 yes:)
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7016 ac_tool_warned=yes ;;
7017 esac
7018 NMEDIT=$ac_ct_NMEDIT
7019 fi
7020 else
7021 NMEDIT="$ac_cv_prog_NMEDIT"
7022 fi
7023
7024 if test -n "$ac_tool_prefix"; then
7025 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7026 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_prog_LIPO+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 if test -n "$LIPO"; then
7033 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038 IFS=$as_save_IFS
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046 done
7047 done
7048 IFS=$as_save_IFS
7049
7050 fi
7051 fi
7052 LIPO=$ac_cv_prog_LIPO
7053 if test -n "$LIPO"; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7055 $as_echo "$LIPO" >&6; }
7056 else
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060
7061
7062 fi
7063 if test -z "$ac_cv_prog_LIPO"; then
7064 ac_ct_LIPO=$LIPO
7065 # Extract the first word of "lipo", so it can be a program name with args.
7066 set dummy lipo; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7070 $as_echo_n "(cached) " >&6
7071 else
7072 if test -n "$ac_ct_LIPO"; then
7073 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078 IFS=$as_save_IFS
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_ac_ct_LIPO="lipo"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7093 if test -n "$ac_ct_LIPO"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7095 $as_echo "$ac_ct_LIPO" >&6; }
7096 else
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101 if test "x$ac_ct_LIPO" = x; then
7102 LIPO=":"
7103 else
7104 case $cross_compiling:$ac_tool_warned in
7105 yes:)
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7108 ac_tool_warned=yes ;;
7109 esac
7110 LIPO=$ac_ct_LIPO
7111 fi
7112 else
7113 LIPO="$ac_cv_prog_LIPO"
7114 fi
7115
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}otool; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_OTOOL+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 if test -n "$OTOOL"; then
7125 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 OTOOL=$ac_cv_prog_OTOOL
7145 if test -n "$OTOOL"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7147 $as_echo "$OTOOL" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153
7154 fi
7155 if test -z "$ac_cv_prog_OTOOL"; then
7156 ac_ct_OTOOL=$OTOOL
7157 # Extract the first word of "otool", so it can be a program name with args.
7158 set dummy otool; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$ac_ct_OTOOL"; then
7165 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_ac_ct_OTOOL="otool"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7177 fi
7178 done
7179 done
7180 IFS=$as_save_IFS
7181
7182 fi
7183 fi
7184 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7185 if test -n "$ac_ct_OTOOL"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7187 $as_echo "$ac_ct_OTOOL" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7191 fi
7192
7193 if test "x$ac_ct_OTOOL" = x; then
7194 OTOOL=":"
7195 else
7196 case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned=yes ;;
7201 esac
7202 OTOOL=$ac_ct_OTOOL
7203 fi
7204 else
7205 OTOOL="$ac_cv_prog_OTOOL"
7206 fi
7207
7208 if test -n "$ac_tool_prefix"; then
7209 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7210 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_OTOOL64+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 if test -n "$OTOOL64"; then
7217 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230 done
7231 done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 OTOOL64=$ac_cv_prog_OTOOL64
7237 if test -n "$OTOOL64"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7239 $as_echo "$OTOOL64" >&6; }
7240 else
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245
7246 fi
7247 if test -z "$ac_cv_prog_OTOOL64"; then
7248 ac_ct_OTOOL64=$OTOOL64
7249 # Extract the first word of "otool64", so it can be a program name with args.
7250 set dummy otool64; ac_word=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 if test -n "$ac_ct_OTOOL64"; then
7257 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7258 else
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
7264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266 ac_cv_prog_ac_ct_OTOOL64="otool64"
7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 break 2
7269 fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7273
7274 fi
7275 fi
7276 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7277 if test -n "$ac_ct_OTOOL64"; then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7279 $as_echo "$ac_ct_OTOOL64" >&6; }
7280 else
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284
7285 if test "x$ac_ct_OTOOL64" = x; then
7286 OTOOL64=":"
7287 else
7288 case $cross_compiling:$ac_tool_warned in
7289 yes:)
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7292 ac_tool_warned=yes ;;
7293 esac
7294 OTOOL64=$ac_ct_OTOOL64
7295 fi
7296 else
7297 OTOOL64="$ac_cv_prog_OTOOL64"
7298 fi
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7327 $as_echo_n "checking for -single_module linker flag... " >&6; }
7328 if ${lt_cv_apple_cc_single_mod+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 lt_cv_apple_cc_single_mod=no
7332 if test -z "$LT_MULTI_MODULE"; then
7333 # By default we will add the -single_module flag. You can override
7334 # by either setting the environment variable LT_MULTI_MODULE
7335 # non-empty at configure time, or by adding -multi_module to the
7336 # link flags.
7337 rm -rf libconftest.dylib*
7338 echo "int foo(void){return 1;}" > conftest.c
7339 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7340 -dynamiclib -Wl,-single_module conftest.c" >&5
7341 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7342 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7343 _lt_result=$?
7344 # If there is a non-empty error log, and "single_module"
7345 # appears in it, assume the flag caused a linker warning
7346 if test -s conftest.err && $GREP single_module conftest.err; then
7347 cat conftest.err >&5
7348 # Otherwise, if the output was created with a 0 exit code from
7349 # the compiler, it worked.
7350 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7351 lt_cv_apple_cc_single_mod=yes
7352 else
7353 cat conftest.err >&5
7354 fi
7355 rm -rf libconftest.dylib*
7356 rm -f conftest.*
7357 fi
7358 fi
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7360 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7361
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7363 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7364 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 lt_cv_ld_exported_symbols_list=no
7368 save_LDFLAGS=$LDFLAGS
7369 echo "_main" > conftest.sym
7370 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373
7374 int
7375 main ()
7376 {
7377
7378 ;
7379 return 0;
7380 }
7381 _ACEOF
7382 if ac_fn_c_try_link "$LINENO"; then :
7383 lt_cv_ld_exported_symbols_list=yes
7384 else
7385 lt_cv_ld_exported_symbols_list=no
7386 fi
7387 rm -f core conftest.err conftest.$ac_objext \
7388 conftest$ac_exeext conftest.$ac_ext
7389 LDFLAGS=$save_LDFLAGS
7390
7391 fi
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7393 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7394
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7396 $as_echo_n "checking for -force_load linker flag... " >&6; }
7397 if ${lt_cv_ld_force_load+:} false; then :
7398 $as_echo_n "(cached) " >&6
7399 else
7400 lt_cv_ld_force_load=no
7401 cat > conftest.c << _LT_EOF
7402 int forced_loaded() { return 2;}
7403 _LT_EOF
7404 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7405 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7406 echo "$AR cru libconftest.a conftest.o" >&5
7407 $AR cru libconftest.a conftest.o 2>&5
7408 echo "$RANLIB libconftest.a" >&5
7409 $RANLIB libconftest.a 2>&5
7410 cat > conftest.c << _LT_EOF
7411 int main() { return 0;}
7412 _LT_EOF
7413 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7414 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7415 _lt_result=$?
7416 if test -s conftest.err && $GREP force_load conftest.err; then
7417 cat conftest.err >&5
7418 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7419 lt_cv_ld_force_load=yes
7420 else
7421 cat conftest.err >&5
7422 fi
7423 rm -f conftest.err libconftest.a conftest conftest.c
7424 rm -rf conftest.dSYM
7425
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7428 $as_echo "$lt_cv_ld_force_load" >&6; }
7429 case $host_os in
7430 rhapsody* | darwin1.[012])
7431 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7432 darwin1.*)
7433 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7434 darwin*) # darwin 5.x on
7435 # if running on 10.5 or later, the deployment target defaults
7436 # to the OS version, if on x86, and 10.4, the deployment
7437 # target defaults to 10.4. Don't you love it?
7438 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7439 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7440 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7441 10.[012][,.]*)
7442 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7443 10.*)
7444 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7445 esac
7446 ;;
7447 esac
7448 if test yes = "$lt_cv_apple_cc_single_mod"; then
7449 _lt_dar_single_mod='$single_module'
7450 fi
7451 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7452 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7453 else
7454 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7455 fi
7456 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7457 _lt_dsymutil='~$DSYMUTIL $lib || :'
7458 else
7459 _lt_dsymutil=
7460 fi
7461 ;;
7462 esac
7463
7464 # func_munge_path_list VARIABLE PATH
7465 # -----------------------------------
7466 # VARIABLE is name of variable containing _space_ separated list of
7467 # directories to be munged by the contents of PATH, which is string
7468 # having a format:
7469 # "DIR[:DIR]:"
7470 # string "DIR[ DIR]" will be prepended to VARIABLE
7471 # ":DIR[:DIR]"
7472 # string "DIR[ DIR]" will be appended to VARIABLE
7473 # "DIRP[:DIRP]::[DIRA:]DIRA"
7474 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7475 # "DIRA[ DIRA]" will be appended to VARIABLE
7476 # "DIR[:DIR]"
7477 # VARIABLE will be replaced by "DIR[ DIR]"
7478 func_munge_path_list ()
7479 {
7480 case x$2 in
7481 x)
7482 ;;
7483 *:)
7484 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7485 ;;
7486 x:*)
7487 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7488 ;;
7489 *::*)
7490 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7491 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7492 ;;
7493 *)
7494 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7495 ;;
7496 esac
7497 }
7498
7499 ac_ext=c
7500 ac_cpp='$CPP $CPPFLAGS'
7501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7505 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7506 # On Suns, sometimes $CPP names a directory.
7507 if test -n "$CPP" && test -d "$CPP"; then
7508 CPP=
7509 fi
7510 if test -z "$CPP"; then
7511 if ${ac_cv_prog_CPP+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 # Double quotes because CPP needs to be expanded
7515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7516 do
7517 ac_preproc_ok=false
7518 for ac_c_preproc_warn_flag in '' yes
7519 do
7520 # Use a header file that comes with gcc, so configuring glibc
7521 # with a fresh cross-compiler works.
7522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7523 # <limits.h> exists even on freestanding compilers.
7524 # On the NeXT, cc -E runs the code through the compiler's parser,
7525 # not just through cpp. "Syntax error" is here to catch this case.
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7528 #ifdef __STDC__
7529 # include <limits.h>
7530 #else
7531 # include <assert.h>
7532 #endif
7533 Syntax error
7534 _ACEOF
7535 if ac_fn_c_try_cpp "$LINENO"; then :
7536
7537 else
7538 # Broken: fails on valid input.
7539 continue
7540 fi
7541 rm -f conftest.err conftest.i conftest.$ac_ext
7542
7543 # OK, works on sane cases. Now check whether nonexistent headers
7544 # can be detected and how.
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547 #include <ac_nonexistent.h>
7548 _ACEOF
7549 if ac_fn_c_try_cpp "$LINENO"; then :
7550 # Broken: success on invalid input.
7551 continue
7552 else
7553 # Passes both tests.
7554 ac_preproc_ok=:
7555 break
7556 fi
7557 rm -f conftest.err conftest.i conftest.$ac_ext
7558
7559 done
7560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7561 rm -f conftest.i conftest.err conftest.$ac_ext
7562 if $ac_preproc_ok; then :
7563 break
7564 fi
7565
7566 done
7567 ac_cv_prog_CPP=$CPP
7568
7569 fi
7570 CPP=$ac_cv_prog_CPP
7571 else
7572 ac_cv_prog_CPP=$CPP
7573 fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7575 $as_echo "$CPP" >&6; }
7576 ac_preproc_ok=false
7577 for ac_c_preproc_warn_flag in '' yes
7578 do
7579 # Use a header file that comes with gcc, so configuring glibc
7580 # with a fresh cross-compiler works.
7581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7582 # <limits.h> exists even on freestanding compilers.
7583 # On the NeXT, cc -E runs the code through the compiler's parser,
7584 # not just through cpp. "Syntax error" is here to catch this case.
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 #ifdef __STDC__
7588 # include <limits.h>
7589 #else
7590 # include <assert.h>
7591 #endif
7592 Syntax error
7593 _ACEOF
7594 if ac_fn_c_try_cpp "$LINENO"; then :
7595
7596 else
7597 # Broken: fails on valid input.
7598 continue
7599 fi
7600 rm -f conftest.err conftest.i conftest.$ac_ext
7601
7602 # OK, works on sane cases. Now check whether nonexistent headers
7603 # can be detected and how.
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 #include <ac_nonexistent.h>
7607 _ACEOF
7608 if ac_fn_c_try_cpp "$LINENO"; then :
7609 # Broken: success on invalid input.
7610 continue
7611 else
7612 # Passes both tests.
7613 ac_preproc_ok=:
7614 break
7615 fi
7616 rm -f conftest.err conftest.i conftest.$ac_ext
7617
7618 done
7619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7620 rm -f conftest.i conftest.err conftest.$ac_ext
7621 if $ac_preproc_ok; then :
7622
7623 else
7624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7626 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7627 See \`config.log' for more details" "$LINENO" 5; }
7628 fi
7629
7630 ac_ext=c
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635
7636
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7638 $as_echo_n "checking for ANSI C header files... " >&6; }
7639 if ${ac_cv_header_stdc+:} false; then :
7640 $as_echo_n "(cached) " >&6
7641 else
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #include <stdlib.h>
7645 #include <stdarg.h>
7646 #include <string.h>
7647 #include <float.h>
7648
7649 int
7650 main ()
7651 {
7652
7653 ;
7654 return 0;
7655 }
7656 _ACEOF
7657 if ac_fn_c_try_compile "$LINENO"; then :
7658 ac_cv_header_stdc=yes
7659 else
7660 ac_cv_header_stdc=no
7661 fi
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663
7664 if test $ac_cv_header_stdc = yes; then
7665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 #include <string.h>
7669
7670 _ACEOF
7671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7672 $EGREP "memchr" >/dev/null 2>&1; then :
7673
7674 else
7675 ac_cv_header_stdc=no
7676 fi
7677 rm -f conftest*
7678
7679 fi
7680
7681 if test $ac_cv_header_stdc = yes; then
7682 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 #include <stdlib.h>
7686
7687 _ACEOF
7688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7689 $EGREP "free" >/dev/null 2>&1; then :
7690
7691 else
7692 ac_cv_header_stdc=no
7693 fi
7694 rm -f conftest*
7695
7696 fi
7697
7698 if test $ac_cv_header_stdc = yes; then
7699 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7700 if test "$cross_compiling" = yes; then :
7701 :
7702 else
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7705 #include <ctype.h>
7706 #include <stdlib.h>
7707 #if ((' ' & 0x0FF) == 0x020)
7708 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7709 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7710 #else
7711 # define ISLOWER(c) \
7712 (('a' <= (c) && (c) <= 'i') \
7713 || ('j' <= (c) && (c) <= 'r') \
7714 || ('s' <= (c) && (c) <= 'z'))
7715 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7716 #endif
7717
7718 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7719 int
7720 main ()
7721 {
7722 int i;
7723 for (i = 0; i < 256; i++)
7724 if (XOR (islower (i), ISLOWER (i))
7725 || toupper (i) != TOUPPER (i))
7726 return 2;
7727 return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_c_try_run "$LINENO"; then :
7731
7732 else
7733 ac_cv_header_stdc=no
7734 fi
7735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7736 conftest.$ac_objext conftest.beam conftest.$ac_ext
7737 fi
7738
7739 fi
7740 fi
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7742 $as_echo "$ac_cv_header_stdc" >&6; }
7743 if test $ac_cv_header_stdc = yes; then
7744
7745 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7746
7747 fi
7748
7749 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7750 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7751 inttypes.h stdint.h unistd.h
7752 do :
7753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7754 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7755 "
7756 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7757 cat >>confdefs.h <<_ACEOF
7758 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7759 _ACEOF
7760
7761 fi
7762
7763 done
7764
7765
7766 for ac_header in dlfcn.h
7767 do :
7768 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7769 "
7770 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7771 cat >>confdefs.h <<_ACEOF
7772 #define HAVE_DLFCN_H 1
7773 _ACEOF
7774
7775 fi
7776
7777 done
7778
7779
7780
7781
7782
7783 # Set options
7784
7785
7786
7787 enable_dlopen=no
7788
7789
7790 enable_win32_dll=no
7791
7792
7793 # Check whether --enable-shared was given.
7794 if test "${enable_shared+set}" = set; then :
7795 enableval=$enable_shared; p=${PACKAGE-default}
7796 case $enableval in
7797 yes) enable_shared=yes ;;
7798 no) enable_shared=no ;;
7799 *)
7800 enable_shared=no
7801 # Look at the argument we got. We use all the common list separators.
7802 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7803 for pkg in $enableval; do
7804 IFS=$lt_save_ifs
7805 if test "X$pkg" = "X$p"; then
7806 enable_shared=yes
7807 fi
7808 done
7809 IFS=$lt_save_ifs
7810 ;;
7811 esac
7812 else
7813 enable_shared=yes
7814 fi
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824 # Check whether --enable-static was given.
7825 if test "${enable_static+set}" = set; then :
7826 enableval=$enable_static; p=${PACKAGE-default}
7827 case $enableval in
7828 yes) enable_static=yes ;;
7829 no) enable_static=no ;;
7830 *)
7831 enable_static=no
7832 # Look at the argument we got. We use all the common list separators.
7833 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7834 for pkg in $enableval; do
7835 IFS=$lt_save_ifs
7836 if test "X$pkg" = "X$p"; then
7837 enable_static=yes
7838 fi
7839 done
7840 IFS=$lt_save_ifs
7841 ;;
7842 esac
7843 else
7844 enable_static=yes
7845 fi
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856 # Check whether --with-pic was given.
7857 if test "${with_pic+set}" = set; then :
7858 withval=$with_pic; lt_p=${PACKAGE-default}
7859 case $withval in
7860 yes|no) pic_mode=$withval ;;
7861 *)
7862 pic_mode=default
7863 # Look at the argument we got. We use all the common list separators.
7864 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7865 for lt_pkg in $withval; do
7866 IFS=$lt_save_ifs
7867 if test "X$lt_pkg" = "X$lt_p"; then
7868 pic_mode=yes
7869 fi
7870 done
7871 IFS=$lt_save_ifs
7872 ;;
7873 esac
7874 else
7875 pic_mode=default
7876 fi
7877
7878
7879
7880
7881
7882
7883
7884
7885 # Check whether --enable-fast-install was given.
7886 if test "${enable_fast_install+set}" = set; then :
7887 enableval=$enable_fast_install; p=${PACKAGE-default}
7888 case $enableval in
7889 yes) enable_fast_install=yes ;;
7890 no) enable_fast_install=no ;;
7891 *)
7892 enable_fast_install=no
7893 # Look at the argument we got. We use all the common list separators.
7894 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7895 for pkg in $enableval; do
7896 IFS=$lt_save_ifs
7897 if test "X$pkg" = "X$p"; then
7898 enable_fast_install=yes
7899 fi
7900 done
7901 IFS=$lt_save_ifs
7902 ;;
7903 esac
7904 else
7905 enable_fast_install=yes
7906 fi
7907
7908
7909
7910
7911
7912
7913
7914
7915 shared_archive_member_spec=
7916 case $host,$enable_shared in
7917 power*-*-aix[5-9]*,yes)
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7919 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7920
7921 # Check whether --with-aix-soname was given.
7922 if test "${with_aix_soname+set}" = set; then :
7923 withval=$with_aix_soname; case $withval in
7924 aix|svr4|both)
7925 ;;
7926 *)
7927 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7928 ;;
7929 esac
7930 lt_cv_with_aix_soname=$with_aix_soname
7931 else
7932 if ${lt_cv_with_aix_soname+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 lt_cv_with_aix_soname=aix
7936 fi
7937
7938 with_aix_soname=$lt_cv_with_aix_soname
7939 fi
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7942 $as_echo "$with_aix_soname" >&6; }
7943 if test aix != "$with_aix_soname"; then
7944 # For the AIX way of multilib, we name the shared archive member
7945 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7946 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7947 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7948 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7949 if test 64 = "${OBJECT_MODE-32}"; then
7950 shared_archive_member_spec=shr_64
7951 else
7952 shared_archive_member_spec=shr
7953 fi
7954 fi
7955 ;;
7956 *)
7957 with_aix_soname=aix
7958 ;;
7959 esac
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970 # This can be used to rebuild libtool when needed
7971 LIBTOOL_DEPS=$ltmain
7972
7973 # Always use our own libtool.
7974 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005 test -z "$LN_S" && LN_S="ln -s"
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020 if test -n "${ZSH_VERSION+set}"; then
8021 setopt NO_GLOB_SUBST
8022 fi
8023
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8025 $as_echo_n "checking for objdir... " >&6; }
8026 if ${lt_cv_objdir+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 rm -f .libs 2>/dev/null
8030 mkdir .libs 2>/dev/null
8031 if test -d .libs; then
8032 lt_cv_objdir=.libs
8033 else
8034 # MS-DOS does not allow filenames that begin with a dot.
8035 lt_cv_objdir=_libs
8036 fi
8037 rmdir .libs 2>/dev/null
8038 fi
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8040 $as_echo "$lt_cv_objdir" >&6; }
8041 objdir=$lt_cv_objdir
8042
8043
8044
8045
8046
8047 cat >>confdefs.h <<_ACEOF
8048 #define LT_OBJDIR "$lt_cv_objdir/"
8049 _ACEOF
8050
8051
8052
8053
8054 case $host_os in
8055 aix3*)
8056 # AIX sometimes has problems with the GCC collect2 program. For some
8057 # reason, if we set the COLLECT_NAMES environment variable, the problems
8058 # vanish in a puff of smoke.
8059 if test set != "${COLLECT_NAMES+set}"; then
8060 COLLECT_NAMES=
8061 export COLLECT_NAMES
8062 fi
8063 ;;
8064 esac
8065
8066 # Global variables:
8067 ofile=libtool
8068 can_build_shared=yes
8069
8070 # All known linkers require a '.a' archive for static linking (except MSVC,
8071 # which needs '.lib').
8072 libext=a
8073
8074 with_gnu_ld=$lt_cv_prog_gnu_ld
8075
8076 old_CC=$CC
8077 old_CFLAGS=$CFLAGS
8078
8079 # Set sane defaults for various variables
8080 test -z "$CC" && CC=cc
8081 test -z "$LTCC" && LTCC=$CC
8082 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8083 test -z "$LD" && LD=ld
8084 test -z "$ac_objext" && ac_objext=o
8085
8086 func_cc_basename $compiler
8087 cc_basename=$func_cc_basename_result
8088
8089
8090 # Only perform the check for file, if the check method requires it
8091 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8092 case $deplibs_check_method in
8093 file_magic*)
8094 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8096 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8097 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8098 $as_echo_n "(cached) " >&6
8099 else
8100 case $MAGIC_CMD in
8101 [\\/*] | ?:[\\/]*)
8102 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8103 ;;
8104 *)
8105 lt_save_MAGIC_CMD=$MAGIC_CMD
8106 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8107 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8108 for ac_dir in $ac_dummy; do
8109 IFS=$lt_save_ifs
8110 test -z "$ac_dir" && ac_dir=.
8111 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8112 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8113 if test -n "$file_magic_test_file"; then
8114 case $deplibs_check_method in
8115 "file_magic "*)
8116 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8117 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8119 $EGREP "$file_magic_regex" > /dev/null; then
8120 :
8121 else
8122 cat <<_LT_EOF 1>&2
8123
8124 *** Warning: the command libtool uses to detect shared libraries,
8125 *** $file_magic_cmd, produces output that libtool cannot recognize.
8126 *** The result is that libtool may fail to recognize shared libraries
8127 *** as such. This will affect the creation of libtool libraries that
8128 *** depend on shared libraries, but programs linked with such libtool
8129 *** libraries will work regardless of this problem. Nevertheless, you
8130 *** may want to report the problem to your system manager and/or to
8131 *** bug-libtool@gnu.org
8132
8133 _LT_EOF
8134 fi ;;
8135 esac
8136 fi
8137 break
8138 fi
8139 done
8140 IFS=$lt_save_ifs
8141 MAGIC_CMD=$lt_save_MAGIC_CMD
8142 ;;
8143 esac
8144 fi
8145
8146 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8147 if test -n "$MAGIC_CMD"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8149 $as_echo "$MAGIC_CMD" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154
8155
8156
8157
8158
8159 if test -z "$lt_cv_path_MAGIC_CMD"; then
8160 if test -n "$ac_tool_prefix"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8162 $as_echo_n "checking for file... " >&6; }
8163 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 case $MAGIC_CMD in
8167 [\\/*] | ?:[\\/]*)
8168 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8169 ;;
8170 *)
8171 lt_save_MAGIC_CMD=$MAGIC_CMD
8172 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8173 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8174 for ac_dir in $ac_dummy; do
8175 IFS=$lt_save_ifs
8176 test -z "$ac_dir" && ac_dir=.
8177 if test -f "$ac_dir/file"; then
8178 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8179 if test -n "$file_magic_test_file"; then
8180 case $deplibs_check_method in
8181 "file_magic "*)
8182 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8183 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8185 $EGREP "$file_magic_regex" > /dev/null; then
8186 :
8187 else
8188 cat <<_LT_EOF 1>&2
8189
8190 *** Warning: the command libtool uses to detect shared libraries,
8191 *** $file_magic_cmd, produces output that libtool cannot recognize.
8192 *** The result is that libtool may fail to recognize shared libraries
8193 *** as such. This will affect the creation of libtool libraries that
8194 *** depend on shared libraries, but programs linked with such libtool
8195 *** libraries will work regardless of this problem. Nevertheless, you
8196 *** may want to report the problem to your system manager and/or to
8197 *** bug-libtool@gnu.org
8198
8199 _LT_EOF
8200 fi ;;
8201 esac
8202 fi
8203 break
8204 fi
8205 done
8206 IFS=$lt_save_ifs
8207 MAGIC_CMD=$lt_save_MAGIC_CMD
8208 ;;
8209 esac
8210 fi
8211
8212 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8213 if test -n "$MAGIC_CMD"; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8215 $as_echo "$MAGIC_CMD" >&6; }
8216 else
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218 $as_echo "no" >&6; }
8219 fi
8220
8221
8222 else
8223 MAGIC_CMD=:
8224 fi
8225 fi
8226
8227 fi
8228 ;;
8229 esac
8230
8231 # Use C for the default configuration in the libtool script
8232
8233 lt_save_CC=$CC
8234 ac_ext=c
8235 ac_cpp='$CPP $CPPFLAGS'
8236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8239
8240
8241 # Source file extension for C test sources.
8242 ac_ext=c
8243
8244 # Object file extension for compiled C test sources.
8245 objext=o
8246 objext=$objext
8247
8248 # Code to be used in simple compile tests
8249 lt_simple_compile_test_code="int some_variable = 0;"
8250
8251 # Code to be used in simple link tests
8252 lt_simple_link_test_code='int main(){return(0);}'
8253
8254
8255
8256
8257
8258
8259
8260 # If no C compiler was specified, use CC.
8261 LTCC=${LTCC-"$CC"}
8262
8263 # If no C compiler flags were specified, use CFLAGS.
8264 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8265
8266 # Allow CC to be a program name with arguments.
8267 compiler=$CC
8268
8269 # Save the default compiler, since it gets overwritten when the other
8270 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8271 compiler_DEFAULT=$CC
8272
8273 # save warnings/boilerplate of simple test code
8274 ac_outfile=conftest.$ac_objext
8275 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8276 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8277 _lt_compiler_boilerplate=`cat conftest.err`
8278 $RM conftest*
8279
8280 ac_outfile=conftest.$ac_objext
8281 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8282 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8283 _lt_linker_boilerplate=`cat conftest.err`
8284 $RM -r conftest*
8285
8286
8287 ## CAVEAT EMPTOR:
8288 ## There is no encapsulation within the following macros, do not change
8289 ## the running order or otherwise move them around unless you know exactly
8290 ## what you are doing...
8291 if test -n "$compiler"; then
8292
8293 lt_prog_compiler_no_builtin_flag=
8294
8295 if test yes = "$GCC"; then
8296 case $cc_basename in
8297 nvcc*)
8298 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8299 *)
8300 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8301 esac
8302
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8304 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8305 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 lt_cv_prog_compiler_rtti_exceptions=no
8309 ac_outfile=conftest.$ac_objext
8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8311 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8312 # Insert the option either (1) after the last *FLAGS variable, or
8313 # (2) before a word containing "conftest.", or (3) at the end.
8314 # Note that $ac_compile itself does not contain backslashes and begins
8315 # with a dollar sign (not a hyphen), so the echo should work correctly.
8316 # The option is referenced via a variable to avoid confusing sed.
8317 lt_compile=`echo "$ac_compile" | $SED \
8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320 -e 's:$: $lt_compiler_flag:'`
8321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8322 (eval "$lt_compile" 2>conftest.err)
8323 ac_status=$?
8324 cat conftest.err >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 if (exit $ac_status) && test -s "$ac_outfile"; then
8327 # The compiler can only warn and ignore the option if not recognized
8328 # So say no if there are warnings other than the usual output.
8329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8332 lt_cv_prog_compiler_rtti_exceptions=yes
8333 fi
8334 fi
8335 $RM conftest*
8336
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8339 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8340
8341 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8342 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8343 else
8344 :
8345 fi
8346
8347 fi
8348
8349
8350
8351
8352
8353
8354 lt_prog_compiler_wl=
8355 lt_prog_compiler_pic=
8356 lt_prog_compiler_static=
8357
8358
8359 if test yes = "$GCC"; then
8360 lt_prog_compiler_wl='-Wl,'
8361 lt_prog_compiler_static='-static'
8362
8363 case $host_os in
8364 aix*)
8365 # All AIX code is PIC.
8366 if test ia64 = "$host_cpu"; then
8367 # AIX 5 now supports IA64 processor
8368 lt_prog_compiler_static='-Bstatic'
8369 fi
8370 lt_prog_compiler_pic='-fPIC'
8371 ;;
8372
8373 amigaos*)
8374 case $host_cpu in
8375 powerpc)
8376 # see comment about AmigaOS4 .so support
8377 lt_prog_compiler_pic='-fPIC'
8378 ;;
8379 m68k)
8380 # FIXME: we need at least 68020 code to build shared libraries, but
8381 # adding the '-m68020' flag to GCC prevents building anything better,
8382 # like '-m68040'.
8383 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8384 ;;
8385 esac
8386 ;;
8387
8388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8389 # PIC is the default for these OSes.
8390 ;;
8391
8392 mingw* | cygwin* | pw32* | os2* | cegcc*)
8393 # This hack is so that the source file can tell whether it is being
8394 # built for inclusion in a dll (and should export symbols for example).
8395 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8396 # (--disable-auto-import) libraries
8397 lt_prog_compiler_pic='-DDLL_EXPORT'
8398 case $host_os in
8399 os2*)
8400 lt_prog_compiler_static='$wl-static'
8401 ;;
8402 esac
8403 ;;
8404
8405 darwin* | rhapsody*)
8406 # PIC is the default on this platform
8407 # Common symbols not allowed in MH_DYLIB files
8408 lt_prog_compiler_pic='-fno-common'
8409 ;;
8410
8411 haiku*)
8412 # PIC is the default for Haiku.
8413 # The "-static" flag exists, but is broken.
8414 lt_prog_compiler_static=
8415 ;;
8416
8417 hpux*)
8418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8420 # sets the default TLS model and affects inlining.
8421 case $host_cpu in
8422 hppa*64*)
8423 # +Z the default
8424 ;;
8425 *)
8426 lt_prog_compiler_pic='-fPIC'
8427 ;;
8428 esac
8429 ;;
8430
8431 interix[3-9]*)
8432 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8433 # Instead, we relocate shared libraries at runtime.
8434 ;;
8435
8436 msdosdjgpp*)
8437 # Just because we use GCC doesn't mean we suddenly get shared libraries
8438 # on systems that don't support them.
8439 lt_prog_compiler_can_build_shared=no
8440 enable_shared=no
8441 ;;
8442
8443 *nto* | *qnx*)
8444 # QNX uses GNU C++, but need to define -shared option too, otherwise
8445 # it will coredump.
8446 lt_prog_compiler_pic='-fPIC -shared'
8447 ;;
8448
8449 sysv4*MP*)
8450 if test -d /usr/nec; then
8451 lt_prog_compiler_pic=-Kconform_pic
8452 fi
8453 ;;
8454
8455 *)
8456 lt_prog_compiler_pic='-fPIC'
8457 ;;
8458 esac
8459
8460 case $cc_basename in
8461 nvcc*) # Cuda Compiler Driver 2.2
8462 lt_prog_compiler_wl='-Xlinker '
8463 if test -n "$lt_prog_compiler_pic"; then
8464 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8465 fi
8466 ;;
8467 esac
8468 else
8469 # PORTME Check for flag to pass linker flags through the system compiler.
8470 case $host_os in
8471 aix*)
8472 lt_prog_compiler_wl='-Wl,'
8473 if test ia64 = "$host_cpu"; then
8474 # AIX 5 now supports IA64 processor
8475 lt_prog_compiler_static='-Bstatic'
8476 else
8477 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8478 fi
8479 ;;
8480
8481 darwin* | rhapsody*)
8482 # PIC is the default on this platform
8483 # Common symbols not allowed in MH_DYLIB files
8484 lt_prog_compiler_pic='-fno-common'
8485 case $cc_basename in
8486 nagfor*)
8487 # NAG Fortran compiler
8488 lt_prog_compiler_wl='-Wl,-Wl,,'
8489 lt_prog_compiler_pic='-PIC'
8490 lt_prog_compiler_static='-Bstatic'
8491 ;;
8492 esac
8493 ;;
8494
8495 mingw* | cygwin* | pw32* | os2* | cegcc*)
8496 # This hack is so that the source file can tell whether it is being
8497 # built for inclusion in a dll (and should export symbols for example).
8498 lt_prog_compiler_pic='-DDLL_EXPORT'
8499 case $host_os in
8500 os2*)
8501 lt_prog_compiler_static='$wl-static'
8502 ;;
8503 esac
8504 ;;
8505
8506 hpux9* | hpux10* | hpux11*)
8507 lt_prog_compiler_wl='-Wl,'
8508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8509 # not for PA HP-UX.
8510 case $host_cpu in
8511 hppa*64*|ia64*)
8512 # +Z the default
8513 ;;
8514 *)
8515 lt_prog_compiler_pic='+Z'
8516 ;;
8517 esac
8518 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8519 lt_prog_compiler_static='$wl-a ${wl}archive'
8520 ;;
8521
8522 irix5* | irix6* | nonstopux*)
8523 lt_prog_compiler_wl='-Wl,'
8524 # PIC (with -KPIC) is the default.
8525 lt_prog_compiler_static='-non_shared'
8526 ;;
8527
8528 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8529 case $cc_basename in
8530 # old Intel for x86_64, which still supported -KPIC.
8531 ecc*)
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-static'
8535 ;;
8536 # icc used to be incompatible with GCC.
8537 # ICC 10 doesn't accept -KPIC any more.
8538 icc* | ifort*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='-fPIC'
8541 lt_prog_compiler_static='-static'
8542 ;;
8543 # Lahey Fortran 8.1.
8544 lf95*)
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_pic='--shared'
8547 lt_prog_compiler_static='--static'
8548 ;;
8549 nagfor*)
8550 # NAG Fortran compiler
8551 lt_prog_compiler_wl='-Wl,-Wl,,'
8552 lt_prog_compiler_pic='-PIC'
8553 lt_prog_compiler_static='-Bstatic'
8554 ;;
8555 tcc*)
8556 # Fabrice Bellard et al's Tiny C Compiler
8557 lt_prog_compiler_wl='-Wl,'
8558 lt_prog_compiler_pic='-fPIC'
8559 lt_prog_compiler_static='-static'
8560 ;;
8561 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8562 # Portland Group compilers (*not* the Pentium gcc compiler,
8563 # which looks to be a dead project)
8564 lt_prog_compiler_wl='-Wl,'
8565 lt_prog_compiler_pic='-fpic'
8566 lt_prog_compiler_static='-Bstatic'
8567 ;;
8568 ccc*)
8569 lt_prog_compiler_wl='-Wl,'
8570 # All Alpha code is PIC.
8571 lt_prog_compiler_static='-non_shared'
8572 ;;
8573 xl* | bgxl* | bgf* | mpixl*)
8574 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-qpic'
8577 lt_prog_compiler_static='-qstaticlink'
8578 ;;
8579 *)
8580 case `$CC -V 2>&1 | sed 5q` in
8581 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8582 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8583 lt_prog_compiler_pic='-KPIC'
8584 lt_prog_compiler_static='-Bstatic'
8585 lt_prog_compiler_wl=''
8586 ;;
8587 *Sun\ F* | *Sun*Fortran*)
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-Bstatic'
8590 lt_prog_compiler_wl='-Qoption ld '
8591 ;;
8592 *Sun\ C*)
8593 # Sun C 5.9
8594 lt_prog_compiler_pic='-KPIC'
8595 lt_prog_compiler_static='-Bstatic'
8596 lt_prog_compiler_wl='-Wl,'
8597 ;;
8598 *Intel*\ [CF]*Compiler*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-fPIC'
8601 lt_prog_compiler_static='-static'
8602 ;;
8603 *Portland\ Group*)
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-fpic'
8606 lt_prog_compiler_static='-Bstatic'
8607 ;;
8608 esac
8609 ;;
8610 esac
8611 ;;
8612
8613 newsos6)
8614 lt_prog_compiler_pic='-KPIC'
8615 lt_prog_compiler_static='-Bstatic'
8616 ;;
8617
8618 *nto* | *qnx*)
8619 # QNX uses GNU C++, but need to define -shared option too, otherwise
8620 # it will coredump.
8621 lt_prog_compiler_pic='-fPIC -shared'
8622 ;;
8623
8624 osf3* | osf4* | osf5*)
8625 lt_prog_compiler_wl='-Wl,'
8626 # All OSF/1 code is PIC.
8627 lt_prog_compiler_static='-non_shared'
8628 ;;
8629
8630 rdos*)
8631 lt_prog_compiler_static='-non_shared'
8632 ;;
8633
8634 solaris*)
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 case $cc_basename in
8638 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8639 lt_prog_compiler_wl='-Qoption ld ';;
8640 *)
8641 lt_prog_compiler_wl='-Wl,';;
8642 esac
8643 ;;
8644
8645 sunos4*)
8646 lt_prog_compiler_wl='-Qoption ld '
8647 lt_prog_compiler_pic='-PIC'
8648 lt_prog_compiler_static='-Bstatic'
8649 ;;
8650
8651 sysv4 | sysv4.2uw2* | sysv4.3*)
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='-KPIC'
8654 lt_prog_compiler_static='-Bstatic'
8655 ;;
8656
8657 sysv4*MP*)
8658 if test -d /usr/nec; then
8659 lt_prog_compiler_pic='-Kconform_pic'
8660 lt_prog_compiler_static='-Bstatic'
8661 fi
8662 ;;
8663
8664 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8665 lt_prog_compiler_wl='-Wl,'
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 ;;
8669
8670 unicos*)
8671 lt_prog_compiler_wl='-Wl,'
8672 lt_prog_compiler_can_build_shared=no
8673 ;;
8674
8675 uts4*)
8676 lt_prog_compiler_pic='-pic'
8677 lt_prog_compiler_static='-Bstatic'
8678 ;;
8679
8680 *)
8681 lt_prog_compiler_can_build_shared=no
8682 ;;
8683 esac
8684 fi
8685
8686 case $host_os in
8687 # For platforms that do not support PIC, -DPIC is meaningless:
8688 *djgpp*)
8689 lt_prog_compiler_pic=
8690 ;;
8691 *)
8692 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8693 ;;
8694 esac
8695
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8697 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8698 if ${lt_cv_prog_compiler_pic+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8702 fi
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8704 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8705 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8706
8707 #
8708 # Check to make sure the PIC flag actually works.
8709 #
8710 if test -n "$lt_prog_compiler_pic"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8712 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8713 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8714 $as_echo_n "(cached) " >&6
8715 else
8716 lt_cv_prog_compiler_pic_works=no
8717 ac_outfile=conftest.$ac_objext
8718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8719 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8720 # Insert the option either (1) after the last *FLAGS variable, or
8721 # (2) before a word containing "conftest.", or (3) at the end.
8722 # Note that $ac_compile itself does not contain backslashes and begins
8723 # with a dollar sign (not a hyphen), so the echo should work correctly.
8724 # The option is referenced via a variable to avoid confusing sed.
8725 lt_compile=`echo "$ac_compile" | $SED \
8726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8728 -e 's:$: $lt_compiler_flag:'`
8729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8730 (eval "$lt_compile" 2>conftest.err)
8731 ac_status=$?
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 if (exit $ac_status) && test -s "$ac_outfile"; then
8735 # The compiler can only warn and ignore the option if not recognized
8736 # So say no if there are warnings other than the usual output.
8737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8740 lt_cv_prog_compiler_pic_works=yes
8741 fi
8742 fi
8743 $RM conftest*
8744
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8747 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8748
8749 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8750 case $lt_prog_compiler_pic in
8751 "" | " "*) ;;
8752 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8753 esac
8754 else
8755 lt_prog_compiler_pic=
8756 lt_prog_compiler_can_build_shared=no
8757 fi
8758
8759 fi
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771 #
8772 # Check to make sure the static flag actually works.
8773 #
8774 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8776 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8777 if ${lt_cv_prog_compiler_static_works+:} false; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 lt_cv_prog_compiler_static_works=no
8781 save_LDFLAGS=$LDFLAGS
8782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8783 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8785 # The linker can only warn and ignore the option if not recognized
8786 # So say no if there are warnings
8787 if test -s conftest.err; then
8788 # Append any errors to the config.log.
8789 cat conftest.err 1>&5
8790 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8792 if diff conftest.exp conftest.er2 >/dev/null; then
8793 lt_cv_prog_compiler_static_works=yes
8794 fi
8795 else
8796 lt_cv_prog_compiler_static_works=yes
8797 fi
8798 fi
8799 $RM -r conftest*
8800 LDFLAGS=$save_LDFLAGS
8801
8802 fi
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8804 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8805
8806 if test yes = "$lt_cv_prog_compiler_static_works"; then
8807 :
8808 else
8809 lt_prog_compiler_static=
8810 fi
8811
8812
8813
8814
8815
8816
8817
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8819 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8820 if ${lt_cv_prog_compiler_c_o+:} false; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 lt_cv_prog_compiler_c_o=no
8824 $RM -r conftest 2>/dev/null
8825 mkdir conftest
8826 cd conftest
8827 mkdir out
8828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8829
8830 lt_compiler_flag="-o out/conftest2.$ac_objext"
8831 # Insert the option either (1) after the last *FLAGS variable, or
8832 # (2) before a word containing "conftest.", or (3) at the end.
8833 # Note that $ac_compile itself does not contain backslashes and begins
8834 # with a dollar sign (not a hyphen), so the echo should work correctly.
8835 lt_compile=`echo "$ac_compile" | $SED \
8836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8838 -e 's:$: $lt_compiler_flag:'`
8839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8840 (eval "$lt_compile" 2>out/conftest.err)
8841 ac_status=$?
8842 cat out/conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8845 then
8846 # The compiler can only warn and ignore the option if not recognized
8847 # So say no if there are warnings
8848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8851 lt_cv_prog_compiler_c_o=yes
8852 fi
8853 fi
8854 chmod u+w . 2>&5
8855 $RM conftest*
8856 # SGI C++ compiler will create directory out/ii_files/ for
8857 # template instantiation
8858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8859 $RM out/* && rmdir out
8860 cd ..
8861 $RM -r conftest
8862 $RM conftest*
8863
8864 fi
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8866 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8867
8868
8869
8870
8871
8872
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8874 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8875 if ${lt_cv_prog_compiler_c_o+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 lt_cv_prog_compiler_c_o=no
8879 $RM -r conftest 2>/dev/null
8880 mkdir conftest
8881 cd conftest
8882 mkdir out
8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884
8885 lt_compiler_flag="-o out/conftest2.$ac_objext"
8886 # Insert the option either (1) after the last *FLAGS variable, or
8887 # (2) before a word containing "conftest.", or (3) at the end.
8888 # Note that $ac_compile itself does not contain backslashes and begins
8889 # with a dollar sign (not a hyphen), so the echo should work correctly.
8890 lt_compile=`echo "$ac_compile" | $SED \
8891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8893 -e 's:$: $lt_compiler_flag:'`
8894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8895 (eval "$lt_compile" 2>out/conftest.err)
8896 ac_status=$?
8897 cat out/conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8900 then
8901 # The compiler can only warn and ignore the option if not recognized
8902 # So say no if there are warnings
8903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8906 lt_cv_prog_compiler_c_o=yes
8907 fi
8908 fi
8909 chmod u+w . 2>&5
8910 $RM conftest*
8911 # SGI C++ compiler will create directory out/ii_files/ for
8912 # template instantiation
8913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8914 $RM out/* && rmdir out
8915 cd ..
8916 $RM -r conftest
8917 $RM conftest*
8918
8919 fi
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8921 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8922
8923
8924
8925
8926 hard_links=nottested
8927 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8928 # do not overwrite the value of need_locks provided by the user
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8930 $as_echo_n "checking if we can lock with hard links... " >&6; }
8931 hard_links=yes
8932 $RM conftest*
8933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8934 touch conftest.a
8935 ln conftest.a conftest.b 2>&5 || hard_links=no
8936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8938 $as_echo "$hard_links" >&6; }
8939 if test no = "$hard_links"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8941 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8942 need_locks=warn
8943 fi
8944 else
8945 need_locks=no
8946 fi
8947
8948
8949
8950
8951
8952
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8954 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8955
8956 runpath_var=
8957 allow_undefined_flag=
8958 always_export_symbols=no
8959 archive_cmds=
8960 archive_expsym_cmds=
8961 compiler_needs_object=no
8962 enable_shared_with_static_runtimes=no
8963 export_dynamic_flag_spec=
8964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8965 hardcode_automatic=no
8966 hardcode_direct=no
8967 hardcode_direct_absolute=no
8968 hardcode_libdir_flag_spec=
8969 hardcode_libdir_separator=
8970 hardcode_minus_L=no
8971 hardcode_shlibpath_var=unsupported
8972 inherit_rpath=no
8973 link_all_deplibs=unknown
8974 module_cmds=
8975 module_expsym_cmds=
8976 old_archive_from_new_cmds=
8977 old_archive_from_expsyms_cmds=
8978 thread_safe_flag_spec=
8979 whole_archive_flag_spec=
8980 # include_expsyms should be a list of space-separated symbols to be *always*
8981 # included in the symbol list
8982 include_expsyms=
8983 # exclude_expsyms can be an extended regexp of symbols to exclude
8984 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8985 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8986 # as well as any symbol that contains 'd'.
8987 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8989 # platforms (ab)use it in PIC code, but their linkers get confused if
8990 # the symbol is explicitly referenced. Since portable code cannot
8991 # rely on this symbol name, it's probably fine to never include it in
8992 # preloaded symbol tables.
8993 # Exclude shared library initialization/finalization symbols.
8994 extract_expsyms_cmds=
8995
8996 case $host_os in
8997 cygwin* | mingw* | pw32* | cegcc*)
8998 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8999 # When not using gcc, we currently assume that we are using
9000 # Microsoft Visual C++.
9001 if test yes != "$GCC"; then
9002 with_gnu_ld=no
9003 fi
9004 ;;
9005 interix*)
9006 # we just hope/assume this is gcc and not c89 (= MSVC++)
9007 with_gnu_ld=yes
9008 ;;
9009 openbsd* | bitrig*)
9010 with_gnu_ld=no
9011 ;;
9012 esac
9013
9014 ld_shlibs=yes
9015
9016 # On some targets, GNU ld is compatible enough with the native linker
9017 # that we're better off using the native interface for both.
9018 lt_use_gnu_ld_interface=no
9019 if test yes = "$with_gnu_ld"; then
9020 case $host_os in
9021 aix*)
9022 # The AIX port of GNU ld has always aspired to compatibility
9023 # with the native linker. However, as the warning in the GNU ld
9024 # block says, versions before 2.19.5* couldn't really create working
9025 # shared libraries, regardless of the interface used.
9026 case `$LD -v 2>&1` in
9027 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9028 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9029 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9030 *)
9031 lt_use_gnu_ld_interface=yes
9032 ;;
9033 esac
9034 ;;
9035 *)
9036 lt_use_gnu_ld_interface=yes
9037 ;;
9038 esac
9039 fi
9040
9041 if test yes = "$lt_use_gnu_ld_interface"; then
9042 # If archive_cmds runs LD, not CC, wlarc should be empty
9043 wlarc='$wl'
9044
9045 # Set some defaults for GNU ld with shared library support. These
9046 # are reset later if shared libraries are not supported. Putting them
9047 # here allows them to be overridden if necessary.
9048 runpath_var=LD_RUN_PATH
9049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9050 export_dynamic_flag_spec='$wl--export-dynamic'
9051 # ancient GNU ld didn't support --whole-archive et. al.
9052 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9053 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9054 else
9055 whole_archive_flag_spec=
9056 fi
9057 supports_anon_versioning=no
9058 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9059 *GNU\ gold*) supports_anon_versioning=yes ;;
9060 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9063 *\ 2.11.*) ;; # other 2.11 versions
9064 *) supports_anon_versioning=yes ;;
9065 esac
9066
9067 # See if GNU ld supports shared libraries.
9068 case $host_os in
9069 aix[3-9]*)
9070 # On AIX/PPC, the GNU linker is very broken
9071 if test ia64 != "$host_cpu"; then
9072 ld_shlibs=no
9073 cat <<_LT_EOF 1>&2
9074
9075 *** Warning: the GNU linker, at least up to release 2.19, is reported
9076 *** to be unable to reliably create shared libraries on AIX.
9077 *** Therefore, libtool is disabling shared libraries support. If you
9078 *** really care for shared libraries, you may want to install binutils
9079 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9080 *** You will then need to restart the configuration process.
9081
9082 _LT_EOF
9083 fi
9084 ;;
9085
9086 amigaos*)
9087 case $host_cpu in
9088 powerpc)
9089 # see comment about AmigaOS4 .so support
9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9091 archive_expsym_cmds=''
9092 ;;
9093 m68k)
9094 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)'
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 hardcode_minus_L=yes
9097 ;;
9098 esac
9099 ;;
9100
9101 beos*)
9102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9103 allow_undefined_flag=unsupported
9104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9105 # support --undefined. This deserves some investigation. FIXME
9106 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9107 else
9108 ld_shlibs=no
9109 fi
9110 ;;
9111
9112 cygwin* | mingw* | pw32* | cegcc*)
9113 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9114 # as there is no search path for DLLs.
9115 hardcode_libdir_flag_spec='-L$libdir'
9116 export_dynamic_flag_spec='$wl--export-all-symbols'
9117 allow_undefined_flag=unsupported
9118 always_export_symbols=no
9119 enable_shared_with_static_runtimes=yes
9120 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'
9121 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9122
9123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9125 # If the export-symbols file already is a .def file, use it as
9126 # is; otherwise, prepend EXPORTS...
9127 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9128 cp $export_symbols $output_objdir/$soname.def;
9129 else
9130 echo EXPORTS > $output_objdir/$soname.def;
9131 cat $export_symbols >> $output_objdir/$soname.def;
9132 fi~
9133 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9134 else
9135 ld_shlibs=no
9136 fi
9137 ;;
9138
9139 haiku*)
9140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9141 link_all_deplibs=yes
9142 ;;
9143
9144 os2*)
9145 hardcode_libdir_flag_spec='-L$libdir'
9146 hardcode_minus_L=yes
9147 allow_undefined_flag=unsupported
9148 shrext_cmds=.dll
9149 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9150 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9151 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9152 $ECHO EXPORTS >> $output_objdir/$libname.def~
9153 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9154 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9155 emximp -o $lib $output_objdir/$libname.def'
9156 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9157 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9158 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9159 $ECHO EXPORTS >> $output_objdir/$libname.def~
9160 prefix_cmds="$SED"~
9161 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9162 prefix_cmds="$prefix_cmds -e 1d";
9163 fi~
9164 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9165 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9166 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9167 emximp -o $lib $output_objdir/$libname.def'
9168 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9169 enable_shared_with_static_runtimes=yes
9170 ;;
9171
9172 interix[3-9]*)
9173 hardcode_direct=no
9174 hardcode_shlibpath_var=no
9175 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9176 export_dynamic_flag_spec='$wl-E'
9177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9178 # Instead, shared libraries are loaded at an image base (0x10000000 by
9179 # default) and relocated if they conflict, which is a slow very memory
9180 # consuming and fragmenting process. To avoid this, we pick a random,
9181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9182 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9184 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'
9185 ;;
9186
9187 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9188 tmp_diet=no
9189 if test linux-dietlibc = "$host_os"; then
9190 case $cc_basename in
9191 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9192 esac
9193 fi
9194 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9195 && test no = "$tmp_diet"
9196 then
9197 tmp_addflag=' $pic_flag'
9198 tmp_sharedflag='-shared'
9199 case $cc_basename,$host_cpu in
9200 pgcc*) # Portland Group C compiler
9201 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'
9202 tmp_addflag=' $pic_flag'
9203 ;;
9204 pgf77* | pgf90* | pgf95* | pgfortran*)
9205 # Portland Group f77 and f90 compilers
9206 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'
9207 tmp_addflag=' $pic_flag -Mnomain' ;;
9208 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9209 tmp_addflag=' -i_dynamic' ;;
9210 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9211 tmp_addflag=' -i_dynamic -nofor_main' ;;
9212 ifc* | ifort*) # Intel Fortran compiler
9213 tmp_addflag=' -nofor_main' ;;
9214 lf95*) # Lahey Fortran 8.1
9215 whole_archive_flag_spec=
9216 tmp_sharedflag='--shared' ;;
9217 nagfor*) # NAGFOR 5.3
9218 tmp_sharedflag='-Wl,-shared' ;;
9219 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9220 tmp_sharedflag='-qmkshrobj'
9221 tmp_addflag= ;;
9222 nvcc*) # Cuda Compiler Driver 2.2
9223 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'
9224 compiler_needs_object=yes
9225 ;;
9226 esac
9227 case `$CC -V 2>&1 | sed 5q` in
9228 *Sun\ C*) # Sun C 5.9
9229 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'
9230 compiler_needs_object=yes
9231 tmp_sharedflag='-G' ;;
9232 *Sun\ F*) # Sun Fortran 8.3
9233 tmp_sharedflag='-G' ;;
9234 esac
9235 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9236
9237 if test yes = "$supports_anon_versioning"; then
9238 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9240 echo "local: *; };" >> $output_objdir/$libname.ver~
9241 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9242 fi
9243
9244 case $cc_basename in
9245 tcc*)
9246 export_dynamic_flag_spec='-rdynamic'
9247 ;;
9248 xlf* | bgf* | bgxlf* | mpixlf*)
9249 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9250 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9252 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9253 if test yes = "$supports_anon_versioning"; then
9254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9256 echo "local: *; };" >> $output_objdir/$libname.ver~
9257 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9258 fi
9259 ;;
9260 esac
9261 else
9262 ld_shlibs=no
9263 fi
9264 ;;
9265
9266 netbsd*)
9267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9268 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9269 wlarc=
9270 else
9271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9272 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9273 fi
9274 ;;
9275
9276 solaris*)
9277 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9278 ld_shlibs=no
9279 cat <<_LT_EOF 1>&2
9280
9281 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9282 *** create shared libraries on Solaris systems. Therefore, libtool
9283 *** is disabling shared libraries support. We urge you to upgrade GNU
9284 *** binutils to release 2.9.1 or newer. Another option is to modify
9285 *** your PATH or compiler configuration so that the native linker is
9286 *** used, and then restart.
9287
9288 _LT_EOF
9289 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9291 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9292 else
9293 ld_shlibs=no
9294 fi
9295 ;;
9296
9297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9298 case `$LD -v 2>&1` in
9299 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9300 ld_shlibs=no
9301 cat <<_LT_EOF 1>&2
9302
9303 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9304 *** reliably create shared libraries on SCO systems. Therefore, libtool
9305 *** is disabling shared libraries support. We urge you to upgrade GNU
9306 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9307 *** your PATH or compiler configuration so that the native linker is
9308 *** used, and then restart.
9309
9310 _LT_EOF
9311 ;;
9312 *)
9313 # For security reasons, it is highly recommended that you always
9314 # use absolute paths for naming shared libraries, and exclude the
9315 # DT_RUNPATH tag from executables and libraries. But doing so
9316 # requires that you compile everything twice, which is a pain.
9317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9321 else
9322 ld_shlibs=no
9323 fi
9324 ;;
9325 esac
9326 ;;
9327
9328 sunos4*)
9329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9330 wlarc=
9331 hardcode_direct=yes
9332 hardcode_shlibpath_var=no
9333 ;;
9334
9335 *)
9336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9338 archive_expsym_cmds='$CC -shared $pic_flag $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 if test no = "$ld_shlibs"; then
9346 runpath_var=
9347 hardcode_libdir_flag_spec=
9348 export_dynamic_flag_spec=
9349 whole_archive_flag_spec=
9350 fi
9351 else
9352 # PORTME fill in a description of your system's linker (not GNU ld)
9353 case $host_os in
9354 aix3*)
9355 allow_undefined_flag=unsupported
9356 always_export_symbols=yes
9357 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'
9358 # Note: this linker hardcodes the directories in LIBPATH if there
9359 # are no directories specified by -L.
9360 hardcode_minus_L=yes
9361 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9362 # Neither direct hardcoding nor static linking is supported with a
9363 # broken collect2.
9364 hardcode_direct=unsupported
9365 fi
9366 ;;
9367
9368 aix[4-9]*)
9369 if test ia64 = "$host_cpu"; then
9370 # On IA64, the linker does run time linking by default, so we don't
9371 # have to do anything special.
9372 aix_use_runtimelinking=no
9373 exp_sym_flag='-Bexport'
9374 no_entry_flag=
9375 else
9376 # If we're using GNU nm, then we don't want the "-C" option.
9377 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9378 # Without the "-l" option, or with the "-B" option, AIX nm treats
9379 # weak defined symbols like other global defined symbols, whereas
9380 # GNU nm marks them as "W".
9381 # While the 'weak' keyword is ignored in the Export File, we need
9382 # it in the Import File for the 'aix-soname' feature, so we have
9383 # to replace the "-B" option with "-P" for AIX nm.
9384 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9385 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'
9386 else
9387 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'
9388 fi
9389 aix_use_runtimelinking=no
9390
9391 # Test if we are trying to use run time linking or normal
9392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9393 # have runtime linking enabled, and use it for executables.
9394 # For shared libraries, we enable/disable runtime linking
9395 # depending on the kind of the shared library created -
9396 # when "with_aix_soname,aix_use_runtimelinking" is:
9397 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9398 # "aix,yes" lib.so shared, rtl:yes, for executables
9399 # lib.a static archive
9400 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9401 # lib.a(lib.so.V) shared, rtl:no, for executables
9402 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9403 # lib.a(lib.so.V) shared, rtl:no
9404 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9405 # lib.a static archive
9406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9407 for ld_flag in $LDFLAGS; do
9408 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9409 aix_use_runtimelinking=yes
9410 break
9411 fi
9412 done
9413 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9414 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9415 # so we don't have lib.a shared libs to link our executables.
9416 # We have to force runtime linking in this case.
9417 aix_use_runtimelinking=yes
9418 LDFLAGS="$LDFLAGS -Wl,-brtl"
9419 fi
9420 ;;
9421 esac
9422
9423 exp_sym_flag='-bexport'
9424 no_entry_flag='-bnoentry'
9425 fi
9426
9427 # When large executables or shared objects are built, AIX ld can
9428 # have problems creating the table of contents. If linking a library
9429 # or program results in "error TOC overflow" add -mminimal-toc to
9430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9432
9433 archive_cmds=''
9434 hardcode_direct=yes
9435 hardcode_direct_absolute=yes
9436 hardcode_libdir_separator=':'
9437 link_all_deplibs=yes
9438 file_list_spec='$wl-f,'
9439 case $with_aix_soname,$aix_use_runtimelinking in
9440 aix,*) ;; # traditional, no import file
9441 svr4,* | *,yes) # use import file
9442 # The Import File defines what to hardcode.
9443 hardcode_direct=no
9444 hardcode_direct_absolute=no
9445 ;;
9446 esac
9447
9448 if test yes = "$GCC"; then
9449 case $host_os in aix4.[012]|aix4.[012].*)
9450 # We only want to do this on AIX 4.2 and lower, the check
9451 # below for broken collect2 doesn't work under 4.3+
9452 collect2name=`$CC -print-prog-name=collect2`
9453 if test -f "$collect2name" &&
9454 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9455 then
9456 # We have reworked collect2
9457 :
9458 else
9459 # We have old collect2
9460 hardcode_direct=unsupported
9461 # It fails to find uninstalled libraries when the uninstalled
9462 # path is not listed in the libpath. Setting hardcode_minus_L
9463 # to unsupported forces relinking
9464 hardcode_minus_L=yes
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_libdir_separator=
9467 fi
9468 ;;
9469 esac
9470 shared_flag='-shared'
9471 if test yes = "$aix_use_runtimelinking"; then
9472 shared_flag="$shared_flag "'$wl-G'
9473 fi
9474 # Need to ensure runtime linking is disabled for the traditional
9475 # shared library, or the linker may eventually find shared libraries
9476 # /with/ Import File - we do not want to mix them.
9477 shared_flag_aix='-shared'
9478 shared_flag_svr4='-shared $wl-G'
9479 else
9480 # not using gcc
9481 if test ia64 = "$host_cpu"; then
9482 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9483 # chokes on -Wl,-G. The following line is correct:
9484 shared_flag='-G'
9485 else
9486 if test yes = "$aix_use_runtimelinking"; then
9487 shared_flag='$wl-G'
9488 else
9489 shared_flag='$wl-bM:SRE'
9490 fi
9491 shared_flag_aix='$wl-bM:SRE'
9492 shared_flag_svr4='$wl-G'
9493 fi
9494 fi
9495
9496 export_dynamic_flag_spec='$wl-bexpall'
9497 # It seems that -bexpall does not export symbols beginning with
9498 # underscore (_), so it is better to generate a list of symbols to export.
9499 always_export_symbols=yes
9500 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9501 # Warning - without using the other runtime loading flags (-brtl),
9502 # -berok will link without error, but may produce a broken library.
9503 allow_undefined_flag='-berok'
9504 # Determine the default libpath from the value encoded in an
9505 # empty executable.
9506 if test set = "${lt_cv_aix_libpath+set}"; then
9507 aix_libpath=$lt_cv_aix_libpath
9508 else
9509 if ${lt_cv_aix_libpath_+:} false; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514
9515 int
9516 main ()
9517 {
9518
9519 ;
9520 return 0;
9521 }
9522 _ACEOF
9523 if ac_fn_c_try_link "$LINENO"; then :
9524
9525 lt_aix_libpath_sed='
9526 /Import File Strings/,/^$/ {
9527 /^0/ {
9528 s/^0 *\([^ ]*\) *$/\1/
9529 p
9530 }
9531 }'
9532 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9533 # Check for a 64-bit object if we didn't find anything.
9534 if test -z "$lt_cv_aix_libpath_"; then
9535 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9536 fi
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext conftest.$ac_ext
9540 if test -z "$lt_cv_aix_libpath_"; then
9541 lt_cv_aix_libpath_=/usr/lib:/lib
9542 fi
9543
9544 fi
9545
9546 aix_libpath=$lt_cv_aix_libpath_
9547 fi
9548
9549 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9550 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
9551 else
9552 if test ia64 = "$host_cpu"; then
9553 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9554 allow_undefined_flag="-z nodefs"
9555 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"
9556 else
9557 # Determine the default libpath from the value encoded in an
9558 # empty executable.
9559 if test set = "${lt_cv_aix_libpath+set}"; then
9560 aix_libpath=$lt_cv_aix_libpath
9561 else
9562 if ${lt_cv_aix_libpath_+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564 else
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9567
9568 int
9569 main ()
9570 {
9571
9572 ;
9573 return 0;
9574 }
9575 _ACEOF
9576 if ac_fn_c_try_link "$LINENO"; then :
9577
9578 lt_aix_libpath_sed='
9579 /Import File Strings/,/^$/ {
9580 /^0/ {
9581 s/^0 *\([^ ]*\) *$/\1/
9582 p
9583 }
9584 }'
9585 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586 # Check for a 64-bit object if we didn't find anything.
9587 if test -z "$lt_cv_aix_libpath_"; then
9588 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589 fi
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 if test -z "$lt_cv_aix_libpath_"; then
9594 lt_cv_aix_libpath_=/usr/lib:/lib
9595 fi
9596
9597 fi
9598
9599 aix_libpath=$lt_cv_aix_libpath_
9600 fi
9601
9602 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9603 # Warning - without using the other run time loading flags,
9604 # -berok will link without error, but may produce a broken library.
9605 no_undefined_flag=' $wl-bernotok'
9606 allow_undefined_flag=' $wl-berok'
9607 if test yes = "$with_gnu_ld"; then
9608 # We only use this code for GNU lds that support --whole-archive.
9609 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9610 else
9611 # Exported symbols can be pulled into shared objects from archives
9612 whole_archive_flag_spec='$convenience'
9613 fi
9614 archive_cmds_need_lc=yes
9615 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9616 # -brtl affects multiple linker settings, -berok does not and is overridden later
9617 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9618 if test svr4 != "$with_aix_soname"; then
9619 # This is similar to how AIX traditionally builds its shared libraries.
9620 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'
9621 fi
9622 if test aix != "$with_aix_soname"; then
9623 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'
9624 else
9625 # used by -dlpreopen to get the symbols
9626 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9627 fi
9628 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9629 fi
9630 fi
9631 ;;
9632
9633 amigaos*)
9634 case $host_cpu in
9635 powerpc)
9636 # see comment about AmigaOS4 .so support
9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9638 archive_expsym_cmds=''
9639 ;;
9640 m68k)
9641 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)'
9642 hardcode_libdir_flag_spec='-L$libdir'
9643 hardcode_minus_L=yes
9644 ;;
9645 esac
9646 ;;
9647
9648 bsdi[45]*)
9649 export_dynamic_flag_spec=-rdynamic
9650 ;;
9651
9652 cygwin* | mingw* | pw32* | cegcc*)
9653 # When not using gcc, we currently assume that we are using
9654 # Microsoft Visual C++.
9655 # hardcode_libdir_flag_spec is actually meaningless, as there is
9656 # no search path for DLLs.
9657 case $cc_basename in
9658 cl*)
9659 # Native MSVC
9660 hardcode_libdir_flag_spec=' '
9661 allow_undefined_flag=unsupported
9662 always_export_symbols=yes
9663 file_list_spec='@'
9664 # Tell ltmain to make .lib files, not .a files.
9665 libext=lib
9666 # Tell ltmain to make .dll files, not .so files.
9667 shrext_cmds=.dll
9668 # FIXME: Setting linknames here is a bad hack.
9669 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9670 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9671 cp "$export_symbols" "$output_objdir/$soname.def";
9672 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9673 else
9674 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9675 fi~
9676 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9677 linknames='
9678 # The linker will not automatically build a static lib if we build a DLL.
9679 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9680 enable_shared_with_static_runtimes=yes
9681 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9683 # Don't use ranlib
9684 old_postinstall_cmds='chmod 644 $oldlib'
9685 postlink_cmds='lt_outputfile="@OUTPUT@"~
9686 lt_tool_outputfile="@TOOL_OUTPUT@"~
9687 case $lt_outputfile in
9688 *.exe|*.EXE) ;;
9689 *)
9690 lt_outputfile=$lt_outputfile.exe
9691 lt_tool_outputfile=$lt_tool_outputfile.exe
9692 ;;
9693 esac~
9694 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9695 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9696 $RM "$lt_outputfile.manifest";
9697 fi'
9698 ;;
9699 *)
9700 # Assume MSVC wrapper
9701 hardcode_libdir_flag_spec=' '
9702 allow_undefined_flag=unsupported
9703 # Tell ltmain to make .lib files, not .a files.
9704 libext=lib
9705 # Tell ltmain to make .dll files, not .so files.
9706 shrext_cmds=.dll
9707 # FIXME: Setting linknames here is a bad hack.
9708 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9709 # The linker will automatically build a .lib file if we build a DLL.
9710 old_archive_from_new_cmds='true'
9711 # FIXME: Should let the user specify the lib program.
9712 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9713 enable_shared_with_static_runtimes=yes
9714 ;;
9715 esac
9716 ;;
9717
9718 darwin* | rhapsody*)
9719
9720
9721 archive_cmds_need_lc=no
9722 hardcode_direct=no
9723 hardcode_automatic=yes
9724 hardcode_shlibpath_var=unsupported
9725 if test yes = "$lt_cv_ld_force_load"; then
9726 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\"`'
9727
9728 else
9729 whole_archive_flag_spec=''
9730 fi
9731 link_all_deplibs=yes
9732 allow_undefined_flag=$_lt_dar_allow_undefined
9733 case $cc_basename in
9734 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9735 *) _lt_dar_can_shared=$GCC ;;
9736 esac
9737 if test yes = "$_lt_dar_can_shared"; then
9738 output_verbose_link_cmd=func_echo_all
9739 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9740 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9741 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"
9742 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"
9743
9744 else
9745 ld_shlibs=no
9746 fi
9747
9748 ;;
9749
9750 dgux*)
9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9752 hardcode_libdir_flag_spec='-L$libdir'
9753 hardcode_shlibpath_var=no
9754 ;;
9755
9756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9757 # support. Future versions do this automatically, but an explicit c++rt0.o
9758 # does not break anything, and helps significantly (at the cost of a little
9759 # extra space).
9760 freebsd2.2*)
9761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9762 hardcode_libdir_flag_spec='-R$libdir'
9763 hardcode_direct=yes
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9768 freebsd2.*)
9769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_direct=yes
9771 hardcode_minus_L=yes
9772 hardcode_shlibpath_var=no
9773 ;;
9774
9775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9776 freebsd* | dragonfly*)
9777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9778 hardcode_libdir_flag_spec='-R$libdir'
9779 hardcode_direct=yes
9780 hardcode_shlibpath_var=no
9781 ;;
9782
9783 hpux9*)
9784 if test yes = "$GCC"; then
9785 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'
9786 else
9787 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'
9788 fi
9789 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9790 hardcode_libdir_separator=:
9791 hardcode_direct=yes
9792
9793 # hardcode_minus_L: Not really in the search PATH,
9794 # but as the default location of the library.
9795 hardcode_minus_L=yes
9796 export_dynamic_flag_spec='$wl-E'
9797 ;;
9798
9799 hpux10*)
9800 if test yes,no = "$GCC,$with_gnu_ld"; then
9801 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9802 else
9803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9804 fi
9805 if test no = "$with_gnu_ld"; then
9806 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9807 hardcode_libdir_separator=:
9808 hardcode_direct=yes
9809 hardcode_direct_absolute=yes
9810 export_dynamic_flag_spec='$wl-E'
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 fi
9815 ;;
9816
9817 hpux11*)
9818 if test yes,no = "$GCC,$with_gnu_ld"; then
9819 case $host_cpu in
9820 hppa*64*)
9821 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9822 ;;
9823 ia64*)
9824 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9825 ;;
9826 *)
9827 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9828 ;;
9829 esac
9830 else
9831 case $host_cpu in
9832 hppa*64*)
9833 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 ;;
9835 ia64*)
9836 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9837 ;;
9838 *)
9839
9840 # Older versions of the 11.00 compiler do not understand -b yet
9841 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9843 $as_echo_n "checking if $CC understands -b... " >&6; }
9844 if ${lt_cv_prog_compiler__b+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 lt_cv_prog_compiler__b=no
9848 save_LDFLAGS=$LDFLAGS
9849 LDFLAGS="$LDFLAGS -b"
9850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9852 # The linker can only warn and ignore the option if not recognized
9853 # So say no if there are warnings
9854 if test -s conftest.err; then
9855 # Append any errors to the config.log.
9856 cat conftest.err 1>&5
9857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9859 if diff conftest.exp conftest.er2 >/dev/null; then
9860 lt_cv_prog_compiler__b=yes
9861 fi
9862 else
9863 lt_cv_prog_compiler__b=yes
9864 fi
9865 fi
9866 $RM -r conftest*
9867 LDFLAGS=$save_LDFLAGS
9868
9869 fi
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9871 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9872
9873 if test yes = "$lt_cv_prog_compiler__b"; then
9874 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9875 else
9876 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9877 fi
9878
9879 ;;
9880 esac
9881 fi
9882 if test no = "$with_gnu_ld"; then
9883 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9884 hardcode_libdir_separator=:
9885
9886 case $host_cpu in
9887 hppa*64*|ia64*)
9888 hardcode_direct=no
9889 hardcode_shlibpath_var=no
9890 ;;
9891 *)
9892 hardcode_direct=yes
9893 hardcode_direct_absolute=yes
9894 export_dynamic_flag_spec='$wl-E'
9895
9896 # hardcode_minus_L: Not really in the search PATH,
9897 # but as the default location of the library.
9898 hardcode_minus_L=yes
9899 ;;
9900 esac
9901 fi
9902 ;;
9903
9904 irix5* | irix6* | nonstopux*)
9905 if test yes = "$GCC"; then
9906 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'
9907 # Try to use the -exported_symbol ld option, if it does not
9908 # work, assume that -exports_file does not work either and
9909 # implicitly export all symbols.
9910 # This should be the same for all languages, so no per-tag cache variable.
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9912 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9913 if ${lt_cv_irix_exported_symbol+:} false; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 save_LDFLAGS=$LDFLAGS
9917 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920 int foo (void) { return 0; }
9921 _ACEOF
9922 if ac_fn_c_try_link "$LINENO"; then :
9923 lt_cv_irix_exported_symbol=yes
9924 else
9925 lt_cv_irix_exported_symbol=no
9926 fi
9927 rm -f core conftest.err conftest.$ac_objext \
9928 conftest$ac_exeext conftest.$ac_ext
9929 LDFLAGS=$save_LDFLAGS
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9932 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9933 if test yes = "$lt_cv_irix_exported_symbol"; then
9934 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'
9935 fi
9936 else
9937 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'
9938 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'
9939 fi
9940 archive_cmds_need_lc='no'
9941 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9942 hardcode_libdir_separator=:
9943 inherit_rpath=yes
9944 link_all_deplibs=yes
9945 ;;
9946
9947 linux*)
9948 case $cc_basename in
9949 tcc*)
9950 # Fabrice Bellard et al's Tiny C Compiler
9951 ld_shlibs=yes
9952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9953 ;;
9954 esac
9955 ;;
9956
9957 netbsd*)
9958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9960 else
9961 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9962 fi
9963 hardcode_libdir_flag_spec='-R$libdir'
9964 hardcode_direct=yes
9965 hardcode_shlibpath_var=no
9966 ;;
9967
9968 newsos6)
9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_direct=yes
9971 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9972 hardcode_libdir_separator=:
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 *nto* | *qnx*)
9977 ;;
9978
9979 openbsd* | bitrig*)
9980 if test -f /usr/libexec/ld.so; then
9981 hardcode_direct=yes
9982 hardcode_shlibpath_var=no
9983 hardcode_direct_absolute=yes
9984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9987 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9988 export_dynamic_flag_spec='$wl-E'
9989 else
9990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9991 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9992 fi
9993 else
9994 ld_shlibs=no
9995 fi
9996 ;;
9997
9998 os2*)
9999 hardcode_libdir_flag_spec='-L$libdir'
10000 hardcode_minus_L=yes
10001 allow_undefined_flag=unsupported
10002 shrext_cmds=.dll
10003 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10004 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10005 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10006 $ECHO EXPORTS >> $output_objdir/$libname.def~
10007 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10008 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10009 emximp -o $lib $output_objdir/$libname.def'
10010 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10013 $ECHO EXPORTS >> $output_objdir/$libname.def~
10014 prefix_cmds="$SED"~
10015 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10016 prefix_cmds="$prefix_cmds -e 1d";
10017 fi~
10018 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10019 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10021 emximp -o $lib $output_objdir/$libname.def'
10022 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10023 enable_shared_with_static_runtimes=yes
10024 ;;
10025
10026 osf3*)
10027 if test yes = "$GCC"; then
10028 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10029 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'
10030 else
10031 allow_undefined_flag=' -expect_unresolved \*'
10032 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'
10033 fi
10034 archive_cmds_need_lc='no'
10035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10036 hardcode_libdir_separator=:
10037 ;;
10038
10039 osf4* | osf5*) # as osf3* with the addition of -msym flag
10040 if test yes = "$GCC"; then
10041 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10042 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'
10043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10044 else
10045 allow_undefined_flag=' -expect_unresolved \*'
10046 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'
10047 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~
10048 $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'
10049
10050 # Both c and cxx compiler support -rpath directly
10051 hardcode_libdir_flag_spec='-rpath $libdir'
10052 fi
10053 archive_cmds_need_lc='no'
10054 hardcode_libdir_separator=:
10055 ;;
10056
10057 solaris*)
10058 no_undefined_flag=' -z defs'
10059 if test yes = "$GCC"; then
10060 wlarc='$wl'
10061 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10063 $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'
10064 else
10065 case `$CC -V 2>&1` in
10066 *"Compilers 5.0"*)
10067 wlarc=''
10068 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10071 ;;
10072 *)
10073 wlarc='$wl'
10074 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10075 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10076 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10077 ;;
10078 esac
10079 fi
10080 hardcode_libdir_flag_spec='-R$libdir'
10081 hardcode_shlibpath_var=no
10082 case $host_os in
10083 solaris2.[0-5] | solaris2.[0-5].*) ;;
10084 *)
10085 # The compiler driver will combine and reorder linker options,
10086 # but understands '-z linker_flag'. GCC discards it without '$wl',
10087 # but is careful enough not to reorder.
10088 # Supported since Solaris 2.6 (maybe 2.5.1?)
10089 if test yes = "$GCC"; then
10090 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10091 else
10092 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10093 fi
10094 ;;
10095 esac
10096 link_all_deplibs=yes
10097 ;;
10098
10099 sunos4*)
10100 if test sequent = "$host_vendor"; then
10101 # Use $CC to link under sequent, because it throws in some extra .o
10102 # files that make .init and .fini sections work.
10103 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10104 else
10105 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10106 fi
10107 hardcode_libdir_flag_spec='-L$libdir'
10108 hardcode_direct=yes
10109 hardcode_minus_L=yes
10110 hardcode_shlibpath_var=no
10111 ;;
10112
10113 sysv4)
10114 case $host_vendor in
10115 sni)
10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117 hardcode_direct=yes # is this really true???
10118 ;;
10119 siemens)
10120 ## LD is ld it makes a PLAMLIB
10121 ## CC just makes a GrossModule.
10122 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10123 reload_cmds='$CC -r -o $output$reload_objs'
10124 hardcode_direct=no
10125 ;;
10126 motorola)
10127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10129 ;;
10130 esac
10131 runpath_var='LD_RUN_PATH'
10132 hardcode_shlibpath_var=no
10133 ;;
10134
10135 sysv4.3*)
10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_shlibpath_var=no
10138 export_dynamic_flag_spec='-Bexport'
10139 ;;
10140
10141 sysv4*MP*)
10142 if test -d /usr/nec; then
10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 hardcode_shlibpath_var=no
10145 runpath_var=LD_RUN_PATH
10146 hardcode_runpath_var=yes
10147 ld_shlibs=yes
10148 fi
10149 ;;
10150
10151 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10152 no_undefined_flag='$wl-z,text'
10153 archive_cmds_need_lc=no
10154 hardcode_shlibpath_var=no
10155 runpath_var='LD_RUN_PATH'
10156
10157 if test yes = "$GCC"; then
10158 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 else
10161 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 fi
10164 ;;
10165
10166 sysv5* | sco3.2v5* | sco5v6*)
10167 # Note: We CANNOT use -z defs as we might desire, because we do not
10168 # link with -lc, and that would cause any symbols used from libc to
10169 # always be unresolved, which means just about no library would
10170 # ever link correctly. If we're not using GNU ld we use -z text
10171 # though, which does catch some bad symbols but isn't as heavy-handed
10172 # as -z defs.
10173 no_undefined_flag='$wl-z,text'
10174 allow_undefined_flag='$wl-z,nodefs'
10175 archive_cmds_need_lc=no
10176 hardcode_shlibpath_var=no
10177 hardcode_libdir_flag_spec='$wl-R,$libdir'
10178 hardcode_libdir_separator=':'
10179 link_all_deplibs=yes
10180 export_dynamic_flag_spec='$wl-Bexport'
10181 runpath_var='LD_RUN_PATH'
10182
10183 if test yes = "$GCC"; then
10184 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186 else
10187 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189 fi
10190 ;;
10191
10192 uts4*)
10193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194 hardcode_libdir_flag_spec='-L$libdir'
10195 hardcode_shlibpath_var=no
10196 ;;
10197
10198 *)
10199 ld_shlibs=no
10200 ;;
10201 esac
10202
10203 if test sni = "$host_vendor"; then
10204 case $host in
10205 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10206 export_dynamic_flag_spec='$wl-Blargedynsym'
10207 ;;
10208 esac
10209 fi
10210 fi
10211
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10213 $as_echo "$ld_shlibs" >&6; }
10214 test no = "$ld_shlibs" && can_build_shared=no
10215
10216 with_gnu_ld=$with_gnu_ld
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232 #
10233 # Do we need to explicitly link libc?
10234 #
10235 case "x$archive_cmds_need_lc" in
10236 x|xyes)
10237 # Assume -lc should be added
10238 archive_cmds_need_lc=yes
10239
10240 if test yes,yes = "$GCC,$enable_shared"; then
10241 case $archive_cmds in
10242 *'~'*)
10243 # FIXME: we may have to deal with multi-command sequences.
10244 ;;
10245 '$CC '*)
10246 # Test whether the compiler implicitly links with -lc since on some
10247 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10248 # to ld, don't add -lc before -lgcc.
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10250 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10251 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253 else
10254 $RM conftest*
10255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10256
10257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10258 (eval $ac_compile) 2>&5
10259 ac_status=$?
10260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10261 test $ac_status = 0; } 2>conftest.err; then
10262 soname=conftest
10263 lib=conftest
10264 libobjs=conftest.$ac_objext
10265 deplibs=
10266 wl=$lt_prog_compiler_wl
10267 pic_flag=$lt_prog_compiler_pic
10268 compiler_flags=-v
10269 linker_flags=-v
10270 verstring=
10271 output_objdir=.
10272 libname=conftest
10273 lt_save_allow_undefined_flag=$allow_undefined_flag
10274 allow_undefined_flag=
10275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10276 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10277 ac_status=$?
10278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10279 test $ac_status = 0; }
10280 then
10281 lt_cv_archive_cmds_need_lc=no
10282 else
10283 lt_cv_archive_cmds_need_lc=yes
10284 fi
10285 allow_undefined_flag=$lt_save_allow_undefined_flag
10286 else
10287 cat conftest.err 1>&5
10288 fi
10289 $RM conftest*
10290
10291 fi
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10293 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10294 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10295 ;;
10296 esac
10297 fi
10298 ;;
10299 esac
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10453 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10454
10455 if test yes = "$GCC"; then
10456 case $host_os in
10457 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10458 *) lt_awk_arg='/^libraries:/' ;;
10459 esac
10460 case $host_os in
10461 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10462 *) lt_sed_strip_eq='s|=/|/|g' ;;
10463 esac
10464 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10465 case $lt_search_path_spec in
10466 *\;*)
10467 # if the path contains ";" then we assume it to be the separator
10468 # otherwise default to the standard path separator (i.e. ":") - it is
10469 # assumed that no part of a normal pathname contains ";" but that should
10470 # okay in the real world where ";" in dirpaths is itself problematic.
10471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10472 ;;
10473 *)
10474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10475 ;;
10476 esac
10477 # Ok, now we have the path, separated by spaces, we can step through it
10478 # and add multilib dir if necessary...
10479 lt_tmp_lt_search_path_spec=
10480 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10481 # ...but if some path component already ends with the multilib dir we assume
10482 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10483 case "$lt_multi_os_dir; $lt_search_path_spec " in
10484 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10485 lt_multi_os_dir=
10486 ;;
10487 esac
10488 for lt_sys_path in $lt_search_path_spec; do
10489 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10490 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10491 elif test -n "$lt_multi_os_dir"; then
10492 test -d "$lt_sys_path" && \
10493 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10494 fi
10495 done
10496 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10497 BEGIN {RS = " "; FS = "/|\n";} {
10498 lt_foo = "";
10499 lt_count = 0;
10500 for (lt_i = NF; lt_i > 0; lt_i--) {
10501 if ($lt_i != "" && $lt_i != ".") {
10502 if ($lt_i == "..") {
10503 lt_count++;
10504 } else {
10505 if (lt_count == 0) {
10506 lt_foo = "/" $lt_i lt_foo;
10507 } else {
10508 lt_count--;
10509 }
10510 }
10511 }
10512 }
10513 if (lt_foo != "") { lt_freq[lt_foo]++; }
10514 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10515 }'`
10516 # AWK program above erroneously prepends '/' to C:/dos/paths
10517 # for these hosts.
10518 case $host_os in
10519 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10520 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10521 esac
10522 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10523 else
10524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10525 fi
10526 library_names_spec=
10527 libname_spec='lib$name'
10528 soname_spec=
10529 shrext_cmds=.so
10530 postinstall_cmds=
10531 postuninstall_cmds=
10532 finish_cmds=
10533 finish_eval=
10534 shlibpath_var=
10535 shlibpath_overrides_runpath=unknown
10536 version_type=none
10537 dynamic_linker="$host_os ld.so"
10538 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10539 need_lib_prefix=unknown
10540 hardcode_into_libs=no
10541
10542 # when you set need_version to no, make sure it does not cause -set_version
10543 # flags to be left without arguments
10544 need_version=unknown
10545
10546
10547
10548 case $host_os in
10549 aix3*)
10550 version_type=linux # correct to gnu/linux during the next big refactor
10551 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10552 shlibpath_var=LIBPATH
10553
10554 # AIX 3 has no versioning support, so we append a major version to the name.
10555 soname_spec='$libname$release$shared_ext$major'
10556 ;;
10557
10558 aix[4-9]*)
10559 version_type=linux # correct to gnu/linux during the next big refactor
10560 need_lib_prefix=no
10561 need_version=no
10562 hardcode_into_libs=yes
10563 if test ia64 = "$host_cpu"; then
10564 # AIX 5 supports IA64
10565 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10566 shlibpath_var=LD_LIBRARY_PATH
10567 else
10568 # With GCC up to 2.95.x, collect2 would create an import file
10569 # for dependence libraries. The import file would start with
10570 # the line '#! .'. This would cause the generated library to
10571 # depend on '.', always an invalid library. This was fixed in
10572 # development snapshots of GCC prior to 3.0.
10573 case $host_os in
10574 aix4 | aix4.[01] | aix4.[01].*)
10575 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10576 echo ' yes '
10577 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10578 :
10579 else
10580 can_build_shared=no
10581 fi
10582 ;;
10583 esac
10584 # Using Import Files as archive members, it is possible to support
10585 # filename-based versioning of shared library archives on AIX. While
10586 # this would work for both with and without runtime linking, it will
10587 # prevent static linking of such archives. So we do filename-based
10588 # shared library versioning with .so extension only, which is used
10589 # when both runtime linking and shared linking is enabled.
10590 # Unfortunately, runtime linking may impact performance, so we do
10591 # not want this to be the default eventually. Also, we use the
10592 # versioned .so libs for executables only if there is the -brtl
10593 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10594 # To allow for filename-based versioning support, we need to create
10595 # libNAME.so.V as an archive file, containing:
10596 # *) an Import File, referring to the versioned filename of the
10597 # archive as well as the shared archive member, telling the
10598 # bitwidth (32 or 64) of that shared object, and providing the
10599 # list of exported symbols of that shared object, eventually
10600 # decorated with the 'weak' keyword
10601 # *) the shared object with the F_LOADONLY flag set, to really avoid
10602 # it being seen by the linker.
10603 # At run time we better use the real file rather than another symlink,
10604 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10605
10606 case $with_aix_soname,$aix_use_runtimelinking in
10607 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10608 # soname into executable. Probably we can add versioning support to
10609 # collect2, so additional links can be useful in future.
10610 aix,yes) # traditional libtool
10611 dynamic_linker='AIX unversionable lib.so'
10612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10613 # instead of lib<name>.a to let people know that these are not
10614 # typical AIX shared libraries.
10615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10616 ;;
10617 aix,no) # traditional AIX only
10618 dynamic_linker='AIX lib.a(lib.so.V)'
10619 # We preserve .a as extension for shared libraries through AIX4.2
10620 # and later when we are not doing run time linking.
10621 library_names_spec='$libname$release.a $libname.a'
10622 soname_spec='$libname$release$shared_ext$major'
10623 ;;
10624 svr4,*) # full svr4 only
10625 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10626 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10627 # We do not specify a path in Import Files, so LIBPATH fires.
10628 shlibpath_overrides_runpath=yes
10629 ;;
10630 *,yes) # both, prefer svr4
10631 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10632 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10633 # unpreferred sharedlib libNAME.a needs extra handling
10634 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"'
10635 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"'
10636 # We do not specify a path in Import Files, so LIBPATH fires.
10637 shlibpath_overrides_runpath=yes
10638 ;;
10639 *,no) # both, prefer aix
10640 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10641 library_names_spec='$libname$release.a $libname.a'
10642 soname_spec='$libname$release$shared_ext$major'
10643 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10644 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)'
10645 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"'
10646 ;;
10647 esac
10648 shlibpath_var=LIBPATH
10649 fi
10650 ;;
10651
10652 amigaos*)
10653 case $host_cpu in
10654 powerpc)
10655 # Since July 2007 AmigaOS4 officially supports .so libraries.
10656 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10658 ;;
10659 m68k)
10660 library_names_spec='$libname.ixlibrary $libname.a'
10661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10662 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'
10663 ;;
10664 esac
10665 ;;
10666
10667 beos*)
10668 library_names_spec='$libname$shared_ext'
10669 dynamic_linker="$host_os ld.so"
10670 shlibpath_var=LIBRARY_PATH
10671 ;;
10672
10673 bsdi[45]*)
10674 version_type=linux # correct to gnu/linux during the next big refactor
10675 need_version=no
10676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10677 soname_spec='$libname$release$shared_ext$major'
10678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10682 # the default ld.so.conf also contains /usr/contrib/lib and
10683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10684 # libtool to hard-code these into programs
10685 ;;
10686
10687 cygwin* | mingw* | pw32* | cegcc*)
10688 version_type=windows
10689 shrext_cmds=.dll
10690 need_version=no
10691 need_lib_prefix=no
10692
10693 case $GCC,$cc_basename in
10694 yes,*)
10695 # gcc
10696 library_names_spec='$libname.dll.a'
10697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10698 postinstall_cmds='base_file=`basename \$file`~
10699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10700 dldir=$destdir/`dirname \$dlpath`~
10701 test -d \$dldir || mkdir -p \$dldir~
10702 $install_prog $dir/$dlname \$dldir/$dlname~
10703 chmod a+x \$dldir/$dlname~
10704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10706 fi'
10707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10708 dlpath=$dir/\$dldll~
10709 $RM \$dlpath'
10710 shlibpath_overrides_runpath=yes
10711
10712 case $host_os in
10713 cygwin*)
10714 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10715 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10716
10717 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10718 ;;
10719 mingw* | cegcc*)
10720 # MinGW DLLs use traditional 'lib' prefix
10721 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10722 ;;
10723 pw32*)
10724 # pw32 DLLs use 'pw' prefix rather than 'lib'
10725 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10726 ;;
10727 esac
10728 dynamic_linker='Win32 ld.exe'
10729 ;;
10730
10731 *,cl*)
10732 # Native MSVC
10733 libname_spec='$name'
10734 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10735 library_names_spec='$libname.dll.lib'
10736
10737 case $build_os in
10738 mingw*)
10739 sys_lib_search_path_spec=
10740 lt_save_ifs=$IFS
10741 IFS=';'
10742 for lt_path in $LIB
10743 do
10744 IFS=$lt_save_ifs
10745 # Let DOS variable expansion print the short 8.3 style file name.
10746 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10747 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10748 done
10749 IFS=$lt_save_ifs
10750 # Convert to MSYS style.
10751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10752 ;;
10753 cygwin*)
10754 # Convert to unix form, then to dos form, then back to unix form
10755 # but this time dos style (no spaces!) so that the unix form looks
10756 # like /cygdrive/c/PROGRA~1:/cygdr...
10757 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10758 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10759 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10760 ;;
10761 *)
10762 sys_lib_search_path_spec=$LIB
10763 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10764 # It is most probably a Windows format PATH.
10765 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10766 else
10767 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10768 fi
10769 # FIXME: find the short name or the path components, as spaces are
10770 # common. (e.g. "Program Files" -> "PROGRA~1")
10771 ;;
10772 esac
10773
10774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10775 postinstall_cmds='base_file=`basename \$file`~
10776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10777 dldir=$destdir/`dirname \$dlpath`~
10778 test -d \$dldir || mkdir -p \$dldir~
10779 $install_prog $dir/$dlname \$dldir/$dlname'
10780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10781 dlpath=$dir/\$dldll~
10782 $RM \$dlpath'
10783 shlibpath_overrides_runpath=yes
10784 dynamic_linker='Win32 link.exe'
10785 ;;
10786
10787 *)
10788 # Assume MSVC wrapper
10789 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10790 dynamic_linker='Win32 ld.exe'
10791 ;;
10792 esac
10793 # FIXME: first we should search . and the directory the executable is in
10794 shlibpath_var=PATH
10795 ;;
10796
10797 darwin* | rhapsody*)
10798 dynamic_linker="$host_os dyld"
10799 version_type=darwin
10800 need_lib_prefix=no
10801 need_version=no
10802 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10803 soname_spec='$libname$release$major$shared_ext'
10804 shlibpath_overrides_runpath=yes
10805 shlibpath_var=DYLD_LIBRARY_PATH
10806 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10807
10808 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10810 ;;
10811
10812 dgux*)
10813 version_type=linux # correct to gnu/linux during the next big refactor
10814 need_lib_prefix=no
10815 need_version=no
10816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10817 soname_spec='$libname$release$shared_ext$major'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 ;;
10820
10821 freebsd* | dragonfly*)
10822 # DragonFly does not have aout. When/if they implement a new
10823 # versioning mechanism, adjust this.
10824 if test -x /usr/bin/objformat; then
10825 objformat=`/usr/bin/objformat`
10826 else
10827 case $host_os in
10828 freebsd[23].*) objformat=aout ;;
10829 *) objformat=elf ;;
10830 esac
10831 fi
10832 version_type=freebsd-$objformat
10833 case $version_type in
10834 freebsd-elf*)
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 need_version=no
10838 need_lib_prefix=no
10839 ;;
10840 freebsd-*)
10841 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10842 need_version=yes
10843 ;;
10844 esac
10845 shlibpath_var=LD_LIBRARY_PATH
10846 case $host_os in
10847 freebsd2.*)
10848 shlibpath_overrides_runpath=yes
10849 ;;
10850 freebsd3.[01]* | freebsdelf3.[01]*)
10851 shlibpath_overrides_runpath=yes
10852 hardcode_into_libs=yes
10853 ;;
10854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10856 shlibpath_overrides_runpath=no
10857 hardcode_into_libs=yes
10858 ;;
10859 *) # from 4.6 on, and DragonFly
10860 shlibpath_overrides_runpath=yes
10861 hardcode_into_libs=yes
10862 ;;
10863 esac
10864 ;;
10865
10866 haiku*)
10867 version_type=linux # correct to gnu/linux during the next big refactor
10868 need_lib_prefix=no
10869 need_version=no
10870 dynamic_linker="$host_os runtime_loader"
10871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10872 soname_spec='$libname$release$shared_ext$major'
10873 shlibpath_var=LIBRARY_PATH
10874 shlibpath_overrides_runpath=no
10875 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10876 hardcode_into_libs=yes
10877 ;;
10878
10879 hpux9* | hpux10* | hpux11*)
10880 # Give a soname corresponding to the major version so that dld.sl refuses to
10881 # link against other versions.
10882 version_type=sunos
10883 need_lib_prefix=no
10884 need_version=no
10885 case $host_cpu in
10886 ia64*)
10887 shrext_cmds='.so'
10888 hardcode_into_libs=yes
10889 dynamic_linker="$host_os dld.so"
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10893 soname_spec='$libname$release$shared_ext$major'
10894 if test 32 = "$HPUX_IA64_MODE"; then
10895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10896 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10897 else
10898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10899 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10900 fi
10901 ;;
10902 hppa*64*)
10903 shrext_cmds='.sl'
10904 hardcode_into_libs=yes
10905 dynamic_linker="$host_os dld.sl"
10906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10909 soname_spec='$libname$release$shared_ext$major'
10910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10912 ;;
10913 *)
10914 shrext_cmds='.sl'
10915 dynamic_linker="$host_os dld.sl"
10916 shlibpath_var=SHLIB_PATH
10917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10919 soname_spec='$libname$release$shared_ext$major'
10920 ;;
10921 esac
10922 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10923 postinstall_cmds='chmod 555 $lib'
10924 # or fails outright, so override atomically:
10925 install_override_mode=555
10926 ;;
10927
10928 interix[3-9]*)
10929 version_type=linux # correct to gnu/linux during the next big refactor
10930 need_lib_prefix=no
10931 need_version=no
10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10933 soname_spec='$libname$release$shared_ext$major'
10934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10935 shlibpath_var=LD_LIBRARY_PATH
10936 shlibpath_overrides_runpath=no
10937 hardcode_into_libs=yes
10938 ;;
10939
10940 irix5* | irix6* | nonstopux*)
10941 case $host_os in
10942 nonstopux*) version_type=nonstopux ;;
10943 *)
10944 if test yes = "$lt_cv_prog_gnu_ld"; then
10945 version_type=linux # correct to gnu/linux during the next big refactor
10946 else
10947 version_type=irix
10948 fi ;;
10949 esac
10950 need_lib_prefix=no
10951 need_version=no
10952 soname_spec='$libname$release$shared_ext$major'
10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10954 case $host_os in
10955 irix5* | nonstopux*)
10956 libsuff= shlibsuff=
10957 ;;
10958 *)
10959 case $LD in # libtool.m4 will add one of these switches to LD
10960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10961 libsuff= shlibsuff= libmagic=32-bit;;
10962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10963 libsuff=32 shlibsuff=N32 libmagic=N32;;
10964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10965 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10966 *) libsuff= shlibsuff= libmagic=never-match;;
10967 esac
10968 ;;
10969 esac
10970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10971 shlibpath_overrides_runpath=no
10972 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10973 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10974 hardcode_into_libs=yes
10975 ;;
10976
10977 # No shared lib support for Linux oldld, aout, or coff.
10978 linux*oldld* | linux*aout* | linux*coff*)
10979 dynamic_linker=no
10980 ;;
10981
10982 linux*android*)
10983 version_type=none # Android doesn't support versioned libraries.
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='$libname$release$shared_ext'
10987 soname_spec='$libname$release$shared_ext'
10988 finish_cmds=
10989 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=yes
10991
10992 # This implies no fast_install, which is unacceptable.
10993 # Some rework will be needed to allow for fast_install
10994 # before this can be enabled.
10995 hardcode_into_libs=yes
10996
10997 dynamic_linker='Android linker'
10998 # Don't embed -rpath directories since the linker doesn't support them.
10999 hardcode_libdir_flag_spec='-L$libdir'
11000 ;;
11001
11002 # This must be glibc/ELF.
11003 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11004 version_type=linux # correct to gnu/linux during the next big refactor
11005 need_lib_prefix=no
11006 need_version=no
11007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11008 soname_spec='$libname$release$shared_ext$major'
11009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11010 shlibpath_var=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath=no
11012
11013 # Some binutils ld are patched to set DT_RUNPATH
11014 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11015 $as_echo_n "(cached) " >&6
11016 else
11017 lt_cv_shlibpath_overrides_runpath=no
11018 save_LDFLAGS=$LDFLAGS
11019 save_libdir=$libdir
11020 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11021 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11024
11025 int
11026 main ()
11027 {
11028
11029 ;
11030 return 0;
11031 }
11032 _ACEOF
11033 if ac_fn_c_try_link "$LINENO"; then :
11034 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11035 lt_cv_shlibpath_overrides_runpath=yes
11036 fi
11037 fi
11038 rm -f core conftest.err conftest.$ac_objext \
11039 conftest$ac_exeext conftest.$ac_ext
11040 LDFLAGS=$save_LDFLAGS
11041 libdir=$save_libdir
11042
11043 fi
11044
11045 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11046
11047 # This implies no fast_install, which is unacceptable.
11048 # Some rework will be needed to allow for fast_install
11049 # before this can be enabled.
11050 hardcode_into_libs=yes
11051
11052 # Ideally, we could use ldconfig to report *all* directores which are
11053 # searched for libraries, however this is still not possible. Aside from not
11054 # being certain /sbin/ldconfig is available, command
11055 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11056 # even though it is searched at run-time. Try to do the best guess by
11057 # appending ld.so.conf contents (and includes) to the search path.
11058 if test -f /etc/ld.so.conf; then
11059 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' ' '`
11060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11061 fi
11062
11063 # We used to test for /lib/ld.so.1 and disable shared libraries on
11064 # powerpc, because MkLinux only supported shared libraries with the
11065 # GNU dynamic linker. Since this was broken with cross compilers,
11066 # most powerpc-linux boxes support dynamic linking these days and
11067 # people can always --disable-shared, the test was removed, and we
11068 # assume the GNU/Linux dynamic linker is in use.
11069 dynamic_linker='GNU/Linux ld.so'
11070 ;;
11071
11072 netbsd*)
11073 version_type=sunos
11074 need_lib_prefix=no
11075 need_version=no
11076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11079 dynamic_linker='NetBSD (a.out) ld.so'
11080 else
11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082 soname_spec='$libname$release$shared_ext$major'
11083 dynamic_linker='NetBSD ld.elf_so'
11084 fi
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=yes
11087 hardcode_into_libs=yes
11088 ;;
11089
11090 newsos6)
11091 version_type=linux # correct to gnu/linux during the next big refactor
11092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 shlibpath_overrides_runpath=yes
11095 ;;
11096
11097 *nto* | *qnx*)
11098 version_type=qnx
11099 need_lib_prefix=no
11100 need_version=no
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11102 soname_spec='$libname$release$shared_ext$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=no
11105 hardcode_into_libs=yes
11106 dynamic_linker='ldqnx.so'
11107 ;;
11108
11109 openbsd* | bitrig*)
11110 version_type=sunos
11111 sys_lib_dlsearch_path_spec=/usr/lib
11112 need_lib_prefix=no
11113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11114 need_version=no
11115 else
11116 need_version=yes
11117 fi
11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 shlibpath_overrides_runpath=yes
11122 ;;
11123
11124 os2*)
11125 libname_spec='$name'
11126 version_type=windows
11127 shrext_cmds=.dll
11128 need_version=no
11129 need_lib_prefix=no
11130 # OS/2 can only load a DLL with a base name of 8 characters or less.
11131 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11132 v=$($ECHO $release$versuffix | tr -d .-);
11133 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11134 $ECHO $n$v`$shared_ext'
11135 library_names_spec='${libname}_dll.$libext'
11136 dynamic_linker='OS/2 ld.exe'
11137 shlibpath_var=BEGINLIBPATH
11138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11140 postinstall_cmds='base_file=`basename \$file`~
11141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11142 dldir=$destdir/`dirname \$dlpath`~
11143 test -d \$dldir || mkdir -p \$dldir~
11144 $install_prog $dir/$dlname \$dldir/$dlname~
11145 chmod a+x \$dldir/$dlname~
11146 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11147 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11148 fi'
11149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11150 dlpath=$dir/\$dldll~
11151 $RM \$dlpath'
11152 ;;
11153
11154 osf3* | osf4* | osf5*)
11155 version_type=osf
11156 need_lib_prefix=no
11157 need_version=no
11158 soname_spec='$libname$release$shared_ext$major'
11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11163 ;;
11164
11165 rdos*)
11166 dynamic_linker=no
11167 ;;
11168
11169 solaris*)
11170 version_type=linux # correct to gnu/linux during the next big refactor
11171 need_lib_prefix=no
11172 need_version=no
11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174 soname_spec='$libname$release$shared_ext$major'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=yes
11177 hardcode_into_libs=yes
11178 # ldd complains unless libraries are executable
11179 postinstall_cmds='chmod +x $lib'
11180 ;;
11181
11182 sunos4*)
11183 version_type=sunos
11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 shlibpath_overrides_runpath=yes
11188 if test yes = "$with_gnu_ld"; then
11189 need_lib_prefix=no
11190 fi
11191 need_version=yes
11192 ;;
11193
11194 sysv4 | sysv4.3*)
11195 version_type=linux # correct to gnu/linux during the next big refactor
11196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11197 soname_spec='$libname$release$shared_ext$major'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 case $host_vendor in
11200 sni)
11201 shlibpath_overrides_runpath=no
11202 need_lib_prefix=no
11203 runpath_var=LD_RUN_PATH
11204 ;;
11205 siemens)
11206 need_lib_prefix=no
11207 ;;
11208 motorola)
11209 need_lib_prefix=no
11210 need_version=no
11211 shlibpath_overrides_runpath=no
11212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11213 ;;
11214 esac
11215 ;;
11216
11217 sysv4*MP*)
11218 if test -d /usr/nec; then
11219 version_type=linux # correct to gnu/linux during the next big refactor
11220 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11221 soname_spec='$libname$shared_ext.$major'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 fi
11224 ;;
11225
11226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11227 version_type=sco
11228 need_lib_prefix=no
11229 need_version=no
11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11231 soname_spec='$libname$release$shared_ext$major'
11232 shlibpath_var=LD_LIBRARY_PATH
11233 shlibpath_overrides_runpath=yes
11234 hardcode_into_libs=yes
11235 if test yes = "$with_gnu_ld"; then
11236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11237 else
11238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11239 case $host_os in
11240 sco3.2v5*)
11241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11242 ;;
11243 esac
11244 fi
11245 sys_lib_dlsearch_path_spec='/usr/lib'
11246 ;;
11247
11248 tpf*)
11249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11250 version_type=linux # correct to gnu/linux during the next big refactor
11251 need_lib_prefix=no
11252 need_version=no
11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11254 shlibpath_var=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath=no
11256 hardcode_into_libs=yes
11257 ;;
11258
11259 uts4*)
11260 version_type=linux # correct to gnu/linux during the next big refactor
11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11262 soname_spec='$libname$release$shared_ext$major'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 ;;
11265
11266 *)
11267 dynamic_linker=no
11268 ;;
11269 esac
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11271 $as_echo "$dynamic_linker" >&6; }
11272 test no = "$dynamic_linker" && can_build_shared=no
11273
11274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11275 if test yes = "$GCC"; then
11276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11277 fi
11278
11279 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11280 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11281 fi
11282
11283 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11284 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11285 fi
11286
11287 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11288 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11289
11290 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11291 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11292
11293 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11294 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11393 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11394 hardcode_action=
11395 if test -n "$hardcode_libdir_flag_spec" ||
11396 test -n "$runpath_var" ||
11397 test yes = "$hardcode_automatic"; then
11398
11399 # We can hardcode non-existent directories.
11400 if test no != "$hardcode_direct" &&
11401 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11402 # have to relink, otherwise we might link with an installed library
11403 # when we should be linking with a yet-to-be-installed one
11404 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11405 test no != "$hardcode_minus_L"; then
11406 # Linking always hardcodes the temporary library directory.
11407 hardcode_action=relink
11408 else
11409 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11410 hardcode_action=immediate
11411 fi
11412 else
11413 # We cannot hardcode anything, or else we can only hardcode existing
11414 # directories.
11415 hardcode_action=unsupported
11416 fi
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11418 $as_echo "$hardcode_action" >&6; }
11419
11420 if test relink = "$hardcode_action" ||
11421 test yes = "$inherit_rpath"; then
11422 # Fast installation is not supported
11423 enable_fast_install=no
11424 elif test yes = "$shlibpath_overrides_runpath" ||
11425 test no = "$enable_shared"; then
11426 # Fast installation is not necessary
11427 enable_fast_install=needless
11428 fi
11429
11430
11431
11432
11433
11434
11435 if test yes != "$enable_dlopen"; then
11436 enable_dlopen=unknown
11437 enable_dlopen_self=unknown
11438 enable_dlopen_self_static=unknown
11439 else
11440 lt_cv_dlopen=no
11441 lt_cv_dlopen_libs=
11442
11443 case $host_os in
11444 beos*)
11445 lt_cv_dlopen=load_add_on
11446 lt_cv_dlopen_libs=
11447 lt_cv_dlopen_self=yes
11448 ;;
11449
11450 mingw* | pw32* | cegcc*)
11451 lt_cv_dlopen=LoadLibrary
11452 lt_cv_dlopen_libs=
11453 ;;
11454
11455 cygwin*)
11456 lt_cv_dlopen=dlopen
11457 lt_cv_dlopen_libs=
11458 ;;
11459
11460 darwin*)
11461 # if libdl is installed we need to link against it
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11463 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11464 if ${ac_cv_lib_dl_dlopen+:} false; then :
11465 $as_echo_n "(cached) " >&6
11466 else
11467 ac_check_lib_save_LIBS=$LIBS
11468 LIBS="-ldl $LIBS"
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471
11472 /* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 char dlopen ();
11479 int
11480 main ()
11481 {
11482 return dlopen ();
11483 ;
11484 return 0;
11485 }
11486 _ACEOF
11487 if ac_fn_c_try_link "$LINENO"; then :
11488 ac_cv_lib_dl_dlopen=yes
11489 else
11490 ac_cv_lib_dl_dlopen=no
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext \
11493 conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11497 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11498 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11499 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11500 else
11501
11502 lt_cv_dlopen=dyld
11503 lt_cv_dlopen_libs=
11504 lt_cv_dlopen_self=yes
11505
11506 fi
11507
11508 ;;
11509
11510 tpf*)
11511 # Don't try to run any link tests for TPF. We know it's impossible
11512 # because TPF is a cross-compiler, and we know how we open DSOs.
11513 lt_cv_dlopen=dlopen
11514 lt_cv_dlopen_libs=
11515 lt_cv_dlopen_self=no
11516 ;;
11517
11518 *)
11519 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11520 if test "x$ac_cv_func_shl_load" = xyes; then :
11521 lt_cv_dlopen=shl_load
11522 else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11524 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11525 if ${ac_cv_lib_dld_shl_load+:} false; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 ac_check_lib_save_LIBS=$LIBS
11529 LIBS="-ldld $LIBS"
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11532
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char shl_load ();
11540 int
11541 main ()
11542 {
11543 return shl_load ();
11544 ;
11545 return 0;
11546 }
11547 _ACEOF
11548 if ac_fn_c_try_link "$LINENO"; then :
11549 ac_cv_lib_dld_shl_load=yes
11550 else
11551 ac_cv_lib_dld_shl_load=no
11552 fi
11553 rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_lib_save_LIBS
11556 fi
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11558 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11559 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11560 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11561 else
11562 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11563 if test "x$ac_cv_func_dlopen" = xyes; then :
11564 lt_cv_dlopen=dlopen
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11567 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11568 if ${ac_cv_lib_dl_dlopen+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-ldl $LIBS"
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575
11576 /* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char dlopen ();
11583 int
11584 main ()
11585 {
11586 return dlopen ();
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"; then :
11592 ac_cv_lib_dl_dlopen=yes
11593 else
11594 ac_cv_lib_dl_dlopen=no
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11599 fi
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11601 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11602 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11603 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11606 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11607 if ${ac_cv_lib_svld_dlopen+:} false; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 ac_check_lib_save_LIBS=$LIBS
11611 LIBS="-lsvld $LIBS"
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char dlopen ();
11622 int
11623 main ()
11624 {
11625 return dlopen ();
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631 ac_cv_lib_svld_dlopen=yes
11632 else
11633 ac_cv_lib_svld_dlopen=no
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext \
11636 conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11640 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11641 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11642 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11645 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11646 if ${ac_cv_lib_dld_dld_link+:} false; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649 ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-ldld $LIBS"
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11653
11654 /* Override any GCC internal prototype to avoid an error.
11655 Use char because int might match the return type of a GCC
11656 builtin and then its argument prototype would still apply. */
11657 #ifdef __cplusplus
11658 extern "C"
11659 #endif
11660 char dld_link ();
11661 int
11662 main ()
11663 {
11664 return dld_link ();
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11670 ac_cv_lib_dld_dld_link=yes
11671 else
11672 ac_cv_lib_dld_dld_link=no
11673 fi
11674 rm -f core conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11677 fi
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11679 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11680 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11681 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11682 fi
11683
11684
11685 fi
11686
11687
11688 fi
11689
11690
11691 fi
11692
11693
11694 fi
11695
11696
11697 fi
11698
11699 ;;
11700 esac
11701
11702 if test no = "$lt_cv_dlopen"; then
11703 enable_dlopen=no
11704 else
11705 enable_dlopen=yes
11706 fi
11707
11708 case $lt_cv_dlopen in
11709 dlopen)
11710 save_CPPFLAGS=$CPPFLAGS
11711 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11712
11713 save_LDFLAGS=$LDFLAGS
11714 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11715
11716 save_LIBS=$LIBS
11717 LIBS="$lt_cv_dlopen_libs $LIBS"
11718
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11720 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11721 if ${lt_cv_dlopen_self+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 if test yes = "$cross_compiling"; then :
11725 lt_cv_dlopen_self=cross
11726 else
11727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11728 lt_status=$lt_dlunknown
11729 cat > conftest.$ac_ext <<_LT_EOF
11730 #line $LINENO "configure"
11731 #include "confdefs.h"
11732
11733 #if HAVE_DLFCN_H
11734 #include <dlfcn.h>
11735 #endif
11736
11737 #include <stdio.h>
11738
11739 #ifdef RTLD_GLOBAL
11740 # define LT_DLGLOBAL RTLD_GLOBAL
11741 #else
11742 # ifdef DL_GLOBAL
11743 # define LT_DLGLOBAL DL_GLOBAL
11744 # else
11745 # define LT_DLGLOBAL 0
11746 # endif
11747 #endif
11748
11749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11750 find out it does not work in some platform. */
11751 #ifndef LT_DLLAZY_OR_NOW
11752 # ifdef RTLD_LAZY
11753 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11754 # else
11755 # ifdef DL_LAZY
11756 # define LT_DLLAZY_OR_NOW DL_LAZY
11757 # else
11758 # ifdef RTLD_NOW
11759 # define LT_DLLAZY_OR_NOW RTLD_NOW
11760 # else
11761 # ifdef DL_NOW
11762 # define LT_DLLAZY_OR_NOW DL_NOW
11763 # else
11764 # define LT_DLLAZY_OR_NOW 0
11765 # endif
11766 # endif
11767 # endif
11768 # endif
11769 #endif
11770
11771 /* When -fvisibility=hidden is used, assume the code has been annotated
11772 correspondingly for the symbols needed. */
11773 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11774 int fnord () __attribute__((visibility("default")));
11775 #endif
11776
11777 int fnord () { return 42; }
11778 int main ()
11779 {
11780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11781 int status = $lt_dlunknown;
11782
11783 if (self)
11784 {
11785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11786 else
11787 {
11788 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11789 else puts (dlerror ());
11790 }
11791 /* dlclose (self); */
11792 }
11793 else
11794 puts (dlerror ());
11795
11796 return status;
11797 }
11798 _LT_EOF
11799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11800 (eval $ac_link) 2>&5
11801 ac_status=$?
11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11803 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11804 (./conftest; exit; ) >&5 2>/dev/null
11805 lt_status=$?
11806 case x$lt_status in
11807 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11808 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11809 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11810 esac
11811 else :
11812 # compilation failed
11813 lt_cv_dlopen_self=no
11814 fi
11815 fi
11816 rm -fr conftest*
11817
11818
11819 fi
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11821 $as_echo "$lt_cv_dlopen_self" >&6; }
11822
11823 if test yes = "$lt_cv_dlopen_self"; then
11824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11826 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11827 if ${lt_cv_dlopen_self_static+:} false; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 if test yes = "$cross_compiling"; then :
11831 lt_cv_dlopen_self_static=cross
11832 else
11833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11834 lt_status=$lt_dlunknown
11835 cat > conftest.$ac_ext <<_LT_EOF
11836 #line $LINENO "configure"
11837 #include "confdefs.h"
11838
11839 #if HAVE_DLFCN_H
11840 #include <dlfcn.h>
11841 #endif
11842
11843 #include <stdio.h>
11844
11845 #ifdef RTLD_GLOBAL
11846 # define LT_DLGLOBAL RTLD_GLOBAL
11847 #else
11848 # ifdef DL_GLOBAL
11849 # define LT_DLGLOBAL DL_GLOBAL
11850 # else
11851 # define LT_DLGLOBAL 0
11852 # endif
11853 #endif
11854
11855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11856 find out it does not work in some platform. */
11857 #ifndef LT_DLLAZY_OR_NOW
11858 # ifdef RTLD_LAZY
11859 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11860 # else
11861 # ifdef DL_LAZY
11862 # define LT_DLLAZY_OR_NOW DL_LAZY
11863 # else
11864 # ifdef RTLD_NOW
11865 # define LT_DLLAZY_OR_NOW RTLD_NOW
11866 # else
11867 # ifdef DL_NOW
11868 # define LT_DLLAZY_OR_NOW DL_NOW
11869 # else
11870 # define LT_DLLAZY_OR_NOW 0
11871 # endif
11872 # endif
11873 # endif
11874 # endif
11875 #endif
11876
11877 /* When -fvisibility=hidden is used, assume the code has been annotated
11878 correspondingly for the symbols needed. */
11879 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11880 int fnord () __attribute__((visibility("default")));
11881 #endif
11882
11883 int fnord () { return 42; }
11884 int main ()
11885 {
11886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11887 int status = $lt_dlunknown;
11888
11889 if (self)
11890 {
11891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11892 else
11893 {
11894 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11895 else puts (dlerror ());
11896 }
11897 /* dlclose (self); */
11898 }
11899 else
11900 puts (dlerror ());
11901
11902 return status;
11903 }
11904 _LT_EOF
11905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11906 (eval $ac_link) 2>&5
11907 ac_status=$?
11908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11909 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11910 (./conftest; exit; ) >&5 2>/dev/null
11911 lt_status=$?
11912 case x$lt_status in
11913 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11914 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11915 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11916 esac
11917 else :
11918 # compilation failed
11919 lt_cv_dlopen_self_static=no
11920 fi
11921 fi
11922 rm -fr conftest*
11923
11924
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11927 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11928 fi
11929
11930 CPPFLAGS=$save_CPPFLAGS
11931 LDFLAGS=$save_LDFLAGS
11932 LIBS=$save_LIBS
11933 ;;
11934 esac
11935
11936 case $lt_cv_dlopen_self in
11937 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11938 *) enable_dlopen_self=unknown ;;
11939 esac
11940
11941 case $lt_cv_dlopen_self_static in
11942 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11943 *) enable_dlopen_self_static=unknown ;;
11944 esac
11945 fi
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963 striplib=
11964 old_striplib=
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11966 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11967 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11969 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11971 $as_echo "yes" >&6; }
11972 else
11973 # FIXME - insert some real tests, host_os isn't really good enough
11974 case $host_os in
11975 darwin*)
11976 if test -n "$STRIP"; then
11977 striplib="$STRIP -x"
11978 old_striplib="$STRIP -S"
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980 $as_echo "yes" >&6; }
11981 else
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984 fi
11985 ;;
11986 *)
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11989 ;;
11990 esac
11991 fi
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004 # Report what library types will actually be built
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12006 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12008 $as_echo "$can_build_shared" >&6; }
12009
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12011 $as_echo_n "checking whether to build shared libraries... " >&6; }
12012 test no = "$can_build_shared" && enable_shared=no
12013
12014 # On AIX, shared libraries and static libraries use the same namespace, and
12015 # are all built from PIC.
12016 case $host_os in
12017 aix3*)
12018 test yes = "$enable_shared" && enable_static=no
12019 if test -n "$RANLIB"; then
12020 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12021 postinstall_cmds='$RANLIB $lib'
12022 fi
12023 ;;
12024
12025 aix[4-9]*)
12026 if test ia64 != "$host_cpu"; then
12027 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12028 yes,aix,yes) ;; # shared object as lib.so file only
12029 yes,svr4,*) ;; # shared object as lib.so archive member only
12030 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12031 esac
12032 fi
12033 ;;
12034 esac
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12036 $as_echo "$enable_shared" >&6; }
12037
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12039 $as_echo_n "checking whether to build static libraries... " >&6; }
12040 # Make sure either enable_shared or enable_static is yes.
12041 test yes = "$enable_shared" || enable_static=yes
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12043 $as_echo "$enable_static" >&6; }
12044
12045
12046
12047
12048 fi
12049 ac_ext=c
12050 ac_cpp='$CPP $CPPFLAGS'
12051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12054
12055 CC=$lt_save_CC
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071 ac_config_commands="$ac_config_commands libtool"
12072
12073
12074
12075
12076 # Only expand once:
12077
12078
12079
12080
12081 for ac_prog in 'bison -y' byacc
12082 do
12083 # Extract the first word of "$ac_prog", so it can be a program name with args.
12084 set dummy $ac_prog; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if ${ac_cv_prog_YACC+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 if test -n "$YACC"; then
12091 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12092 else
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12095 do
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12100 ac_cv_prog_YACC="$ac_prog"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 break 2
12103 fi
12104 done
12105 done
12106 IFS=$as_save_IFS
12107
12108 fi
12109 fi
12110 YACC=$ac_cv_prog_YACC
12111 if test -n "$YACC"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12113 $as_echo "$YACC" >&6; }
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12117 fi
12118
12119
12120 test -n "$YACC" && break
12121 done
12122 test -n "$YACC" || YACC="yacc"
12123
12124
12125 for ac_prog in flex lex
12126 do
12127 # Extract the first word of "$ac_prog", so it can be a program name with args.
12128 set dummy $ac_prog; ac_word=$2
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130 $as_echo_n "checking for $ac_word... " >&6; }
12131 if ${ac_cv_prog_LEX+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 if test -n "$LEX"; then
12135 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12136 else
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12139 do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_prog_LEX="$ac_prog"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12147 fi
12148 done
12149 done
12150 IFS=$as_save_IFS
12151
12152 fi
12153 fi
12154 LEX=$ac_cv_prog_LEX
12155 if test -n "$LEX"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12157 $as_echo "$LEX" >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12161 fi
12162
12163
12164 test -n "$LEX" && break
12165 done
12166 test -n "$LEX" || LEX=":"
12167
12168 if test "x$LEX" != "x:"; then
12169 cat >conftest.l <<_ACEOF
12170 %%
12171 a { ECHO; }
12172 b { REJECT; }
12173 c { yymore (); }
12174 d { yyless (1); }
12175 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12176 yyless ((input () != 0)); }
12177 f { unput (yytext[0]); }
12178 . { BEGIN INITIAL; }
12179 %%
12180 #ifdef YYTEXT_POINTER
12181 extern char *yytext;
12182 #endif
12183 int
12184 main (void)
12185 {
12186 return ! yylex () + ! yywrap ();
12187 }
12188 _ACEOF
12189 { { ac_try="$LEX conftest.l"
12190 case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193 esac
12194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12195 $as_echo "$ac_try_echo"; } >&5
12196 (eval "$LEX conftest.l") 2>&5
12197 ac_status=$?
12198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12199 test $ac_status = 0; }
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12201 $as_echo_n "checking lex output file root... " >&6; }
12202 if ${ac_cv_prog_lex_root+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205
12206 if test -f lex.yy.c; then
12207 ac_cv_prog_lex_root=lex.yy
12208 elif test -f lexyy.c; then
12209 ac_cv_prog_lex_root=lexyy
12210 else
12211 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12212 fi
12213 fi
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12215 $as_echo "$ac_cv_prog_lex_root" >&6; }
12216 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12217
12218 if test -z "${LEXLIB+set}"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12220 $as_echo_n "checking lex library... " >&6; }
12221 if ${ac_cv_lib_lex+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224
12225 ac_save_LIBS=$LIBS
12226 ac_cv_lib_lex='none needed'
12227 for ac_lib in '' -lfl -ll; do
12228 LIBS="$ac_lib $ac_save_LIBS"
12229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230 /* end confdefs.h. */
12231 `cat $LEX_OUTPUT_ROOT.c`
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_lib_lex=$ac_lib
12235 fi
12236 rm -f core conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext conftest.$ac_ext
12238 test "$ac_cv_lib_lex" != 'none needed' && break
12239 done
12240 LIBS=$ac_save_LIBS
12241
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12244 $as_echo "$ac_cv_lib_lex" >&6; }
12245 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12246 fi
12247
12248
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12250 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12251 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12252 $as_echo_n "(cached) " >&6
12253 else
12254 # POSIX says lex can declare yytext either as a pointer or an array; the
12255 # default is implementation-dependent. Figure out which it is, since
12256 # not all implementations provide the %pointer and %array declarations.
12257 ac_cv_prog_lex_yytext_pointer=no
12258 ac_save_LIBS=$LIBS
12259 LIBS="$LEXLIB $ac_save_LIBS"
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12262
12263 #define YYTEXT_POINTER 1
12264 `cat $LEX_OUTPUT_ROOT.c`
12265 _ACEOF
12266 if ac_fn_c_try_link "$LINENO"; then :
12267 ac_cv_prog_lex_yytext_pointer=yes
12268 fi
12269 rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_save_LIBS
12272
12273 fi
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12275 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12276 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12277
12278 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12279
12280 fi
12281 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12282
12283 fi
12284 if test "$LEX" = :; then
12285 LEX=${am_missing_run}flex
12286 fi
12287
12288
12289
12290 if test "X$CC" != "X"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
12292 $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
12293 if ${ssp_cv_cc+:} false; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 ssp_old_cflags="$CFLAGS"
12297 CFLAGS="$CFLAGS -fstack-protector-strong"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300
12301 int
12302 main ()
12303 {
12304
12305 ;
12306 return 0;
12307 }
12308 _ACEOF
12309 if ac_fn_c_try_compile "$LINENO"; then :
12310 ssp_cv_cc=yes
12311 else
12312 ssp_cv_cc=no
12313 fi
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315 CFLAGS="$ssp_old_cflags"
12316
12317 fi
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12319 $as_echo "$ssp_cv_cc" >&6; }
12320 if test $ssp_cv_cc = yes; then
12321 CFLAGS="$CFLAGS -fstack-protector-strong"
12322
12323 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12324
12325 else
12326 unset ssp_cv_cc
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
12328 $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
12329 if ${ssp_cv_cc+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 ssp_old_cflags="$CFLAGS"
12333 CFLAGS="$CFLAGS -fstack-protector"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336
12337 int
12338 main ()
12339 {
12340
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 if ac_fn_c_try_compile "$LINENO"; then :
12346 ssp_cv_cc=yes
12347 else
12348 ssp_cv_cc=no
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12351 CFLAGS="$ssp_old_cflags"
12352
12353 fi
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12355 $as_echo "$ssp_cv_cc" >&6; }
12356 if test $ssp_cv_cc = yes; then
12357 CFLAGS="$CFLAGS -fstack-protector"
12358
12359 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12360
12361 fi
12362 fi
12363 fi
12364
12365
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
12367 $as_echo_n "checking whether libssp exists... " >&6; }
12368 if ${ssp_cv_lib+:} false; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 ssp_old_libs="$LIBS"
12372 LIBS="$LIBS -lssp"
12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12374 /* end confdefs.h. */
12375
12376 int
12377 main ()
12378 {
12379
12380 ;
12381 return 0;
12382 }
12383 _ACEOF
12384 if ac_fn_c_try_link "$LINENO"; then :
12385 ssp_cv_lib=yes
12386 else
12387 ssp_cv_lib=no
12388 fi
12389 rm -f core conftest.err conftest.$ac_objext \
12390 conftest$ac_exeext conftest.$ac_ext
12391 LIBS="$ssp_old_libs"
12392
12393 fi
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
12395 $as_echo "$ssp_cv_lib" >&6; }
12396 if test $ssp_cv_lib = yes; then
12397 LIBS="$LIBS -lssp"
12398 fi
12399
12400
12401
12402 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12403 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12404
12405 else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12407 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12408 if ${ac_cv_search_getaddrinfo+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 ac_func_search_save_LIBS=$LIBS
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12414
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char getaddrinfo ();
12422 int
12423 main ()
12424 {
12425 return getaddrinfo ();
12426 ;
12427 return 0;
12428 }
12429 _ACEOF
12430 for ac_lib in '' nsl; do
12431 if test -z "$ac_lib"; then
12432 ac_res="none required"
12433 else
12434 ac_res=-l$ac_lib
12435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12436 fi
12437 if ac_fn_c_try_link "$LINENO"; then :
12438 ac_cv_search_getaddrinfo=$ac_res
12439 fi
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext
12442 if ${ac_cv_search_getaddrinfo+:} false; then :
12443 break
12444 fi
12445 done
12446 if ${ac_cv_search_getaddrinfo+:} false; then :
12447
12448 else
12449 ac_cv_search_getaddrinfo=no
12450 fi
12451 rm conftest.$ac_ext
12452 LIBS=$ac_func_search_save_LIBS
12453 fi
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12455 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12456 ac_res=$ac_cv_search_getaddrinfo
12457 if test "$ac_res" != no; then :
12458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12459
12460 fi
12461
12462 fi
12463
12464 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12465 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12466
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12469 $as_echo_n "checking for library containing getnameinfo... " >&6; }
12470 if ${ac_cv_search_getnameinfo+:} false; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12473 ac_func_search_save_LIBS=$LIBS
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12476
12477 /* Override any GCC internal prototype to avoid an error.
12478 Use char because int might match the return type of a GCC
12479 builtin and then its argument prototype would still apply. */
12480 #ifdef __cplusplus
12481 extern "C"
12482 #endif
12483 char getnameinfo ();
12484 int
12485 main ()
12486 {
12487 return getnameinfo ();
12488 ;
12489 return 0;
12490 }
12491 _ACEOF
12492 for ac_lib in '' nsl; do
12493 if test -z "$ac_lib"; then
12494 ac_res="none required"
12495 else
12496 ac_res=-l$ac_lib
12497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12498 fi
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 ac_cv_search_getnameinfo=$ac_res
12501 fi
12502 rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext
12504 if ${ac_cv_search_getnameinfo+:} false; then :
12505 break
12506 fi
12507 done
12508 if ${ac_cv_search_getnameinfo+:} false; then :
12509
12510 else
12511 ac_cv_search_getnameinfo=no
12512 fi
12513 rm conftest.$ac_ext
12514 LIBS=$ac_func_search_save_LIBS
12515 fi
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12517 $as_echo "$ac_cv_search_getnameinfo" >&6; }
12518 ac_res=$ac_cv_search_getnameinfo
12519 if test "$ac_res" != no; then :
12520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12521
12522 fi
12523
12524 fi
12525
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12527 $as_echo_n "checking for library containing socket... " >&6; }
12528 if ${ac_cv_search_socket+:} false; then :
12529 $as_echo_n "(cached) " >&6
12530 else
12531 ac_func_search_save_LIBS=$LIBS
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12534
12535 /* Override any GCC internal prototype to avoid an error.
12536 Use char because int might match the return type of a GCC
12537 builtin and then its argument prototype would still apply. */
12538 #ifdef __cplusplus
12539 extern "C"
12540 #endif
12541 char socket ();
12542 int
12543 main ()
12544 {
12545 return socket ();
12546 ;
12547 return 0;
12548 }
12549 _ACEOF
12550 for ac_lib in '' socket; do
12551 if test -z "$ac_lib"; then
12552 ac_res="none required"
12553 else
12554 ac_res=-l$ac_lib
12555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12556 fi
12557 if ac_fn_c_try_link "$LINENO"; then :
12558 ac_cv_search_socket=$ac_res
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext
12562 if ${ac_cv_search_socket+:} false; then :
12563 break
12564 fi
12565 done
12566 if ${ac_cv_search_socket+:} false; then :
12567
12568 else
12569 ac_cv_search_socket=no
12570 fi
12571 rm conftest.$ac_ext
12572 LIBS=$ac_func_search_save_LIBS
12573 fi
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12575 $as_echo "$ac_cv_search_socket" >&6; }
12576 ac_res=$ac_cv_search_socket
12577 if test "$ac_res" != no; then :
12578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12579
12580 else
12581 as_fn_error $? "socket library not found" "$LINENO" 5
12582 fi
12583
12584
12585
12586 # Check whether --enable-openssl was given.
12587 if test "${enable_openssl+set}" = set; then :
12588 enableval=$enable_openssl; cf_enable_openssl=$enableval
12589 else
12590 cf_enable_openssl="auto"
12591 fi
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
12594 $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
12595 if test "$cf_enable_openssl" != "no"; then
12596 cf_openssl_basedir=""
12597 if test "$cf_enable_openssl" != "auto" &&
12598 test "$cf_enable_openssl" != "yes"; then
12599 cf_openssl_basedir="${cf_enable_openssl}"
12600 else
12601 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12602 /opt /opt/openssl /usr/local/openssl; do
12603 if test -f "${dirs}/include/openssl/opensslv.h"; then
12604 cf_openssl_basedir="${dirs}"
12605 break
12606 fi
12607 done
12608 unset dirs
12609 fi
12610
12611 if test ! -z "$cf_openssl_basedir"; then
12612 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12613 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12614 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12615 else
12616 cf_openssl_basedir=""
12617 fi
12618 else
12619 if test -f "/usr/include/openssl/opensslv.h"; then
12620 cf_openssl_basedir="/usr"
12621 fi
12622 fi
12623
12624 if test ! -z "$cf_openssl_basedir"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12626 $as_echo "$cf_openssl_basedir" >&6; }
12627 cf_enable_openssl="yes"
12628 else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12630 $as_echo "not found. Please check your path." >&6; }
12631 cf_enable_openssl="no"
12632 fi
12633 unset cf_openssl_basedir
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12636 $as_echo "disabled" >&6; }
12637 fi
12638
12639 if test "$cf_enable_openssl" != "no"; then :
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 1.0.1d and above" >&5
12641 $as_echo_n "checking for LibreSSL or OpenSSL 1.0.1d and above... " >&6; }
12642 if test "$cross_compiling" = yes; then :
12643 cf_openssl_version_ok=no
12644 else
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647
12648
12649 #include <openssl/opensslv.h>
12650 #include <stdlib.h>
12651 int
12652 main ()
12653 {
12654 exit(!(OPENSSL_VERSION_NUMBER >= 0x1000104fL));
12655 ;
12656 return 0;
12657 }
12658 _ACEOF
12659 if ac_fn_c_try_run "$LINENO"; then :
12660 cf_openssl_version_ok=yes
12661 else
12662 cf_openssl_version_ok=no
12663 fi
12664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12665 conftest.$ac_objext conftest.beam conftest.$ac_ext
12666 fi
12667
12668
12669 if test "$cf_openssl_version_ok" = "yes"; then :
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12671 $as_echo "found" >&6; }
12672
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12674 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12675 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 ac_check_lib_save_LIBS=$LIBS
12679 LIBS="-lcrypto $LIBS"
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12682
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12686 #ifdef __cplusplus
12687 extern "C"
12688 #endif
12689 char RSA_free ();
12690 int
12691 main ()
12692 {
12693 return RSA_free ();
12694 ;
12695 return 0;
12696 }
12697 _ACEOF
12698 if ac_fn_c_try_link "$LINENO"; then :
12699 ac_cv_lib_crypto_RSA_free=yes
12700 else
12701 ac_cv_lib_crypto_RSA_free=no
12702 fi
12703 rm -f core conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12706 fi
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12708 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12709 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
12710 cat >>confdefs.h <<_ACEOF
12711 #define HAVE_LIBCRYPTO 1
12712 _ACEOF
12713
12714 LIBS="-lcrypto $LIBS"
12715
12716 fi
12717
12718 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
12720 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
12721 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 ac_check_lib_save_LIBS=$LIBS
12725 LIBS="-lssl $LIBS"
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12728
12729 /* Override any GCC internal prototype to avoid an error.
12730 Use char because int might match the return type of a GCC
12731 builtin and then its argument prototype would still apply. */
12732 #ifdef __cplusplus
12733 extern "C"
12734 #endif
12735 char SSL_connect ();
12736 int
12737 main ()
12738 {
12739 return SSL_connect ();
12740 ;
12741 return 0;
12742 }
12743 _ACEOF
12744 if ac_fn_c_try_link "$LINENO"; then :
12745 ac_cv_lib_ssl_SSL_connect=yes
12746 else
12747 ac_cv_lib_ssl_SSL_connect=no
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12752 fi
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
12754 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
12755 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
12756 cat >>confdefs.h <<_ACEOF
12757 #define HAVE_LIBSSL 1
12758 _ACEOF
12759
12760 LIBS="-lssl $LIBS"
12761
12762 fi
12763
12764 fi
12765
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
12768 $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
12769 cf_enable_openssl="no"
12770 fi
12771 fi
12772
12773
12774 # Check whether --enable-assert was given.
12775 if test "${enable_assert+set}" = set; then :
12776 enableval=$enable_assert; assert=$enableval
12777 else
12778 assert=no
12779 fi
12780
12781
12782 if test "$assert" = "no"; then :
12783
12784 $as_echo "#define NDEBUG 1" >>confdefs.h
12785
12786 fi
12787
12788
12789 # Check whether --enable-warnings was given.
12790 if test "${enable_warnings+set}" = set; then :
12791 enableval=$enable_warnings; warnings="$enableval"
12792 else
12793 warnings="no"
12794 fi
12795
12796
12797 if test "$warnings" = "yes"; then :
12798
12799
12800
12801
12802
12803 for flag in -Wall; do
12804 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12806 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12807 if eval \${$as_CACHEVAR+:} false; then :
12808 $as_echo_n "(cached) " >&6
12809 else
12810
12811 ax_check_save_flags=$CFLAGS
12812 CFLAGS="$CFLAGS $flag"
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12815
12816 int
12817 main ()
12818 {
12819
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_compile "$LINENO"; then :
12825 eval "$as_CACHEVAR=yes"
12826 else
12827 eval "$as_CACHEVAR=no"
12828 fi
12829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 CFLAGS=$ax_check_save_flags
12831 fi
12832 eval ac_res=\$$as_CACHEVAR
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12834 $as_echo "$ac_res" >&6; }
12835 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12836
12837 if ${CFLAGS+:} false; then :
12838
12839 case " $CFLAGS " in #(
12840 *" $flag "*) :
12841 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12842 (: CFLAGS already contains $flag) 2>&5
12843 ac_status=$?
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845 test $ac_status = 0; } ;; #(
12846 *) :
12847
12848 as_fn_append CFLAGS " $flag"
12849 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12850 (: CFLAGS="$CFLAGS") 2>&5
12851 ac_status=$?
12852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12853 test $ac_status = 0; }
12854 ;;
12855 esac
12856
12857 else
12858
12859 CFLAGS=$flag
12860 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12861 (: CFLAGS="$CFLAGS") 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; }
12865
12866 fi
12867
12868 else
12869 :
12870 fi
12871
12872 done
12873
12874
12875
12876
12877
12878 for flag in -Wbad-function-cast; do
12879 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12881 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12882 if eval \${$as_CACHEVAR+:} false; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885
12886 ax_check_save_flags=$CFLAGS
12887 CFLAGS="$CFLAGS $flag"
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890
12891 int
12892 main ()
12893 {
12894
12895 ;
12896 return 0;
12897 }
12898 _ACEOF
12899 if ac_fn_c_try_compile "$LINENO"; then :
12900 eval "$as_CACHEVAR=yes"
12901 else
12902 eval "$as_CACHEVAR=no"
12903 fi
12904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12905 CFLAGS=$ax_check_save_flags
12906 fi
12907 eval ac_res=\$$as_CACHEVAR
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12909 $as_echo "$ac_res" >&6; }
12910 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12911
12912 if ${CFLAGS+:} false; then :
12913
12914 case " $CFLAGS " in #(
12915 *" $flag "*) :
12916 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12917 (: CFLAGS already contains $flag) 2>&5
12918 ac_status=$?
12919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12920 test $ac_status = 0; } ;; #(
12921 *) :
12922
12923 as_fn_append CFLAGS " $flag"
12924 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12925 (: CFLAGS="$CFLAGS") 2>&5
12926 ac_status=$?
12927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928 test $ac_status = 0; }
12929 ;;
12930 esac
12931
12932 else
12933
12934 CFLAGS=$flag
12935 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12936 (: CFLAGS="$CFLAGS") 2>&5
12937 ac_status=$?
12938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12939 test $ac_status = 0; }
12940
12941 fi
12942
12943 else
12944 :
12945 fi
12946
12947 done
12948
12949
12950
12951
12952
12953 for flag in -Wcast-align; do
12954 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12956 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12957 if eval \${$as_CACHEVAR+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959 else
12960
12961 ax_check_save_flags=$CFLAGS
12962 CFLAGS="$CFLAGS $flag"
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12965
12966 int
12967 main ()
12968 {
12969
12970 ;
12971 return 0;
12972 }
12973 _ACEOF
12974 if ac_fn_c_try_compile "$LINENO"; then :
12975 eval "$as_CACHEVAR=yes"
12976 else
12977 eval "$as_CACHEVAR=no"
12978 fi
12979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12980 CFLAGS=$ax_check_save_flags
12981 fi
12982 eval ac_res=\$$as_CACHEVAR
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12984 $as_echo "$ac_res" >&6; }
12985 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12986
12987 if ${CFLAGS+:} false; then :
12988
12989 case " $CFLAGS " in #(
12990 *" $flag "*) :
12991 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12992 (: CFLAGS already contains $flag) 2>&5
12993 ac_status=$?
12994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995 test $ac_status = 0; } ;; #(
12996 *) :
12997
12998 as_fn_append CFLAGS " $flag"
12999 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13000 (: CFLAGS="$CFLAGS") 2>&5
13001 ac_status=$?
13002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13003 test $ac_status = 0; }
13004 ;;
13005 esac
13006
13007 else
13008
13009 CFLAGS=$flag
13010 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13011 (: CFLAGS="$CFLAGS") 2>&5
13012 ac_status=$?
13013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13014 test $ac_status = 0; }
13015
13016 fi
13017
13018 else
13019 :
13020 fi
13021
13022 done
13023
13024
13025
13026
13027
13028 for flag in -Wcast-qual; do
13029 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13031 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13032 if eval \${$as_CACHEVAR+:} false; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13035
13036 ax_check_save_flags=$CFLAGS
13037 CFLAGS="$CFLAGS $flag"
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13040
13041 int
13042 main ()
13043 {
13044
13045 ;
13046 return 0;
13047 }
13048 _ACEOF
13049 if ac_fn_c_try_compile "$LINENO"; then :
13050 eval "$as_CACHEVAR=yes"
13051 else
13052 eval "$as_CACHEVAR=no"
13053 fi
13054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055 CFLAGS=$ax_check_save_flags
13056 fi
13057 eval ac_res=\$$as_CACHEVAR
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13059 $as_echo "$ac_res" >&6; }
13060 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13061
13062 if ${CFLAGS+:} false; then :
13063
13064 case " $CFLAGS " in #(
13065 *" $flag "*) :
13066 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13067 (: CFLAGS already contains $flag) 2>&5
13068 ac_status=$?
13069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13070 test $ac_status = 0; } ;; #(
13071 *) :
13072
13073 as_fn_append CFLAGS " $flag"
13074 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13075 (: CFLAGS="$CFLAGS") 2>&5
13076 ac_status=$?
13077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13078 test $ac_status = 0; }
13079 ;;
13080 esac
13081
13082 else
13083
13084 CFLAGS=$flag
13085 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13086 (: CFLAGS="$CFLAGS") 2>&5
13087 ac_status=$?
13088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13089 test $ac_status = 0; }
13090
13091 fi
13092
13093 else
13094 :
13095 fi
13096
13097 done
13098
13099
13100
13101
13102
13103 for flag in -Wclobbered; do
13104 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13106 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13107 if eval \${$as_CACHEVAR+:} false; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110
13111 ax_check_save_flags=$CFLAGS
13112 CFLAGS="$CFLAGS $flag"
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115
13116 int
13117 main ()
13118 {
13119
13120 ;
13121 return 0;
13122 }
13123 _ACEOF
13124 if ac_fn_c_try_compile "$LINENO"; then :
13125 eval "$as_CACHEVAR=yes"
13126 else
13127 eval "$as_CACHEVAR=no"
13128 fi
13129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130 CFLAGS=$ax_check_save_flags
13131 fi
13132 eval ac_res=\$$as_CACHEVAR
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13134 $as_echo "$ac_res" >&6; }
13135 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13136
13137 if ${CFLAGS+:} false; then :
13138
13139 case " $CFLAGS " in #(
13140 *" $flag "*) :
13141 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13142 (: CFLAGS already contains $flag) 2>&5
13143 ac_status=$?
13144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13145 test $ac_status = 0; } ;; #(
13146 *) :
13147
13148 as_fn_append CFLAGS " $flag"
13149 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13150 (: CFLAGS="$CFLAGS") 2>&5
13151 ac_status=$?
13152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13153 test $ac_status = 0; }
13154 ;;
13155 esac
13156
13157 else
13158
13159 CFLAGS=$flag
13160 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13161 (: CFLAGS="$CFLAGS") 2>&5
13162 ac_status=$?
13163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164 test $ac_status = 0; }
13165
13166 fi
13167
13168 else
13169 :
13170 fi
13171
13172 done
13173
13174
13175
13176
13177
13178 for flag in -Wduplicated-cond; do
13179 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13181 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13182 if eval \${$as_CACHEVAR+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185
13186 ax_check_save_flags=$CFLAGS
13187 CFLAGS="$CFLAGS $flag"
13188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13189 /* end confdefs.h. */
13190
13191 int
13192 main ()
13193 {
13194
13195 ;
13196 return 0;
13197 }
13198 _ACEOF
13199 if ac_fn_c_try_compile "$LINENO"; then :
13200 eval "$as_CACHEVAR=yes"
13201 else
13202 eval "$as_CACHEVAR=no"
13203 fi
13204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205 CFLAGS=$ax_check_save_flags
13206 fi
13207 eval ac_res=\$$as_CACHEVAR
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13209 $as_echo "$ac_res" >&6; }
13210 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13211
13212 if ${CFLAGS+:} false; then :
13213
13214 case " $CFLAGS " in #(
13215 *" $flag "*) :
13216 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13217 (: CFLAGS already contains $flag) 2>&5
13218 ac_status=$?
13219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13220 test $ac_status = 0; } ;; #(
13221 *) :
13222
13223 as_fn_append CFLAGS " $flag"
13224 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13225 (: CFLAGS="$CFLAGS") 2>&5
13226 ac_status=$?
13227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13228 test $ac_status = 0; }
13229 ;;
13230 esac
13231
13232 else
13233
13234 CFLAGS=$flag
13235 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13236 (: CFLAGS="$CFLAGS") 2>&5
13237 ac_status=$?
13238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13239 test $ac_status = 0; }
13240
13241 fi
13242
13243 else
13244 :
13245 fi
13246
13247 done
13248
13249
13250
13251
13252
13253 for flag in -Wempty-body; do
13254 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13256 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13257 if eval \${$as_CACHEVAR+:} false; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260
13261 ax_check_save_flags=$CFLAGS
13262 CFLAGS="$CFLAGS $flag"
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13265
13266 int
13267 main ()
13268 {
13269
13270 ;
13271 return 0;
13272 }
13273 _ACEOF
13274 if ac_fn_c_try_compile "$LINENO"; then :
13275 eval "$as_CACHEVAR=yes"
13276 else
13277 eval "$as_CACHEVAR=no"
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 CFLAGS=$ax_check_save_flags
13281 fi
13282 eval ac_res=\$$as_CACHEVAR
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13284 $as_echo "$ac_res" >&6; }
13285 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13286
13287 if ${CFLAGS+:} false; then :
13288
13289 case " $CFLAGS " in #(
13290 *" $flag "*) :
13291 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13292 (: CFLAGS already contains $flag) 2>&5
13293 ac_status=$?
13294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13295 test $ac_status = 0; } ;; #(
13296 *) :
13297
13298 as_fn_append CFLAGS " $flag"
13299 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13300 (: CFLAGS="$CFLAGS") 2>&5
13301 ac_status=$?
13302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13303 test $ac_status = 0; }
13304 ;;
13305 esac
13306
13307 else
13308
13309 CFLAGS=$flag
13310 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13311 (: CFLAGS="$CFLAGS") 2>&5
13312 ac_status=$?
13313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13314 test $ac_status = 0; }
13315
13316 fi
13317
13318 else
13319 :
13320 fi
13321
13322 done
13323
13324
13325
13326
13327
13328 for flag in -Wignored-qualifiers; do
13329 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13331 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13332 if eval \${$as_CACHEVAR+:} false; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335
13336 ax_check_save_flags=$CFLAGS
13337 CFLAGS="$CFLAGS $flag"
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13340
13341 int
13342 main ()
13343 {
13344
13345 ;
13346 return 0;
13347 }
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350 eval "$as_CACHEVAR=yes"
13351 else
13352 eval "$as_CACHEVAR=no"
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 CFLAGS=$ax_check_save_flags
13356 fi
13357 eval ac_res=\$$as_CACHEVAR
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13359 $as_echo "$ac_res" >&6; }
13360 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13361
13362 if ${CFLAGS+:} false; then :
13363
13364 case " $CFLAGS " in #(
13365 *" $flag "*) :
13366 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13367 (: CFLAGS already contains $flag) 2>&5
13368 ac_status=$?
13369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13370 test $ac_status = 0; } ;; #(
13371 *) :
13372
13373 as_fn_append CFLAGS " $flag"
13374 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13375 (: CFLAGS="$CFLAGS") 2>&5
13376 ac_status=$?
13377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13378 test $ac_status = 0; }
13379 ;;
13380 esac
13381
13382 else
13383
13384 CFLAGS=$flag
13385 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13386 (: CFLAGS="$CFLAGS") 2>&5
13387 ac_status=$?
13388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13389 test $ac_status = 0; }
13390
13391 fi
13392
13393 else
13394 :
13395 fi
13396
13397 done
13398
13399
13400
13401
13402
13403 for flag in -Wlogical-op; do
13404 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13406 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13407 if eval \${$as_CACHEVAR+:} false; then :
13408 $as_echo_n "(cached) " >&6
13409 else
13410
13411 ax_check_save_flags=$CFLAGS
13412 CFLAGS="$CFLAGS $flag"
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13415
13416 int
13417 main ()
13418 {
13419
13420 ;
13421 return 0;
13422 }
13423 _ACEOF
13424 if ac_fn_c_try_compile "$LINENO"; then :
13425 eval "$as_CACHEVAR=yes"
13426 else
13427 eval "$as_CACHEVAR=no"
13428 fi
13429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 CFLAGS=$ax_check_save_flags
13431 fi
13432 eval ac_res=\$$as_CACHEVAR
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13434 $as_echo "$ac_res" >&6; }
13435 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13436
13437 if ${CFLAGS+:} false; then :
13438
13439 case " $CFLAGS " in #(
13440 *" $flag "*) :
13441 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13442 (: CFLAGS already contains $flag) 2>&5
13443 ac_status=$?
13444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13445 test $ac_status = 0; } ;; #(
13446 *) :
13447
13448 as_fn_append CFLAGS " $flag"
13449 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13450 (: CFLAGS="$CFLAGS") 2>&5
13451 ac_status=$?
13452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13453 test $ac_status = 0; }
13454 ;;
13455 esac
13456
13457 else
13458
13459 CFLAGS=$flag
13460 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13461 (: CFLAGS="$CFLAGS") 2>&5
13462 ac_status=$?
13463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13464 test $ac_status = 0; }
13465
13466 fi
13467
13468 else
13469 :
13470 fi
13471
13472 done
13473
13474
13475
13476
13477
13478 for flag in -Wmissing-declarations; do
13479 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13481 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13482 if eval \${$as_CACHEVAR+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485
13486 ax_check_save_flags=$CFLAGS
13487 CFLAGS="$CFLAGS $flag"
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13490
13491 int
13492 main ()
13493 {
13494
13495 ;
13496 return 0;
13497 }
13498 _ACEOF
13499 if ac_fn_c_try_compile "$LINENO"; then :
13500 eval "$as_CACHEVAR=yes"
13501 else
13502 eval "$as_CACHEVAR=no"
13503 fi
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505 CFLAGS=$ax_check_save_flags
13506 fi
13507 eval ac_res=\$$as_CACHEVAR
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13509 $as_echo "$ac_res" >&6; }
13510 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13511
13512 if ${CFLAGS+:} false; then :
13513
13514 case " $CFLAGS " in #(
13515 *" $flag "*) :
13516 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13517 (: CFLAGS already contains $flag) 2>&5
13518 ac_status=$?
13519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520 test $ac_status = 0; } ;; #(
13521 *) :
13522
13523 as_fn_append CFLAGS " $flag"
13524 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13525 (: CFLAGS="$CFLAGS") 2>&5
13526 ac_status=$?
13527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13528 test $ac_status = 0; }
13529 ;;
13530 esac
13531
13532 else
13533
13534 CFLAGS=$flag
13535 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13536 (: CFLAGS="$CFLAGS") 2>&5
13537 ac_status=$?
13538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13539 test $ac_status = 0; }
13540
13541 fi
13542
13543 else
13544 :
13545 fi
13546
13547 done
13548
13549
13550
13551
13552
13553 for flag in -Wmissing-field-initializers; do
13554 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13556 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13557 if eval \${$as_CACHEVAR+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560
13561 ax_check_save_flags=$CFLAGS
13562 CFLAGS="$CFLAGS $flag"
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565
13566 int
13567 main ()
13568 {
13569
13570 ;
13571 return 0;
13572 }
13573 _ACEOF
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575 eval "$as_CACHEVAR=yes"
13576 else
13577 eval "$as_CACHEVAR=no"
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580 CFLAGS=$ax_check_save_flags
13581 fi
13582 eval ac_res=\$$as_CACHEVAR
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13584 $as_echo "$ac_res" >&6; }
13585 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13586
13587 if ${CFLAGS+:} false; then :
13588
13589 case " $CFLAGS " in #(
13590 *" $flag "*) :
13591 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13592 (: CFLAGS already contains $flag) 2>&5
13593 ac_status=$?
13594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13595 test $ac_status = 0; } ;; #(
13596 *) :
13597
13598 as_fn_append CFLAGS " $flag"
13599 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13600 (: CFLAGS="$CFLAGS") 2>&5
13601 ac_status=$?
13602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13603 test $ac_status = 0; }
13604 ;;
13605 esac
13606
13607 else
13608
13609 CFLAGS=$flag
13610 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13611 (: CFLAGS="$CFLAGS") 2>&5
13612 ac_status=$?
13613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614 test $ac_status = 0; }
13615
13616 fi
13617
13618 else
13619 :
13620 fi
13621
13622 done
13623
13624
13625
13626
13627
13628 for flag in -Wmissing-include-dirs; do
13629 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13631 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13632 if eval \${$as_CACHEVAR+:} false; then :
13633 $as_echo_n "(cached) " >&6
13634 else
13635
13636 ax_check_save_flags=$CFLAGS
13637 CFLAGS="$CFLAGS $flag"
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13640
13641 int
13642 main ()
13643 {
13644
13645 ;
13646 return 0;
13647 }
13648 _ACEOF
13649 if ac_fn_c_try_compile "$LINENO"; then :
13650 eval "$as_CACHEVAR=yes"
13651 else
13652 eval "$as_CACHEVAR=no"
13653 fi
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 CFLAGS=$ax_check_save_flags
13656 fi
13657 eval ac_res=\$$as_CACHEVAR
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13659 $as_echo "$ac_res" >&6; }
13660 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13661
13662 if ${CFLAGS+:} false; then :
13663
13664 case " $CFLAGS " in #(
13665 *" $flag "*) :
13666 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13667 (: CFLAGS already contains $flag) 2>&5
13668 ac_status=$?
13669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13670 test $ac_status = 0; } ;; #(
13671 *) :
13672
13673 as_fn_append CFLAGS " $flag"
13674 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13675 (: CFLAGS="$CFLAGS") 2>&5
13676 ac_status=$?
13677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13678 test $ac_status = 0; }
13679 ;;
13680 esac
13681
13682 else
13683
13684 CFLAGS=$flag
13685 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13686 (: CFLAGS="$CFLAGS") 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }
13690
13691 fi
13692
13693 else
13694 :
13695 fi
13696
13697 done
13698
13699
13700
13701
13702
13703 for flag in -Wmissing-parameter-type; do
13704 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13706 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13707 if eval \${$as_CACHEVAR+:} false; then :
13708 $as_echo_n "(cached) " >&6
13709 else
13710
13711 ax_check_save_flags=$CFLAGS
13712 CFLAGS="$CFLAGS $flag"
13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13715
13716 int
13717 main ()
13718 {
13719
13720 ;
13721 return 0;
13722 }
13723 _ACEOF
13724 if ac_fn_c_try_compile "$LINENO"; then :
13725 eval "$as_CACHEVAR=yes"
13726 else
13727 eval "$as_CACHEVAR=no"
13728 fi
13729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 CFLAGS=$ax_check_save_flags
13731 fi
13732 eval ac_res=\$$as_CACHEVAR
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13734 $as_echo "$ac_res" >&6; }
13735 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13736
13737 if ${CFLAGS+:} false; then :
13738
13739 case " $CFLAGS " in #(
13740 *" $flag "*) :
13741 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13742 (: CFLAGS already contains $flag) 2>&5
13743 ac_status=$?
13744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13745 test $ac_status = 0; } ;; #(
13746 *) :
13747
13748 as_fn_append CFLAGS " $flag"
13749 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13750 (: CFLAGS="$CFLAGS") 2>&5
13751 ac_status=$?
13752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753 test $ac_status = 0; }
13754 ;;
13755 esac
13756
13757 else
13758
13759 CFLAGS=$flag
13760 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13761 (: CFLAGS="$CFLAGS") 2>&5
13762 ac_status=$?
13763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13764 test $ac_status = 0; }
13765
13766 fi
13767
13768 else
13769 :
13770 fi
13771
13772 done
13773
13774
13775
13776
13777
13778 for flag in -Wmissing-prototypes; do
13779 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13781 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13782 if eval \${$as_CACHEVAR+:} false; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785
13786 ax_check_save_flags=$CFLAGS
13787 CFLAGS="$CFLAGS $flag"
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790
13791 int
13792 main ()
13793 {
13794
13795 ;
13796 return 0;
13797 }
13798 _ACEOF
13799 if ac_fn_c_try_compile "$LINENO"; then :
13800 eval "$as_CACHEVAR=yes"
13801 else
13802 eval "$as_CACHEVAR=no"
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13805 CFLAGS=$ax_check_save_flags
13806 fi
13807 eval ac_res=\$$as_CACHEVAR
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13809 $as_echo "$ac_res" >&6; }
13810 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13811
13812 if ${CFLAGS+:} false; then :
13813
13814 case " $CFLAGS " in #(
13815 *" $flag "*) :
13816 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13817 (: CFLAGS already contains $flag) 2>&5
13818 ac_status=$?
13819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13820 test $ac_status = 0; } ;; #(
13821 *) :
13822
13823 as_fn_append CFLAGS " $flag"
13824 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13825 (: CFLAGS="$CFLAGS") 2>&5
13826 ac_status=$?
13827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828 test $ac_status = 0; }
13829 ;;
13830 esac
13831
13832 else
13833
13834 CFLAGS=$flag
13835 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13836 (: CFLAGS="$CFLAGS") 2>&5
13837 ac_status=$?
13838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13839 test $ac_status = 0; }
13840
13841 fi
13842
13843 else
13844 :
13845 fi
13846
13847 done
13848
13849
13850
13851
13852
13853 for flag in -Wnested-externs; do
13854 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13856 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13857 if eval \${$as_CACHEVAR+:} false; then :
13858 $as_echo_n "(cached) " >&6
13859 else
13860
13861 ax_check_save_flags=$CFLAGS
13862 CFLAGS="$CFLAGS $flag"
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13865
13866 int
13867 main ()
13868 {
13869
13870 ;
13871 return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875 eval "$as_CACHEVAR=yes"
13876 else
13877 eval "$as_CACHEVAR=no"
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880 CFLAGS=$ax_check_save_flags
13881 fi
13882 eval ac_res=\$$as_CACHEVAR
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13884 $as_echo "$ac_res" >&6; }
13885 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13886
13887 if ${CFLAGS+:} false; then :
13888
13889 case " $CFLAGS " in #(
13890 *" $flag "*) :
13891 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13892 (: CFLAGS already contains $flag) 2>&5
13893 ac_status=$?
13894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13895 test $ac_status = 0; } ;; #(
13896 *) :
13897
13898 as_fn_append CFLAGS " $flag"
13899 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13900 (: CFLAGS="$CFLAGS") 2>&5
13901 ac_status=$?
13902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903 test $ac_status = 0; }
13904 ;;
13905 esac
13906
13907 else
13908
13909 CFLAGS=$flag
13910 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13911 (: CFLAGS="$CFLAGS") 2>&5
13912 ac_status=$?
13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13914 test $ac_status = 0; }
13915
13916 fi
13917
13918 else
13919 :
13920 fi
13921
13922 done
13923
13924
13925
13926
13927
13928 for flag in -Wold-style-declaration; do
13929 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13931 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13932 if eval \${$as_CACHEVAR+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935
13936 ax_check_save_flags=$CFLAGS
13937 CFLAGS="$CFLAGS $flag"
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940
13941 int
13942 main ()
13943 {
13944
13945 ;
13946 return 0;
13947 }
13948 _ACEOF
13949 if ac_fn_c_try_compile "$LINENO"; then :
13950 eval "$as_CACHEVAR=yes"
13951 else
13952 eval "$as_CACHEVAR=no"
13953 fi
13954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13955 CFLAGS=$ax_check_save_flags
13956 fi
13957 eval ac_res=\$$as_CACHEVAR
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13959 $as_echo "$ac_res" >&6; }
13960 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13961
13962 if ${CFLAGS+:} false; then :
13963
13964 case " $CFLAGS " in #(
13965 *" $flag "*) :
13966 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13967 (: CFLAGS already contains $flag) 2>&5
13968 ac_status=$?
13969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13970 test $ac_status = 0; } ;; #(
13971 *) :
13972
13973 as_fn_append CFLAGS " $flag"
13974 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13975 (: CFLAGS="$CFLAGS") 2>&5
13976 ac_status=$?
13977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13978 test $ac_status = 0; }
13979 ;;
13980 esac
13981
13982 else
13983
13984 CFLAGS=$flag
13985 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13986 (: CFLAGS="$CFLAGS") 2>&5
13987 ac_status=$?
13988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13989 test $ac_status = 0; }
13990
13991 fi
13992
13993 else
13994 :
13995 fi
13996
13997 done
13998
13999
14000
14001
14002
14003 for flag in -Woverride-init; do
14004 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14006 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14007 if eval \${$as_CACHEVAR+:} false; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010
14011 ax_check_save_flags=$CFLAGS
14012 CFLAGS="$CFLAGS $flag"
14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015
14016 int
14017 main ()
14018 {
14019
14020 ;
14021 return 0;
14022 }
14023 _ACEOF
14024 if ac_fn_c_try_compile "$LINENO"; then :
14025 eval "$as_CACHEVAR=yes"
14026 else
14027 eval "$as_CACHEVAR=no"
14028 fi
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 CFLAGS=$ax_check_save_flags
14031 fi
14032 eval ac_res=\$$as_CACHEVAR
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14034 $as_echo "$ac_res" >&6; }
14035 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14036
14037 if ${CFLAGS+:} false; then :
14038
14039 case " $CFLAGS " in #(
14040 *" $flag "*) :
14041 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14042 (: CFLAGS already contains $flag) 2>&5
14043 ac_status=$?
14044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14045 test $ac_status = 0; } ;; #(
14046 *) :
14047
14048 as_fn_append CFLAGS " $flag"
14049 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14050 (: CFLAGS="$CFLAGS") 2>&5
14051 ac_status=$?
14052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14053 test $ac_status = 0; }
14054 ;;
14055 esac
14056
14057 else
14058
14059 CFLAGS=$flag
14060 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14061 (: CFLAGS="$CFLAGS") 2>&5
14062 ac_status=$?
14063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14064 test $ac_status = 0; }
14065
14066 fi
14067
14068 else
14069 :
14070 fi
14071
14072 done
14073
14074
14075
14076
14077
14078 for flag in -Wpointer-arith; do
14079 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14081 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14082 if eval \${$as_CACHEVAR+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085
14086 ax_check_save_flags=$CFLAGS
14087 CFLAGS="$CFLAGS $flag"
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090
14091 int
14092 main ()
14093 {
14094
14095 ;
14096 return 0;
14097 }
14098 _ACEOF
14099 if ac_fn_c_try_compile "$LINENO"; then :
14100 eval "$as_CACHEVAR=yes"
14101 else
14102 eval "$as_CACHEVAR=no"
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 CFLAGS=$ax_check_save_flags
14106 fi
14107 eval ac_res=\$$as_CACHEVAR
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14109 $as_echo "$ac_res" >&6; }
14110 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14111
14112 if ${CFLAGS+:} false; then :
14113
14114 case " $CFLAGS " in #(
14115 *" $flag "*) :
14116 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14117 (: CFLAGS already contains $flag) 2>&5
14118 ac_status=$?
14119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14120 test $ac_status = 0; } ;; #(
14121 *) :
14122
14123 as_fn_append CFLAGS " $flag"
14124 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14125 (: CFLAGS="$CFLAGS") 2>&5
14126 ac_status=$?
14127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14128 test $ac_status = 0; }
14129 ;;
14130 esac
14131
14132 else
14133
14134 CFLAGS=$flag
14135 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14136 (: CFLAGS="$CFLAGS") 2>&5
14137 ac_status=$?
14138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139 test $ac_status = 0; }
14140
14141 fi
14142
14143 else
14144 :
14145 fi
14146
14147 done
14148
14149
14150
14151
14152
14153 for flag in -Wredundant-decls; do
14154 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14156 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14157 if eval \${$as_CACHEVAR+:} false; then :
14158 $as_echo_n "(cached) " >&6
14159 else
14160
14161 ax_check_save_flags=$CFLAGS
14162 CFLAGS="$CFLAGS $flag"
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14165
14166 int
14167 main ()
14168 {
14169
14170 ;
14171 return 0;
14172 }
14173 _ACEOF
14174 if ac_fn_c_try_compile "$LINENO"; then :
14175 eval "$as_CACHEVAR=yes"
14176 else
14177 eval "$as_CACHEVAR=no"
14178 fi
14179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 CFLAGS=$ax_check_save_flags
14181 fi
14182 eval ac_res=\$$as_CACHEVAR
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14184 $as_echo "$ac_res" >&6; }
14185 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14186
14187 if ${CFLAGS+:} false; then :
14188
14189 case " $CFLAGS " in #(
14190 *" $flag "*) :
14191 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14192 (: CFLAGS already contains $flag) 2>&5
14193 ac_status=$?
14194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14195 test $ac_status = 0; } ;; #(
14196 *) :
14197
14198 as_fn_append CFLAGS " $flag"
14199 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14200 (: CFLAGS="$CFLAGS") 2>&5
14201 ac_status=$?
14202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14203 test $ac_status = 0; }
14204 ;;
14205 esac
14206
14207 else
14208
14209 CFLAGS=$flag
14210 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14211 (: CFLAGS="$CFLAGS") 2>&5
14212 ac_status=$?
14213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14214 test $ac_status = 0; }
14215
14216 fi
14217
14218 else
14219 :
14220 fi
14221
14222 done
14223
14224
14225
14226
14227
14228 for flag in -Wshadow; do
14229 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14231 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14232 if eval \${$as_CACHEVAR+:} false; then :
14233 $as_echo_n "(cached) " >&6
14234 else
14235
14236 ax_check_save_flags=$CFLAGS
14237 CFLAGS="$CFLAGS $flag"
14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h. */
14240
14241 int
14242 main ()
14243 {
14244
14245 ;
14246 return 0;
14247 }
14248 _ACEOF
14249 if ac_fn_c_try_compile "$LINENO"; then :
14250 eval "$as_CACHEVAR=yes"
14251 else
14252 eval "$as_CACHEVAR=no"
14253 fi
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 CFLAGS=$ax_check_save_flags
14256 fi
14257 eval ac_res=\$$as_CACHEVAR
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14259 $as_echo "$ac_res" >&6; }
14260 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14261
14262 if ${CFLAGS+:} false; then :
14263
14264 case " $CFLAGS " in #(
14265 *" $flag "*) :
14266 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14267 (: CFLAGS already contains $flag) 2>&5
14268 ac_status=$?
14269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14270 test $ac_status = 0; } ;; #(
14271 *) :
14272
14273 as_fn_append CFLAGS " $flag"
14274 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14275 (: CFLAGS="$CFLAGS") 2>&5
14276 ac_status=$?
14277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14278 test $ac_status = 0; }
14279 ;;
14280 esac
14281
14282 else
14283
14284 CFLAGS=$flag
14285 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14286 (: CFLAGS="$CFLAGS") 2>&5
14287 ac_status=$?
14288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14289 test $ac_status = 0; }
14290
14291 fi
14292
14293 else
14294 :
14295 fi
14296
14297 done
14298
14299
14300
14301
14302
14303 for flag in -Wshift-negative-value; do
14304 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14306 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14307 if eval \${$as_CACHEVAR+:} false; then :
14308 $as_echo_n "(cached) " >&6
14309 else
14310
14311 ax_check_save_flags=$CFLAGS
14312 CFLAGS="$CFLAGS $flag"
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315
14316 int
14317 main ()
14318 {
14319
14320 ;
14321 return 0;
14322 }
14323 _ACEOF
14324 if ac_fn_c_try_compile "$LINENO"; then :
14325 eval "$as_CACHEVAR=yes"
14326 else
14327 eval "$as_CACHEVAR=no"
14328 fi
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 CFLAGS=$ax_check_save_flags
14331 fi
14332 eval ac_res=\$$as_CACHEVAR
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14334 $as_echo "$ac_res" >&6; }
14335 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14336
14337 if ${CFLAGS+:} false; then :
14338
14339 case " $CFLAGS " in #(
14340 *" $flag "*) :
14341 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14342 (: CFLAGS already contains $flag) 2>&5
14343 ac_status=$?
14344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14345 test $ac_status = 0; } ;; #(
14346 *) :
14347
14348 as_fn_append CFLAGS " $flag"
14349 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14350 (: CFLAGS="$CFLAGS") 2>&5
14351 ac_status=$?
14352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14353 test $ac_status = 0; }
14354 ;;
14355 esac
14356
14357 else
14358
14359 CFLAGS=$flag
14360 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14361 (: CFLAGS="$CFLAGS") 2>&5
14362 ac_status=$?
14363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14364 test $ac_status = 0; }
14365
14366 fi
14367
14368 else
14369 :
14370 fi
14371
14372 done
14373
14374
14375
14376
14377
14378 for flag in -Wsign-compare; do
14379 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14381 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14382 if eval \${$as_CACHEVAR+:} false; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385
14386 ax_check_save_flags=$CFLAGS
14387 CFLAGS="$CFLAGS $flag"
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390
14391 int
14392 main ()
14393 {
14394
14395 ;
14396 return 0;
14397 }
14398 _ACEOF
14399 if ac_fn_c_try_compile "$LINENO"; then :
14400 eval "$as_CACHEVAR=yes"
14401 else
14402 eval "$as_CACHEVAR=no"
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 CFLAGS=$ax_check_save_flags
14406 fi
14407 eval ac_res=\$$as_CACHEVAR
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14409 $as_echo "$ac_res" >&6; }
14410 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14411
14412 if ${CFLAGS+:} false; then :
14413
14414 case " $CFLAGS " in #(
14415 *" $flag "*) :
14416 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14417 (: CFLAGS already contains $flag) 2>&5
14418 ac_status=$?
14419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14420 test $ac_status = 0; } ;; #(
14421 *) :
14422
14423 as_fn_append CFLAGS " $flag"
14424 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14425 (: CFLAGS="$CFLAGS") 2>&5
14426 ac_status=$?
14427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14428 test $ac_status = 0; }
14429 ;;
14430 esac
14431
14432 else
14433
14434 CFLAGS=$flag
14435 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14436 (: CFLAGS="$CFLAGS") 2>&5
14437 ac_status=$?
14438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14439 test $ac_status = 0; }
14440
14441 fi
14442
14443 else
14444 :
14445 fi
14446
14447 done
14448
14449
14450
14451
14452
14453 for flag in -Wtype-limits; do
14454 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14456 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14457 if eval \${$as_CACHEVAR+:} false; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460
14461 ax_check_save_flags=$CFLAGS
14462 CFLAGS="$CFLAGS $flag"
14463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464 /* end confdefs.h. */
14465
14466 int
14467 main ()
14468 {
14469
14470 ;
14471 return 0;
14472 }
14473 _ACEOF
14474 if ac_fn_c_try_compile "$LINENO"; then :
14475 eval "$as_CACHEVAR=yes"
14476 else
14477 eval "$as_CACHEVAR=no"
14478 fi
14479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480 CFLAGS=$ax_check_save_flags
14481 fi
14482 eval ac_res=\$$as_CACHEVAR
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14484 $as_echo "$ac_res" >&6; }
14485 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14486
14487 if ${CFLAGS+:} false; then :
14488
14489 case " $CFLAGS " in #(
14490 *" $flag "*) :
14491 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14492 (: CFLAGS already contains $flag) 2>&5
14493 ac_status=$?
14494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14495 test $ac_status = 0; } ;; #(
14496 *) :
14497
14498 as_fn_append CFLAGS " $flag"
14499 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14500 (: CFLAGS="$CFLAGS") 2>&5
14501 ac_status=$?
14502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14503 test $ac_status = 0; }
14504 ;;
14505 esac
14506
14507 else
14508
14509 CFLAGS=$flag
14510 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14511 (: CFLAGS="$CFLAGS") 2>&5
14512 ac_status=$?
14513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14514 test $ac_status = 0; }
14515
14516 fi
14517
14518 else
14519 :
14520 fi
14521
14522 done
14523
14524
14525
14526
14527
14528 for flag in -Wundef; do
14529 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14531 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14532 if eval \${$as_CACHEVAR+:} false; then :
14533 $as_echo_n "(cached) " >&6
14534 else
14535
14536 ax_check_save_flags=$CFLAGS
14537 CFLAGS="$CFLAGS $flag"
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14540
14541 int
14542 main ()
14543 {
14544
14545 ;
14546 return 0;
14547 }
14548 _ACEOF
14549 if ac_fn_c_try_compile "$LINENO"; then :
14550 eval "$as_CACHEVAR=yes"
14551 else
14552 eval "$as_CACHEVAR=no"
14553 fi
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 CFLAGS=$ax_check_save_flags
14556 fi
14557 eval ac_res=\$$as_CACHEVAR
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14559 $as_echo "$ac_res" >&6; }
14560 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14561
14562 if ${CFLAGS+:} false; then :
14563
14564 case " $CFLAGS " in #(
14565 *" $flag "*) :
14566 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14567 (: CFLAGS already contains $flag) 2>&5
14568 ac_status=$?
14569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14570 test $ac_status = 0; } ;; #(
14571 *) :
14572
14573 as_fn_append CFLAGS " $flag"
14574 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14575 (: CFLAGS="$CFLAGS") 2>&5
14576 ac_status=$?
14577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14578 test $ac_status = 0; }
14579 ;;
14580 esac
14581
14582 else
14583
14584 CFLAGS=$flag
14585 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14586 (: CFLAGS="$CFLAGS") 2>&5
14587 ac_status=$?
14588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14589 test $ac_status = 0; }
14590
14591 fi
14592
14593 else
14594 :
14595 fi
14596
14597 done
14598
14599
14600
14601
14602
14603 for flag in -Wuninitialized; do
14604 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14606 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14607 if eval \${$as_CACHEVAR+:} false; then :
14608 $as_echo_n "(cached) " >&6
14609 else
14610
14611 ax_check_save_flags=$CFLAGS
14612 CFLAGS="$CFLAGS $flag"
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14615
14616 int
14617 main ()
14618 {
14619
14620 ;
14621 return 0;
14622 }
14623 _ACEOF
14624 if ac_fn_c_try_compile "$LINENO"; then :
14625 eval "$as_CACHEVAR=yes"
14626 else
14627 eval "$as_CACHEVAR=no"
14628 fi
14629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14630 CFLAGS=$ax_check_save_flags
14631 fi
14632 eval ac_res=\$$as_CACHEVAR
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14634 $as_echo "$ac_res" >&6; }
14635 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14636
14637 if ${CFLAGS+:} false; then :
14638
14639 case " $CFLAGS " in #(
14640 *" $flag "*) :
14641 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14642 (: CFLAGS already contains $flag) 2>&5
14643 ac_status=$?
14644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14645 test $ac_status = 0; } ;; #(
14646 *) :
14647
14648 as_fn_append CFLAGS " $flag"
14649 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14650 (: CFLAGS="$CFLAGS") 2>&5
14651 ac_status=$?
14652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14653 test $ac_status = 0; }
14654 ;;
14655 esac
14656
14657 else
14658
14659 CFLAGS=$flag
14660 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14661 (: CFLAGS="$CFLAGS") 2>&5
14662 ac_status=$?
14663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14664 test $ac_status = 0; }
14665
14666 fi
14667
14668 else
14669 :
14670 fi
14671
14672 done
14673
14674
14675
14676
14677
14678 for flag in -Wwrite-strings; do
14679 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14681 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14682 if eval \${$as_CACHEVAR+:} false; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685
14686 ax_check_save_flags=$CFLAGS
14687 CFLAGS="$CFLAGS $flag"
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690
14691 int
14692 main ()
14693 {
14694
14695 ;
14696 return 0;
14697 }
14698 _ACEOF
14699 if ac_fn_c_try_compile "$LINENO"; then :
14700 eval "$as_CACHEVAR=yes"
14701 else
14702 eval "$as_CACHEVAR=no"
14703 fi
14704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705 CFLAGS=$ax_check_save_flags
14706 fi
14707 eval ac_res=\$$as_CACHEVAR
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14709 $as_echo "$ac_res" >&6; }
14710 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14711
14712 if ${CFLAGS+:} false; then :
14713
14714 case " $CFLAGS " in #(
14715 *" $flag "*) :
14716 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14717 (: CFLAGS already contains $flag) 2>&5
14718 ac_status=$?
14719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14720 test $ac_status = 0; } ;; #(
14721 *) :
14722
14723 as_fn_append CFLAGS " $flag"
14724 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14725 (: CFLAGS="$CFLAGS") 2>&5
14726 ac_status=$?
14727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14728 test $ac_status = 0; }
14729 ;;
14730 esac
14731
14732 else
14733
14734 CFLAGS=$flag
14735 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14736 (: CFLAGS="$CFLAGS") 2>&5
14737 ac_status=$?
14738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14739 test $ac_status = 0; }
14740
14741 fi
14742
14743 else
14744 :
14745 fi
14746
14747 done
14748
14749
14750 fi
14751
14752
14753 # Check whether --enable-efence was given.
14754 if test "${enable_efence+set}" = set; then :
14755 enableval=$enable_efence; efence="$enableval"
14756 else
14757 efence="no"
14758 fi
14759
14760
14761 if test "$efence" = "yes"; then :
14762
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing EF_Print" >&5
14764 $as_echo_n "checking for library containing EF_Print... " >&6; }
14765 if ${ac_cv_search_EF_Print+:} false; then :
14766 $as_echo_n "(cached) " >&6
14767 else
14768 ac_func_search_save_LIBS=$LIBS
14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h. */
14771
14772 /* Override any GCC internal prototype to avoid an error.
14773 Use char because int might match the return type of a GCC
14774 builtin and then its argument prototype would still apply. */
14775 #ifdef __cplusplus
14776 extern "C"
14777 #endif
14778 char EF_Print ();
14779 int
14780 main ()
14781 {
14782 return EF_Print ();
14783 ;
14784 return 0;
14785 }
14786 _ACEOF
14787 for ac_lib in '' efence; do
14788 if test -z "$ac_lib"; then
14789 ac_res="none required"
14790 else
14791 ac_res=-l$ac_lib
14792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14793 fi
14794 if ac_fn_c_try_link "$LINENO"; then :
14795 ac_cv_search_EF_Print=$ac_res
14796 fi
14797 rm -f core conftest.err conftest.$ac_objext \
14798 conftest$ac_exeext
14799 if ${ac_cv_search_EF_Print+:} false; then :
14800 break
14801 fi
14802 done
14803 if ${ac_cv_search_EF_Print+:} false; then :
14804
14805 else
14806 ac_cv_search_EF_Print=no
14807 fi
14808 rm conftest.$ac_ext
14809 LIBS=$ac_func_search_save_LIBS
14810 fi
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_EF_Print" >&5
14812 $as_echo "$ac_cv_search_EF_Print" >&6; }
14813 ac_res=$ac_cv_search_EF_Print
14814 if test "$ac_res" != no; then :
14815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14816
14817 else
14818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14820 as_fn_error $? "Electric Fence 'efence' library not found
14821 See \`config.log' for more details" "$LINENO" 5; }
14822 fi
14823
14824
14825 fi
14826
14827
14828 for ac_func in strlcpy strlcat
14829 do :
14830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14833 cat >>confdefs.h <<_ACEOF
14834 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14835 _ACEOF
14836
14837 fi
14838 done
14839
14840
14841 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
14842
14843 cat >confcache <<\_ACEOF
14844 # This file is a shell script that caches the results of configure
14845 # tests run on this system so they can be shared between configure
14846 # scripts and configure runs, see configure's option --config-cache.
14847 # It is not useful on other systems. If it contains results you don't
14848 # want to keep, you may remove or edit it.
14849 #
14850 # config.status only pays attention to the cache file if you give it
14851 # the --recheck option to rerun configure.
14852 #
14853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14855 # following values.
14856
14857 _ACEOF
14858
14859 # The following way of writing the cache mishandles newlines in values,
14860 # but we know of no workaround that is simple, portable, and efficient.
14861 # So, we kill variables containing newlines.
14862 # Ultrix sh set writes to stderr and can't be redirected directly,
14863 # and sets the high bit in the cache file unless we assign to the vars.
14864 (
14865 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14866 eval ac_val=\$$ac_var
14867 case $ac_val in #(
14868 *${as_nl}*)
14869 case $ac_var in #(
14870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14872 esac
14873 case $ac_var in #(
14874 _ | IFS | as_nl) ;; #(
14875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14876 *) { eval $ac_var=; unset $ac_var;} ;;
14877 esac ;;
14878 esac
14879 done
14880
14881 (set) 2>&1 |
14882 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14883 *${as_nl}ac_space=\ *)
14884 # `set' does not quote correctly, so add quotes: double-quote
14885 # substitution turns \\\\ into \\, and sed turns \\ into \.
14886 sed -n \
14887 "s/'/'\\\\''/g;
14888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14889 ;; #(
14890 *)
14891 # `set' quotes correctly as required by POSIX, so do not add quotes.
14892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14893 ;;
14894 esac |
14895 sort
14896 ) |
14897 sed '
14898 /^ac_cv_env_/b end
14899 t clear
14900 :clear
14901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14902 t end
14903 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14904 :end' >>confcache
14905 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14906 if test -w "$cache_file"; then
14907 if test "x$cache_file" != "x/dev/null"; then
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14909 $as_echo "$as_me: updating cache $cache_file" >&6;}
14910 if test ! -f "$cache_file" || test -h "$cache_file"; then
14911 cat confcache >"$cache_file"
14912 else
14913 case $cache_file in #(
14914 */* | ?:*)
14915 mv -f confcache "$cache_file"$$ &&
14916 mv -f "$cache_file"$$ "$cache_file" ;; #(
14917 *)
14918 mv -f confcache "$cache_file" ;;
14919 esac
14920 fi
14921 fi
14922 else
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14925 fi
14926 fi
14927 rm -f confcache
14928
14929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14930 # Let make expand exec_prefix.
14931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14932
14933 DEFS=-DHAVE_CONFIG_H
14934
14935 ac_libobjs=
14936 ac_ltlibobjs=
14937 U=
14938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14939 # 1. Remove the extension, and $U if already installed.
14940 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14943 # will be set to the directory where LIBOBJS objects are built.
14944 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14945 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14946 done
14947 LIBOBJS=$ac_libobjs
14948
14949 LTLIBOBJS=$ac_ltlibobjs
14950
14951
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14953 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14954 if test -n "$am_sleep_pid"; then
14955 # Hide warnings about reused PIDs.
14956 wait $am_sleep_pid 2>/dev/null
14957 fi
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14959 $as_echo "done" >&6; }
14960 if test -n "$EXEEXT"; then
14961 am__EXEEXT_TRUE=
14962 am__EXEEXT_FALSE='#'
14963 else
14964 am__EXEEXT_TRUE='#'
14965 am__EXEEXT_FALSE=
14966 fi
14967
14968 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14969 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 fi
14972 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14973 as_fn_error $? "conditional \"AMDEP\" was never defined.
14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975 fi
14976 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14977 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 fi
14980
14981 : "${CONFIG_STATUS=./config.status}"
14982 ac_write_fail=0
14983 ac_clean_files_save=$ac_clean_files
14984 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14986 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14987 as_write_fail=0
14988 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14989 #! $SHELL
14990 # Generated by $as_me.
14991 # Run this file to recreate the current configuration.
14992 # Compiler output produced by configure, useful for debugging
14993 # configure, is in config.log if it exists.
14994
14995 debug=false
14996 ac_cs_recheck=false
14997 ac_cs_silent=false
14998
14999 SHELL=\${CONFIG_SHELL-$SHELL}
15000 export SHELL
15001 _ASEOF
15002 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15003 ## -------------------- ##
15004 ## M4sh Initialization. ##
15005 ## -------------------- ##
15006
15007 # Be more Bourne compatible
15008 DUALCASE=1; export DUALCASE # for MKS sh
15009 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15010 emulate sh
15011 NULLCMD=:
15012 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15013 # is contrary to our usage. Disable this feature.
15014 alias -g '${1+"$@"}'='"$@"'
15015 setopt NO_GLOB_SUBST
15016 else
15017 case `(set -o) 2>/dev/null` in #(
15018 *posix*) :
15019 set -o posix ;; #(
15020 *) :
15021 ;;
15022 esac
15023 fi
15024
15025
15026 as_nl='
15027 '
15028 export as_nl
15029 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15030 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15031 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15032 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15033 # Prefer a ksh shell builtin over an external printf program on Solaris,
15034 # but without wasting forks for bash or zsh.
15035 if test -z "$BASH_VERSION$ZSH_VERSION" \
15036 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15037 as_echo='print -r --'
15038 as_echo_n='print -rn --'
15039 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15040 as_echo='printf %s\n'
15041 as_echo_n='printf %s'
15042 else
15043 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15044 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15045 as_echo_n='/usr/ucb/echo -n'
15046 else
15047 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15048 as_echo_n_body='eval
15049 arg=$1;
15050 case $arg in #(
15051 *"$as_nl"*)
15052 expr "X$arg" : "X\\(.*\\)$as_nl";
15053 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15054 esac;
15055 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15056 '
15057 export as_echo_n_body
15058 as_echo_n='sh -c $as_echo_n_body as_echo'
15059 fi
15060 export as_echo_body
15061 as_echo='sh -c $as_echo_body as_echo'
15062 fi
15063
15064 # The user is always right.
15065 if test "${PATH_SEPARATOR+set}" != set; then
15066 PATH_SEPARATOR=:
15067 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15068 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15069 PATH_SEPARATOR=';'
15070 }
15071 fi
15072
15073
15074 # IFS
15075 # We need space, tab and new line, in precisely that order. Quoting is
15076 # there to prevent editors from complaining about space-tab.
15077 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15078 # splitting by setting IFS to empty value.)
15079 IFS=" "" $as_nl"
15080
15081 # Find who we are. Look in the path if we contain no directory separator.
15082 as_myself=
15083 case $0 in #((
15084 *[\\/]* ) as_myself=$0 ;;
15085 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15086 for as_dir in $PATH
15087 do
15088 IFS=$as_save_IFS
15089 test -z "$as_dir" && as_dir=.
15090 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15091 done
15092 IFS=$as_save_IFS
15093
15094 ;;
15095 esac
15096 # We did not find ourselves, most probably we were run as `sh COMMAND'
15097 # in which case we are not to be found in the path.
15098 if test "x$as_myself" = x; then
15099 as_myself=$0
15100 fi
15101 if test ! -f "$as_myself"; then
15102 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15103 exit 1
15104 fi
15105
15106 # Unset variables that we do not need and which cause bugs (e.g. in
15107 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15108 # suppresses any "Segmentation fault" message there. '((' could
15109 # trigger a bug in pdksh 5.2.14.
15110 for as_var in BASH_ENV ENV MAIL MAILPATH
15111 do eval test x\${$as_var+set} = xset \
15112 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15113 done
15114 PS1='$ '
15115 PS2='> '
15116 PS4='+ '
15117
15118 # NLS nuisances.
15119 LC_ALL=C
15120 export LC_ALL
15121 LANGUAGE=C
15122 export LANGUAGE
15123
15124 # CDPATH.
15125 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15126
15127
15128 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15129 # ----------------------------------------
15130 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15131 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15132 # script with STATUS, using 1 if that was 0.
15133 as_fn_error ()
15134 {
15135 as_status=$1; test $as_status -eq 0 && as_status=1
15136 if test "$4"; then
15137 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15138 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15139 fi
15140 $as_echo "$as_me: error: $2" >&2
15141 as_fn_exit $as_status
15142 } # as_fn_error
15143
15144
15145 # as_fn_set_status STATUS
15146 # -----------------------
15147 # Set $? to STATUS, without forking.
15148 as_fn_set_status ()
15149 {
15150 return $1
15151 } # as_fn_set_status
15152
15153 # as_fn_exit STATUS
15154 # -----------------
15155 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15156 as_fn_exit ()
15157 {
15158 set +e
15159 as_fn_set_status $1
15160 exit $1
15161 } # as_fn_exit
15162
15163 # as_fn_unset VAR
15164 # ---------------
15165 # Portably unset VAR.
15166 as_fn_unset ()
15167 {
15168 { eval $1=; unset $1;}
15169 }
15170 as_unset=as_fn_unset
15171 # as_fn_append VAR VALUE
15172 # ----------------------
15173 # Append the text in VALUE to the end of the definition contained in VAR. Take
15174 # advantage of any shell optimizations that allow amortized linear growth over
15175 # repeated appends, instead of the typical quadratic growth present in naive
15176 # implementations.
15177 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15178 eval 'as_fn_append ()
15179 {
15180 eval $1+=\$2
15181 }'
15182 else
15183 as_fn_append ()
15184 {
15185 eval $1=\$$1\$2
15186 }
15187 fi # as_fn_append
15188
15189 # as_fn_arith ARG...
15190 # ------------------
15191 # Perform arithmetic evaluation on the ARGs, and store the result in the
15192 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15193 # must be portable across $(()) and expr.
15194 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15195 eval 'as_fn_arith ()
15196 {
15197 as_val=$(( $* ))
15198 }'
15199 else
15200 as_fn_arith ()
15201 {
15202 as_val=`expr "$@" || test $? -eq 1`
15203 }
15204 fi # as_fn_arith
15205
15206
15207 if expr a : '\(a\)' >/dev/null 2>&1 &&
15208 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15209 as_expr=expr
15210 else
15211 as_expr=false
15212 fi
15213
15214 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15215 as_basename=basename
15216 else
15217 as_basename=false
15218 fi
15219
15220 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15221 as_dirname=dirname
15222 else
15223 as_dirname=false
15224 fi
15225
15226 as_me=`$as_basename -- "$0" ||
15227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15228 X"$0" : 'X\(//\)$' \| \
15229 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15230 $as_echo X/"$0" |
15231 sed '/^.*\/\([^/][^/]*\)\/*$/{
15232 s//\1/
15233 q
15234 }
15235 /^X\/\(\/\/\)$/{
15236 s//\1/
15237 q
15238 }
15239 /^X\/\(\/\).*/{
15240 s//\1/
15241 q
15242 }
15243 s/.*/./; q'`
15244
15245 # Avoid depending upon Character Ranges.
15246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15249 as_cr_digits='0123456789'
15250 as_cr_alnum=$as_cr_Letters$as_cr_digits
15251
15252 ECHO_C= ECHO_N= ECHO_T=
15253 case `echo -n x` in #(((((
15254 -n*)
15255 case `echo 'xy\c'` in
15256 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15257 xy) ECHO_C='\c';;
15258 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15259 ECHO_T=' ';;
15260 esac;;
15261 *)
15262 ECHO_N='-n';;
15263 esac
15264
15265 rm -f conf$$ conf$$.exe conf$$.file
15266 if test -d conf$$.dir; then
15267 rm -f conf$$.dir/conf$$.file
15268 else
15269 rm -f conf$$.dir
15270 mkdir conf$$.dir 2>/dev/null
15271 fi
15272 if (echo >conf$$.file) 2>/dev/null; then
15273 if ln -s conf$$.file conf$$ 2>/dev/null; then
15274 as_ln_s='ln -s'
15275 # ... but there are two gotchas:
15276 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15277 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15278 # In both cases, we have to default to `cp -pR'.
15279 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15280 as_ln_s='cp -pR'
15281 elif ln conf$$.file conf$$ 2>/dev/null; then
15282 as_ln_s=ln
15283 else
15284 as_ln_s='cp -pR'
15285 fi
15286 else
15287 as_ln_s='cp -pR'
15288 fi
15289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15290 rmdir conf$$.dir 2>/dev/null
15291
15292
15293 # as_fn_mkdir_p
15294 # -------------
15295 # Create "$as_dir" as a directory, including parents if necessary.
15296 as_fn_mkdir_p ()
15297 {
15298
15299 case $as_dir in #(
15300 -*) as_dir=./$as_dir;;
15301 esac
15302 test -d "$as_dir" || eval $as_mkdir_p || {
15303 as_dirs=
15304 while :; do
15305 case $as_dir in #(
15306 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15307 *) as_qdir=$as_dir;;
15308 esac
15309 as_dirs="'$as_qdir' $as_dirs"
15310 as_dir=`$as_dirname -- "$as_dir" ||
15311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15312 X"$as_dir" : 'X\(//\)[^/]' \| \
15313 X"$as_dir" : 'X\(//\)$' \| \
15314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15315 $as_echo X"$as_dir" |
15316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15317 s//\1/
15318 q
15319 }
15320 /^X\(\/\/\)[^/].*/{
15321 s//\1/
15322 q
15323 }
15324 /^X\(\/\/\)$/{
15325 s//\1/
15326 q
15327 }
15328 /^X\(\/\).*/{
15329 s//\1/
15330 q
15331 }
15332 s/.*/./; q'`
15333 test -d "$as_dir" && break
15334 done
15335 test -z "$as_dirs" || eval "mkdir $as_dirs"
15336 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15337
15338
15339 } # as_fn_mkdir_p
15340 if mkdir -p . 2>/dev/null; then
15341 as_mkdir_p='mkdir -p "$as_dir"'
15342 else
15343 test -d ./-p && rmdir ./-p
15344 as_mkdir_p=false
15345 fi
15346
15347
15348 # as_fn_executable_p FILE
15349 # -----------------------
15350 # Test if FILE is an executable regular file.
15351 as_fn_executable_p ()
15352 {
15353 test -f "$1" && test -x "$1"
15354 } # as_fn_executable_p
15355 as_test_x='test -x'
15356 as_executable_p=as_fn_executable_p
15357
15358 # Sed expression to map a string onto a valid CPP name.
15359 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15360
15361 # Sed expression to map a string onto a valid variable name.
15362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15363
15364
15365 exec 6>&1
15366 ## ----------------------------------- ##
15367 ## Main body of $CONFIG_STATUS script. ##
15368 ## ----------------------------------- ##
15369 _ASEOF
15370 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15371
15372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15373 # Save the log message, to keep $0 and so on meaningful, and to
15374 # report actual input values of CONFIG_FILES etc. instead of their
15375 # values after options handling.
15376 ac_log="
15377 This file was extended by hopm $as_me TRUNK, which was
15378 generated by GNU Autoconf 2.69. Invocation command line was
15379
15380 CONFIG_FILES = $CONFIG_FILES
15381 CONFIG_HEADERS = $CONFIG_HEADERS
15382 CONFIG_LINKS = $CONFIG_LINKS
15383 CONFIG_COMMANDS = $CONFIG_COMMANDS
15384 $ $0 $@
15385
15386 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15387 "
15388
15389 _ACEOF
15390
15391 case $ac_config_files in *"
15392 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15393 esac
15394
15395 case $ac_config_headers in *"
15396 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15397 esac
15398
15399
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 # Files that config.status was made for.
15402 config_files="$ac_config_files"
15403 config_headers="$ac_config_headers"
15404 config_commands="$ac_config_commands"
15405
15406 _ACEOF
15407
15408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15409 ac_cs_usage="\
15410 \`$as_me' instantiates files and other configuration actions
15411 from templates according to the current configuration. Unless the files
15412 and actions are specified as TAGs, all are instantiated by default.
15413
15414 Usage: $0 [OPTION]... [TAG]...
15415
15416 -h, --help print this help, then exit
15417 -V, --version print version number and configuration settings, then exit
15418 --config print configuration, then exit
15419 -q, --quiet, --silent
15420 do not print progress messages
15421 -d, --debug don't remove temporary files
15422 --recheck update $as_me by reconfiguring in the same conditions
15423 --file=FILE[:TEMPLATE]
15424 instantiate the configuration file FILE
15425 --header=FILE[:TEMPLATE]
15426 instantiate the configuration header FILE
15427
15428 Configuration files:
15429 $config_files
15430
15431 Configuration headers:
15432 $config_headers
15433
15434 Configuration commands:
15435 $config_commands
15436
15437 Report bugs to <bugs@ircd-hybrid.org>."
15438
15439 _ACEOF
15440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15441 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15442 ac_cs_version="\\
15443 hopm config.status TRUNK
15444 configured by $0, generated by GNU Autoconf 2.69,
15445 with options \\"\$ac_cs_config\\"
15446
15447 Copyright (C) 2012 Free Software Foundation, Inc.
15448 This config.status script is free software; the Free Software Foundation
15449 gives unlimited permission to copy, distribute and modify it."
15450
15451 ac_pwd='$ac_pwd'
15452 srcdir='$srcdir'
15453 INSTALL='$INSTALL'
15454 MKDIR_P='$MKDIR_P'
15455 AWK='$AWK'
15456 test -n "\$AWK" || AWK=awk
15457 _ACEOF
15458
15459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15460 # The default lists apply if the user does not specify any file.
15461 ac_need_defaults=:
15462 while test $# != 0
15463 do
15464 case $1 in
15465 --*=?*)
15466 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15467 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15468 ac_shift=:
15469 ;;
15470 --*=)
15471 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15472 ac_optarg=
15473 ac_shift=:
15474 ;;
15475 *)
15476 ac_option=$1
15477 ac_optarg=$2
15478 ac_shift=shift
15479 ;;
15480 esac
15481
15482 case $ac_option in
15483 # Handling of the options.
15484 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15485 ac_cs_recheck=: ;;
15486 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15487 $as_echo "$ac_cs_version"; exit ;;
15488 --config | --confi | --conf | --con | --co | --c )
15489 $as_echo "$ac_cs_config"; exit ;;
15490 --debug | --debu | --deb | --de | --d | -d )
15491 debug=: ;;
15492 --file | --fil | --fi | --f )
15493 $ac_shift
15494 case $ac_optarg in
15495 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15496 '') as_fn_error $? "missing file argument" ;;
15497 esac
15498 as_fn_append CONFIG_FILES " '$ac_optarg'"
15499 ac_need_defaults=false;;
15500 --header | --heade | --head | --hea )
15501 $ac_shift
15502 case $ac_optarg in
15503 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15504 esac
15505 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15506 ac_need_defaults=false;;
15507 --he | --h)
15508 # Conflict between --help and --header
15509 as_fn_error $? "ambiguous option: \`$1'
15510 Try \`$0 --help' for more information.";;
15511 --help | --hel | -h )
15512 $as_echo "$ac_cs_usage"; exit ;;
15513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15515 ac_cs_silent=: ;;
15516
15517 # This is an error.
15518 -*) as_fn_error $? "unrecognized option: \`$1'
15519 Try \`$0 --help' for more information." ;;
15520
15521 *) as_fn_append ac_config_targets " $1"
15522 ac_need_defaults=false ;;
15523
15524 esac
15525 shift
15526 done
15527
15528 ac_configure_extra_args=
15529
15530 if $ac_cs_silent; then
15531 exec 6>/dev/null
15532 ac_configure_extra_args="$ac_configure_extra_args --silent"
15533 fi
15534
15535 _ACEOF
15536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15537 if \$ac_cs_recheck; then
15538 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15539 shift
15540 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15541 CONFIG_SHELL='$SHELL'
15542 export CONFIG_SHELL
15543 exec "\$@"
15544 fi
15545
15546 _ACEOF
15547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15548 exec 5>>config.log
15549 {
15550 echo
15551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15552 ## Running $as_me. ##
15553 _ASBOX
15554 $as_echo "$ac_log"
15555 } >&5
15556
15557 _ACEOF
15558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15559 #
15560 # INIT-COMMANDS
15561 #
15562 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15563
15564
15565 # The HP-UX ksh and POSIX shell print the target directory to stdout
15566 # if CDPATH is set.
15567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15568
15569 sed_quote_subst='$sed_quote_subst'
15570 double_quote_subst='$double_quote_subst'
15571 delay_variable_subst='$delay_variable_subst'
15572 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15573 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15574 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15575 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15576 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15577 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15578 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15579 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15580 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15581 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15582 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15583 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15584 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15585 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15586 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15587 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15588 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15589 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15590 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15591 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15592 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15593 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15594 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15595 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15596 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15597 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15598 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15599 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15600 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15601 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15602 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15603 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15604 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15605 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15606 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15607 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15608 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15609 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15610 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15611 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15612 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15613 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15614 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15615 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15616 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15617 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15618 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15619 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15620 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15621 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15622 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15623 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15624 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15625 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15626 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15627 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15628 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15629 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15630 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"`'
15631 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15632 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15633 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15634 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15635 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15636 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15637 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15638 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15639 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15640 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15641 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15642 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15643 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15644 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15645 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15646 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15647 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15648 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15649 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15650 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15651 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15652 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15653 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15654 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15655 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15656 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15657 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15658 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15659 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15660 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15661 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15662 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15663 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15664 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15665 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15666 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15667 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15668 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15669 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15670 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15671 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15672 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15673 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15674 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15675 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15676 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15677 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15678 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15679 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15680 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15681 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15682 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15683 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15684 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15685 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15686 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15687 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15688 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15689 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15690 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15691 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15692 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15693 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15694 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15695 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15696 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15697 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15698 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15699 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15700 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15701 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15702 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15703 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15704 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15705 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15706 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15707
15708 LTCC='$LTCC'
15709 LTCFLAGS='$LTCFLAGS'
15710 compiler='$compiler_DEFAULT'
15711
15712 # A function that is used when there is no print builtin or printf.
15713 func_fallback_echo ()
15714 {
15715 eval 'cat <<_LTECHO_EOF
15716 \$1
15717 _LTECHO_EOF'
15718 }
15719
15720 # Quote evaled strings.
15721 for var in SHELL \
15722 ECHO \
15723 PATH_SEPARATOR \
15724 SED \
15725 GREP \
15726 EGREP \
15727 FGREP \
15728 LD \
15729 NM \
15730 LN_S \
15731 lt_SP2NL \
15732 lt_NL2SP \
15733 reload_flag \
15734 OBJDUMP \
15735 deplibs_check_method \
15736 file_magic_cmd \
15737 file_magic_glob \
15738 want_nocaseglob \
15739 DLLTOOL \
15740 sharedlib_from_linklib_cmd \
15741 AR \
15742 AR_FLAGS \
15743 archiver_list_spec \
15744 STRIP \
15745 RANLIB \
15746 CC \
15747 CFLAGS \
15748 compiler \
15749 lt_cv_sys_global_symbol_pipe \
15750 lt_cv_sys_global_symbol_to_cdecl \
15751 lt_cv_sys_global_symbol_to_import \
15752 lt_cv_sys_global_symbol_to_c_name_address \
15753 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15754 lt_cv_nm_interface \
15755 nm_file_list_spec \
15756 lt_cv_truncate_bin \
15757 lt_prog_compiler_no_builtin_flag \
15758 lt_prog_compiler_pic \
15759 lt_prog_compiler_wl \
15760 lt_prog_compiler_static \
15761 lt_cv_prog_compiler_c_o \
15762 need_locks \
15763 MANIFEST_TOOL \
15764 DSYMUTIL \
15765 NMEDIT \
15766 LIPO \
15767 OTOOL \
15768 OTOOL64 \
15769 shrext_cmds \
15770 export_dynamic_flag_spec \
15771 whole_archive_flag_spec \
15772 compiler_needs_object \
15773 with_gnu_ld \
15774 allow_undefined_flag \
15775 no_undefined_flag \
15776 hardcode_libdir_flag_spec \
15777 hardcode_libdir_separator \
15778 exclude_expsyms \
15779 include_expsyms \
15780 file_list_spec \
15781 variables_saved_for_relink \
15782 libname_spec \
15783 library_names_spec \
15784 soname_spec \
15785 install_override_mode \
15786 finish_eval \
15787 old_striplib \
15788 striplib; do
15789 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15790 *[\\\\\\\`\\"\\\$]*)
15791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15792 ;;
15793 *)
15794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15795 ;;
15796 esac
15797 done
15798
15799 # Double-quote double-evaled strings.
15800 for var in reload_cmds \
15801 old_postinstall_cmds \
15802 old_postuninstall_cmds \
15803 old_archive_cmds \
15804 extract_expsyms_cmds \
15805 old_archive_from_new_cmds \
15806 old_archive_from_expsyms_cmds \
15807 archive_cmds \
15808 archive_expsym_cmds \
15809 module_cmds \
15810 module_expsym_cmds \
15811 export_symbols_cmds \
15812 prelink_cmds \
15813 postlink_cmds \
15814 postinstall_cmds \
15815 postuninstall_cmds \
15816 finish_cmds \
15817 sys_lib_search_path_spec \
15818 configure_time_dlsearch_path \
15819 configure_time_lt_sys_library_path; do
15820 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15821 *[\\\\\\\`\\"\\\$]*)
15822 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15823 ;;
15824 *)
15825 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15826 ;;
15827 esac
15828 done
15829
15830 ac_aux_dir='$ac_aux_dir'
15831
15832 # See if we are running on zsh, and set the options that allow our
15833 # commands through without removal of \ escapes INIT.
15834 if test -n "\${ZSH_VERSION+set}"; then
15835 setopt NO_GLOB_SUBST
15836 fi
15837
15838
15839 PACKAGE='$PACKAGE'
15840 VERSION='$VERSION'
15841 RM='$RM'
15842 ofile='$ofile'
15843
15844
15845
15846
15847 _ACEOF
15848
15849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15850
15851 # Handling of arguments.
15852 for ac_config_target in $ac_config_targets
15853 do
15854 case $ac_config_target in
15855 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
15856 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15857 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15858 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15859 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15860 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15861 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
15862 "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
15863
15864 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15865 esac
15866 done
15867
15868
15869 # If the user did not use the arguments to specify the items to instantiate,
15870 # then the envvar interface is used. Set only those that are not.
15871 # We use the long form for the default assignment because of an extremely
15872 # bizarre bug on SunOS 4.1.3.
15873 if $ac_need_defaults; then
15874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15876 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15877 fi
15878
15879 # Have a temporary directory for convenience. Make it in the build tree
15880 # simply because there is no reason against having it here, and in addition,
15881 # creating and moving files from /tmp can sometimes cause problems.
15882 # Hook for its removal unless debugging.
15883 # Note that there is a small window in which the directory will not be cleaned:
15884 # after its creation but before its name has been assigned to `$tmp'.
15885 $debug ||
15886 {
15887 tmp= ac_tmp=
15888 trap 'exit_status=$?
15889 : "${ac_tmp:=$tmp}"
15890 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15891 ' 0
15892 trap 'as_fn_exit 1' 1 2 13 15
15893 }
15894 # Create a (secure) tmp directory for tmp files.
15895
15896 {
15897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15898 test -d "$tmp"
15899 } ||
15900 {
15901 tmp=./conf$$-$RANDOM
15902 (umask 077 && mkdir "$tmp")
15903 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15904 ac_tmp=$tmp
15905
15906 # Set up the scripts for CONFIG_FILES section.
15907 # No need to generate them if there are no CONFIG_FILES.
15908 # This happens for instance with `./config.status config.h'.
15909 if test -n "$CONFIG_FILES"; then
15910
15911
15912 ac_cr=`echo X | tr X '\015'`
15913 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15914 # But we know of no other shell where ac_cr would be empty at this
15915 # point, so we can use a bashism as a fallback.
15916 if test "x$ac_cr" = x; then
15917 eval ac_cr=\$\'\\r\'
15918 fi
15919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15921 ac_cs_awk_cr='\\r'
15922 else
15923 ac_cs_awk_cr=$ac_cr
15924 fi
15925
15926 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15927 _ACEOF
15928
15929
15930 {
15931 echo "cat >conf$$subs.awk <<_ACEOF" &&
15932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15933 echo "_ACEOF"
15934 } >conf$$subs.sh ||
15935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15936 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15937 ac_delim='%!_!# '
15938 for ac_last_try in false false false false false :; do
15939 . ./conf$$subs.sh ||
15940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15941
15942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15943 if test $ac_delim_n = $ac_delim_num; then
15944 break
15945 elif $ac_last_try; then
15946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15947 else
15948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15949 fi
15950 done
15951 rm -f conf$$subs.sh
15952
15953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15954 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15955 _ACEOF
15956 sed -n '
15957 h
15958 s/^/S["/; s/!.*/"]=/
15959 p
15960 g
15961 s/^[^!]*!//
15962 :repl
15963 t repl
15964 s/'"$ac_delim"'$//
15965 t delim
15966 :nl
15967 h
15968 s/\(.\{148\}\)..*/\1/
15969 t more1
15970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15971 p
15972 n
15973 b repl
15974 :more1
15975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15976 p
15977 g
15978 s/.\{148\}//
15979 t nl
15980 :delim
15981 h
15982 s/\(.\{148\}\)..*/\1/
15983 t more2
15984 s/["\\]/\\&/g; s/^/"/; s/$/"/
15985 p
15986 b
15987 :more2
15988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15989 p
15990 g
15991 s/.\{148\}//
15992 t delim
15993 ' <conf$$subs.awk | sed '
15994 /^[^""]/{
15995 N
15996 s/\n//
15997 }
15998 ' >>$CONFIG_STATUS || ac_write_fail=1
15999 rm -f conf$$subs.awk
16000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16001 _ACAWK
16002 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16003 for (key in S) S_is_set[key] = 1
16004 FS = ""
16005
16006 }
16007 {
16008 line = $ 0
16009 nfields = split(line, field, "@")
16010 substed = 0
16011 len = length(field[1])
16012 for (i = 2; i < nfields; i++) {
16013 key = field[i]
16014 keylen = length(key)
16015 if (S_is_set[key]) {
16016 value = S[key]
16017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16018 len += length(value) + length(field[++i])
16019 substed = 1
16020 } else
16021 len += 1 + keylen
16022 }
16023
16024 print line
16025 }
16026
16027 _ACAWK
16028 _ACEOF
16029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16032 else
16033 cat
16034 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16035 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16036 _ACEOF
16037
16038 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16039 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16040 # trailing colons and then remove the whole line if VPATH becomes empty
16041 # (actually we leave an empty line to preserve line numbers).
16042 if test "x$srcdir" = x.; then
16043 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16044 h
16045 s///
16046 s/^/:/
16047 s/[ ]*$/:/
16048 s/:\$(srcdir):/:/g
16049 s/:\${srcdir}:/:/g
16050 s/:@srcdir@:/:/g
16051 s/^:*//
16052 s/:*$//
16053 x
16054 s/\(=[ ]*\).*/\1/
16055 G
16056 s/\n//
16057 s/^[^=]*=[ ]*$//
16058 }'
16059 fi
16060
16061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16062 fi # test -n "$CONFIG_FILES"
16063
16064 # Set up the scripts for CONFIG_HEADERS section.
16065 # No need to generate them if there are no CONFIG_HEADERS.
16066 # This happens for instance with `./config.status Makefile'.
16067 if test -n "$CONFIG_HEADERS"; then
16068 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16069 BEGIN {
16070 _ACEOF
16071
16072 # Transform confdefs.h into an awk script `defines.awk', embedded as
16073 # here-document in config.status, that substitutes the proper values into
16074 # config.h.in to produce config.h.
16075
16076 # Create a delimiter string that does not exist in confdefs.h, to ease
16077 # handling of long lines.
16078 ac_delim='%!_!# '
16079 for ac_last_try in false false :; do
16080 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16081 if test -z "$ac_tt"; then
16082 break
16083 elif $ac_last_try; then
16084 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16085 else
16086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16087 fi
16088 done
16089
16090 # For the awk script, D is an array of macro values keyed by name,
16091 # likewise P contains macro parameters if any. Preserve backslash
16092 # newline sequences.
16093
16094 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16095 sed -n '
16096 s/.\{148\}/&'"$ac_delim"'/g
16097 t rset
16098 :rset
16099 s/^[ ]*#[ ]*define[ ][ ]*/ /
16100 t def
16101 d
16102 :def
16103 s/\\$//
16104 t bsnl
16105 s/["\\]/\\&/g
16106 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16107 D["\1"]=" \3"/p
16108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16109 d
16110 :bsnl
16111 s/["\\]/\\&/g
16112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16113 D["\1"]=" \3\\\\\\n"\\/p
16114 t cont
16115 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16116 t cont
16117 d
16118 :cont
16119 n
16120 s/.\{148\}/&'"$ac_delim"'/g
16121 t clear
16122 :clear
16123 s/\\$//
16124 t bsnlc
16125 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16126 d
16127 :bsnlc
16128 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16129 b cont
16130 ' <confdefs.h | sed '
16131 s/'"$ac_delim"'/"\\\
16132 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16133
16134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135 for (key in D) D_is_set[key] = 1
16136 FS = ""
16137 }
16138 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16139 line = \$ 0
16140 split(line, arg, " ")
16141 if (arg[1] == "#") {
16142 defundef = arg[2]
16143 mac1 = arg[3]
16144 } else {
16145 defundef = substr(arg[1], 2)
16146 mac1 = arg[2]
16147 }
16148 split(mac1, mac2, "(") #)
16149 macro = mac2[1]
16150 prefix = substr(line, 1, index(line, defundef) - 1)
16151 if (D_is_set[macro]) {
16152 # Preserve the white space surrounding the "#".
16153 print prefix "define", macro P[macro] D[macro]
16154 next
16155 } else {
16156 # Replace #undef with comments. This is necessary, for example,
16157 # in the case of _POSIX_SOURCE, which is predefined and required
16158 # on some systems where configure will not decide to define it.
16159 if (defundef == "undef") {
16160 print "/*", prefix defundef, macro, "*/"
16161 next
16162 }
16163 }
16164 }
16165 { print }
16166 _ACAWK
16167 _ACEOF
16168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16169 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16170 fi # test -n "$CONFIG_HEADERS"
16171
16172
16173 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16174 shift
16175 for ac_tag
16176 do
16177 case $ac_tag in
16178 :[FHLC]) ac_mode=$ac_tag; continue;;
16179 esac
16180 case $ac_mode$ac_tag in
16181 :[FHL]*:*);;
16182 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16183 :[FH]-) ac_tag=-:-;;
16184 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16185 esac
16186 ac_save_IFS=$IFS
16187 IFS=:
16188 set x $ac_tag
16189 IFS=$ac_save_IFS
16190 shift
16191 ac_file=$1
16192 shift
16193
16194 case $ac_mode in
16195 :L) ac_source=$1;;
16196 :[FH])
16197 ac_file_inputs=
16198 for ac_f
16199 do
16200 case $ac_f in
16201 -) ac_f="$ac_tmp/stdin";;
16202 *) # Look for the file first in the build tree, then in the source tree
16203 # (if the path is not absolute). The absolute path cannot be DOS-style,
16204 # because $ac_f cannot contain `:'.
16205 test -f "$ac_f" ||
16206 case $ac_f in
16207 [\\/$]*) false;;
16208 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16209 esac ||
16210 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16211 esac
16212 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16213 as_fn_append ac_file_inputs " '$ac_f'"
16214 done
16215
16216 # Let's still pretend it is `configure' which instantiates (i.e., don't
16217 # use $as_me), people would be surprised to read:
16218 # /* config.h. Generated by config.status. */
16219 configure_input='Generated from '`
16220 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16221 `' by configure.'
16222 if test x"$ac_file" != x-; then
16223 configure_input="$ac_file. $configure_input"
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16225 $as_echo "$as_me: creating $ac_file" >&6;}
16226 fi
16227 # Neutralize special characters interpreted by sed in replacement strings.
16228 case $configure_input in #(
16229 *\&* | *\|* | *\\* )
16230 ac_sed_conf_input=`$as_echo "$configure_input" |
16231 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16232 *) ac_sed_conf_input=$configure_input;;
16233 esac
16234
16235 case $ac_tag in
16236 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16238 esac
16239 ;;
16240 esac
16241
16242 ac_dir=`$as_dirname -- "$ac_file" ||
16243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16244 X"$ac_file" : 'X\(//\)[^/]' \| \
16245 X"$ac_file" : 'X\(//\)$' \| \
16246 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16247 $as_echo X"$ac_file" |
16248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16249 s//\1/
16250 q
16251 }
16252 /^X\(\/\/\)[^/].*/{
16253 s//\1/
16254 q
16255 }
16256 /^X\(\/\/\)$/{
16257 s//\1/
16258 q
16259 }
16260 /^X\(\/\).*/{
16261 s//\1/
16262 q
16263 }
16264 s/.*/./; q'`
16265 as_dir="$ac_dir"; as_fn_mkdir_p
16266 ac_builddir=.
16267
16268 case "$ac_dir" in
16269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16270 *)
16271 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16272 # A ".." for each directory in $ac_dir_suffix.
16273 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16274 case $ac_top_builddir_sub in
16275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16277 esac ;;
16278 esac
16279 ac_abs_top_builddir=$ac_pwd
16280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16281 # for backward compatibility:
16282 ac_top_builddir=$ac_top_build_prefix
16283
16284 case $srcdir in
16285 .) # We are building in place.
16286 ac_srcdir=.
16287 ac_top_srcdir=$ac_top_builddir_sub
16288 ac_abs_top_srcdir=$ac_pwd ;;
16289 [\\/]* | ?:[\\/]* ) # Absolute name.
16290 ac_srcdir=$srcdir$ac_dir_suffix;
16291 ac_top_srcdir=$srcdir
16292 ac_abs_top_srcdir=$srcdir ;;
16293 *) # Relative name.
16294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16295 ac_top_srcdir=$ac_top_build_prefix$srcdir
16296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16297 esac
16298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16299
16300
16301 case $ac_mode in
16302 :F)
16303 #
16304 # CONFIG_FILE
16305 #
16306
16307 case $INSTALL in
16308 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16309 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16310 esac
16311 ac_MKDIR_P=$MKDIR_P
16312 case $MKDIR_P in
16313 [\\/$]* | ?:[\\/]* ) ;;
16314 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16315 esac
16316 _ACEOF
16317
16318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16319 # If the template does not know about datarootdir, expand it.
16320 # FIXME: This hack should be removed a few years after 2.60.
16321 ac_datarootdir_hack=; ac_datarootdir_seen=
16322 ac_sed_dataroot='
16323 /datarootdir/ {
16324 p
16325 q
16326 }
16327 /@datadir@/p
16328 /@docdir@/p
16329 /@infodir@/p
16330 /@localedir@/p
16331 /@mandir@/p'
16332 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16333 *datarootdir*) ac_datarootdir_seen=yes;;
16334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16336 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16337 _ACEOF
16338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16339 ac_datarootdir_hack='
16340 s&@datadir@&$datadir&g
16341 s&@docdir@&$docdir&g
16342 s&@infodir@&$infodir&g
16343 s&@localedir@&$localedir&g
16344 s&@mandir@&$mandir&g
16345 s&\\\${datarootdir}&$datarootdir&g' ;;
16346 esac
16347 _ACEOF
16348
16349 # Neutralize VPATH when `$srcdir' = `.'.
16350 # Shell code in configure.ac might set extrasub.
16351 # FIXME: do we really want to maintain this feature?
16352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 ac_sed_extra="$ac_vpsub
16354 $extrasub
16355 _ACEOF
16356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16357 :t
16358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16359 s|@configure_input@|$ac_sed_conf_input|;t t
16360 s&@top_builddir@&$ac_top_builddir_sub&;t t
16361 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16362 s&@srcdir@&$ac_srcdir&;t t
16363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16364 s&@top_srcdir@&$ac_top_srcdir&;t t
16365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16366 s&@builddir@&$ac_builddir&;t t
16367 s&@abs_builddir@&$ac_abs_builddir&;t t
16368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16369 s&@INSTALL@&$ac_INSTALL&;t t
16370 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16371 $ac_datarootdir_hack
16372 "
16373 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16375
16376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16379 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16381 which seems to be undefined. Please make sure it is defined" >&5
16382 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16383 which seems to be undefined. Please make sure it is defined" >&2;}
16384
16385 rm -f "$ac_tmp/stdin"
16386 case $ac_file in
16387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16389 esac \
16390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16391 ;;
16392 :H)
16393 #
16394 # CONFIG_HEADER
16395 #
16396 if test x"$ac_file" != x-; then
16397 {
16398 $as_echo "/* $configure_input */" \
16399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16400 } >"$ac_tmp/config.h" \
16401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16402 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16404 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16405 else
16406 rm -f "$ac_file"
16407 mv "$ac_tmp/config.h" "$ac_file" \
16408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16409 fi
16410 else
16411 $as_echo "/* $configure_input */" \
16412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16413 || as_fn_error $? "could not create -" "$LINENO" 5
16414 fi
16415 # Compute "$ac_file"'s index in $config_headers.
16416 _am_arg="$ac_file"
16417 _am_stamp_count=1
16418 for _am_header in $config_headers :; do
16419 case $_am_header in
16420 $_am_arg | $_am_arg:* )
16421 break ;;
16422 * )
16423 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16424 esac
16425 done
16426 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16427 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16428 X"$_am_arg" : 'X\(//\)[^/]' \| \
16429 X"$_am_arg" : 'X\(//\)$' \| \
16430 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16431 $as_echo X"$_am_arg" |
16432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16433 s//\1/
16434 q
16435 }
16436 /^X\(\/\/\)[^/].*/{
16437 s//\1/
16438 q
16439 }
16440 /^X\(\/\/\)$/{
16441 s//\1/
16442 q
16443 }
16444 /^X\(\/\).*/{
16445 s//\1/
16446 q
16447 }
16448 s/.*/./; q'`/stamp-h$_am_stamp_count
16449 ;;
16450
16451 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16452 $as_echo "$as_me: executing $ac_file commands" >&6;}
16453 ;;
16454 esac
16455
16456
16457 case $ac_file$ac_mode in
16458 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16459 # Older Autoconf quotes --file arguments for eval, but not when files
16460 # are listed without --file. Let's play safe and only enable the eval
16461 # if we detect the quoting.
16462 case $CONFIG_FILES in
16463 *\'*) eval set x "$CONFIG_FILES" ;;
16464 *) set x $CONFIG_FILES ;;
16465 esac
16466 shift
16467 for mf
16468 do
16469 # Strip MF so we end up with the name of the file.
16470 mf=`echo "$mf" | sed -e 's/:.*$//'`
16471 # Check whether this is an Automake generated Makefile or not.
16472 # We used to match only the files named 'Makefile.in', but
16473 # some people rename them; so instead we look at the file content.
16474 # Grep'ing the first line is not enough: some people post-process
16475 # each Makefile.in and add a new line on top of each file to say so.
16476 # Grep'ing the whole file is not good either: AIX grep has a line
16477 # limit of 2048, but all sed's we know have understand at least 4000.
16478 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16479 dirpart=`$as_dirname -- "$mf" ||
16480 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16481 X"$mf" : 'X\(//\)[^/]' \| \
16482 X"$mf" : 'X\(//\)$' \| \
16483 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16484 $as_echo X"$mf" |
16485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16486 s//\1/
16487 q
16488 }
16489 /^X\(\/\/\)[^/].*/{
16490 s//\1/
16491 q
16492 }
16493 /^X\(\/\/\)$/{
16494 s//\1/
16495 q
16496 }
16497 /^X\(\/\).*/{
16498 s//\1/
16499 q
16500 }
16501 s/.*/./; q'`
16502 else
16503 continue
16504 fi
16505 # Extract the definition of DEPDIR, am__include, and am__quote
16506 # from the Makefile without running 'make'.
16507 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16508 test -z "$DEPDIR" && continue
16509 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16510 test -z "$am__include" && continue
16511 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16512 # Find all dependency output files, they are included files with
16513 # $(DEPDIR) in their names. We invoke sed twice because it is the
16514 # simplest approach to changing $(DEPDIR) to its actual value in the
16515 # expansion.
16516 for file in `sed -n "
16517 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16518 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16519 # Make sure the directory exists.
16520 test -f "$dirpart/$file" && continue
16521 fdir=`$as_dirname -- "$file" ||
16522 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16523 X"$file" : 'X\(//\)[^/]' \| \
16524 X"$file" : 'X\(//\)$' \| \
16525 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16526 $as_echo X"$file" |
16527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16528 s//\1/
16529 q
16530 }
16531 /^X\(\/\/\)[^/].*/{
16532 s//\1/
16533 q
16534 }
16535 /^X\(\/\/\)$/{
16536 s//\1/
16537 q
16538 }
16539 /^X\(\/\).*/{
16540 s//\1/
16541 q
16542 }
16543 s/.*/./; q'`
16544 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16545 # echo "creating $dirpart/$file"
16546 echo '# dummy' > "$dirpart/$file"
16547 done
16548 done
16549 }
16550 ;;
16551 "libtool":C)
16552
16553 # See if we are running on zsh, and set the options that allow our
16554 # commands through without removal of \ escapes.
16555 if test -n "${ZSH_VERSION+set}"; then
16556 setopt NO_GLOB_SUBST
16557 fi
16558
16559 cfgfile=${ofile}T
16560 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16561 $RM "$cfgfile"
16562
16563 cat <<_LT_EOF >> "$cfgfile"
16564 #! $SHELL
16565 # Generated automatically by $as_me ($PACKAGE) $VERSION
16566 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16567 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16568
16569 # Provide generalized library-building support services.
16570 # Written by Gordon Matzigkeit, 1996
16571
16572 # Copyright (C) 2014 Free Software Foundation, Inc.
16573 # This is free software; see the source for copying conditions. There is NO
16574 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16575
16576 # GNU Libtool is free software; you can redistribute it and/or modify
16577 # it under the terms of the GNU General Public License as published by
16578 # the Free Software Foundation; either version 2 of of the License, or
16579 # (at your option) any later version.
16580 #
16581 # As a special exception to the GNU General Public License, if you
16582 # distribute this file as part of a program or library that is built
16583 # using GNU Libtool, you may include this file under the same
16584 # distribution terms that you use for the rest of that program.
16585 #
16586 # GNU Libtool is distributed in the hope that it will be useful, but
16587 # WITHOUT ANY WARRANTY; without even the implied warranty of
16588 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16589 # GNU General Public License for more details.
16590 #
16591 # You should have received a copy of the GNU General Public License
16592 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16593
16594
16595 # The names of the tagged configurations supported by this script.
16596 available_tags=''
16597
16598 # Configured defaults for sys_lib_dlsearch_path munging.
16599 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16600
16601 # ### BEGIN LIBTOOL CONFIG
16602
16603 # Which release of libtool.m4 was used?
16604 macro_version=$macro_version
16605 macro_revision=$macro_revision
16606
16607 # Whether or not to build shared libraries.
16608 build_libtool_libs=$enable_shared
16609
16610 # Whether or not to build static libraries.
16611 build_old_libs=$enable_static
16612
16613 # What type of objects to build.
16614 pic_mode=$pic_mode
16615
16616 # Whether or not to optimize for fast installation.
16617 fast_install=$enable_fast_install
16618
16619 # Shared archive member basename,for filename based shared library versioning on AIX.
16620 shared_archive_member_spec=$shared_archive_member_spec
16621
16622 # Shell to use when invoking shell scripts.
16623 SHELL=$lt_SHELL
16624
16625 # An echo program that protects backslashes.
16626 ECHO=$lt_ECHO
16627
16628 # The PATH separator for the build system.
16629 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16630
16631 # The host system.
16632 host_alias=$host_alias
16633 host=$host
16634 host_os=$host_os
16635
16636 # The build system.
16637 build_alias=$build_alias
16638 build=$build
16639 build_os=$build_os
16640
16641 # A sed program that does not truncate output.
16642 SED=$lt_SED
16643
16644 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16645 Xsed="\$SED -e 1s/^X//"
16646
16647 # A grep program that handles long lines.
16648 GREP=$lt_GREP
16649
16650 # An ERE matcher.
16651 EGREP=$lt_EGREP
16652
16653 # A literal string matcher.
16654 FGREP=$lt_FGREP
16655
16656 # A BSD- or MS-compatible name lister.
16657 NM=$lt_NM
16658
16659 # Whether we need soft or hard links.
16660 LN_S=$lt_LN_S
16661
16662 # What is the maximum length of a command?
16663 max_cmd_len=$max_cmd_len
16664
16665 # Object file suffix (normally "o").
16666 objext=$ac_objext
16667
16668 # Executable file suffix (normally "").
16669 exeext=$exeext
16670
16671 # whether the shell understands "unset".
16672 lt_unset=$lt_unset
16673
16674 # turn spaces into newlines.
16675 SP2NL=$lt_lt_SP2NL
16676
16677 # turn newlines into spaces.
16678 NL2SP=$lt_lt_NL2SP
16679
16680 # convert \$build file names to \$host format.
16681 to_host_file_cmd=$lt_cv_to_host_file_cmd
16682
16683 # convert \$build files to toolchain format.
16684 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16685
16686 # An object symbol dumper.
16687 OBJDUMP=$lt_OBJDUMP
16688
16689 # Method to check whether dependent libraries are shared objects.
16690 deplibs_check_method=$lt_deplibs_check_method
16691
16692 # Command to use when deplibs_check_method = "file_magic".
16693 file_magic_cmd=$lt_file_magic_cmd
16694
16695 # How to find potential files when deplibs_check_method = "file_magic".
16696 file_magic_glob=$lt_file_magic_glob
16697
16698 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16699 want_nocaseglob=$lt_want_nocaseglob
16700
16701 # DLL creation program.
16702 DLLTOOL=$lt_DLLTOOL
16703
16704 # Command to associate shared and link libraries.
16705 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16706
16707 # The archiver.
16708 AR=$lt_AR
16709
16710 # Flags to create an archive.
16711 AR_FLAGS=$lt_AR_FLAGS
16712
16713 # How to feed a file listing to the archiver.
16714 archiver_list_spec=$lt_archiver_list_spec
16715
16716 # A symbol stripping program.
16717 STRIP=$lt_STRIP
16718
16719 # Commands used to install an old-style archive.
16720 RANLIB=$lt_RANLIB
16721 old_postinstall_cmds=$lt_old_postinstall_cmds
16722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16723
16724 # Whether to use a lock for old archive extraction.
16725 lock_old_archive_extraction=$lock_old_archive_extraction
16726
16727 # A C compiler.
16728 LTCC=$lt_CC
16729
16730 # LTCC compiler flags.
16731 LTCFLAGS=$lt_CFLAGS
16732
16733 # Take the output of nm and produce a listing of raw symbols and C names.
16734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16735
16736 # Transform the output of nm in a proper C declaration.
16737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16738
16739 # Transform the output of nm into a list of symbols to manually relocate.
16740 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16741
16742 # Transform the output of nm in a C name address pair.
16743 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16744
16745 # Transform the output of nm in a C name address pair when lib prefix is needed.
16746 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16747
16748 # The name lister interface.
16749 nm_interface=$lt_lt_cv_nm_interface
16750
16751 # Specify filename containing input files for \$NM.
16752 nm_file_list_spec=$lt_nm_file_list_spec
16753
16754 # The root where to search for dependent libraries,and where our libraries should be installed.
16755 lt_sysroot=$lt_sysroot
16756
16757 # Command to truncate a binary pipe.
16758 lt_truncate_bin=$lt_lt_cv_truncate_bin
16759
16760 # The name of the directory that contains temporary libtool files.
16761 objdir=$objdir
16762
16763 # Used to examine libraries when file_magic_cmd begins with "file".
16764 MAGIC_CMD=$MAGIC_CMD
16765
16766 # Must we lock files when doing compilation?
16767 need_locks=$lt_need_locks
16768
16769 # Manifest tool.
16770 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16771
16772 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16773 DSYMUTIL=$lt_DSYMUTIL
16774
16775 # Tool to change global to local symbols on Mac OS X.
16776 NMEDIT=$lt_NMEDIT
16777
16778 # Tool to manipulate fat objects and archives on Mac OS X.
16779 LIPO=$lt_LIPO
16780
16781 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16782 OTOOL=$lt_OTOOL
16783
16784 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16785 OTOOL64=$lt_OTOOL64
16786
16787 # Old archive suffix (normally "a").
16788 libext=$libext
16789
16790 # Shared library suffix (normally ".so").
16791 shrext_cmds=$lt_shrext_cmds
16792
16793 # The commands to extract the exported symbol list from a shared archive.
16794 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16795
16796 # Variables whose values should be saved in libtool wrapper scripts and
16797 # restored at link time.
16798 variables_saved_for_relink=$lt_variables_saved_for_relink
16799
16800 # Do we need the "lib" prefix for modules?
16801 need_lib_prefix=$need_lib_prefix
16802
16803 # Do we need a version for libraries?
16804 need_version=$need_version
16805
16806 # Library versioning type.
16807 version_type=$version_type
16808
16809 # Shared library runtime path variable.
16810 runpath_var=$runpath_var
16811
16812 # Shared library path variable.
16813 shlibpath_var=$shlibpath_var
16814
16815 # Is shlibpath searched before the hard-coded library search path?
16816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16817
16818 # Format of library name prefix.
16819 libname_spec=$lt_libname_spec
16820
16821 # List of archive names. First name is the real one, the rest are links.
16822 # The last name is the one that the linker finds with -lNAME
16823 library_names_spec=$lt_library_names_spec
16824
16825 # The coded name of the library, if different from the real name.
16826 soname_spec=$lt_soname_spec
16827
16828 # Permission mode override for installation of shared libraries.
16829 install_override_mode=$lt_install_override_mode
16830
16831 # Command to use after installation of a shared archive.
16832 postinstall_cmds=$lt_postinstall_cmds
16833
16834 # Command to use after uninstallation of a shared archive.
16835 postuninstall_cmds=$lt_postuninstall_cmds
16836
16837 # Commands used to finish a libtool library installation in a directory.
16838 finish_cmds=$lt_finish_cmds
16839
16840 # As "finish_cmds", except a single script fragment to be evaled but
16841 # not shown.
16842 finish_eval=$lt_finish_eval
16843
16844 # Whether we should hardcode library paths into libraries.
16845 hardcode_into_libs=$hardcode_into_libs
16846
16847 # Compile-time system search path for libraries.
16848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16849
16850 # Detected run-time system search path for libraries.
16851 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16852
16853 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16854 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16855
16856 # Whether dlopen is supported.
16857 dlopen_support=$enable_dlopen
16858
16859 # Whether dlopen of programs is supported.
16860 dlopen_self=$enable_dlopen_self
16861
16862 # Whether dlopen of statically linked programs is supported.
16863 dlopen_self_static=$enable_dlopen_self_static
16864
16865 # Commands to strip libraries.
16866 old_striplib=$lt_old_striplib
16867 striplib=$lt_striplib
16868
16869
16870 # The linker used to build libraries.
16871 LD=$lt_LD
16872
16873 # How to create reloadable object files.
16874 reload_flag=$lt_reload_flag
16875 reload_cmds=$lt_reload_cmds
16876
16877 # Commands used to build an old-style archive.
16878 old_archive_cmds=$lt_old_archive_cmds
16879
16880 # A language specific compiler.
16881 CC=$lt_compiler
16882
16883 # Is the compiler the GNU compiler?
16884 with_gcc=$GCC
16885
16886 # Compiler flag to turn off builtin functions.
16887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16888
16889 # Additional compiler flags for building library objects.
16890 pic_flag=$lt_lt_prog_compiler_pic
16891
16892 # How to pass a linker flag through the compiler.
16893 wl=$lt_lt_prog_compiler_wl
16894
16895 # Compiler flag to prevent dynamic linking.
16896 link_static_flag=$lt_lt_prog_compiler_static
16897
16898 # Does compiler simultaneously support -c and -o options?
16899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16900
16901 # Whether or not to add -lc for building shared libraries.
16902 build_libtool_need_lc=$archive_cmds_need_lc
16903
16904 # Whether or not to disallow shared libs when runtime libs are static.
16905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16906
16907 # Compiler flag to allow reflexive dlopens.
16908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16909
16910 # Compiler flag to generate shared objects directly from archives.
16911 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16912
16913 # Whether the compiler copes with passing no objects directly.
16914 compiler_needs_object=$lt_compiler_needs_object
16915
16916 # Create an old-style archive from a shared archive.
16917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16918
16919 # Create a temporary old-style archive to link instead of a shared archive.
16920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16921
16922 # Commands used to build a shared archive.
16923 archive_cmds=$lt_archive_cmds
16924 archive_expsym_cmds=$lt_archive_expsym_cmds
16925
16926 # Commands used to build a loadable module if different from building
16927 # a shared archive.
16928 module_cmds=$lt_module_cmds
16929 module_expsym_cmds=$lt_module_expsym_cmds
16930
16931 # Whether we are building with GNU ld or not.
16932 with_gnu_ld=$lt_with_gnu_ld
16933
16934 # Flag that allows shared libraries with undefined symbols to be built.
16935 allow_undefined_flag=$lt_allow_undefined_flag
16936
16937 # Flag that enforces no undefined symbols.
16938 no_undefined_flag=$lt_no_undefined_flag
16939
16940 # Flag to hardcode \$libdir into a binary during linking.
16941 # This must work even if \$libdir does not exist
16942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16943
16944 # Whether we need a single "-rpath" flag with a separated argument.
16945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16946
16947 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16948 # DIR into the resulting binary.
16949 hardcode_direct=$hardcode_direct
16950
16951 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16952 # DIR into the resulting binary and the resulting library dependency is
16953 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16954 # library is relocated.
16955 hardcode_direct_absolute=$hardcode_direct_absolute
16956
16957 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16958 # into the resulting binary.
16959 hardcode_minus_L=$hardcode_minus_L
16960
16961 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16962 # into the resulting binary.
16963 hardcode_shlibpath_var=$hardcode_shlibpath_var
16964
16965 # Set to "yes" if building a shared library automatically hardcodes DIR
16966 # into the library and all subsequent libraries and executables linked
16967 # against it.
16968 hardcode_automatic=$hardcode_automatic
16969
16970 # Set to yes if linker adds runtime paths of dependent libraries
16971 # to runtime path list.
16972 inherit_rpath=$inherit_rpath
16973
16974 # Whether libtool must link a program against all its dependency libraries.
16975 link_all_deplibs=$link_all_deplibs
16976
16977 # Set to "yes" if exported symbols are required.
16978 always_export_symbols=$always_export_symbols
16979
16980 # The commands to list exported symbols.
16981 export_symbols_cmds=$lt_export_symbols_cmds
16982
16983 # Symbols that should not be listed in the preloaded symbols.
16984 exclude_expsyms=$lt_exclude_expsyms
16985
16986 # Symbols that must always be exported.
16987 include_expsyms=$lt_include_expsyms
16988
16989 # Commands necessary for linking programs (against libraries) with templates.
16990 prelink_cmds=$lt_prelink_cmds
16991
16992 # Commands necessary for finishing linking programs.
16993 postlink_cmds=$lt_postlink_cmds
16994
16995 # Specify filename containing input files.
16996 file_list_spec=$lt_file_list_spec
16997
16998 # How to hardcode a shared library path into an executable.
16999 hardcode_action=$hardcode_action
17000
17001 # ### END LIBTOOL CONFIG
17002
17003 _LT_EOF
17004
17005 cat <<'_LT_EOF' >> "$cfgfile"
17006
17007 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17008
17009 # func_munge_path_list VARIABLE PATH
17010 # -----------------------------------
17011 # VARIABLE is name of variable containing _space_ separated list of
17012 # directories to be munged by the contents of PATH, which is string
17013 # having a format:
17014 # "DIR[:DIR]:"
17015 # string "DIR[ DIR]" will be prepended to VARIABLE
17016 # ":DIR[:DIR]"
17017 # string "DIR[ DIR]" will be appended to VARIABLE
17018 # "DIRP[:DIRP]::[DIRA:]DIRA"
17019 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17020 # "DIRA[ DIRA]" will be appended to VARIABLE
17021 # "DIR[:DIR]"
17022 # VARIABLE will be replaced by "DIR[ DIR]"
17023 func_munge_path_list ()
17024 {
17025 case x$2 in
17026 x)
17027 ;;
17028 *:)
17029 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17030 ;;
17031 x:*)
17032 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17033 ;;
17034 *::*)
17035 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17036 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17037 ;;
17038 *)
17039 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17040 ;;
17041 esac
17042 }
17043
17044
17045 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17046 func_cc_basename ()
17047 {
17048 for cc_temp in $*""; do
17049 case $cc_temp in
17050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17052 \-*) ;;
17053 *) break;;
17054 esac
17055 done
17056 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17057 }
17058
17059
17060 # ### END FUNCTIONS SHARED WITH CONFIGURE
17061
17062 _LT_EOF
17063
17064 case $host_os in
17065 aix3*)
17066 cat <<\_LT_EOF >> "$cfgfile"
17067 # AIX sometimes has problems with the GCC collect2 program. For some
17068 # reason, if we set the COLLECT_NAMES environment variable, the problems
17069 # vanish in a puff of smoke.
17070 if test set != "${COLLECT_NAMES+set}"; then
17071 COLLECT_NAMES=
17072 export COLLECT_NAMES
17073 fi
17074 _LT_EOF
17075 ;;
17076 esac
17077
17078
17079 ltmain=$ac_aux_dir/ltmain.sh
17080
17081
17082 # We use sed instead of cat because bash on DJGPP gets confused if
17083 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17084 # text mode, it properly converts lines to CR/LF. This bash problem
17085 # is reportedly fixed, but why not run on old versions too?
17086 sed '$q' "$ltmain" >> "$cfgfile" \
17087 || (rm -f "$cfgfile"; exit 1)
17088
17089 mv -f "$cfgfile" "$ofile" ||
17090 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17091 chmod +x "$ofile"
17092
17093 ;;
17094
17095 esac
17096 done # for ac_tag
17097
17098
17099 as_fn_exit 0
17100 _ACEOF
17101 ac_clean_files=$ac_clean_files_save
17102
17103 test $ac_write_fail = 0 ||
17104 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17105
17106
17107 # configure is writing to config.log, and then calls config.status.
17108 # config.status does its own redirection, appending to config.log.
17109 # Unfortunately, on DOS this fails, as config.log is still kept open
17110 # by configure, so config.status won't be able to write to it; its
17111 # output is simply discarded. So we exec the FD to /dev/null,
17112 # effectively closing config.log, so it can be properly (re)opened and
17113 # appended to by config.status. When coming back to configure, we
17114 # need to make the FD available again.
17115 if test "$no_create" != yes; then
17116 ac_cs_success=:
17117 ac_config_status_args=
17118 test "$silent" = yes &&
17119 ac_config_status_args="$ac_config_status_args --quiet"
17120 exec 5>/dev/null
17121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17122 exec 5>>config.log
17123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17124 # would make configure fail if this is the last instruction.
17125 $ac_cs_success || as_fn_exit 1
17126 fi
17127 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17129 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17130 fi
17131
17132
17133
17134 echo "###############################################################################"
17135 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
17136 echo
17137 echo "HOPM will be installed in ${prefix}. To change this, run:"
17138 echo " ./configure --prefix=DIRECTORY"
17139 echo "###############################################################################"

Properties

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