blob: c621f2c9786787eb4cb0b8196a109b60fa95f2f5 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkin04fbe622014-09-17 02:27:01 -07003# Generated by GNU Autoconf 2.69 for asn1c 0.9.28.
Lev Walkine7c4b962010-11-09 03:10:36 -08004#
5# Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00006#
Lev Walkinaef10c32014-01-14 01:47:25 -08007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Lev Walkinf15320b2004-06-03 03:38:44 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Lev Walkinaef10c32014-01-14 01:47:25 -080013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +000016
Lev Walkin4c776e52010-11-08 02:07:31 -080017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinaef10c32014-01-14 01:47:25 -080019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000020 emulate sh
21 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -070022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkinf15320b2004-06-03 03:38:44 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000025 setopt NO_GLOB_SUBST
26else
Lev Walkinaef10c32014-01-14 01:47:25 -080027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -080032esac
Lev Walkinf15320b2004-06-03 03:38:44 +000033fi
Lev Walkin4c776e52010-11-08 02:07:31 -080034
35
Lev Walkinb3751942012-09-02 19:36:47 -070036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Lev Walkinaef10c32014-01-14 01:47:25 -080043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Lev Walkinb3751942012-09-02 19:36:47 -070050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
Lev Walkinaef10c32014-01-14 01:47:25 -080060 case $arg in #(
Lev Walkinb3751942012-09-02 19:36:47 -070061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
Lev Walkinf15320b2004-06-03 03:38:44 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Lev Walkinb3751942012-09-02 19:36:47 -070076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Lev Walkinf15320b2004-06-03 03:38:44 +000081fi
82
Lev Walkin27fd0b62007-08-27 23:57:45 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Lev Walkin27fd0b62007-08-27 23:57:45 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Lev Walkinaef10c32014-01-14 01:47:25 -080092as_myself=
93case $0 in #((
Lev Walkin27fd0b62007-08-27 23:57:45 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000096for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -0800100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Lev Walkin27fd0b62007-08-27 23:57:45 +0000102IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +0000103
Lev Walkin27fd0b62007-08-27 23:57:45 +0000104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Lev Walkinb3751942012-09-02 19:36:47 -0700112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -0800113 exit 1
Lev Walkin27fd0b62007-08-27 23:57:45 +0000114fi
115
Lev Walkinaef10c32014-01-14 01:47:25 -0800116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Lev Walkin27fd0b62007-08-27 23:57:45 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Lev Walkinb3751942012-09-02 19:36:47 -0700129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Lev Walkin27fd0b62007-08-27 23:57:45 +0000133
Lev Walkinaef10c32014-01-14 01:47:25 -0800134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and vlm@lionet.info
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
Lev Walkin27fd0b62007-08-27 23:57:45 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
Lev Walkinaef10c32014-01-14 01:47:25 -0800443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000448
Lev Walkin27fd0b62007-08-27 23:57:45 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -0700453$as_echo X/"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +0000454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
Lev Walkinaef10c32014-01-14 01:47:25 -0800468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
Lev Walkin27fd0b62007-08-27 23:57:45 +0000474
475
Lev Walkinaef10c32014-01-14 01:47:25 -0800476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Lev Walkin27fd0b62007-08-27 23:57:45 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +0000485 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +0000490 N
Lev Walkin27fd0b62007-08-27 23:57:45 +0000491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +0000493 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +0000494 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +0000495 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000496 chmod +x "$as_me.lineno" ||
Lev Walkinaef10c32014-01-14 01:47:25 -0800497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Lev Walkinf15320b2004-06-03 03:38:44 +0000498
Lev Walkinaef10c32014-01-14 01:47:25 -0800499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
Lev Walkinf15320b2004-06-03 03:38:44 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +0000507 # Exit status is that of the last command.
508 exit
509}
510
Lev Walkin27fd0b62007-08-27 23:57:45 +0000511ECHO_C= ECHO_N= ECHO_T=
Lev Walkinaef10c32014-01-14 01:47:25 -0800512case `echo -n x` in #(((((
Lev Walkin27fd0b62007-08-27 23:57:45 +0000513-n*)
Lev Walkinaef10c32014-01-14 01:47:25 -0800514 case `echo 'xy\c'` in
Lev Walkin27fd0b62007-08-27 23:57:45 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Lev Walkinaef10c32014-01-14 01:47:25 -0800516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000519 esac;;
520*)
521 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +0000522esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +0000525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
Lev Walkinb3751942012-09-02 19:36:47 -0700529 mkdir conf$$.dir 2>/dev/null
Lev Walkin27fd0b62007-08-27 23:57:45 +0000530fi
Lev Walkinb3751942012-09-02 19:36:47 -0700531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Lev Walkinaef10c32014-01-14 01:47:25 -0800537 # In both cases, we have to default to `cp -pR'.
Lev Walkinb3751942012-09-02 19:36:47 -0700538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinaef10c32014-01-14 01:47:25 -0800539 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -0700540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
Lev Walkinaef10c32014-01-14 01:47:25 -0800543 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -0700544 fi
Lev Walkinf15320b2004-06-03 03:38:44 +0000545else
Lev Walkinaef10c32014-01-14 01:47:25 -0800546 as_ln_s='cp -pR'
Lev Walkinf15320b2004-06-03 03:38:44 +0000547fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +0000550
551if mkdir -p . 2>/dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -0800552 as_mkdir_p='mkdir -p "$as_dir"'
Lev Walkinf15320b2004-06-03 03:38:44 +0000553else
Lev Walkin8e8b5482004-06-17 23:42:48 +0000554 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000555 as_mkdir_p=false
556fi
557
Lev Walkinaef10c32014-01-14 01:47:25 -0800558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Lev Walkinf15320b2004-06-03 03:38:44 +0000560
561# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000563
564# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000566
Lev Walkin8e8b5482004-06-17 23:42:48 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
Lev Walkin4c776e52010-11-08 02:07:31 -0800569
Lev Walkinaef10c32014-01-14 01:47:25 -0800570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
Lev Walkin27fd0b62007-08-27 23:57:45 +0000572
Lev Walkinf15320b2004-06-03 03:38:44 +0000573# Name of the host.
Lev Walkinaef10c32014-01-14 01:47:25 -0800574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Lev Walkinf15320b2004-06-03 03:38:44 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
Lev Walkinf15320b2004-06-03 03:38:44 +0000578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
Lev Walkin27fd0b62007-08-27 23:57:45 +0000582ac_clean_files=
Lev Walkinf15320b2004-06-03 03:38:44 +0000583ac_config_libobj_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000584LIBOBJS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000589
Lev Walkinf15320b2004-06-03 03:38:44 +0000590# Identity of this package.
Lev Walkine7c4b962010-11-09 03:10:36 -0800591PACKAGE_NAME='asn1c'
592PACKAGE_TARNAME='asn1c'
Lev Walkin04fbe622014-09-17 02:27:01 -0700593PACKAGE_VERSION='0.9.28'
594PACKAGE_STRING='asn1c 0.9.28'
Lev Walkine7c4b962010-11-09 03:10:36 -0800595PACKAGE_BUGREPORT='vlm@lionet.info'
Lev Walkinaef10c32014-01-14 01:47:25 -0800596PACKAGE_URL=''
Lev Walkinf15320b2004-06-03 03:38:44 +0000597
Lev Walkinf15320b2004-06-03 03:38:44 +0000598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
Lev Walkin4c776e52010-11-08 02:07:31 -0800601#ifdef HAVE_SYS_TYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000602# include <sys/types.h>
603#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800604#ifdef HAVE_SYS_STAT_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000605# include <sys/stat.h>
606#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800607#ifdef STDC_HEADERS
Lev Walkinf15320b2004-06-03 03:38:44 +0000608# include <stdlib.h>
609# include <stddef.h>
610#else
Lev Walkin4c776e52010-11-08 02:07:31 -0800611# ifdef HAVE_STDLIB_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000612# include <stdlib.h>
613# endif
614#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000617# include <memory.h>
618# endif
619# include <string.h>
620#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800621#ifdef HAVE_STRINGS_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000622# include <strings.h>
623#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800624#ifdef HAVE_INTTYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000625# include <inttypes.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +0000626#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800627#ifdef HAVE_STDINT_H
Lev Walkin27fd0b62007-08-27 23:57:45 +0000628# include <stdint.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000629#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800630#ifdef HAVE_UNISTD_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000631# include <unistd.h>
632#endif"
633
Lev Walkinb3751942012-09-02 19:36:47 -0700634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000637LIBOBJS
Lev Walkinb40ec412014-02-24 00:57:18 -0800638TEST_64BIT_FALSE
639TEST_64BIT_TRUE
Lev Walkinf84cc012014-01-14 02:12:24 -0800640TESTSUITE_CFLAGS
Lev Walkinea552152014-01-14 02:15:13 -0800641ADD_CFLAGS
Lev Walkinb3751942012-09-02 19:36:47 -0700642LEXLIB
643LEX_OUTPUT_ROOT
644LEX
645YFLAGS
646YACC
647CPP
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
Lev Walkinaef10c32014-01-14 01:47:25 -0800653MANIFEST_TOOL
Lev Walkinb3751942012-09-02 19:36:47 -0700654RANLIB
Lev Walkinaef10c32014-01-14 01:47:25 -0800655ac_ct_AR
Lev Walkinb3751942012-09-02 19:36:47 -0700656AR
Lev Walkinaef10c32014-01-14 01:47:25 -0800657DLLTOOL
658OBJDUMP
Lev Walkinb3751942012-09-02 19:36:47 -0700659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665EGREP
666GREP
667SED
668am__fastdepCC_FALSE
669am__fastdepCC_TRUE
670CCDEPMODE
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__quote
675am__include
676DEPDIR
677OBJEXT
678EXEEXT
679ac_ct_CC
680CPPFLAGS
681LDFLAGS
682CFLAGS
683CC
684host_os
685host_vendor
686host_cpu
687host
688build_os
689build_vendor
690build_cpu
691build
692LIBTOOL
Lev Walkine0d321a2014-09-11 01:28:57 -0700693MAINT
694MAINTAINER_MODE_FALSE
695MAINTAINER_MODE_TRUE
Lev Walkinb3751942012-09-02 19:36:47 -0700696am__untar
697am__tar
698AMTAR
699am__leading_dot
700SET_MAKE
701AWK
702mkdir_p
703MKDIR_P
704INSTALL_STRIP_PROGRAM
705STRIP
706install_sh
707MAKEINFO
708AUTOHEADER
709AUTOMAKE
710AUTOCONF
711ACLOCAL
712VERSION
713PACKAGE
714CYGPATH_W
715am__isrc
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
Lev Walkinaef10c32014-01-14 01:47:25 -0800749PACKAGE_URL
Lev Walkinb3751942012-09-02 19:36:47 -0700750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
Lev Walkinf15320b2004-06-03 03:38:44 +0000757ac_subst_files=''
Lev Walkinb3751942012-09-02 19:36:47 -0700758ac_user_opts='
759enable_option_checking
Lev Walkine0d321a2014-09-11 01:28:57 -0700760enable_maintainer_mode
Lev Walkinb3751942012-09-02 19:36:47 -0700761enable_shared
762enable_static
763with_pic
764enable_fast_install
765enable_dependency_tracking
766with_gnu_ld
Lev Walkinaef10c32014-01-14 01:47:25 -0800767with_sysroot
Lev Walkinb3751942012-09-02 19:36:47 -0700768enable_libtool_lock
769enable_Werror
Lev Walkin58ecc7b2014-09-17 00:32:03 -0700770enable_ASN_DEBUG
Lev Walkinb3751942012-09-02 19:36:47 -0700771'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000772 ac_precious_vars='build_alias
773host_alias
774target_alias
775CC
776CFLAGS
777LDFLAGS
Lev Walkin4c776e52010-11-08 02:07:31 -0800778LIBS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000779CPPFLAGS
780CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000781YACC
782YFLAGS'
783
Lev Walkinf15320b2004-06-03 03:38:44 +0000784
785# Initialize some variables set by options.
786ac_init_help=
787ac_init_version=false
Lev Walkinb3751942012-09-02 19:36:47 -0700788ac_unrecognized_opts=
789ac_unrecognized_sep=
Lev Walkinf15320b2004-06-03 03:38:44 +0000790# The variables have the same names as the options, with
791# dashes changed to underlines.
792cache_file=/dev/null
793exec_prefix=NONE
794no_create=
795no_recursion=
796prefix=NONE
797program_prefix=NONE
798program_suffix=NONE
799program_transform_name=s,x,x,
800silent=
801site=
802srcdir=
803verbose=
804x_includes=NONE
805x_libraries=NONE
806
807# Installation directory options.
808# These are left unexpanded so users can "make install exec_prefix=/foo"
809# and all the variables that are supposed to be based on exec_prefix
810# by default will actually change.
811# Use braces instead of parens because sh, perl, etc. also accept them.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000812# (The list follows the same order as the GNU Coding Standards.)
Lev Walkinf15320b2004-06-03 03:38:44 +0000813bindir='${exec_prefix}/bin'
814sbindir='${exec_prefix}/sbin'
815libexecdir='${exec_prefix}/libexec'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000816datarootdir='${prefix}/share'
817datadir='${datarootdir}'
Lev Walkinf15320b2004-06-03 03:38:44 +0000818sysconfdir='${prefix}/etc'
819sharedstatedir='${prefix}/com'
820localstatedir='${prefix}/var'
Lev Walkinf15320b2004-06-03 03:38:44 +0000821includedir='${prefix}/include'
822oldincludedir='/usr/include'
Lev Walkine7c4b962010-11-09 03:10:36 -0800823docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000824infodir='${datarootdir}/info'
825htmldir='${docdir}'
826dvidir='${docdir}'
827pdfdir='${docdir}'
828psdir='${docdir}'
829libdir='${exec_prefix}/lib'
830localedir='${datarootdir}/locale'
831mandir='${datarootdir}/man'
Lev Walkinf15320b2004-06-03 03:38:44 +0000832
833ac_prev=
Lev Walkin27fd0b62007-08-27 23:57:45 +0000834ac_dashdash=
Lev Walkinf15320b2004-06-03 03:38:44 +0000835for ac_option
836do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000839 eval $ac_prev=\$ac_option
Lev Walkinf15320b2004-06-03 03:38:44 +0000840 ac_prev=
841 continue
842 fi
843
Lev Walkin27fd0b62007-08-27 23:57:45 +0000844 case $ac_option in
Lev Walkinaef10c32014-01-14 01:47:25 -0800845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000848 esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
Lev Walkin27fd0b62007-08-27 23:57:45 +0000852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
Lev Walkin27fd0b62007-08-27 23:57:45 +0000876 -datadir | --datadir | --datadi | --datad)
Lev Walkinf15320b2004-06-03 03:38:44 +0000877 ac_prev=datadir ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000879 datadir=$ac_optarg ;;
880
Lev Walkin27fd0b62007-08-27 23:57:45 +0000881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
Lev Walkinf15320b2004-06-03 03:38:44 +0000888 -disable-* | --disable-*)
Lev Walkinb3751942012-09-02 19:36:47 -0700889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +0000890 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -0700891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -0800892 as_fn_error $? "invalid feature name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -0700893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897"enable_$ac_useropt"
898"*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000913
914 -enable-* | --enable-*)
Lev Walkinb3751942012-09-02 19:36:47 -0700915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +0000916 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -0700917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -0800918 as_fn_error $? "invalid feature name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -0700919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
Lev Walkin27fd0b62007-08-27 23:57:45 +0000955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
Lev Walkinf15320b2004-06-03 03:38:44 +0000961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
Lev Walkin27fd0b62007-08-27 23:57:45 +0000985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
Lev Walkinf15320b2004-06-03 03:38:44 +0000990 -localstatedir | --localstatedir | --localstatedi | --localstated \
Lev Walkin27fd0b62007-08-27 23:57:45 +0000991 | --localstate | --localstat | --localsta | --localst | --locals)
Lev Walkinf15320b2004-06-03 03:38:44 +0000992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Lev Walkin27fd0b62007-08-27 23:57:45 +0000994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
Lev Walkin27fd0b62007-08-27 23:57:45 +00001059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
Lev Walkinf15320b2004-06-03 03:38:44 +00001069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
1077 sbindir=$ac_optarg ;;
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
1088 sharedstatedir=$ac_optarg ;;
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
1093 site=$ac_optarg ;;
1094
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir=$ac_optarg ;;
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir=$ac_optarg ;;
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev=target_alias ;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias=$ac_optarg ;;
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
1117
1118 -with-* | --with-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001120 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -08001122 as_fn_error $? "invalid package name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -07001123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127"with_$ac_useropt"
1128"*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval with_$ac_useropt=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001133
1134 -without-* | --without-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001136 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -08001138 as_fn_error $? "invalid package name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -07001139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143"with_$ac_useropt"
1144"*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1167
Lev Walkinaef10c32014-01-14 01:47:25 -08001168 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1169Try \`$0 --help' for more information"
Lev Walkinf15320b2004-06-03 03:38:44 +00001170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
Lev Walkinaef10c32014-01-14 01:47:25 -08001175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1178 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001179 eval $ac_envvar=\$ac_optarg
Lev Walkinf15320b2004-06-03 03:38:44 +00001180 export $ac_envvar ;;
1181
1182 *)
1183 # FIXME: should be removed in autoconf 3.0.
Lev Walkinb3751942012-09-02 19:36:47 -07001184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinb3751942012-09-02 19:36:47 -07001186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -08001187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Lev Walkinf15320b2004-06-03 03:38:44 +00001188 ;;
1189
1190 esac
1191done
1192
1193if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -08001195 as_fn_error $? "missing argument to $ac_option"
Lev Walkinf15320b2004-06-03 03:38:44 +00001196fi
1197
Lev Walkinb3751942012-09-02 19:36:47 -07001198if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08001201 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Lev Walkinb3751942012-09-02 19:36:47 -07001202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 esac
1204fi
1205
1206# Check all directory arguments for consistency.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +00001211do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001212 eval ac_val=\$$ac_var
Lev Walkinb3751942012-09-02 19:36:47 -07001213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
Lev Walkinf15320b2004-06-03 03:38:44 +00001220 case $ac_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001223 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08001224 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Lev Walkinf15320b2004-06-03 03:38:44 +00001225done
1226
1227# There might be people who depend on the old broken behavior: `$host'
1228# used to hold the argument of --host etc.
1229# FIXME: To remove some day.
1230build=$build_alias
1231host=$host_alias
1232target=$target_alias
1233
1234# FIXME: To remove some day.
1235if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
Lev Walkinf15320b2004-06-03 03:38:44 +00001238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241fi
1242
1243ac_tool_prefix=
1244test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246test "$silent" = yes && exec 6>/dev/null
1247
1248
Lev Walkin27fd0b62007-08-27 23:57:45 +00001249ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250ac_ls_di=`ls -di .` &&
1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08001252 as_fn_error $? "working directory cannot be determined"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001253test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Lev Walkinaef10c32014-01-14 01:47:25 -08001254 as_fn_error $? "pwd does not report name of working directory"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001255
1256
Lev Walkinf15320b2004-06-03 03:38:44 +00001257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00001260 # Try the directory containing this script, then the parent directory.
Lev Walkinb3751942012-09-02 19:36:47 -07001261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266$as_echo X"$as_myself" |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001284 srcdir=$ac_confdir
Lev Walkin27fd0b62007-08-27 23:57:45 +00001285 if test ! -r "$srcdir/$ac_unique_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001286 srcdir=..
1287 fi
1288else
1289 ac_srcdir_defaulted=no
1290fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001291if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Lev Walkinaef10c32014-01-14 01:47:25 -08001293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Lev Walkinf15320b2004-06-03 03:38:44 +00001294fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
Lev Walkinaef10c32014-01-14 01:47:25 -08001297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
Lev Walkinf15320b2004-06-03 03:38:44 +00001315
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
Lev Walkin04fbe622014-09-17 02:27:01 -07001323\`configure' configures asn1c 0.9.28 to adapt to many kinds of systems.
Lev Walkinf15320b2004-06-03 03:38:44 +00001324
1325Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
1329
1330Defaults for the options are specified in brackets.
1331
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
Lev Walkinaef10c32014-01-14 01:47:25 -08001337 -q, --quiet, --silent do not print \`checking ...' messages
Lev Walkinf15320b2004-06-03 03:38:44 +00001338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
Lev Walkinf15320b2004-06-03 03:38:44 +00001343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
Lev Walkinb3751942012-09-02 19:36:47 -07001345 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +00001346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkinb3751942012-09-02 19:36:47 -07001347 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +00001348
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
1353
1354For better control, use the options below.
1355
1356Fine tuning of the installation directories:
Lev Walkinb3751942012-09-02 19:36:47 -07001357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/asn1c]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
Lev Walkinf15320b2004-06-03 03:38:44 +00001376_ACEOF
1377
1378 cat <<\_ACEOF
1379
1380Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384
1385System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Lev Walkinf15320b2004-06-03 03:38:44 +00001388_ACEOF
1389fi
1390
1391if test -n "$ac_init_help"; then
Lev Walkine7c4b962010-11-09 03:10:36 -08001392 case $ac_init_help in
Lev Walkin04fbe622014-09-17 02:27:01 -07001393 short | recursive ) echo "Configuration of asn1c 0.9.28:";;
Lev Walkine7c4b962010-11-09 03:10:36 -08001394 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001395 cat <<\_ACEOF
1396
1397Optional Features:
Lev Walkinb3751942012-09-02 19:36:47 -07001398 --disable-option-checking ignore unrecognized --enable/--with options
Lev Walkinf15320b2004-06-03 03:38:44 +00001399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkine0d321a2014-09-11 01:28:57 -07001401 --enable-maintainer-mode enable make rules and dependencies not useful
1402 (and sometimes confusing) to the casual installer
Lev Walkin27fd0b62007-08-27 23:57:45 +00001403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-dependency-tracking speeds up one-time build
1408 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001409 --disable-libtool-lock avoid locking (might break parallel builds)
Lev Walkinf15320b2004-06-03 03:38:44 +00001410 --enable-Werror abort compilation after any C compiler warning
Lev Walkin58ecc7b2014-09-17 00:32:03 -07001411 --enable-ASN_DEBUG produce debug log during `make check` testing
Lev Walkinf15320b2004-06-03 03:38:44 +00001412
1413Optional Packages:
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001416 --with-pic try to use only PIC/non-PIC objects [default=use
1417 both]
Lev Walkin4da95cf2010-10-16 02:46:32 -07001418 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Lev Walkinaef10c32014-01-14 01:47:25 -08001419 --with-sysroot=DIR Search for dependent libraries within DIR
1420 (or the compiler's sysroot if not specified).
Lev Walkinf15320b2004-06-03 03:38:44 +00001421
1422Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
Lev Walkin4c776e52010-11-08 02:07:31 -08001427 LIBS libraries to pass to the linker, e.g. -l<library>
Lev Walkinaef10c32014-01-14 01:47:25 -08001428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Lev Walkin27fd0b62007-08-27 23:57:45 +00001429 you have headers in a nonstandard directory <include dir>
Lev Walkinf15320b2004-06-03 03:38:44 +00001430 CPP C preprocessor
Lev Walkinaef10c32014-01-14 01:47:25 -08001431 YACC The `Yet Another Compiler Compiler' implementation to use.
1432 Defaults to the first program found out of: `bison -y', `byacc',
1433 `yacc'.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001434 YFLAGS The list of arguments that will be passed by default to $YACC.
1435 This script will default YFLAGS to the empty string to avoid a
1436 default value of `-d' given by some make applications.
Lev Walkinf15320b2004-06-03 03:38:44 +00001437
1438Use these variables to override the choices made by `configure' or to help
1439it to find libraries and programs with nonstandard names/locations.
1440
Lev Walkine7c4b962010-11-09 03:10:36 -08001441Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00001442_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001443ac_status=$?
Lev Walkinf15320b2004-06-03 03:38:44 +00001444fi
1445
1446if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
Lev Walkinf15320b2004-06-03 03:38:44 +00001448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Lev Walkinb3751942012-09-02 19:36:47 -07001449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
Lev Walkinf15320b2004-06-03 03:38:44 +00001452 ac_builddir=.
1453
Lev Walkin27fd0b62007-08-27 23:57:45 +00001454case "$ac_dir" in
1455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456*)
Lev Walkinb3751942012-09-02 19:36:47 -07001457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001458 # A ".." for each directory in $ac_dir_suffix.
Lev Walkinb3751942012-09-02 19:36:47 -07001459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464esac
1465ac_abs_top_builddir=$ac_pwd
1466ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467# for backward compatibility:
1468ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +00001469
1470case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001471 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +00001472 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +00001476 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001483esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +00001485
Lev Walkin27fd0b62007-08-27 23:57:45 +00001486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
Lev Walkinf15320b2004-06-03 03:38:44 +00001494 else
Lev Walkinb3751942012-09-02 19:36:47 -07001495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001498 done
1499fi
1500
Lev Walkin27fd0b62007-08-27 23:57:45 +00001501test -n "$ac_init_help" && exit $ac_status
Lev Walkinf15320b2004-06-03 03:38:44 +00001502if $ac_init_version; then
1503 cat <<\_ACEOF
Lev Walkin04fbe622014-09-17 02:27:01 -07001504asn1c configure 0.9.28
Lev Walkinaef10c32014-01-14 01:47:25 -08001505generated by GNU Autoconf 2.69
Lev Walkinf15320b2004-06-03 03:38:44 +00001506
Lev Walkinaef10c32014-01-14 01:47:25 -08001507Copyright (C) 2012 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001508This configure script is free software; the Free Software Foundation
1509gives unlimited permission to copy, distribute and modify it.
1510_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001511 exit
Lev Walkinf15320b2004-06-03 03:38:44 +00001512fi
Lev Walkinaef10c32014-01-14 01:47:25 -08001513
1514## ------------------------ ##
1515## Autoconf initialization. ##
1516## ------------------------ ##
1517
1518# ac_fn_c_try_compile LINENO
1519# --------------------------
1520# Try to compile conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_compile ()
1522{
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529esac
1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531$as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545else
1546 $as_echo "$as_me: failed program was:" >&5
1547sed 's/^/| /' conftest.$ac_ext >&5
1548
1549 ac_retval=1
1550fi
1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1552 as_fn_set_status $ac_retval
1553
1554} # ac_fn_c_try_compile
1555
1556# ac_fn_c_try_link LINENO
1557# -----------------------
1558# Try to link conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_link ()
1560{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext conftest$ac_exeext
1563 if { { ac_try="$ac_link"
1564case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_link") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest$ac_exeext && {
1582 test "$cross_compiling" = yes ||
1583 test -x conftest$ac_exeext
1584 }; then :
1585 ac_retval=0
1586else
1587 $as_echo "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591fi
1592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594 # interfere with the next link command; also delete a directory that is
1595 # left behind by Apple's compiler. We do this before executing the actions.
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1599
1600} # ac_fn_c_try_link
1601
1602# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1603# -------------------------------------------------------
1604# Tests whether HEADER exists and can be compiled using the include files in
1605# INCLUDES, setting the cache variable VAR accordingly.
1606ac_fn_c_check_header_compile ()
1607{
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610$as_echo_n "checking for $2... " >&6; }
1611if eval \${$3+:} false; then :
1612 $as_echo_n "(cached) " >&6
1613else
1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615/* end confdefs.h. */
1616$4
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_compile "$LINENO"; then :
1620 eval "$3=yes"
1621else
1622 eval "$3=no"
1623fi
1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625fi
1626eval ac_res=\$$3
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628$as_echo "$ac_res" >&6; }
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630
1631} # ac_fn_c_check_header_compile
1632
1633# ac_fn_c_try_cpp LINENO
1634# ----------------------
1635# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636ac_fn_c_try_cpp ()
1637{
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } > conftest.i && {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 }; then :
1658 ac_retval=0
1659else
1660 $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668} # ac_fn_c_try_cpp
1669
1670# ac_fn_c_try_run LINENO
1671# ----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673# that executables *can* be run.
1674ac_fn_c_try_run ()
1675{
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1685 ac_status=$?
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=$ac_status
1705fi
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710} # ac_fn_c_try_run
1711
1712# ac_fn_c_check_func LINENO FUNC VAR
1713# ----------------------------------
1714# Tests whether FUNC exists, setting the cache variable VAR accordingly
1715ac_fn_c_check_func ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719$as_echo_n "checking for $2... " >&6; }
1720if eval \${$3+:} false; then :
1721 $as_echo_n "(cached) " >&6
1722else
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724/* end confdefs.h. */
1725/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1727#define $2 innocuous_$2
1728
1729/* System header to define __stub macros and hopefully few prototypes,
1730 which can conflict with char $2 (); below.
1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1732 <limits.h> exists even on freestanding compilers. */
1733
1734#ifdef __STDC__
1735# include <limits.h>
1736#else
1737# include <assert.h>
1738#endif
1739
1740#undef $2
1741
1742/* Override any GCC internal prototype to avoid an error.
1743 Use char because int might match the return type of a GCC
1744 builtin and then its argument prototype would still apply. */
1745#ifdef __cplusplus
1746extern "C"
1747#endif
1748char $2 ();
1749/* The GNU C library defines this for functions which it implements
1750 to always fail with ENOSYS. Some functions are actually named
1751 something starting with __ and the normal name is an alias. */
1752#if defined __stub_$2 || defined __stub___$2
1753choke me
1754#endif
1755
1756int
1757main ()
1758{
1759return $2 ();
1760 ;
1761 return 0;
1762}
1763_ACEOF
1764if ac_fn_c_try_link "$LINENO"; then :
1765 eval "$3=yes"
1766else
1767 eval "$3=no"
1768fi
1769rm -f core conftest.err conftest.$ac_objext \
1770 conftest$ac_exeext conftest.$ac_ext
1771fi
1772eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777} # ac_fn_c_check_func
1778
1779# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1780# -------------------------------------------------------
1781# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1782# the include files in INCLUDES and setting the cache variable VAR
1783# accordingly.
1784ac_fn_c_check_header_mongrel ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if eval \${$3+:} false; then :
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792fi
1793eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795$as_echo "$ac_res" >&6; }
1796else
1797 # Is the header compilable?
1798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1799$as_echo_n "checking $2 usability... " >&6; }
1800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h. */
1802$4
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_header_compiler=yes
1807else
1808 ac_header_compiler=no
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1812$as_echo "$ac_header_compiler" >&6; }
1813
1814# Is the header present?
1815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1816$as_echo_n "checking $2 presence... " >&6; }
1817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h. */
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_cpp "$LINENO"; then :
1822 ac_header_preproc=yes
1823else
1824 ac_header_preproc=no
1825fi
1826rm -f conftest.err conftest.i conftest.$ac_ext
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1828$as_echo "$ac_header_preproc" >&6; }
1829
1830# So? What about this header?
1831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1832 yes:no: )
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1834$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ;;
1838 no:yes:* )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1840$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1842$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1844$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1846$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849( $as_echo "## ------------------------------ ##
1850## Report this to vlm@lionet.info ##
1851## ------------------------------ ##"
1852 ) | sed "s/^/$as_me: WARNING: /" >&2
1853 ;;
1854esac
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859else
1860 eval "$3=\$ac_header_compiler"
1861fi
1862eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864$as_echo "$ac_res" >&6; }
1865fi
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_header_mongrel
1869
1870# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1871# -------------------------------------------
1872# Tests whether TYPE exists after having included INCLUDES, setting cache
1873# variable VAR accordingly.
1874ac_fn_c_check_type ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881else
1882 eval "$3=no"
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884/* end confdefs.h. */
1885$4
1886int
1887main ()
1888{
1889if (sizeof ($2))
1890 return 0;
1891 ;
1892 return 0;
1893}
1894_ACEOF
1895if ac_fn_c_try_compile "$LINENO"; then :
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898$4
1899int
1900main ()
1901{
1902if (sizeof (($2)))
1903 return 0;
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909
1910else
1911 eval "$3=yes"
1912fi
1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_type
Lev Walkin27fd0b62007-08-27 23:57:45 +00001923cat >config.log <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00001924This file contains any messages produced by compilers while
1925running configure, to aid debugging if configure makes a mistake.
1926
Lev Walkin04fbe622014-09-17 02:27:01 -07001927It was created by asn1c $as_me 0.9.28, which was
Lev Walkinaef10c32014-01-14 01:47:25 -08001928generated by GNU Autoconf 2.69. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001929
1930 $ $0 $@
1931
1932_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001933exec 5>>config.log
Lev Walkinf15320b2004-06-03 03:38:44 +00001934{
1935cat <<_ASUNAME
1936## --------- ##
1937## Platform. ##
1938## --------- ##
1939
1940hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1941uname -m = `(uname -m) 2>/dev/null || echo unknown`
1942uname -r = `(uname -r) 2>/dev/null || echo unknown`
1943uname -s = `(uname -s) 2>/dev/null || echo unknown`
1944uname -v = `(uname -v) 2>/dev/null || echo unknown`
1945
1946/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1947/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1948
1949/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1950/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1951/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001952/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Lev Walkinf15320b2004-06-03 03:38:44 +00001953/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1954/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1955/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1956
1957_ASUNAME
1958
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08001964 $as_echo "PATH: $as_dir"
1965 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00001966IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00001967
1968} >&5
1969
1970cat >&5 <<_ACEOF
1971
1972
1973## ----------- ##
1974## Core tests. ##
1975## ----------- ##
1976
1977_ACEOF
1978
1979
1980# Keep a trace of the command line.
1981# Strip out --no-create and --no-recursion so they do not pile up.
1982# Strip out --silent because we don't want to record it for future runs.
1983# Also quote any args containing shell meta-characters.
1984# Make two passes to allow for proper duplicate-argument suppression.
1985ac_configure_args=
1986ac_configure_args0=
1987ac_configure_args1=
Lev Walkinf15320b2004-06-03 03:38:44 +00001988ac_must_keep_next=false
1989for ac_pass in 1 2
1990do
1991 for ac_arg
1992 do
1993 case $ac_arg in
1994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1996 | -silent | --silent | --silen | --sile | --sil)
1997 continue ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001998 *\'*)
Lev Walkinb3751942012-09-02 19:36:47 -07001999 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002000 esac
2001 case $ac_pass in
Lev Walkinaef10c32014-01-14 01:47:25 -08002002 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002003 2)
Lev Walkinaef10c32014-01-14 01:47:25 -08002004 as_fn_append ac_configure_args1 " '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00002005 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002006 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00002007 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002008 case $ac_arg in
2009 *=* | --config-cache | -C | -disable-* | --disable-* \
2010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2012 | -with-* | --with-* | -without-* | --without-* | --x)
2013 case "$ac_configure_args0 " in
2014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2015 esac
2016 ;;
2017 -* ) ac_must_keep_next=true ;;
2018 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002019 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002020 as_fn_append ac_configure_args " '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00002021 ;;
2022 esac
2023 done
2024done
Lev Walkinaef10c32014-01-14 01:47:25 -08002025{ ac_configure_args0=; unset ac_configure_args0;}
2026{ ac_configure_args1=; unset ac_configure_args1;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002027
2028# When interrupted or exit'd, cleanup temporary files, and complete
2029# config.log. We remove comments because anyway the quotes in there
2030# would cause problems or look ugly.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002031# WARNING: Use '\'' to represent an apostrophe within the trap.
2032# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Lev Walkinf15320b2004-06-03 03:38:44 +00002033trap 'exit_status=$?
2034 # Save into config.log some information that might help in debugging.
2035 {
2036 echo
2037
Lev Walkinaef10c32014-01-14 01:47:25 -08002038 $as_echo "## ---------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002039## Cache variables. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002040## ---------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002041 echo
2042 # The following way of writing the cache mishandles newlines in values,
Lev Walkin27fd0b62007-08-27 23:57:45 +00002043(
2044 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2045 eval ac_val=\$$ac_var
2046 case $ac_val in #(
2047 *${as_nl}*)
2048 case $ac_var in #(
Lev Walkinaef10c32014-01-14 01:47:25 -08002049 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002050$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002051 esac
2052 case $ac_var in #(
2053 _ | IFS | as_nl) ;; #(
Lev Walkinb3751942012-09-02 19:36:47 -07002054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Lev Walkinaef10c32014-01-14 01:47:25 -08002055 *) { eval $ac_var=; unset $ac_var;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002056 esac ;;
2057 esac
2058 done
Lev Walkinf15320b2004-06-03 03:38:44 +00002059 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +00002060 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2061 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +00002062 sed -n \
Lev Walkin27fd0b62007-08-27 23:57:45 +00002063 "s/'\''/'\''\\\\'\'''\''/g;
2064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2065 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +00002066 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00002067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00002068 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002069 esac |
2070 sort
2071)
Lev Walkinf15320b2004-06-03 03:38:44 +00002072 echo
2073
Lev Walkinaef10c32014-01-14 01:47:25 -08002074 $as_echo "## ----------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002075## Output variables. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002076## ----------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002077 echo
2078 for ac_var in $ac_subst_vars
2079 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002080 eval ac_val=\$$ac_var
2081 case $ac_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002083 esac
Lev Walkinb3751942012-09-02 19:36:47 -07002084 $as_echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00002085 done | sort
2086 echo
2087
2088 if test -n "$ac_subst_files"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002089 $as_echo "## ------------------- ##
Lev Walkin27fd0b62007-08-27 23:57:45 +00002090## File substitutions. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002091## ------------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002092 echo
2093 for ac_var in $ac_subst_files
2094 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002095 eval ac_val=\$$ac_var
2096 case $ac_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002098 esac
Lev Walkinb3751942012-09-02 19:36:47 -07002099 $as_echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00002100 done | sort
2101 echo
2102 fi
2103
2104 if test -s confdefs.h; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002105 $as_echo "## ----------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002106## confdefs.h. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002107## ----------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002108 echo
Lev Walkin27fd0b62007-08-27 23:57:45 +00002109 cat confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00002110 echo
2111 fi
2112 test "$ac_signal" != 0 &&
Lev Walkinb3751942012-09-02 19:36:47 -07002113 $as_echo "$as_me: caught signal $ac_signal"
2114 $as_echo "$as_me: exit $exit_status"
Lev Walkinf15320b2004-06-03 03:38:44 +00002115 } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00002116 rm -f core *.core core.conftest.* &&
2117 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Lev Walkinf15320b2004-06-03 03:38:44 +00002118 exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +00002119' 0
Lev Walkinf15320b2004-06-03 03:38:44 +00002120for ac_signal in 1 2 13 15; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002121 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Lev Walkinf15320b2004-06-03 03:38:44 +00002122done
2123ac_signal=0
2124
2125# confdefs.h avoids OS command line length limits that DEFS can exceed.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002126rm -f -r conftest* confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00002127
Lev Walkinaef10c32014-01-14 01:47:25 -08002128$as_echo "/* confdefs.h */" > confdefs.h
2129
Lev Walkinf15320b2004-06-03 03:38:44 +00002130# Predefined preprocessor variables.
2131
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_NAME "$PACKAGE_NAME"
2134_ACEOF
2135
Lev Walkinf15320b2004-06-03 03:38:44 +00002136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2138_ACEOF
2139
Lev Walkinf15320b2004-06-03 03:38:44 +00002140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_VERSION "$PACKAGE_VERSION"
2142_ACEOF
2143
Lev Walkinf15320b2004-06-03 03:38:44 +00002144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_STRING "$PACKAGE_STRING"
2146_ACEOF
2147
Lev Walkinf15320b2004-06-03 03:38:44 +00002148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2150_ACEOF
2151
Lev Walkinaef10c32014-01-14 01:47:25 -08002152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_URL "$PACKAGE_URL"
2154_ACEOF
2155
Lev Walkinf15320b2004-06-03 03:38:44 +00002156
2157# Let the site file select an alternate cache file if it wants to.
Lev Walkinb3751942012-09-02 19:36:47 -07002158# Prefer an explicitly selected file to automatically selected ones.
2159ac_site_file1=NONE
2160ac_site_file2=NONE
Lev Walkin27fd0b62007-08-27 23:57:45 +00002161if test -n "$CONFIG_SITE"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002162 # We do not want a PATH search for config.site.
2163 case $CONFIG_SITE in #((
2164 -*) ac_site_file1=./$CONFIG_SITE;;
2165 */*) ac_site_file1=$CONFIG_SITE;;
2166 *) ac_site_file1=./$CONFIG_SITE;;
2167 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00002168elif test "x$prefix" != xNONE; then
Lev Walkinb3751942012-09-02 19:36:47 -07002169 ac_site_file1=$prefix/share/config.site
2170 ac_site_file2=$prefix/etc/config.site
Lev Walkin27fd0b62007-08-27 23:57:45 +00002171else
Lev Walkinb3751942012-09-02 19:36:47 -07002172 ac_site_file1=$ac_default_prefix/share/config.site
2173 ac_site_file2=$ac_default_prefix/etc/config.site
Lev Walkinf15320b2004-06-03 03:38:44 +00002174fi
Lev Walkinb3751942012-09-02 19:36:47 -07002175for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Lev Walkin27fd0b62007-08-27 23:57:45 +00002176do
Lev Walkinb3751942012-09-02 19:36:47 -07002177 test "x$ac_site_file" = xNONE && continue
Lev Walkinaef10c32014-01-14 01:47:25 -08002178 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002180$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002181 sed 's/^/| /' "$ac_site_file" >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08002182 . "$ac_site_file" \
2183 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2185as_fn_error $? "failed to load site script $ac_site_file
2186See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002187 fi
2188done
2189
2190if test -r "$cache_file"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002191 # Some versions of bash will fail to source /dev/null (special files
2192 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2193 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002195$as_echo "$as_me: loading cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002196 case $cache_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00002197 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2198 *) . "./$cache_file";;
Lev Walkinf15320b2004-06-03 03:38:44 +00002199 esac
2200 fi
2201else
Lev Walkinaef10c32014-01-14 01:47:25 -08002202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002203$as_echo "$as_me: creating cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002204 >$cache_file
2205fi
2206
2207# Check that the precious variables saved in the cache have kept the same
2208# value.
2209ac_cache_corrupted=false
Lev Walkin27fd0b62007-08-27 23:57:45 +00002210for ac_var in $ac_precious_vars; do
Lev Walkinf15320b2004-06-03 03:38:44 +00002211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2212 eval ac_new_set=\$ac_env_${ac_var}_set
Lev Walkin27fd0b62007-08-27 23:57:45 +00002213 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2214 eval ac_new_val=\$ac_env_${ac_var}_value
Lev Walkinf15320b2004-06-03 03:38:44 +00002215 case $ac_old_set,$ac_new_set in
2216 set,)
Lev Walkinaef10c32014-01-14 01:47:25 -08002217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002218$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002219 ac_cache_corrupted=: ;;
2220 ,set)
Lev Walkinaef10c32014-01-14 01:47:25 -08002221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002222$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002223 ac_cache_corrupted=: ;;
2224 ,);;
2225 *)
2226 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002227 # differences in whitespace do not lead to failure.
2228 ac_old_val_w=`echo x $ac_old_val`
2229 ac_new_val_w=`echo x $ac_new_val`
2230 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002232$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2233 ac_cache_corrupted=:
2234 else
Lev Walkinaef10c32014-01-14 01:47:25 -08002235 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002236$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2237 eval $ac_var=\$ac_old_val
2238 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002239 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002240$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002241 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002242$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002243 fi;;
2244 esac
2245 # Pass precious variables to config.status.
2246 if test "$ac_new_set" = set; then
2247 case $ac_new_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002248 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002249 *) ac_arg=$ac_var=$ac_new_val ;;
2250 esac
2251 case " $ac_configure_args " in
2252 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Lev Walkinaef10c32014-01-14 01:47:25 -08002253 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002254 esac
2255 fi
2256done
2257if $ac_cache_corrupted; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002261$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002262 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002263fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002264## -------------------- ##
2265## Main body of script. ##
2266## -------------------- ##
Lev Walkine7c4b962010-11-09 03:10:36 -08002267
Lev Walkinf15320b2004-06-03 03:38:44 +00002268ac_ext=c
2269ac_cpp='$CPP $CPPFLAGS'
2270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2272ac_compiler_gnu=$ac_cv_c_compiler_gnu
2273
2274
Lev Walkinb3751942012-09-02 19:36:47 -07002275am__api_version='1.11'
Lev Walkine7c4b962010-11-09 03:10:36 -08002276
Lev Walkinf15320b2004-06-03 03:38:44 +00002277ac_aux_dir=
Lev Walkin27fd0b62007-08-27 23:57:45 +00002278for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2279 if test -f "$ac_dir/install-sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/install-sh -c"
2282 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00002283 elif test -f "$ac_dir/install.sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/install.sh -c"
2286 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00002287 elif test -f "$ac_dir/shtool"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/shtool install -c"
2290 break
2291 fi
2292done
2293if test -z "$ac_aux_dir"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002294 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002295fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002296
2297# These three variables are undocumented and unsupported,
2298# and are intended to be withdrawn in a future Autoconf release.
2299# They can cause serious problems if a builder's source tree is in a directory
2300# whose full name contains unusual characters.
2301ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2304
Lev Walkinf15320b2004-06-03 03:38:44 +00002305
Lev Walkinf15320b2004-06-03 03:38:44 +00002306# Find a good install program. We prefer a C program (faster),
2307# so one script is as good as another. But avoid the broken or
2308# incompatible versions:
2309# SysV /etc/install, /usr/sbin/install
2310# SunOS /usr/etc/install
2311# IRIX /sbin/install
2312# AIX /bin/install
2313# AmigaOS /C/install, which installs bootblocks on floppy discs
2314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002317# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00002318# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkinb3751942012-09-02 19:36:47 -07002319# Reject install programs that cannot install multiple files.
Lev Walkinaef10c32014-01-14 01:47:25 -08002320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002321$as_echo_n "checking for a BSD-compatible install... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002322if test -z "$INSTALL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002323if ${ac_cv_path_install+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002324 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002325else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002331 # Account for people who put trailing slashes in PATH elements.
2332case $as_dir/ in #((
2333 ./ | .// | /[cC]/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkinaef10c32014-01-14 01:47:25 -08002335 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002336 /usr/ucb/* ) ;;
2337 *)
2338 # OSF1 and SCO ODT 3.0 have their own names for install.
2339 # Don't use installbsd from OSF since it installs stuff as root
2340 # by default.
2341 for ac_prog in ginstall scoinst install; do
2342 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002343 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002344 if test $ac_prog = install &&
2345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346 # AIX install. It has an incompatible calling convention.
2347 :
2348 elif test $ac_prog = install &&
2349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350 # program-specific install script used by HP pwplus--don't use.
2351 :
2352 else
Lev Walkinb3751942012-09-02 19:36:47 -07002353 rm -rf conftest.one conftest.two conftest.dir
2354 echo one > conftest.one
2355 echo two > conftest.two
2356 mkdir conftest.dir
2357 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358 test -s conftest.one && test -s conftest.two &&
2359 test -s conftest.dir/conftest.one &&
2360 test -s conftest.dir/conftest.two
2361 then
2362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2363 break 3
2364 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002365 fi
2366 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002367 done
2368 done
2369 ;;
2370esac
Lev Walkinb3751942012-09-02 19:36:47 -07002371
Lev Walkinaef10c32014-01-14 01:47:25 -08002372 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002373IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002374
Lev Walkinb3751942012-09-02 19:36:47 -07002375rm -rf conftest.one conftest.two conftest.dir
Lev Walkinf15320b2004-06-03 03:38:44 +00002376
2377fi
2378 if test "${ac_cv_path_install+set}" = set; then
2379 INSTALL=$ac_cv_path_install
2380 else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002381 # As a last resort, use the slow shell script. Don't cache a
2382 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +00002383 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +00002384 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +00002385 INSTALL=$ac_install_sh
2386 fi
2387fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002389$as_echo "$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002390
2391# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392# It thinks the first close brace ends the variable substitution.
2393test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2394
2395test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2396
2397test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2398
Lev Walkinaef10c32014-01-14 01:47:25 -08002399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002400$as_echo_n "checking whether build environment is sane... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002401# Just in case
2402sleep 1
2403echo timestamp > conftest.file
Lev Walkinb3751942012-09-02 19:36:47 -07002404# Reject unsafe characters in $srcdir or the absolute working directory
2405# name. Accept space and tab only in the latter.
2406am_lf='
2407'
2408case `pwd` in
2409 *[\\\"\#\$\&\'\`$am_lf]*)
Lev Walkinaef10c32014-01-14 01:47:25 -08002410 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Lev Walkinb3751942012-09-02 19:36:47 -07002411esac
2412case $srcdir in
2413 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Lev Walkinaef10c32014-01-14 01:47:25 -08002414 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Lev Walkinb3751942012-09-02 19:36:47 -07002415esac
2416
Lev Walkinf15320b2004-06-03 03:38:44 +00002417# Do `set' in a subshell so we don't clobber the current shell's
2418# arguments. Must try -L first in case configure is actually a
2419# symlink; some systems play weird games with the mod time of symlinks
2420# (eg FreeBSD returns the mod time of the symlink's containing
2421# directory).
2422if (
Lev Walkinb3751942012-09-02 19:36:47 -07002423 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Lev Walkinf15320b2004-06-03 03:38:44 +00002424 if test "$*" = "X"; then
2425 # -L didn't work.
Lev Walkinb3751942012-09-02 19:36:47 -07002426 set X `ls -t "$srcdir/configure" conftest.file`
Lev Walkinf15320b2004-06-03 03:38:44 +00002427 fi
2428 rm -f conftest.file
2429 if test "$*" != "X $srcdir/configure conftest.file" \
2430 && test "$*" != "X conftest.file $srcdir/configure"; then
2431
2432 # If neither matched, then we have a broken ls. This can happen
2433 # if, for instance, CONFIG_SHELL is bash and it inherits a
2434 # broken ls alias from the environment. This has actually
2435 # happened. Such a system could not be considered "sane".
Lev Walkinaef10c32014-01-14 01:47:25 -08002436 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2437alias in your environment" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002438 fi
2439
2440 test "$2" = conftest.file
2441 )
2442then
2443 # Ok.
2444 :
2445else
Lev Walkinaef10c32014-01-14 01:47:25 -08002446 as_fn_error $? "newly created file is older than distributed files!
2447Check your system clock" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002448fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002450$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002451test "$program_prefix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002452 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002453# Use a double $ so make ignores it.
2454test "$program_suffix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002455 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Lev Walkinb3751942012-09-02 19:36:47 -07002456# Double any \ or $.
Lev Walkinf15320b2004-06-03 03:38:44 +00002457# By default was `s,x,x', remove it if useless.
Lev Walkinb3751942012-09-02 19:36:47 -07002458ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2459program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Lev Walkinf15320b2004-06-03 03:38:44 +00002460
Lev Walkinf15320b2004-06-03 03:38:44 +00002461# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00002462am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00002463
Lev Walkinb3751942012-09-02 19:36:47 -07002464if test x"${MISSING+set}" != xset; then
2465 case $am_aux_dir in
2466 *\ * | *\ *)
2467 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2468 *)
2469 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2470 esac
2471fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002472# Use eval to expand $SHELL
2473if eval "$MISSING --run true"; then
2474 am_missing_run="$MISSING --run "
2475else
2476 am_missing_run=
Lev Walkinaef10c32014-01-14 01:47:25 -08002477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002478$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002479fi
2480
Lev Walkinb3751942012-09-02 19:36:47 -07002481if test x"${install_sh}" != xset; then
2482 case $am_aux_dir in
2483 *\ * | *\ *)
2484 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2485 *)
2486 install_sh="\${SHELL} $am_aux_dir/install-sh"
2487 esac
2488fi
2489
2490# Installed binaries are usually stripped using `strip' when the user
2491# run `make install-strip'. However `strip' might not be the right
2492# tool to use in cross-compilation environments, therefore Automake
2493# will honor the `STRIP' environment variable to overrule this program.
2494if test "$cross_compiling" != no; then
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2497set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002499$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002500if ${ac_cv_prog_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002501 $as_echo_n "(cached) " >&6
2502else
2503 if test -n "$STRIP"; then
2504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08002514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002515 break 2
2516 fi
2517done
Lev Walkinaef10c32014-01-14 01:47:25 -08002518 done
Lev Walkinb3751942012-09-02 19:36:47 -07002519IFS=$as_save_IFS
2520
2521fi
2522fi
2523STRIP=$ac_cv_prog_STRIP
2524if test -n "$STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002526$as_echo "$STRIP" >&6; }
2527else
Lev Walkinaef10c32014-01-14 01:47:25 -08002528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002529$as_echo "no" >&6; }
2530fi
2531
2532
2533fi
2534if test -z "$ac_cv_prog_STRIP"; then
2535 ac_ct_STRIP=$STRIP
2536 # Extract the first word of "strip", so it can be a program name with args.
2537set dummy strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002539$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002540if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002541 $as_echo_n "(cached) " >&6
2542else
2543 if test -n "$ac_ct_STRIP"; then
2544 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002553 ac_cv_prog_ac_ct_STRIP="strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08002554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002555 break 2
2556 fi
2557done
Lev Walkinaef10c32014-01-14 01:47:25 -08002558 done
Lev Walkinb3751942012-09-02 19:36:47 -07002559IFS=$as_save_IFS
2560
2561fi
2562fi
2563ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2564if test -n "$ac_ct_STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002566$as_echo "$ac_ct_STRIP" >&6; }
2567else
Lev Walkinaef10c32014-01-14 01:47:25 -08002568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002569$as_echo "no" >&6; }
2570fi
2571
2572 if test "x$ac_ct_STRIP" = x; then
2573 STRIP=":"
2574 else
2575 case $cross_compiling:$ac_tool_warned in
2576yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08002577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579ac_tool_warned=yes ;;
2580esac
2581 STRIP=$ac_ct_STRIP
2582 fi
2583else
2584 STRIP="$ac_cv_prog_STRIP"
2585fi
2586
2587fi
2588INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2589
Lev Walkinaef10c32014-01-14 01:47:25 -08002590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002591$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002592if test -z "$MKDIR_P"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002593 if ${ac_cv_path_mkdir+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002594 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00002595else
Lev Walkin4c776e52010-11-08 02:07:31 -08002596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002601 for ac_prog in mkdir gmkdir; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002602 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002603 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Lev Walkin4c776e52010-11-08 02:07:31 -08002604 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2605 'mkdir (GNU coreutils) '* | \
2606 'mkdir (coreutils) '* | \
2607 'mkdir (fileutils) '4.1*)
2608 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2609 break 3;;
2610 esac
2611 done
2612 done
Lev Walkinaef10c32014-01-14 01:47:25 -08002613 done
Lev Walkin4c776e52010-11-08 02:07:31 -08002614IFS=$as_save_IFS
2615
2616fi
2617
Lev Walkinaef10c32014-01-14 01:47:25 -08002618 test -d ./--version && rmdir ./--version
Lev Walkin4c776e52010-11-08 02:07:31 -08002619 if test "${ac_cv_path_mkdir+set}" = set; then
2620 MKDIR_P="$ac_cv_path_mkdir -p"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002621 else
Lev Walkin4c776e52010-11-08 02:07:31 -08002622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for MKDIR_P within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the value is a relative name.
Lev Walkin4c776e52010-11-08 02:07:31 -08002626 MKDIR_P="$ac_install_sh -d"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002627 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002628fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002630$as_echo "$MKDIR_P" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002631
2632mkdir_p="$MKDIR_P"
2633case $mkdir_p in
2634 [\\/$]* | ?:[\\/]*) ;;
2635 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2636esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002637
2638for ac_prog in gawk mawk nawk awk
2639do
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002643$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002644if ${ac_cv_prog_AWK+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002645 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002646else
2647 if test -n "$AWK"; then
2648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002657 ac_cv_prog_AWK="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08002658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002659 break 2
2660 fi
2661done
Lev Walkinaef10c32014-01-14 01:47:25 -08002662 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002663IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002664
2665fi
2666fi
2667AWK=$ac_cv_prog_AWK
2668if test -n "$AWK"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002670$as_echo "$AWK" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002671else
Lev Walkinaef10c32014-01-14 01:47:25 -08002672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002673$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002674fi
2675
Lev Walkin27fd0b62007-08-27 23:57:45 +00002676
Lev Walkinf15320b2004-06-03 03:38:44 +00002677 test -n "$AWK" && break
2678done
2679
Lev Walkinaef10c32014-01-14 01:47:25 -08002680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002681$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2682set x ${MAKE-make}
2683ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -08002684if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002685 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002686else
2687 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00002688SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +00002689all:
Lev Walkin27fd0b62007-08-27 23:57:45 +00002690 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +00002691_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08002692# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002693case `${MAKE-make} -f conftest.make 2>/dev/null` in
2694 *@@@%%%=?*=@@@%%%*)
2695 eval ac_cv_prog_make_${ac_make}_set=yes;;
2696 *)
2697 eval ac_cv_prog_make_${ac_make}_set=no;;
2698esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002699rm -f conftest.make
2700fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002701if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002703$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002704 SET_MAKE=
2705else
Lev Walkinaef10c32014-01-14 01:47:25 -08002706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002707$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002708 SET_MAKE="MAKE=${MAKE-make}"
2709fi
2710
Lev Walkin8e8b5482004-06-17 23:42:48 +00002711rm -rf .tst 2>/dev/null
2712mkdir .tst 2>/dev/null
2713if test -d .tst; then
2714 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00002715else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002716 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00002717fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002718rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00002719
Lev Walkin4c776e52010-11-08 02:07:31 -08002720if test "`cd $srcdir && pwd`" != "`pwd`"; then
2721 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2722 # is not polluted with repeated "-I."
2723 am__isrc=' -I$(srcdir)'
2724 # test to see if srcdir already configured
2725 if test -f $srcdir/config.status; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002726 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Lev Walkin4c776e52010-11-08 02:07:31 -08002727 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002728fi
2729
Lev Walkin8e8b5482004-06-17 23:42:48 +00002730# test whether we have cygpath
2731if test -z "$CYGPATH_W"; then
2732 if (cygpath --version) >/dev/null 2>/dev/null; then
2733 CYGPATH_W='cygpath -w'
2734 else
2735 CYGPATH_W=echo
2736 fi
2737fi
2738
2739
Lev Walkinf15320b2004-06-03 03:38:44 +00002740# Define the identity of the package.
Lev Walkine7c4b962010-11-09 03:10:36 -08002741 PACKAGE='asn1c'
Lev Walkin04fbe622014-09-17 02:27:01 -07002742 VERSION='0.9.28'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002743
Lev Walkinf15320b2004-06-03 03:38:44 +00002744
2745cat >>confdefs.h <<_ACEOF
2746#define PACKAGE "$PACKAGE"
2747_ACEOF
2748
2749
2750cat >>confdefs.h <<_ACEOF
2751#define VERSION "$VERSION"
2752_ACEOF
2753
Lev Walkinf15320b2004-06-03 03:38:44 +00002754# Some tools Automake needs.
2755
Lev Walkin8e8b5482004-06-17 23:42:48 +00002756ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002757
2758
2759AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2760
2761
Lev Walkin8e8b5482004-06-17 23:42:48 +00002762AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002763
2764
2765AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2766
2767
2768MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2769
Lev Walkinf15320b2004-06-03 03:38:44 +00002770# We need awk for the "check" target. The system "awk" is bad on
2771# some platforms.
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002772# Always define AMTAR for backward compatibility.
2773
2774AMTAR=${AMTAR-"${am_missing_run}tar"}
2775
2776am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2777
2778
Lev Walkinf15320b2004-06-03 03:38:44 +00002779
2780
2781
Lev Walkine7c4b962010-11-09 03:10:36 -08002782ac_config_headers="$ac_config_headers config.h"
Lev Walkinf15320b2004-06-03 03:38:44 +00002783
2784
2785
Lev Walkine0d321a2014-09-11 01:28:57 -07002786
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2788$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2789 # Check whether --enable-maintainer-mode was given.
2790if test "${enable_maintainer_mode+set}" = set; then :
2791 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2792else
2793 USE_MAINTAINER_MODE=no
2794fi
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2797$as_echo "$USE_MAINTAINER_MODE" >&6; }
2798 if test $USE_MAINTAINER_MODE = yes; then
2799 MAINTAINER_MODE_TRUE=
2800 MAINTAINER_MODE_FALSE='#'
2801else
2802 MAINTAINER_MODE_TRUE='#'
2803 MAINTAINER_MODE_FALSE=
2804fi
2805
2806 MAINT=$MAINTAINER_MODE_TRUE
2807
2808
2809
Lev Walkin4da95cf2010-10-16 02:46:32 -07002810case `pwd` in
2811 *\ * | *\ *)
Lev Walkinaef10c32014-01-14 01:47:25 -08002812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002813$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07002814esac
2815
2816
2817
Lev Walkinaef10c32014-01-14 01:47:25 -08002818macro_version='2.4'
2819macro_revision='1.3293'
Lev Walkin4da95cf2010-10-16 02:46:32 -07002820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833ltmain="$ac_aux_dir/ltmain.sh"
2834
Lev Walkine7c4b962010-11-09 03:10:36 -08002835# Make sure we can run config.sub.
2836$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002837 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002838
Lev Walkinaef10c32014-01-14 01:47:25 -08002839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002840$as_echo_n "checking build system type... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002841if ${ac_cv_build+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002842 $as_echo_n "(cached) " >&6
Lev Walkine7c4b962010-11-09 03:10:36 -08002843else
2844 ac_build_alias=$build_alias
2845test "x$ac_build_alias" = x &&
2846 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2847test "x$ac_build_alias" = x &&
Lev Walkinaef10c32014-01-14 01:47:25 -08002848 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002849ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002850 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002851
2852fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002854$as_echo "$ac_cv_build" >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002855case $ac_cv_build in
2856*-*-*) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08002857*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Lev Walkine7c4b962010-11-09 03:10:36 -08002858esac
2859build=$ac_cv_build
2860ac_save_IFS=$IFS; IFS='-'
2861set x $ac_cv_build
2862shift
2863build_cpu=$1
2864build_vendor=$2
2865shift; shift
2866# Remember, the first character of IFS is used to create $*,
2867# except with old shells:
2868build_os=$*
2869IFS=$ac_save_IFS
2870case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2871
2872
Lev Walkinaef10c32014-01-14 01:47:25 -08002873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002874$as_echo_n "checking host system type... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002875if ${ac_cv_host+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002876 $as_echo_n "(cached) " >&6
Lev Walkine7c4b962010-11-09 03:10:36 -08002877else
2878 if test "x$host_alias" = x; then
2879 ac_cv_host=$ac_cv_build
2880else
2881 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002882 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002883fi
2884
2885fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002887$as_echo "$ac_cv_host" >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002888case $ac_cv_host in
2889*-*-*) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08002890*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Lev Walkine7c4b962010-11-09 03:10:36 -08002891esac
2892host=$ac_cv_host
2893ac_save_IFS=$IFS; IFS='-'
2894set x $ac_cv_host
2895shift
2896host_cpu=$1
2897host_vendor=$2
2898shift; shift
2899# Remember, the first character of IFS is used to create $*,
2900# except with old shells:
2901host_os=$*
2902IFS=$ac_save_IFS
2903case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2904
2905
Lev Walkinaef10c32014-01-14 01:47:25 -08002906# Backslashify metacharacters that are still active within
2907# double-quoted strings.
2908sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2909
2910# Same as above, but do not quote variable references.
2911double_quote_subst='s/\(["`\\]\)/\\\1/g'
2912
2913# Sed substitution to delay expansion of an escaped shell variable in a
2914# double_quote_subst'ed string.
2915delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2916
2917# Sed substitution to delay expansion of an escaped single quote.
2918delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2919
2920# Sed substitution to avoid accidental globbing in evaled expressions
2921no_glob_subst='s/\*/\\\*/g'
2922
2923ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2924ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2925ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2926
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2928$as_echo_n "checking how to print strings... " >&6; }
2929# Test print first, because it will be a builtin if present.
2930if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2931 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2932 ECHO='print -r --'
2933elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2934 ECHO='printf %s\n'
2935else
2936 # Use this function as a fallback that always works.
2937 func_fallback_echo ()
2938 {
2939 eval 'cat <<_LTECHO_EOF
2940$1
2941_LTECHO_EOF'
2942 }
2943 ECHO='func_fallback_echo'
2944fi
2945
2946# func_echo_all arg...
2947# Invoke $ECHO with all args, space-separated.
2948func_echo_all ()
2949{
2950 $ECHO ""
2951}
2952
2953case "$ECHO" in
2954 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2955$as_echo "printf" >&6; } ;;
2956 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2957$as_echo "print -r" >&6; } ;;
2958 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2959$as_echo "cat" >&6; } ;;
2960esac
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
Lev Walkin8e8b5482004-06-17 23:42:48 +00002975DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002976
Lev Walkin27fd0b62007-08-27 23:57:45 +00002977ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002978
Lev Walkinf15320b2004-06-03 03:38:44 +00002979
2980am_make=${MAKE-make}
2981cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002982am__doit:
Lev Walkinb3751942012-09-02 19:36:47 -07002983 @echo this is the am__doit target
Lev Walkin8e8b5482004-06-17 23:42:48 +00002984.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002985END
2986# If we don't find an include directive, just comment out the code.
Lev Walkinaef10c32014-01-14 01:47:25 -08002987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002988$as_echo_n "checking for style of include used by $am_make... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002989am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002990am__quote=
2991_am_result=none
2992# First try GNU make style include.
2993echo "include confinc" > confmf
Lev Walkinb3751942012-09-02 19:36:47 -07002994# Ignore all kinds of additional output from `make'.
2995case `$am_make -s -f confmf 2> /dev/null` in #(
2996*the\ am__doit\ target*)
2997 am__include=include
2998 am__quote=
2999 _am_result=GNU
3000 ;;
3001esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003002# Now try BSD make style include.
3003if test "$am__include" = "#"; then
3004 echo '.include "confinc"' > confmf
Lev Walkinb3751942012-09-02 19:36:47 -07003005 case `$am_make -s -f confmf 2> /dev/null` in #(
3006 *the\ am__doit\ target*)
3007 am__include=.include
3008 am__quote="\""
3009 _am_result=BSD
3010 ;;
3011 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003012fi
3013
3014
Lev Walkinaef10c32014-01-14 01:47:25 -08003015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003016$as_echo "$_am_result" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003017rm -f confinc confmf
3018
Lev Walkin27fd0b62007-08-27 23:57:45 +00003019# Check whether --enable-dependency-tracking was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08003020if test "${enable_dependency_tracking+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003021 enableval=$enable_dependency_tracking;
3022fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00003023
Lev Walkin8e8b5482004-06-17 23:42:48 +00003024if test "x$enable_dependency_tracking" != xno; then
3025 am_depcomp="$ac_aux_dir/depcomp"
3026 AMDEPBACKSLASH='\'
3027fi
Lev Walkin4c776e52010-11-08 02:07:31 -08003028 if test "x$enable_dependency_tracking" != xno; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003029 AMDEP_TRUE=
3030 AMDEP_FALSE='#'
3031else
3032 AMDEP_TRUE='#'
3033 AMDEP_FALSE=
3034fi
3035
3036
Lev Walkinf15320b2004-06-03 03:38:44 +00003037ac_ext=c
3038ac_cpp='$CPP $CPPFLAGS'
3039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3044set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003046$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003047if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003048 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003049else
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3052else
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003060 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003062 break 2
3063 fi
3064done
Lev Walkinaef10c32014-01-14 01:47:25 -08003065 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003066IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003067
3068fi
3069fi
3070CC=$ac_cv_prog_CC
3071if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003073$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003074else
Lev Walkinaef10c32014-01-14 01:47:25 -08003075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003076$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003077fi
3078
Lev Walkin27fd0b62007-08-27 23:57:45 +00003079
Lev Walkinf15320b2004-06-03 03:38:44 +00003080fi
3081if test -z "$ac_cv_prog_CC"; then
3082 ac_ct_CC=$CC
3083 # Extract the first word of "gcc", so it can be a program name with args.
3084set dummy gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003086$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003087if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003088 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003089else
3090 if test -n "$ac_ct_CC"; then
3091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3092else
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003100 ac_cv_prog_ac_ct_CC="gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003102 break 2
3103 fi
3104done
Lev Walkinaef10c32014-01-14 01:47:25 -08003105 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003106IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003107
3108fi
3109fi
3110ac_ct_CC=$ac_cv_prog_ac_ct_CC
3111if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003113$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003114else
Lev Walkinaef10c32014-01-14 01:47:25 -08003115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003116$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003117fi
3118
Lev Walkin27fd0b62007-08-27 23:57:45 +00003119 if test "x$ac_ct_CC" = x; then
3120 CC=""
3121 else
3122 case $cross_compiling:$ac_tool_warned in
3123yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08003124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003126ac_tool_warned=yes ;;
3127esac
3128 CC=$ac_ct_CC
3129 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003130else
3131 CC="$ac_cv_prog_CC"
3132fi
3133
3134if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +00003137set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003139$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003140if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003141 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003142else
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC="$CC" # Let the user override the test.
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003153 ac_cv_prog_CC="${ac_tool_prefix}cc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003155 break 2
3156 fi
3157done
Lev Walkinaef10c32014-01-14 01:47:25 -08003158 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003159IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003160
3161fi
3162fi
3163CC=$ac_cv_prog_CC
3164if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003166$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003167else
Lev Walkinaef10c32014-01-14 01:47:25 -08003168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003169$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003170fi
3171
Lev Walkin27fd0b62007-08-27 23:57:45 +00003172
Lev Walkinf15320b2004-06-03 03:38:44 +00003173 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003174fi
3175if test -z "$CC"; then
3176 # Extract the first word of "cc", so it can be a program name with args.
3177set dummy cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003179$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003180if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003181 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003182else
3183 if test -n "$CC"; then
3184 ac_cv_prog_CC="$CC" # Let the user override the test.
3185else
3186 ac_prog_rejected=no
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003194 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3195 ac_prog_rejected=yes
3196 continue
3197 fi
3198 ac_cv_prog_CC="cc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003200 break 2
3201 fi
3202done
Lev Walkinaef10c32014-01-14 01:47:25 -08003203 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003204IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003205
3206if test $ac_prog_rejected = yes; then
3207 # We found a bogon in the path, so make sure we never use it.
3208 set dummy $ac_cv_prog_CC
3209 shift
3210 if test $# != 0; then
3211 # We chose a different compiler from the bogus one.
3212 # However, it has the same basename, so the bogon will be chosen
3213 # first if we set CC to just the basename; use the full file name.
3214 shift
3215 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3216 fi
3217fi
3218fi
3219fi
3220CC=$ac_cv_prog_CC
3221if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003223$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003224else
Lev Walkinaef10c32014-01-14 01:47:25 -08003225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003226$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003227fi
3228
Lev Walkin27fd0b62007-08-27 23:57:45 +00003229
Lev Walkinf15320b2004-06-03 03:38:44 +00003230fi
3231if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003233 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00003234 do
3235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3236set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003238$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003239if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003240 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003241else
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC="$CC" # Let the user override the test.
3244else
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003252 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08003253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003254 break 2
3255 fi
3256done
Lev Walkinaef10c32014-01-14 01:47:25 -08003257 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003258IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003259
3260fi
3261fi
3262CC=$ac_cv_prog_CC
3263if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003265$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003266else
Lev Walkinaef10c32014-01-14 01:47:25 -08003267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003268$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003269fi
3270
Lev Walkin27fd0b62007-08-27 23:57:45 +00003271
Lev Walkinf15320b2004-06-03 03:38:44 +00003272 test -n "$CC" && break
3273 done
3274fi
3275if test -z "$CC"; then
3276 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +00003277 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00003278do
3279 # Extract the first word of "$ac_prog", so it can be a program name with args.
3280set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003282$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003283if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003284 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003285else
3286 if test -n "$ac_ct_CC"; then
3287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003296 ac_cv_prog_ac_ct_CC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08003297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003298 break 2
3299 fi
3300done
Lev Walkinaef10c32014-01-14 01:47:25 -08003301 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003302IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003303
3304fi
3305fi
3306ac_ct_CC=$ac_cv_prog_ac_ct_CC
3307if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003309$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003310else
Lev Walkinaef10c32014-01-14 01:47:25 -08003311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003312$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003313fi
3314
Lev Walkin27fd0b62007-08-27 23:57:45 +00003315
Lev Walkinf15320b2004-06-03 03:38:44 +00003316 test -n "$ac_ct_CC" && break
3317done
3318
Lev Walkin27fd0b62007-08-27 23:57:45 +00003319 if test "x$ac_ct_CC" = x; then
3320 CC=""
3321 else
3322 case $cross_compiling:$ac_tool_warned in
3323yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08003324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003326ac_tool_warned=yes ;;
3327esac
3328 CC=$ac_ct_CC
3329 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003330fi
3331
3332fi
3333
3334
Lev Walkinaef10c32014-01-14 01:47:25 -08003335test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003337as_fn_error $? "no acceptable C compiler found in \$PATH
3338See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003339
3340# Provide some information about the compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -08003341$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003342set X $ac_compile
3343ac_compiler=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003344for ac_option in --version -v -V -qversion; do
3345 { { ac_try="$ac_compiler $ac_option >&5"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003346case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351$as_echo "$ac_try_echo"; } >&5
3352 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Lev Walkinf15320b2004-06-03 03:38:44 +00003353 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003354 if test -s conftest.err; then
3355 sed '10a\
3356... rest of stderr output deleted ...
3357 10q' conftest.err >conftest.er1
3358 cat conftest.er1 >&5
3359 fi
3360 rm -f conftest.er1 conftest.err
3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3362 test $ac_status = 0; }
3363done
Lev Walkinf15320b2004-06-03 03:38:44 +00003364
Lev Walkinaef10c32014-01-14 01:47:25 -08003365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003366/* end confdefs.h. */
3367
3368int
3369main ()
3370{
3371
3372 ;
3373 return 0;
3374}
3375_ACEOF
3376ac_clean_files_save=$ac_clean_files
Lev Walkinb3751942012-09-02 19:36:47 -07003377ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Lev Walkinf15320b2004-06-03 03:38:44 +00003378# Try to create an executable without -o first, disregard a.out.
3379# It will help us diagnose broken compilers, and finding out an intuition
3380# of exeext.
Lev Walkinaef10c32014-01-14 01:47:25 -08003381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3382$as_echo_n "checking whether the C compiler works... " >&6; }
Lev Walkinb3751942012-09-02 19:36:47 -07003383ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3384
3385# The possible output files:
3386ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3387
Lev Walkin27fd0b62007-08-27 23:57:45 +00003388ac_rmfiles=
3389for ac_file in $ac_files
3390do
3391 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003393 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3394 esac
3395done
3396rm -f $ac_rmfiles
3397
Lev Walkinaef10c32014-01-14 01:47:25 -08003398if { { ac_try="$ac_link_default"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003405 (eval "$ac_link_default") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003406 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003409 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3410# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3411# in a Makefile. We should not override ac_cv_exeext if it was cached,
3412# so that the user can short-circuit this test for compilers unknown to
3413# Autoconf.
Lev Walkin4c776e52010-11-08 02:07:31 -08003414for ac_file in $ac_files ''
Lev Walkinf15320b2004-06-03 03:38:44 +00003415do
3416 test -f "$ac_file" || continue
3417 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003419 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003420 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003421 # We found the default executable, but exeext='' is most
3422 # certainly right.
3423 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003424 *.* )
Lev Walkinaef10c32014-01-14 01:47:25 -08003425 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003426 then :; else
3427 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428 fi
3429 # We set ac_cv_exeext here because the later test for it is not
3430 # safe: cross compilers may not add the suffix if given an `-o'
3431 # argument, so we may need to know it at that point already.
3432 # Even if this section looks crufty: it has the advantage of
3433 # actually working.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003434 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003435 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003436 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003437 esac
3438done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003439test "$ac_cv_exeext" = no && ac_cv_exeext=
3440
Lev Walkinf15320b2004-06-03 03:38:44 +00003441else
Lev Walkin4c776e52010-11-08 02:07:31 -08003442 ac_file=''
3443fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003444if test -z "$ac_file"; then :
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446$as_echo "no" >&6; }
3447$as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003448sed 's/^/| /' conftest.$ac_ext >&5
3449
Lev Walkinaef10c32014-01-14 01:47:25 -08003450{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003452as_fn_error 77 "C compiler cannot create executables
3453See \`config.log' for more details" "$LINENO" 5; }
3454else
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003456$as_echo "yes" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003457fi
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3459$as_echo_n "checking for C compiler default output file name... " >&6; }
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3461$as_echo "$ac_file" >&6; }
3462ac_exeext=$ac_cv_exeext
Lev Walkinf15320b2004-06-03 03:38:44 +00003463
Lev Walkinb3751942012-09-02 19:36:47 -07003464rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Lev Walkinf15320b2004-06-03 03:38:44 +00003465ac_clean_files=$ac_clean_files_save
Lev Walkinaef10c32014-01-14 01:47:25 -08003466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003467$as_echo_n "checking for suffix of executables... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003468if { { ac_try="$ac_link"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003469case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003475 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003476 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003479 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3480# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3481# work properly (i.e., refer to `conftest.exe'), while it won't with
3482# `rm'.
3483for ac_file in conftest.exe conftest conftest.*; do
3484 test -f "$ac_file" || continue
3485 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003487 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00003488 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003489 * ) break;;
3490 esac
3491done
3492else
Lev Walkinaef10c32014-01-14 01:47:25 -08003493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003495as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3496See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003497fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003498rm -f conftest conftest$ac_cv_exeext
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003500$as_echo "$ac_cv_exeext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003501
3502rm -f conftest.$ac_ext
3503EXEEXT=$ac_cv_exeext
3504ac_exeext=$EXEEXT
Lev Walkinaef10c32014-01-14 01:47:25 -08003505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506/* end confdefs.h. */
3507#include <stdio.h>
3508int
3509main ()
3510{
3511FILE *f = fopen ("conftest.out", "w");
3512 return ferror (f) || fclose (f) != 0;
3513
3514 ;
3515 return 0;
3516}
3517_ACEOF
3518ac_clean_files="$ac_clean_files conftest.out"
3519# Check that the compiler produces executables we can run. If not, either
3520# the compiler is broken, or we cross compile.
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3522$as_echo_n "checking whether we are cross compiling... " >&6; }
3523if test "$cross_compiling" != yes; then
3524 { { ac_try="$ac_link"
3525case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530$as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }
3535 if { ac_try='./conftest$ac_cv_exeext'
3536 { { case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539esac
3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541$as_echo "$ac_try_echo"; } >&5
3542 (eval "$ac_try") 2>&5
3543 ac_status=$?
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }; }; then
3546 cross_compiling=no
3547 else
3548 if test "$cross_compiling" = maybe; then
3549 cross_compiling=yes
3550 else
3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553as_fn_error $? "cannot run C compiled programs.
3554If you meant to cross compile, use \`--host'.
3555See \`config.log' for more details" "$LINENO" 5; }
3556 fi
3557 fi
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3560$as_echo "$cross_compiling" >&6; }
3561
3562rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3563ac_clean_files=$ac_clean_files_save
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003565$as_echo_n "checking for suffix of object files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003566if ${ac_cv_objext+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003567 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003568else
Lev Walkinaef10c32014-01-14 01:47:25 -08003569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003570/* end confdefs.h. */
3571
3572int
3573main ()
3574{
3575
3576 ;
3577 return 0;
3578}
3579_ACEOF
3580rm -f conftest.o conftest.obj
Lev Walkinaef10c32014-01-14 01:47:25 -08003581if { { ac_try="$ac_compile"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003582case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003588 (eval "$ac_compile") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003589 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003592 for ac_file in conftest.o conftest.obj conftest.*; do
3593 test -f "$ac_file" || continue;
Lev Walkinf15320b2004-06-03 03:38:44 +00003594 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3597 break;;
3598 esac
3599done
3600else
Lev Walkinb3751942012-09-02 19:36:47 -07003601 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003602sed 's/^/| /' conftest.$ac_ext >&5
3603
Lev Walkinaef10c32014-01-14 01:47:25 -08003604{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003606as_fn_error $? "cannot compute suffix of object files: cannot compile
3607See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003608fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003609rm -f conftest.$ac_cv_objext conftest.$ac_ext
3610fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003612$as_echo "$ac_cv_objext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003613OBJEXT=$ac_cv_objext
3614ac_objext=$OBJEXT
Lev Walkinaef10c32014-01-14 01:47:25 -08003615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003616$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003617if ${ac_cv_c_compiler_gnu+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003618 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003619else
Lev Walkinaef10c32014-01-14 01:47:25 -08003620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003621/* end confdefs.h. */
3622
3623int
3624main ()
3625{
3626#ifndef __GNUC__
3627 choke me
3628#endif
3629
3630 ;
3631 return 0;
3632}
3633_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003634if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003635 ac_compiler_gnu=yes
3636else
Lev Walkinaef10c32014-01-14 01:47:25 -08003637 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003638fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003640ac_cv_c_compiler_gnu=$ac_compiler_gnu
3641
3642fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003644$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3645if test $ac_compiler_gnu = yes; then
3646 GCC=yes
3647else
3648 GCC=
3649fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003650ac_test_CFLAGS=${CFLAGS+set}
3651ac_save_CFLAGS=$CFLAGS
Lev Walkinaef10c32014-01-14 01:47:25 -08003652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003653$as_echo_n "checking whether $CC accepts -g... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003654if ${ac_cv_prog_cc_g+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003655 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003656else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003657 ac_save_c_werror_flag=$ac_c_werror_flag
3658 ac_c_werror_flag=yes
3659 ac_cv_prog_cc_g=no
3660 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -08003661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003662/* end confdefs.h. */
3663
3664int
3665main ()
3666{
3667
3668 ;
3669 return 0;
3670}
3671_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003672if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003673 ac_cv_prog_cc_g=yes
3674else
Lev Walkinaef10c32014-01-14 01:47:25 -08003675 CFLAGS=""
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003677/* end confdefs.h. */
3678
3679int
3680main ()
3681{
3682
3683 ;
3684 return 0;
3685}
3686_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003687if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003688
Lev Walkinaef10c32014-01-14 01:47:25 -08003689else
3690 ac_c_werror_flag=$ac_save_c_werror_flag
Lev Walkin27fd0b62007-08-27 23:57:45 +00003691 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -08003692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003693/* end confdefs.h. */
3694
3695int
3696main ()
3697{
3698
3699 ;
3700 return 0;
3701}
3702_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003703if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003704 ac_cv_prog_cc_g=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00003705fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003707fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 ac_c_werror_flag=$ac_save_c_werror_flag
3712fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003714$as_echo "$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003715if test "$ac_test_CFLAGS" = set; then
3716 CFLAGS=$ac_save_CFLAGS
3717elif test $ac_cv_prog_cc_g = yes; then
3718 if test "$GCC" = yes; then
3719 CFLAGS="-g -O2"
3720 else
3721 CFLAGS="-g"
3722 fi
3723else
3724 if test "$GCC" = yes; then
3725 CFLAGS="-O2"
3726 else
3727 CFLAGS=
3728 fi
3729fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003731$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003732if ${ac_cv_prog_cc_c89+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003733 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003734else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003735 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003736ac_save_CC=$CC
Lev Walkinaef10c32014-01-14 01:47:25 -08003737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003738/* end confdefs.h. */
3739#include <stdarg.h>
3740#include <stdio.h>
Lev Walkinaef10c32014-01-14 01:47:25 -08003741struct stat;
Lev Walkinf15320b2004-06-03 03:38:44 +00003742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3743struct buf { int x; };
3744FILE * (*rcsopen) (struct buf *, struct stat *, int);
3745static char *e (p, i)
3746 char **p;
3747 int i;
3748{
3749 return p[i];
3750}
3751static char *f (char * (*g) (char **, int), char **p, ...)
3752{
3753 char *s;
3754 va_list v;
3755 va_start (v,p);
3756 s = g (p, va_arg (v,int));
3757 va_end (v);
3758 return s;
3759}
Lev Walkin8e8b5482004-06-17 23:42:48 +00003760
3761/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3762 function prototypes and stuff, but not '\xHH' hex character constants.
3763 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +00003764 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +00003765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3766 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +00003767 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00003768int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3769
Lev Walkin27fd0b62007-08-27 23:57:45 +00003770/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3771 inside strings and character constants. */
3772#define FOO(x) 'x'
3773int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3774
Lev Walkinf15320b2004-06-03 03:38:44 +00003775int test (int i, double x);
3776struct s1 {int (*f) (int a);};
3777struct s2 {int (*f) (double a);};
3778int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3779int argc;
3780char **argv;
3781int
3782main ()
3783{
3784return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3785 ;
3786 return 0;
3787}
3788_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00003789for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +00003791do
3792 CC="$ac_save_CC $ac_arg"
Lev Walkinaef10c32014-01-14 01:47:25 -08003793 if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003794 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +00003795fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003796rm -f core conftest.err conftest.$ac_objext
3797 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +00003798done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003799rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003800CC=$ac_save_CC
3801
3802fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003803# AC_CACHE_VAL
3804case "x$ac_cv_prog_cc_c89" in
3805 x)
Lev Walkinaef10c32014-01-14 01:47:25 -08003806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003807$as_echo "none needed" >&6; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003808 xno)
Lev Walkinaef10c32014-01-14 01:47:25 -08003809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003810$as_echo "unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003811 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00003812 CC="$CC $ac_cv_prog_cc_c89"
Lev Walkinaef10c32014-01-14 01:47:25 -08003813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003814$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003815esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003816if test "x$ac_cv_prog_cc_c89" != xno; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003817
Lev Walkinaef10c32014-01-14 01:47:25 -08003818fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003819
Lev Walkinf15320b2004-06-03 03:38:44 +00003820ac_ext=c
3821ac_cpp='$CPP $CPPFLAGS'
3822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825
3826depcc="$CC" am_compiler_list=
3827
Lev Walkinaef10c32014-01-14 01:47:25 -08003828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003829$as_echo_n "checking dependency style of $depcc... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003830if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003831 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003832else
3833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3834 # We make a subdir and do the tests there. Otherwise we can end up
3835 # making bogus files that we don't know about and never remove. For
3836 # instance it was reported that on HP-UX the gcc test will end up
3837 # making a dummy file named `D' -- because `-MD' means `put the output
3838 # in D'.
3839 mkdir conftest.dir
3840 # Copy depcomp to subdir because otherwise we won't find it if we're
3841 # using a relative directory.
3842 cp "$am_depcomp" conftest.dir
3843 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003844 # We will build objects and dependencies in a subdirectory because
3845 # it helps to detect inapplicable dependency modes. For instance
3846 # both Tru64's cc and ICC support -MD to output dependencies as a
3847 # side effect of compilation, but ICC will put the dependencies in
3848 # the current directory while Tru64 will put them in the object
3849 # directory.
3850 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003851
3852 am_cv_CC_dependencies_compiler_type=none
3853 if test "$am_compiler_list" = ""; then
3854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3855 fi
Lev Walkinb3751942012-09-02 19:36:47 -07003856 am__universal=false
3857 case " $depcc " in #(
3858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3859 esac
3860
Lev Walkinf15320b2004-06-03 03:38:44 +00003861 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003862 # Setup a source with many dependencies, because some compilers
3863 # like to wrap large dependency lists on column 80 (with \), and
3864 # we should not choose a depcomp mode which is confused by this.
3865 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003866 # We need to recreate these files for each test, as the compiler may
3867 # overwrite some of them when testing with obscure command lines.
3868 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003869 : > sub/conftest.c
3870 for i in 1 2 3 4 5 6; do
3871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3872 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3873 # Solaris 8's {/usr,}/bin/sh.
3874 touch sub/conftst$i.h
3875 done
3876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003877
Lev Walkinb3751942012-09-02 19:36:47 -07003878 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3879 # mode. It turns out that the SunPro C++ compiler does not properly
3880 # handle `-M -o', and we need to detect this. Also, some Intel
3881 # versions had trouble with output in subdirs
3882 am__obj=sub/conftest.${OBJEXT-o}
3883 am__minus_obj="-o $am__obj"
Lev Walkinf15320b2004-06-03 03:38:44 +00003884 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -07003885 gcc)
3886 # This depmode causes a compiler race in universal mode.
3887 test "$am__universal" = false || continue
3888 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003889 nosideeffect)
3890 # after this tag, mechanisms are not by side-effect, so they'll
3891 # only be used when explicitly requested
3892 if test "x$enable_dependency_tracking" = xyes; then
3893 continue
3894 else
3895 break
3896 fi
3897 ;;
Lev Walkinb3751942012-09-02 19:36:47 -07003898 msvisualcpp | msvcmsys)
3899 # This compiler won't grok `-c -o', but also, the minuso test has
3900 # not run yet. These depmodes are late enough in the game, and
3901 # so weak that their functioning should not be impacted.
3902 am__obj=conftest.${OBJEXT-o}
3903 am__minus_obj=
3904 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003905 none) break ;;
3906 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003907 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -07003908 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -07003910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003911 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -08003912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -07003914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003916 # icc doesn't choke on unknown options, it will just issue warnings
3917 # or remarks (even with -Werror). So we grep stderr for any message
3918 # that says an option was ignored or not supported.
3919 # When given -MP, icc 7.0 and 7.1 complain thusly:
3920 # icc: Command line warning: ignoring option '-M'; no argument required
3921 # The diagnosis changed in icc 8.0:
3922 # icc: Command line remark: option '-MP' not supported
3923 if (grep 'ignoring option' conftest.err ||
3924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3925 am_cv_CC_dependencies_compiler_type=$depmode
3926 break
3927 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003928 fi
3929 done
3930
3931 cd ..
3932 rm -rf conftest.dir
3933else
3934 am_cv_CC_dependencies_compiler_type=none
3935fi
3936
3937fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003939$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003940CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3941
Lev Walkin4c776e52010-11-08 02:07:31 -08003942 if
Lev Walkin8e8b5482004-06-17 23:42:48 +00003943 test "x$enable_dependency_tracking" != xno \
3944 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3945 am__fastdepCC_TRUE=
3946 am__fastdepCC_FALSE='#'
3947else
3948 am__fastdepCC_TRUE='#'
3949 am__fastdepCC_FALSE=
3950fi
3951
3952
Lev Walkinaef10c32014-01-14 01:47:25 -08003953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003954$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003955if ${ac_cv_path_SED+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003956 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003957else
Lev Walkin4da95cf2010-10-16 02:46:32 -07003958 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3959 for ac_i in 1 2 3 4 5 6 7; do
3960 ac_script="$ac_script$as_nl$ac_script"
3961 done
Lev Walkinb3751942012-09-02 19:36:47 -07003962 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Lev Walkinaef10c32014-01-14 01:47:25 -08003963 { ac_script=; unset ac_script;}
Lev Walkinb3751942012-09-02 19:36:47 -07003964 if test -z "$SED"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07003965 ac_path_SED_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07003966 # Loop through the user's path and test for each of PROGNAME-LIST
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin8e8b5482004-06-17 23:42:48 +00003968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003972 for ac_prog in sed gsed; do
Lev Walkinb3751942012-09-02 19:36:47 -07003973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08003975 as_fn_executable_p "$ac_path_SED" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07003976# Check for GNU ac_path_SED and select it if it is found.
Lev Walkin4da95cf2010-10-16 02:46:32 -07003977 # Check for GNU $ac_path_SED
3978case `"$ac_path_SED" --version 2>&1` in
3979*GNU*)
3980 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3981*)
3982 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07003983 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin4da95cf2010-10-16 02:46:32 -07003984 while :
3985 do
3986 cat "conftest.in" "conftest.in" >"conftest.tmp"
3987 mv "conftest.tmp" "conftest.in"
3988 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07003989 $as_echo '' >> "conftest.nl"
Lev Walkin4da95cf2010-10-16 02:46:32 -07003990 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08003992 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin4da95cf2010-10-16 02:46:32 -07003993 if test $ac_count -gt ${ac_path_SED_max-0}; then
3994 # Best one so far, save it but keep looking for a better one
3995 ac_cv_path_SED="$ac_path_SED"
3996 ac_path_SED_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003997 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003998 # 10*(2^10) chars as input seems more than enough
3999 test $ac_count -gt 10 && break
4000 done
4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4002esac
4003
Lev Walkinb3751942012-09-02 19:36:47 -07004004 $ac_path_SED_found && break 3
4005 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004006 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004007 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004008IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004009 if test -z "$ac_cv_path_SED"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004010 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004011 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004012else
4013 ac_cv_path_SED=$SED
4014fi
4015
4016fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004018$as_echo "$ac_cv_path_SED" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004019 SED="$ac_cv_path_SED"
4020 rm -f conftest.sed
4021
4022test -z "$SED" && SED=sed
4023Xsed="$SED -e 1s/^X//"
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
Lev Walkin8e8b5482004-06-17 23:42:48 +00004034
Lev Walkinaef10c32014-01-14 01:47:25 -08004035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004036$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004037if ${ac_cv_path_GREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004038 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00004039else
Lev Walkinb3751942012-09-02 19:36:47 -07004040 if test -z "$GREP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004041 ac_path_GREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004042 # Loop through the user's path and test for each of PROGNAME-LIST
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +00004044for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4045do
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004048 for ac_prog in grep ggrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004051 as_fn_executable_p "$ac_path_GREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004052# Check for GNU ac_path_GREP and select it if it is found.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004053 # Check for GNU $ac_path_GREP
4054case `"$ac_path_GREP" --version 2>&1` in
4055*GNU*)
4056 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4057*)
4058 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004059 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004060 while :
4061 do
4062 cat "conftest.in" "conftest.in" >"conftest.tmp"
4063 mv "conftest.tmp" "conftest.in"
4064 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004065 $as_echo 'GREP' >> "conftest.nl"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004066 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004068 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin27fd0b62007-08-27 23:57:45 +00004069 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4070 # Best one so far, save it but keep looking for a better one
4071 ac_cv_path_GREP="$ac_path_GREP"
4072 ac_path_GREP_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00004073 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004074 # 10*(2^10) chars as input seems more than enough
4075 test $ac_count -gt 10 && break
4076 done
4077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4078esac
4079
Lev Walkinb3751942012-09-02 19:36:47 -07004080 $ac_path_GREP_found && break 3
4081 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004082 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004083 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004084IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004085 if test -z "$ac_cv_path_GREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004086 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004087 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004088else
4089 ac_cv_path_GREP=$GREP
4090fi
4091
Lev Walkin27fd0b62007-08-27 23:57:45 +00004092fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004094$as_echo "$ac_cv_path_GREP" >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004095 GREP="$ac_cv_path_GREP"
4096
4097
Lev Walkinaef10c32014-01-14 01:47:25 -08004098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004099$as_echo_n "checking for egrep... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004100if ${ac_cv_path_EGREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004101 $as_echo_n "(cached) " >&6
Lev Walkin27fd0b62007-08-27 23:57:45 +00004102else
4103 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4104 then ac_cv_path_EGREP="$GREP -E"
4105 else
Lev Walkinb3751942012-09-02 19:36:47 -07004106 if test -z "$EGREP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004107 ac_path_EGREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004108 # Loop through the user's path and test for each of PROGNAME-LIST
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +00004110for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4111do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004114 for ac_prog in egrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004117 as_fn_executable_p "$ac_path_EGREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004118# Check for GNU ac_path_EGREP and select it if it is found.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004119 # Check for GNU $ac_path_EGREP
4120case `"$ac_path_EGREP" --version 2>&1` in
4121*GNU*)
4122 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4123*)
4124 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004125 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004126 while :
4127 do
4128 cat "conftest.in" "conftest.in" >"conftest.tmp"
4129 mv "conftest.tmp" "conftest.in"
4130 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004131 $as_echo 'EGREP' >> "conftest.nl"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004132 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004134 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin27fd0b62007-08-27 23:57:45 +00004135 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4136 # Best one so far, save it but keep looking for a better one
4137 ac_cv_path_EGREP="$ac_path_EGREP"
4138 ac_path_EGREP_max=$ac_count
4139 fi
4140 # 10*(2^10) chars as input seems more than enough
4141 test $ac_count -gt 10 && break
4142 done
4143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4144esac
4145
Lev Walkinb3751942012-09-02 19:36:47 -07004146 $ac_path_EGREP_found && break 3
4147 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004148 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004149 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004150IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004151 if test -z "$ac_cv_path_EGREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004152 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004153 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004154else
4155 ac_cv_path_EGREP=$EGREP
4156fi
4157
Lev Walkin27fd0b62007-08-27 23:57:45 +00004158 fi
4159fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004161$as_echo "$ac_cv_path_EGREP" >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004162 EGREP="$ac_cv_path_EGREP"
Lev Walkinf15320b2004-06-03 03:38:44 +00004163
4164
Lev Walkinaef10c32014-01-14 01:47:25 -08004165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004166$as_echo_n "checking for fgrep... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004167if ${ac_cv_path_FGREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004168 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004169else
4170 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4171 then ac_cv_path_FGREP="$GREP -F"
4172 else
Lev Walkinb3751942012-09-02 19:36:47 -07004173 if test -z "$FGREP"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004174 ac_path_FGREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004175 # Loop through the user's path and test for each of PROGNAME-LIST
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin4da95cf2010-10-16 02:46:32 -07004177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004181 for ac_prog in fgrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004184 as_fn_executable_p "$ac_path_FGREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004185# Check for GNU ac_path_FGREP and select it if it is found.
Lev Walkin4da95cf2010-10-16 02:46:32 -07004186 # Check for GNU $ac_path_FGREP
4187case `"$ac_path_FGREP" --version 2>&1` in
4188*GNU*)
4189 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4190*)
4191 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004192 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004193 while :
4194 do
4195 cat "conftest.in" "conftest.in" >"conftest.tmp"
4196 mv "conftest.tmp" "conftest.in"
4197 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004198 $as_echo 'FGREP' >> "conftest.nl"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004199 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004201 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin4da95cf2010-10-16 02:46:32 -07004202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4203 # Best one so far, save it but keep looking for a better one
4204 ac_cv_path_FGREP="$ac_path_FGREP"
4205 ac_path_FGREP_max=$ac_count
4206 fi
4207 # 10*(2^10) chars as input seems more than enough
4208 test $ac_count -gt 10 && break
4209 done
4210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4211esac
4212
Lev Walkinb3751942012-09-02 19:36:47 -07004213 $ac_path_FGREP_found && break 3
4214 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004215 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004216 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004217IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004218 if test -z "$ac_cv_path_FGREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004219 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004220 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004221else
4222 ac_cv_path_FGREP=$FGREP
4223fi
4224
Lev Walkin4da95cf2010-10-16 02:46:32 -07004225 fi
4226fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004228$as_echo "$ac_cv_path_FGREP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004229 FGREP="$ac_cv_path_FGREP"
4230
4231
4232test -z "$GREP" && GREP=grep
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
Lev Walkinf15320b2004-06-03 03:38:44 +00004251
Lev Walkin27fd0b62007-08-27 23:57:45 +00004252# Check whether --with-gnu-ld was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08004253if test "${with_gnu_ld+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00004254 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00004255else
4256 with_gnu_ld=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00004257fi
4258
Lev Walkinf15320b2004-06-03 03:38:44 +00004259ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00004260if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004261 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkinaef10c32014-01-14 01:47:25 -08004262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004263$as_echo_n "checking for ld used by $CC... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004264 case $host in
4265 *-*-mingw*)
4266 # gcc leaves a trailing carriage return which upsets mingw
4267 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4268 *)
4269 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4270 esac
4271 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00004272 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004273 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004274 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004275 # Canonicalize the pathname of ld
Lev Walkin4da95cf2010-10-16 02:46:32 -07004276 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4277 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4278 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00004279 done
4280 test -z "$LD" && LD="$ac_prog"
4281 ;;
4282 "")
4283 # If it fails, then pretend we aren't using GCC.
4284 ac_prog=ld
4285 ;;
4286 *)
4287 # If it is relative, then search for the first ld in PATH.
4288 with_gnu_ld=unknown
4289 ;;
4290 esac
4291elif test "$with_gnu_ld" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004293$as_echo_n "checking for GNU ld... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004294else
Lev Walkinaef10c32014-01-14 01:47:25 -08004295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004296$as_echo_n "checking for non-GNU ld... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004297fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004298if ${lt_cv_path_LD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004299 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004300else
4301 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00004303 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004304 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004305 test -z "$ac_dir" && ac_dir=.
4306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004307 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00004308 # Check to see if the program is GNU ld. I'd rather use --version,
Lev Walkinfbf1d282007-12-03 14:58:39 +00004309 # but apparently some variants of GNU ld only accept -v.
Lev Walkinf15320b2004-06-03 03:38:44 +00004310 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4312 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004313 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004314 ;;
4315 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00004316 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004317 ;;
4318 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004319 fi
4320 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004321 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004322else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004323 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00004324fi
4325fi
4326
Lev Walkin8e8b5482004-06-17 23:42:48 +00004327LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00004328if test -n "$LD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004330$as_echo "$LD" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004331else
Lev Walkinaef10c32014-01-14 01:47:25 -08004332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004333$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004334fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004335test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004337$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004338if ${lt_cv_prog_gnu_ld+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004339 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004340else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004341 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004342case `$LD -v 2>&1 </dev/null` in
4343*GNU* | *'with BFD'*)
4344 lt_cv_prog_gnu_ld=yes
4345 ;;
4346*)
4347 lt_cv_prog_gnu_ld=no
4348 ;;
4349esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004350fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004352$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004353with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00004354
4355
Lev Walkin8e8b5482004-06-17 23:42:48 +00004356
Lev Walkin4da95cf2010-10-16 02:46:32 -07004357
4358
4359
4360
4361
4362
Lev Walkinaef10c32014-01-14 01:47:25 -08004363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004364$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004365if ${lt_cv_path_NM+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004366 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004367else
4368 if test -n "$NM"; then
4369 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004370 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00004371else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004372 lt_nm_to_check="${ac_tool_prefix}nm"
4373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4374 lt_nm_to_check="$lt_nm_to_check nm"
4375 fi
4376 for lt_tmp_nm in $lt_nm_to_check; do
4377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4378 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4379 IFS="$lt_save_ifs"
4380 test -z "$ac_dir" && ac_dir=.
4381 tmp_nm="$ac_dir/$lt_tmp_nm"
4382 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4383 # Check to see if the nm accepts a BSD-compat flag.
4384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4385 # nm: unknown option "B" ignored
4386 # Tru64's nm complains that /dev/null is an invalid object file
4387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4388 */dev/null* | *'Invalid file or object type'*)
4389 lt_cv_path_NM="$tmp_nm -B"
Lev Walkin8e8b5482004-06-17 23:42:48 +00004390 break
4391 ;;
4392 *)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4394 */dev/null*)
4395 lt_cv_path_NM="$tmp_nm -p"
4396 break
4397 ;;
4398 *)
4399 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4400 continue # so that we can try to find one that supports BSD flags
4401 ;;
4402 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00004403 ;;
4404 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +00004405 fi
4406 done
4407 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004408 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004409 : ${lt_cv_path_NM=no}
Lev Walkinf15320b2004-06-03 03:38:44 +00004410fi
4411fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004413$as_echo "$lt_cv_path_NM" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004414if test "$lt_cv_path_NM" != "no"; then
4415 NM="$lt_cv_path_NM"
4416else
4417 # Didn't find any BSD compatible name lister, look for dumpbin.
Lev Walkinaef10c32014-01-14 01:47:25 -08004418 if test -n "$DUMPBIN"; then :
4419 # Let the user override the test.
4420 else
4421 if test -n "$ac_tool_prefix"; then
4422 for ac_prog in dumpbin "link -dump"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004423 do
4424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4425set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08004426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004427$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004428if ${ac_cv_prog_DUMPBIN+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004429 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004430else
4431 if test -n "$DUMPBIN"; then
4432 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4433else
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004441 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08004442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004443 break 2
4444 fi
4445done
Lev Walkinaef10c32014-01-14 01:47:25 -08004446 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004447IFS=$as_save_IFS
4448
4449fi
4450fi
4451DUMPBIN=$ac_cv_prog_DUMPBIN
4452if test -n "$DUMPBIN"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004454$as_echo "$DUMPBIN" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004455else
Lev Walkinaef10c32014-01-14 01:47:25 -08004456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004457$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004458fi
4459
4460
4461 test -n "$DUMPBIN" && break
4462 done
4463fi
4464if test -z "$DUMPBIN"; then
4465 ac_ct_DUMPBIN=$DUMPBIN
Lev Walkinaef10c32014-01-14 01:47:25 -08004466 for ac_prog in dumpbin "link -dump"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004467do
4468 # Extract the first word of "$ac_prog", so it can be a program name with args.
4469set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08004470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004471$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004472if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004473 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004474else
4475 if test -n "$ac_ct_DUMPBIN"; then
4476 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004485 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08004486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004487 break 2
4488 fi
4489done
Lev Walkinaef10c32014-01-14 01:47:25 -08004490 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004491IFS=$as_save_IFS
4492
4493fi
4494fi
4495ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4496if test -n "$ac_ct_DUMPBIN"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004498$as_echo "$ac_ct_DUMPBIN" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004499else
Lev Walkinaef10c32014-01-14 01:47:25 -08004500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004501$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004502fi
4503
4504
4505 test -n "$ac_ct_DUMPBIN" && break
4506done
4507
4508 if test "x$ac_ct_DUMPBIN" = x; then
4509 DUMPBIN=":"
4510 else
4511 case $cross_compiling:$ac_tool_warned in
4512yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08004513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07004515ac_tool_warned=yes ;;
4516esac
4517 DUMPBIN=$ac_ct_DUMPBIN
4518 fi
4519fi
4520
Lev Walkinaef10c32014-01-14 01:47:25 -08004521 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4522 *COFF*)
4523 DUMPBIN="$DUMPBIN -symbols"
4524 ;;
4525 *)
4526 DUMPBIN=:
4527 ;;
4528 esac
4529 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004530
4531 if test "$DUMPBIN" != ":"; then
4532 NM="$DUMPBIN"
4533 fi
4534fi
4535test -z "$NM" && NM=nm
4536
4537
4538
4539
4540
4541
Lev Walkinaef10c32014-01-14 01:47:25 -08004542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004543$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004544if ${lt_cv_nm_interface+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004545 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004546else
4547 lt_cv_nm_interface="BSD nm"
4548 echo "int some_variable = 0;" > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08004549 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004550 (eval "$ac_compile" 2>conftest.err)
4551 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08004552 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004553 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4554 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08004555 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004556 cat conftest.out >&5
4557 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4558 lt_cv_nm_interface="MS dumpbin"
4559 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004560 rm -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07004561fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004563$as_echo "$lt_cv_nm_interface" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004564
Lev Walkinaef10c32014-01-14 01:47:25 -08004565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004566$as_echo_n "checking whether ln -s works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004567LN_S=$as_ln_s
4568if test "$LN_S" = "ln -s"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004570$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004571else
Lev Walkinaef10c32014-01-14 01:47:25 -08004572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004573$as_echo "no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004574fi
4575
Lev Walkin4da95cf2010-10-16 02:46:32 -07004576# find the maximum length of command line arguments
Lev Walkinaef10c32014-01-14 01:47:25 -08004577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004578$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004579if ${lt_cv_sys_max_cmd_len+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004580 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004581else
4582 i=0
4583 teststring="ABCD"
4584
4585 case $build_os in
4586 msdosdjgpp*)
4587 # On DJGPP, this test can blow up pretty badly due to problems in libc
4588 # (any single argument exceeding 2000 bytes causes a buffer overrun
4589 # during glob expansion). Even if it were fixed, the result of this
4590 # check would be larger than it should be.
4591 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4592 ;;
4593
4594 gnu*)
4595 # Under GNU Hurd, this test is not required because there is
4596 # no limit to the length of command line arguments.
4597 # Libtool will interpret -1 as no limit whatsoever
4598 lt_cv_sys_max_cmd_len=-1;
4599 ;;
4600
Lev Walkinaef10c32014-01-14 01:47:25 -08004601 cygwin* | mingw* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004602 # On Win9x/ME, this test blows up -- it succeeds, but takes
4603 # about 5 minutes as the teststring grows exponentially.
4604 # Worse, since 9x/ME are not pre-emptively multitasking,
4605 # you end up with a "frozen" computer, even though with patience
4606 # the test eventually succeeds (with a max line length of 256k).
4607 # Instead, let's just punt: use the minimum linelength reported by
4608 # all of the supported platforms: 8192 (on NT/2K/XP).
4609 lt_cv_sys_max_cmd_len=8192;
4610 ;;
4611
Lev Walkinaef10c32014-01-14 01:47:25 -08004612 mint*)
4613 # On MiNT this can take a long time and run out of memory.
4614 lt_cv_sys_max_cmd_len=8192;
4615 ;;
4616
Lev Walkin4da95cf2010-10-16 02:46:32 -07004617 amigaos*)
4618 # On AmigaOS with pdksh, this test takes hours, literally.
4619 # So we just punt and use a minimum line length of 8192.
4620 lt_cv_sys_max_cmd_len=8192;
4621 ;;
4622
4623 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4624 # This has been around since 386BSD, at least. Likely further.
4625 if test -x /sbin/sysctl; then
4626 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4627 elif test -x /usr/sbin/sysctl; then
4628 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4629 else
4630 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4631 fi
4632 # And add a safety zone
4633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4635 ;;
4636
4637 interix*)
4638 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4639 lt_cv_sys_max_cmd_len=196608
4640 ;;
4641
4642 osf*)
4643 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4644 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4645 # nice to cause kernel panics so lets avoid the loop below.
4646 # First set a reasonable default.
4647 lt_cv_sys_max_cmd_len=16384
4648 #
4649 if test -x /sbin/sysconfig; then
4650 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4651 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4652 esac
4653 fi
4654 ;;
4655 sco3.2v5*)
4656 lt_cv_sys_max_cmd_len=102400
4657 ;;
4658 sysv5* | sco5v6* | sysv4.2uw2*)
4659 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4660 if test -n "$kargmax"; then
4661 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4662 else
4663 lt_cv_sys_max_cmd_len=32768
4664 fi
4665 ;;
4666 *)
4667 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4668 if test -n "$lt_cv_sys_max_cmd_len"; then
4669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4671 else
4672 # Make teststring a little bigger before we do anything with it.
4673 # a 1K string should be a reasonable start.
4674 for i in 1 2 3 4 5 6 7 8 ; do
4675 teststring=$teststring$teststring
4676 done
4677 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4678 # If test is not a shell built-in, we'll probably end up computing a
4679 # maximum length that is only half of the actual maximum length, but
4680 # we can't tell.
Lev Walkinaef10c32014-01-14 01:47:25 -08004681 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4682 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Lev Walkin4da95cf2010-10-16 02:46:32 -07004683 test $i != 17 # 1/2 MB should be enough
4684 do
4685 i=`expr $i + 1`
4686 teststring=$teststring$teststring
4687 done
4688 # Only check the string length outside the loop.
4689 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4690 teststring=
4691 # Add a significant safety factor because C++ compilers can tack on
4692 # massive amounts of additional arguments before passing them to the
4693 # linker. It appears as though 1/2 is a usable value.
4694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4695 fi
4696 ;;
4697 esac
4698
4699fi
4700
4701if test -n $lt_cv_sys_max_cmd_len ; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004703$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004704else
Lev Walkinaef10c32014-01-14 01:47:25 -08004705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004706$as_echo "none" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004707fi
4708max_cmd_len=$lt_cv_sys_max_cmd_len
4709
4710
4711
4712
4713
4714
4715: ${CP="cp -f"}
4716: ${MV="mv -f"}
4717: ${RM="rm -f"}
4718
Lev Walkinaef10c32014-01-14 01:47:25 -08004719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004720$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004721# Try some XSI features
4722xsi_shell=no
4723( _lt_dummy="a/b/c"
Lev Walkinaef10c32014-01-14 01:47:25 -08004724 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4725 = c,a/b,b/c, \
Lev Walkin4da95cf2010-10-16 02:46:32 -07004726 && eval 'test $(( 1 + 1 )) -eq 2 \
4727 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4728 && xsi_shell=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08004729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004730$as_echo "$xsi_shell" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004731
4732
Lev Walkinaef10c32014-01-14 01:47:25 -08004733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004734$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004735lt_shell_append=no
4736( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4737 >/dev/null 2>&1 \
4738 && lt_shell_append=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08004739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004740$as_echo "$lt_shell_append" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004741
4742
4743if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4744 lt_unset=unset
4745else
4746 lt_unset=false
4747fi
4748
4749
4750
4751
4752
4753# test EBCDIC or ASCII
4754case `echo X|tr X '\101'` in
4755 A) # ASCII based system
4756 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4757 lt_SP2NL='tr \040 \012'
4758 lt_NL2SP='tr \015\012 \040\040'
4759 ;;
4760 *) # EBCDIC based system
4761 lt_SP2NL='tr \100 \n'
4762 lt_NL2SP='tr \r\n \100\100'
4763 ;;
4764esac
4765
4766
4767
4768
4769
4770
4771
4772
4773
Lev Walkinaef10c32014-01-14 01:47:25 -08004774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4775$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4776if ${lt_cv_to_host_file_cmd+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778else
4779 case $host in
4780 *-*-mingw* )
4781 case $build in
4782 *-*-mingw* ) # actually msys
4783 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4784 ;;
4785 *-*-cygwin* )
4786 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4787 ;;
4788 * ) # otherwise, assume *nix
4789 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4790 ;;
4791 esac
4792 ;;
4793 *-*-cygwin* )
4794 case $build in
4795 *-*-mingw* ) # actually msys
4796 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4797 ;;
4798 *-*-cygwin* )
4799 lt_cv_to_host_file_cmd=func_convert_file_noop
4800 ;;
4801 * ) # otherwise, assume *nix
4802 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4803 ;;
4804 esac
4805 ;;
4806 * ) # unhandled hosts (and "normal" native builds)
4807 lt_cv_to_host_file_cmd=func_convert_file_noop
4808 ;;
4809esac
4810
4811fi
4812
4813to_host_file_cmd=$lt_cv_to_host_file_cmd
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4815$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4816
4817
4818
4819
4820
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4822$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4823if ${lt_cv_to_tool_file_cmd+:} false; then :
4824 $as_echo_n "(cached) " >&6
4825else
4826 #assume ordinary cross tools, or native build.
4827lt_cv_to_tool_file_cmd=func_convert_file_noop
4828case $host in
4829 *-*-mingw* )
4830 case $build in
4831 *-*-mingw* ) # actually msys
4832 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4833 ;;
4834 esac
4835 ;;
4836esac
4837
4838fi
4839
4840to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4842$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4843
4844
4845
4846
4847
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004849$as_echo_n "checking for $LD option to reload object files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004850if ${lt_cv_ld_reload_flag+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004851 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004852else
4853 lt_cv_ld_reload_flag='-r'
4854fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004856$as_echo "$lt_cv_ld_reload_flag" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004857reload_flag=$lt_cv_ld_reload_flag
4858case $reload_flag in
4859"" | " "*) ;;
4860*) reload_flag=" $reload_flag" ;;
4861esac
4862reload_cmds='$LD$reload_flag -o $output$reload_objs'
4863case $host_os in
Lev Walkinaef10c32014-01-14 01:47:25 -08004864 cygwin* | mingw* | pw32* | cegcc*)
4865 if test "$GCC" != yes; then
4866 reload_cmds=false
4867 fi
4868 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07004869 darwin*)
4870 if test "$GCC" = yes; then
4871 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4872 else
4873 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4874 fi
4875 ;;
4876esac
4877
4878
4879
4880
4881
4882
4883
4884
4885
Lev Walkinaef10c32014-01-14 01:47:25 -08004886if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4888set dummy ${ac_tool_prefix}objdump; ac_word=$2
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890$as_echo_n "checking for $ac_word... " >&6; }
4891if ${ac_cv_prog_OBJDUMP+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893else
4894 if test -n "$OBJDUMP"; then
4895 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4896else
4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4907 fi
4908done
4909 done
4910IFS=$as_save_IFS
Lev Walkin4da95cf2010-10-16 02:46:32 -07004911
Lev Walkinaef10c32014-01-14 01:47:25 -08004912fi
4913fi
4914OBJDUMP=$ac_cv_prog_OBJDUMP
4915if test -n "$OBJDUMP"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4917$as_echo "$OBJDUMP" >&6; }
4918else
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920$as_echo "no" >&6; }
4921fi
4922
4923
4924fi
4925if test -z "$ac_cv_prog_OBJDUMP"; then
4926 ac_ct_OBJDUMP=$OBJDUMP
4927 # Extract the first word of "objdump", so it can be a program name with args.
4928set dummy objdump; ac_word=$2
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
4931if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933else
4934 if test -n "$ac_ct_OBJDUMP"; then
4935 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4947 fi
4948done
4949 done
4950IFS=$as_save_IFS
4951
4952fi
4953fi
4954ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4955if test -n "$ac_ct_OBJDUMP"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4957$as_echo "$ac_ct_OBJDUMP" >&6; }
4958else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
4961fi
4962
4963 if test "x$ac_ct_OBJDUMP" = x; then
4964 OBJDUMP="false"
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967yes:)
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970ac_tool_warned=yes ;;
4971esac
4972 OBJDUMP=$ac_ct_OBJDUMP
4973 fi
4974else
4975 OBJDUMP="$ac_cv_prog_OBJDUMP"
4976fi
4977
4978test -z "$OBJDUMP" && OBJDUMP=objdump
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004989$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004990if ${lt_cv_deplibs_check_method+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004991 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00004992else
4993 lt_cv_file_magic_cmd='$MAGIC_CMD'
4994lt_cv_file_magic_test_file=
4995lt_cv_deplibs_check_method='unknown'
4996# Need to set the preceding variable on all platforms that support
4997# interlibrary dependencies.
4998# 'none' -- dependencies not supported.
4999# `unknown' -- same as none, but documents that we really don't know.
5000# 'pass_all' -- all dependencies passed with no checks.
5001# 'test_compile' -- check by making test program.
5002# 'file_magic [[regex]]' -- check by looking for files in library path
5003# which responds to the $file_magic_cmd with a given extended regex.
5004# If you have `file' or equivalent on your system and you're not sure
5005# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00005006
Lev Walkin8e8b5482004-06-17 23:42:48 +00005007case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07005008aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005009 lt_cv_deplibs_check_method=pass_all
5010 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00005011
Lev Walkin8e8b5482004-06-17 23:42:48 +00005012beos*)
5013 lt_cv_deplibs_check_method=pass_all
5014 ;;
5015
Lev Walkinfbf1d282007-12-03 14:58:39 +00005016bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5018 lt_cv_file_magic_cmd='/usr/bin/file -L'
5019 lt_cv_file_magic_test_file=/shlib/libc.so
5020 ;;
5021
5022cygwin*)
5023 # func_win32_libid is a shell function defined in ltmain.sh
5024 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5025 lt_cv_file_magic_cmd='func_win32_libid'
5026 ;;
5027
5028mingw* | pw32*)
5029 # Base MSYS/MinGW do not provide the 'file' command needed by
Lev Walkin4da95cf2010-10-16 02:46:32 -07005030 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5031 # unless we find 'file', for example because we are cross-compiling.
Lev Walkinaef10c32014-01-14 01:47:25 -08005032 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5033 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005034 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5035 lt_cv_file_magic_cmd='func_win32_libid'
5036 else
Lev Walkinaef10c32014-01-14 01:47:25 -08005037 # Keep this pattern in sync with the one in func_win32_libid.
5038 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Lev Walkin4da95cf2010-10-16 02:46:32 -07005039 lt_cv_file_magic_cmd='$OBJDUMP -f'
5040 fi
5041 ;;
5042
Lev Walkinaef10c32014-01-14 01:47:25 -08005043cegcc*)
5044 # use the weaker test based on 'objdump'. See mingw*.
5045 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5046 lt_cv_file_magic_cmd='$OBJDUMP -f'
5047 ;;
5048
Lev Walkin8e8b5482004-06-17 23:42:48 +00005049darwin* | rhapsody*)
5050 lt_cv_deplibs_check_method=pass_all
5051 ;;
5052
Lev Walkin4da95cf2010-10-16 02:46:32 -07005053freebsd* | dragonfly*)
5054 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005055 case $host_cpu in
5056 i*86 )
5057 # Not sure whether the presence of OpenBSD here was a mistake.
5058 # Let's accept both of them until this is cleared up.
Lev Walkinfbf1d282007-12-03 14:58:39 +00005059 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005060 lt_cv_file_magic_cmd=/usr/bin/file
5061 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5062 ;;
5063 esac
5064 else
5065 lt_cv_deplibs_check_method=pass_all
5066 fi
5067 ;;
5068
5069gnu*)
5070 lt_cv_deplibs_check_method=pass_all
5071 ;;
5072
Lev Walkinaef10c32014-01-14 01:47:25 -08005073haiku*)
5074 lt_cv_deplibs_check_method=pass_all
5075 ;;
5076
Lev Walkin8e8b5482004-06-17 23:42:48 +00005077hpux10.20* | hpux11*)
5078 lt_cv_file_magic_cmd=/usr/bin/file
Lev Walkinfbf1d282007-12-03 14:58:39 +00005079 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00005080 ia64*)
5081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5082 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5083 ;;
5084 hppa*64*)
Lev Walkinaef10c32014-01-14 01:47:25 -08005085 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]'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005086 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5087 ;;
5088 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08005089 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005090 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5091 ;;
5092 esac
5093 ;;
5094
Lev Walkin4da95cf2010-10-16 02:46:32 -07005095interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00005096 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5098 ;;
5099
Lev Walkin8e8b5482004-06-17 23:42:48 +00005100irix5* | irix6* | nonstopux*)
5101 case $LD in
5102 *-32|*"-32 ") libmagic=32-bit;;
5103 *-n32|*"-n32 ") libmagic=N32;;
5104 *-64|*"-64 ") libmagic=64-bit;;
5105 *) libmagic=never-match;;
5106 esac
5107 lt_cv_deplibs_check_method=pass_all
5108 ;;
5109
5110# This must be Linux ELF.
Lev Walkinaef10c32014-01-14 01:47:25 -08005111linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005112 lt_cv_deplibs_check_method=pass_all
5113 ;;
5114
5115netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5118 else
5119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5120 fi
5121 ;;
5122
5123newos6*)
5124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5125 lt_cv_file_magic_cmd=/usr/bin/file
5126 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5127 ;;
5128
Lev Walkin4da95cf2010-10-16 02:46:32 -07005129*nto* | *qnx*)
5130 lt_cv_deplibs_check_method=pass_all
Lev Walkin8e8b5482004-06-17 23:42:48 +00005131 ;;
5132
5133openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005134 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00005135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005136 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00005137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005138 fi
5139 ;;
5140
5141osf3* | osf4* | osf5*)
5142 lt_cv_deplibs_check_method=pass_all
5143 ;;
5144
Lev Walkin4da95cf2010-10-16 02:46:32 -07005145rdos*)
5146 lt_cv_deplibs_check_method=pass_all
5147 ;;
5148
Lev Walkin8e8b5482004-06-17 23:42:48 +00005149solaris*)
5150 lt_cv_deplibs_check_method=pass_all
5151 ;;
5152
Lev Walkin4da95cf2010-10-16 02:46:32 -07005153sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5154 lt_cv_deplibs_check_method=pass_all
5155 ;;
5156
Lev Walkinfbf1d282007-12-03 14:58:39 +00005157sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005158 case $host_vendor in
5159 motorola)
5160 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]'
5161 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5162 ;;
5163 ncr)
5164 lt_cv_deplibs_check_method=pass_all
5165 ;;
5166 sequent)
5167 lt_cv_file_magic_cmd='/bin/file'
5168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5169 ;;
5170 sni)
5171 lt_cv_file_magic_cmd='/bin/file'
5172 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5173 lt_cv_file_magic_test_file=/lib/libc.so
5174 ;;
5175 siemens)
5176 lt_cv_deplibs_check_method=pass_all
5177 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00005178 pc)
5179 lt_cv_deplibs_check_method=pass_all
5180 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00005181 esac
5182 ;;
5183
Lev Walkin4da95cf2010-10-16 02:46:32 -07005184tpf*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005185 lt_cv_deplibs_check_method=pass_all
5186 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00005187esac
5188
Lev Walkin8e8b5482004-06-17 23:42:48 +00005189fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005191$as_echo "$lt_cv_deplibs_check_method" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005192
5193file_magic_glob=
5194want_nocaseglob=no
5195if test "$build" = "$host"; then
5196 case $host_os in
5197 mingw* | pw32*)
5198 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5199 want_nocaseglob=yes
5200 else
5201 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5202 fi
5203 ;;
5204 esac
5205fi
5206
Lev Walkin8e8b5482004-06-17 23:42:48 +00005207file_magic_cmd=$lt_cv_file_magic_cmd
5208deplibs_check_method=$lt_cv_deplibs_check_method
5209test -z "$deplibs_check_method" && deplibs_check_method=unknown
5210
5211
5212
5213
Lev Walkin4da95cf2010-10-16 02:46:32 -07005214
5215
5216
5217
5218
5219
5220
5221
Lev Walkinaef10c32014-01-14 01:47:25 -08005222
5223
5224
5225
5226
5227
5228
5229
5230
5231
Lev Walkin4da95cf2010-10-16 02:46:32 -07005232if test -n "$ac_tool_prefix"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005233 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5234set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005236$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005237if ${ac_cv_prog_DLLTOOL+:} false; then :
5238 $as_echo_n "(cached) " >&6
5239else
5240 if test -n "$DLLTOOL"; then
5241 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5242else
5243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254done
5255 done
5256IFS=$as_save_IFS
5257
5258fi
5259fi
5260DLLTOOL=$ac_cv_prog_DLLTOOL
5261if test -n "$DLLTOOL"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5263$as_echo "$DLLTOOL" >&6; }
5264else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5266$as_echo "no" >&6; }
5267fi
5268
5269
5270fi
5271if test -z "$ac_cv_prog_DLLTOOL"; then
5272 ac_ct_DLLTOOL=$DLLTOOL
5273 # Extract the first word of "dlltool", so it can be a program name with args.
5274set dummy dlltool; ac_word=$2
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5276$as_echo_n "checking for $ac_word... " >&6; }
5277if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5278 $as_echo_n "(cached) " >&6
5279else
5280 if test -n "$ac_ct_DLLTOOL"; then
5281 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5282else
5283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH
5285do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294done
5295 done
5296IFS=$as_save_IFS
5297
5298fi
5299fi
5300ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5301if test -n "$ac_ct_DLLTOOL"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5303$as_echo "$ac_ct_DLLTOOL" >&6; }
5304else
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306$as_echo "no" >&6; }
5307fi
5308
5309 if test "x$ac_ct_DLLTOOL" = x; then
5310 DLLTOOL="false"
5311 else
5312 case $cross_compiling:$ac_tool_warned in
5313yes:)
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316ac_tool_warned=yes ;;
5317esac
5318 DLLTOOL=$ac_ct_DLLTOOL
5319 fi
5320else
5321 DLLTOOL="$ac_cv_prog_DLLTOOL"
5322fi
5323
5324test -z "$DLLTOOL" && DLLTOOL=dlltool
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5336$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5337if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339else
5340 lt_cv_sharedlib_from_linklib_cmd='unknown'
5341
5342case $host_os in
5343cygwin* | mingw* | pw32* | cegcc*)
5344 # two different shell functions defined in ltmain.sh
5345 # decide which to use based on capabilities of $DLLTOOL
5346 case `$DLLTOOL --help 2>&1` in
5347 *--identify-strict*)
5348 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5349 ;;
5350 *)
5351 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5352 ;;
5353 esac
5354 ;;
5355*)
5356 # fallback: assume linklib IS sharedlib
5357 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5358 ;;
5359esac
5360
5361fi
5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5363$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5364sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5365test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5366
5367
5368
5369
5370
5371
5372
5373
5374if test -n "$ac_tool_prefix"; then
5375 for ac_prog in ar
5376 do
5377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380$as_echo_n "checking for $ac_word... " >&6; }
5381if ${ac_cv_prog_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005382 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005383else
5384 if test -n "$AR"; then
5385 ac_cv_prog_AR="$AR" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005396 break 2
5397 fi
5398done
Lev Walkinaef10c32014-01-14 01:47:25 -08005399 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005400IFS=$as_save_IFS
5401
5402fi
5403fi
5404AR=$ac_cv_prog_AR
5405if test -n "$AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005407$as_echo "$AR" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005408else
Lev Walkinaef10c32014-01-14 01:47:25 -08005409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005410$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005411fi
5412
5413
Lev Walkinaef10c32014-01-14 01:47:25 -08005414 test -n "$AR" && break
5415 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005416fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005417if test -z "$AR"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005418 ac_ct_AR=$AR
Lev Walkinaef10c32014-01-14 01:47:25 -08005419 for ac_prog in ar
5420do
5421 # Extract the first word of "$ac_prog", so it can be a program name with args.
5422set dummy $ac_prog; ac_word=$2
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005424$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005425if ${ac_cv_prog_ac_ct_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005426 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005427else
5428 if test -n "$ac_ct_AR"; then
5429 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5430else
5431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_ac_ct_AR="$ac_prog"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005440 break 2
5441 fi
5442done
Lev Walkinaef10c32014-01-14 01:47:25 -08005443 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005444IFS=$as_save_IFS
5445
5446fi
5447fi
5448ac_ct_AR=$ac_cv_prog_ac_ct_AR
5449if test -n "$ac_ct_AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005451$as_echo "$ac_ct_AR" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005452else
Lev Walkinaef10c32014-01-14 01:47:25 -08005453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005454$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005455fi
5456
Lev Walkinaef10c32014-01-14 01:47:25 -08005457
5458 test -n "$ac_ct_AR" && break
5459done
5460
Lev Walkin4da95cf2010-10-16 02:46:32 -07005461 if test "x$ac_ct_AR" = x; then
5462 AR="false"
5463 else
5464 case $cross_compiling:$ac_tool_warned in
5465yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005468ac_tool_warned=yes ;;
5469esac
5470 AR=$ac_ct_AR
5471 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07005472fi
5473
Lev Walkinaef10c32014-01-14 01:47:25 -08005474: ${AR=ar}
5475: ${AR_FLAGS=cru}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005476
Lev Walkin4da95cf2010-10-16 02:46:32 -07005477
Lev Walkin4c776e52010-11-08 02:07:31 -08005478
5479
Lev Walkin4da95cf2010-10-16 02:46:32 -07005480
5481
5482
5483
5484
5485
5486
Lev Walkinaef10c32014-01-14 01:47:25 -08005487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5488$as_echo_n "checking for archiver @FILE support... " >&6; }
5489if ${lt_cv_ar_at_file+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491else
5492 lt_cv_ar_at_file=no
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495
5496int
5497main ()
5498{
5499
5500 ;
5501 return 0;
5502}
5503_ACEOF
5504if ac_fn_c_try_compile "$LINENO"; then :
5505 echo conftest.$ac_objext > conftest.lst
5506 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5508 (eval $lt_ar_try) 2>&5
5509 ac_status=$?
5510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5511 test $ac_status = 0; }
5512 if test "$ac_status" -eq 0; then
5513 # Ensure the archiver fails upon bogus file names.
5514 rm -f conftest.$ac_objext libconftest.a
5515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5516 (eval $lt_ar_try) 2>&5
5517 ac_status=$?
5518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5519 test $ac_status = 0; }
5520 if test "$ac_status" -ne 0; then
5521 lt_cv_ar_at_file=@
5522 fi
5523 fi
5524 rm -f conftest.* libconftest.a
5525
5526fi
5527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528
5529fi
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5531$as_echo "$lt_cv_ar_at_file" >&6; }
5532
5533if test "x$lt_cv_ar_at_file" = xno; then
5534 archiver_list_spec=
5535else
5536 archiver_list_spec=$lt_cv_ar_at_file
5537fi
5538
5539
5540
5541
5542
5543
5544
Lev Walkin4da95cf2010-10-16 02:46:32 -07005545if test -n "$ac_tool_prefix"; then
5546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5547set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005549$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005550if ${ac_cv_prog_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005551 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005552else
5553 if test -n "$STRIP"; then
5554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08005564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005565 break 2
5566 fi
5567done
Lev Walkinaef10c32014-01-14 01:47:25 -08005568 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005569IFS=$as_save_IFS
5570
5571fi
5572fi
5573STRIP=$ac_cv_prog_STRIP
5574if test -n "$STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005576$as_echo "$STRIP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005577else
Lev Walkinaef10c32014-01-14 01:47:25 -08005578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005579$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005580fi
5581
5582
5583fi
5584if test -z "$ac_cv_prog_STRIP"; then
5585 ac_ct_STRIP=$STRIP
5586 # Extract the first word of "strip", so it can be a program name with args.
5587set dummy strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005589$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005590if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005591 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005592else
5593 if test -n "$ac_ct_STRIP"; then
5594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5595else
5596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597for as_dir in $PATH
5598do
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005603 ac_cv_prog_ac_ct_STRIP="strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08005604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005605 break 2
5606 fi
5607done
Lev Walkinaef10c32014-01-14 01:47:25 -08005608 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005609IFS=$as_save_IFS
5610
5611fi
5612fi
5613ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5614if test -n "$ac_ct_STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005616$as_echo "$ac_ct_STRIP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005617else
Lev Walkinaef10c32014-01-14 01:47:25 -08005618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005619$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005620fi
5621
5622 if test "x$ac_ct_STRIP" = x; then
5623 STRIP=":"
5624 else
5625 case $cross_compiling:$ac_tool_warned in
5626yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005629ac_tool_warned=yes ;;
5630esac
5631 STRIP=$ac_ct_STRIP
5632 fi
5633else
5634 STRIP="$ac_cv_prog_STRIP"
5635fi
5636
5637test -z "$STRIP" && STRIP=:
5638
5639
5640
5641
5642
5643
5644if test -n "$ac_tool_prefix"; then
5645 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5646set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005648$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005649if ${ac_cv_prog_RANLIB+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005650 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005651else
5652 if test -n "$RANLIB"; then
5653 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005662 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Lev Walkinaef10c32014-01-14 01:47:25 -08005663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005664 break 2
5665 fi
5666done
Lev Walkinaef10c32014-01-14 01:47:25 -08005667 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005668IFS=$as_save_IFS
5669
5670fi
5671fi
5672RANLIB=$ac_cv_prog_RANLIB
5673if test -n "$RANLIB"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005675$as_echo "$RANLIB" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005676else
Lev Walkinaef10c32014-01-14 01:47:25 -08005677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005678$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005679fi
5680
5681
5682fi
5683if test -z "$ac_cv_prog_RANLIB"; then
5684 ac_ct_RANLIB=$RANLIB
5685 # Extract the first word of "ranlib", so it can be a program name with args.
5686set dummy ranlib; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005688$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005689if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005690 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005691else
5692 if test -n "$ac_ct_RANLIB"; then
5693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005702 ac_cv_prog_ac_ct_RANLIB="ranlib"
Lev Walkinaef10c32014-01-14 01:47:25 -08005703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005704 break 2
5705 fi
5706done
Lev Walkinaef10c32014-01-14 01:47:25 -08005707 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713if test -n "$ac_ct_RANLIB"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005715$as_echo "$ac_ct_RANLIB" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005716else
Lev Walkinaef10c32014-01-14 01:47:25 -08005717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005718$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005719fi
5720
5721 if test "x$ac_ct_RANLIB" = x; then
5722 RANLIB=":"
5723 else
5724 case $cross_compiling:$ac_tool_warned in
5725yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005728ac_tool_warned=yes ;;
5729esac
5730 RANLIB=$ac_ct_RANLIB
5731 fi
5732else
5733 RANLIB="$ac_cv_prog_RANLIB"
5734fi
5735
5736test -z "$RANLIB" && RANLIB=:
5737
5738
5739
5740
5741
5742
5743# Determine commands to create old-style static archives.
5744old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5745old_postinstall_cmds='chmod 644 $oldlib'
5746old_postuninstall_cmds=
5747
5748if test -n "$RANLIB"; then
5749 case $host_os in
5750 openbsd*)
5751 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5752 ;;
5753 *)
5754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5755 ;;
5756 esac
5757 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5758fi
5759
Lev Walkinaef10c32014-01-14 01:47:25 -08005760case $host_os in
5761 darwin*)
5762 lock_old_archive_extraction=yes ;;
5763 *)
5764 lock_old_archive_extraction=no ;;
5765esac
5766
5767
5768
5769
5770
5771
Lev Walkin4da95cf2010-10-16 02:46:32 -07005772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
Lev Walkin8e8b5482004-06-17 23:42:48 +00005805# If no C compiler was specified, use CC.
5806LTCC=${LTCC-"$CC"}
5807
Lev Walkinfbf1d282007-12-03 14:58:39 +00005808# If no C compiler flags were specified, use CFLAGS.
5809LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5810
Lev Walkin8e8b5482004-06-17 23:42:48 +00005811# Allow CC to be a program name with arguments.
5812compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00005813
5814
Lev Walkin4da95cf2010-10-16 02:46:32 -07005815# Check for command to grab the raw symbol name followed by C symbol from nm.
Lev Walkinaef10c32014-01-14 01:47:25 -08005816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005817$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005818if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005819 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005820else
5821
5822# These are sane defaults that work on at least a few old systems.
5823# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5824
5825# Character class describing NM global symbol codes.
5826symcode='[BCDEGRST]'
5827
5828# Regexp to match symbols that can be accessed directly from C.
5829sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5830
5831# Define system-specific variables.
5832case $host_os in
5833aix*)
5834 symcode='[BCDT]'
5835 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08005836cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005837 symcode='[ABCDGISTW]'
5838 ;;
5839hpux*)
5840 if test "$host_cpu" = ia64; then
5841 symcode='[ABCDEGRST]'
5842 fi
5843 ;;
5844irix* | nonstopux*)
5845 symcode='[BCDEGRST]'
5846 ;;
5847osf*)
5848 symcode='[BCDEGQRST]'
5849 ;;
5850solaris*)
5851 symcode='[BDRT]'
5852 ;;
5853sco3.2v5*)
5854 symcode='[DT]'
5855 ;;
5856sysv4.2uw2*)
5857 symcode='[DT]'
5858 ;;
5859sysv5* | sco5v6* | unixware* | OpenUNIX*)
5860 symcode='[ABDT]'
5861 ;;
5862sysv4)
5863 symcode='[DFNSTU]'
5864 ;;
5865esac
5866
5867# If we're using GNU nm, then use its standard symbol codes.
5868case `$NM -V 2>&1` in
5869*GNU* | *'with BFD'*)
5870 symcode='[ABCDGIRSTW]' ;;
5871esac
5872
5873# Transform an extracted symbol line into a proper C declaration.
5874# Some systems (esp. on ia64) link data and code symbols differently,
5875# so use this general approach.
5876lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5877
5878# Transform an extracted symbol line into symbol name and symbol address
Lev Walkinaef10c32014-01-14 01:47:25 -08005879lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5880lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005881
5882# Handle CRLF in mingw tool chain
5883opt_cr=
5884case $build_os in
5885mingw*)
5886 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5887 ;;
5888esac
5889
5890# Try without a prefix underscore, then with it.
5891for ac_symprfx in "" "_"; do
5892
5893 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5894 symxfrm="\\1 $ac_symprfx\\2 \\2"
5895
5896 # Write the raw and C identifiers.
5897 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5898 # Fake it for dumpbin and say T for any non-static function
5899 # and D for any global variable.
5900 # Also find C++ and __fastcall symbols from MSVC++,
5901 # which start with @ or ?.
5902 lt_cv_sys_global_symbol_pipe="$AWK '"\
5903" {last_section=section; section=\$ 3};"\
5904" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5905" \$ 0!~/External *\|/{next};"\
5906" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5907" {if(hide[section]) next};"\
5908" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5909" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5910" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5911" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5912" ' prfx=^$ac_symprfx"
5913 else
5914 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5915 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005916 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005917
5918 # Check to see that the pipe works correctly.
5919 pipe_works=no
5920
Lev Walkinaef10c32014-01-14 01:47:25 -08005921 rm -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07005922 cat > conftest.$ac_ext <<_LT_EOF
5923#ifdef __cplusplus
5924extern "C" {
5925#endif
5926char nm_test_var;
5927void nm_test_func(void);
5928void nm_test_func(void){}
5929#ifdef __cplusplus
5930}
5931#endif
5932int main(){nm_test_var='a';nm_test_func();return(0);}
5933_LT_EOF
5934
Lev Walkinaef10c32014-01-14 01:47:25 -08005935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005936 (eval $ac_compile) 2>&5
5937 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08005938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5939 test $ac_status = 0; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005940 # Now try to grab the symbols.
5941 nlist=conftest.nm
Lev Walkinaef10c32014-01-14 01:47:25 -08005942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5943 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005944 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08005945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946 test $ac_status = 0; } && test -s "$nlist"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005947 # Try sorting and uniquifying the output.
5948 if sort "$nlist" | uniq > "$nlist"T; then
5949 mv -f "$nlist"T "$nlist"
5950 else
5951 rm -f "$nlist"T
5952 fi
5953
5954 # Make sure that we snagged all the symbols we need.
5955 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5956 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5957 cat <<_LT_EOF > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08005958/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5959#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5960/* DATA imports from DLLs on WIN32 con't be const, because runtime
5961 relocations are performed -- see ld's documentation on pseudo-relocs. */
5962# define LT_DLSYM_CONST
5963#elif defined(__osf__)
5964/* This system does not cope well with relocations in const data. */
5965# define LT_DLSYM_CONST
5966#else
5967# define LT_DLSYM_CONST const
5968#endif
5969
Lev Walkin4da95cf2010-10-16 02:46:32 -07005970#ifdef __cplusplus
5971extern "C" {
5972#endif
5973
5974_LT_EOF
5975 # Now generate the symbol file.
5976 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5977
5978 cat <<_LT_EOF >> conftest.$ac_ext
5979
5980/* The mapping between symbol names and symbols. */
Lev Walkinaef10c32014-01-14 01:47:25 -08005981LT_DLSYM_CONST struct {
Lev Walkin4da95cf2010-10-16 02:46:32 -07005982 const char *name;
5983 void *address;
5984}
5985lt__PROGRAM__LTX_preloaded_symbols[] =
5986{
5987 { "@PROGRAM@", (void *) 0 },
5988_LT_EOF
5989 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5990 cat <<\_LT_EOF >> conftest.$ac_ext
5991 {0, (void *) 0}
5992};
5993
5994/* This works around a problem in FreeBSD linker */
5995#ifdef FREEBSD_WORKAROUND
5996static const void *lt_preloaded_setup() {
5997 return lt__PROGRAM__LTX_preloaded_symbols;
5998}
5999#endif
6000
6001#ifdef __cplusplus
6002}
6003#endif
6004_LT_EOF
6005 # Now try linking the two files.
6006 mv conftest.$ac_objext conftstm.$ac_objext
Lev Walkinaef10c32014-01-14 01:47:25 -08006007 lt_globsym_save_LIBS=$LIBS
6008 lt_globsym_save_CFLAGS=$CFLAGS
Lev Walkin4da95cf2010-10-16 02:46:32 -07006009 LIBS="conftstm.$ac_objext"
6010 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Lev Walkinaef10c32014-01-14 01:47:25 -08006011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006012 (eval $ac_link) 2>&5
6013 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6015 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006016 pipe_works=yes
6017 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006018 LIBS=$lt_globsym_save_LIBS
6019 CFLAGS=$lt_globsym_save_CFLAGS
Lev Walkin4da95cf2010-10-16 02:46:32 -07006020 else
6021 echo "cannot find nm_test_func in $nlist" >&5
6022 fi
6023 else
6024 echo "cannot find nm_test_var in $nlist" >&5
6025 fi
6026 else
6027 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6028 fi
6029 else
6030 echo "$progname: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6032 fi
6033 rm -rf conftest* conftst*
6034
6035 # Do not use the global_symbol_pipe unless it works.
6036 if test "$pipe_works" = yes; then
6037 break
6038 else
6039 lt_cv_sys_global_symbol_pipe=
6040 fi
6041done
6042
6043fi
6044
6045if test -z "$lt_cv_sys_global_symbol_pipe"; then
6046 lt_cv_sys_global_symbol_to_cdecl=
6047fi
6048if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006050$as_echo "failed" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006051else
Lev Walkinaef10c32014-01-14 01:47:25 -08006052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006053$as_echo "ok" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006054fi
6055
Lev Walkinaef10c32014-01-14 01:47:25 -08006056# Response file support.
6057if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6058 nm_file_list_spec='@'
6059elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6060 nm_file_list_spec='@'
6061fi
6062
Lev Walkin4da95cf2010-10-16 02:46:32 -07006063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
Lev Walkinaef10c32014-01-14 01:47:25 -08006085
6086
6087
6088
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6090$as_echo_n "checking for sysroot... " >&6; }
6091
6092# Check whether --with-sysroot was given.
6093if test "${with_sysroot+set}" = set; then :
6094 withval=$with_sysroot;
6095else
6096 with_sysroot=no
6097fi
6098
6099
6100lt_sysroot=
6101case ${with_sysroot} in #(
6102 yes)
6103 if test "$GCC" = yes; then
6104 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6105 fi
6106 ;; #(
6107 /*)
6108 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6109 ;; #(
6110 no|'')
6111 ;; #(
6112 *)
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6114$as_echo "${with_sysroot}" >&6; }
6115 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6116 ;;
6117esac
6118
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6120$as_echo "${lt_sysroot:-no}" >&6; }
6121
6122
6123
6124
6125
Lev Walkin27fd0b62007-08-27 23:57:45 +00006126# Check whether --enable-libtool-lock was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08006127if test "${enable_libtool_lock+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00006128 enableval=$enable_libtool_lock;
6129fi
Lev Walkinf15320b2004-06-03 03:38:44 +00006130
Lev Walkin8e8b5482004-06-17 23:42:48 +00006131test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00006132
6133# Some flags need to be propagated to the compiler or linker for good
6134# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00006135case $host in
6136ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00006137 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00006138 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00006140 (eval $ac_compile) 2>&5
6141 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6143 test $ac_status = 0; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006144 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07006145 *ELF-32*)
6146 HPUX_IA64_MODE="32"
6147 ;;
6148 *ELF-64*)
6149 HPUX_IA64_MODE="64"
6150 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006151 esac
6152 fi
6153 rm -rf conftest*
6154 ;;
6155*-*-irix6*)
6156 # Find out which ABI we are using.
Lev Walkinaef10c32014-01-14 01:47:25 -08006157 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006159 (eval $ac_compile) 2>&5
6160 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6162 test $ac_status = 0; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006163 if test "$lt_cv_prog_gnu_ld" = yes; then
6164 case `/usr/bin/file conftest.$ac_objext` in
6165 *32-bit*)
6166 LD="${LD-ld} -melf32bsmip"
6167 ;;
6168 *N32*)
6169 LD="${LD-ld} -melf32bmipn32"
6170 ;;
6171 *64-bit*)
6172 LD="${LD-ld} -melf64bmip"
6173 ;;
6174 esac
6175 else
6176 case `/usr/bin/file conftest.$ac_objext` in
6177 *32-bit*)
6178 LD="${LD-ld} -32"
6179 ;;
6180 *N32*)
6181 LD="${LD-ld} -n32"
6182 ;;
6183 *64-bit*)
6184 LD="${LD-ld} -64"
6185 ;;
6186 esac
6187 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006188 fi
6189 rm -rf conftest*
6190 ;;
6191
Lev Walkin4da95cf2010-10-16 02:46:32 -07006192x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6193s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00006194 # Find out which ABI we are using.
6195 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006197 (eval $ac_compile) 2>&5
6198 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200 test $ac_status = 0; }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00006201 case `/usr/bin/file conftest.o` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07006202 *32-bit*)
6203 case $host in
6204 x86_64-*kfreebsd*-gnu)
6205 LD="${LD-ld} -m elf_i386_fbsd"
6206 ;;
6207 x86_64-*linux*)
6208 LD="${LD-ld} -m elf_i386"
6209 ;;
6210 ppc64-*linux*|powerpc64-*linux*)
6211 LD="${LD-ld} -m elf32ppclinux"
6212 ;;
6213 s390x-*linux*)
6214 LD="${LD-ld} -m elf_s390"
6215 ;;
6216 sparc64-*linux*)
6217 LD="${LD-ld} -m elf32_sparc"
6218 ;;
6219 esac
6220 ;;
6221 *64-bit*)
6222 case $host in
6223 x86_64-*kfreebsd*-gnu)
6224 LD="${LD-ld} -m elf_x86_64_fbsd"
6225 ;;
6226 x86_64-*linux*)
6227 LD="${LD-ld} -m elf_x86_64"
6228 ;;
6229 ppc*-*linux*|powerpc*-*linux*)
6230 LD="${LD-ld} -m elf64ppc"
6231 ;;
6232 s390*-*linux*|s390*-*tpf*)
6233 LD="${LD-ld} -m elf64_s390"
6234 ;;
6235 sparc*-*linux*)
6236 LD="${LD-ld} -m elf64_sparc"
6237 ;;
6238 esac
6239 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006240 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00006241 fi
6242 rm -rf conftest*
6243 ;;
6244
6245*-*-sco3.2v5*)
6246 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6247 SAVE_CFLAGS="$CFLAGS"
6248 CFLAGS="$CFLAGS -belf"
Lev Walkinaef10c32014-01-14 01:47:25 -08006249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006250$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006251if ${lt_cv_cc_needs_belf+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006252 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00006253else
Lev Walkin8e8b5482004-06-17 23:42:48 +00006254 ac_ext=c
6255ac_cpp='$CPP $CPPFLAGS'
6256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6258ac_compiler_gnu=$ac_cv_c_compiler_gnu
6259
Lev Walkinaef10c32014-01-14 01:47:25 -08006260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00006261/* end confdefs.h. */
6262
6263int
6264main ()
6265{
6266
6267 ;
6268 return 0;
6269}
6270_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08006271if ac_fn_c_try_link "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00006272 lt_cv_cc_needs_belf=yes
6273else
Lev Walkinaef10c32014-01-14 01:47:25 -08006274 lt_cv_cc_needs_belf=no
Lev Walkinf15320b2004-06-03 03:38:44 +00006275fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006276rm -f core conftest.err conftest.$ac_objext \
6277 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006278 ac_ext=c
6279ac_cpp='$CPP $CPPFLAGS'
6280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282ac_compiler_gnu=$ac_cv_c_compiler_gnu
6283
Lev Walkinf15320b2004-06-03 03:38:44 +00006284fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006286$as_echo "$lt_cv_cc_needs_belf" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00006287 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6288 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6289 CFLAGS="$SAVE_CFLAGS"
6290 fi
6291 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00006292sparc*-*solaris*)
6293 # Find out which ABI we are using.
6294 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkinfbf1d282007-12-03 14:58:39 +00006296 (eval $ac_compile) 2>&5
6297 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299 test $ac_status = 0; }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00006300 case `/usr/bin/file conftest.o` in
6301 *64-bit*)
6302 case $lt_cv_prog_gnu_ld in
6303 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07006304 *)
6305 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6306 LD="${LD-ld} -64"
6307 fi
6308 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00006309 esac
6310 ;;
6311 esac
6312 fi
6313 rm -rf conftest*
6314 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00006315esac
6316
Lev Walkin8e8b5482004-06-17 23:42:48 +00006317need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00006318
Lev Walkinaef10c32014-01-14 01:47:25 -08006319if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6321set dummy ${ac_tool_prefix}mt; ac_word=$2
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326else
6327 if test -n "$MANIFEST_TOOL"; then
6328 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341done
6342 done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6348if test -n "$MANIFEST_TOOL"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6350$as_echo "$MANIFEST_TOOL" >&6; }
6351else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355
6356
6357fi
6358if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6359 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6360 # Extract the first word of "mt", so it can be a program name with args.
6361set dummy mt; ac_word=$2
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363$as_echo_n "checking for $ac_word... " >&6; }
6364if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366else
6367 if test -n "$ac_ct_MANIFEST_TOOL"; then
6368 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6369else
6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371for as_dir in $PATH
6372do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381done
6382 done
6383IFS=$as_save_IFS
6384
6385fi
6386fi
6387ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6388if test -n "$ac_ct_MANIFEST_TOOL"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6390$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6391else
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393$as_echo "no" >&6; }
6394fi
6395
6396 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6397 MANIFEST_TOOL=":"
6398 else
6399 case $cross_compiling:$ac_tool_warned in
6400yes:)
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403ac_tool_warned=yes ;;
6404esac
6405 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6406 fi
6407else
6408 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6409fi
6410
6411test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6413$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6414if ${lt_cv_path_mainfest_tool+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416else
6417 lt_cv_path_mainfest_tool=no
6418 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6419 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6420 cat conftest.err >&5
6421 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6422 lt_cv_path_mainfest_tool=yes
6423 fi
6424 rm -f conftest*
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6427$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6428if test "x$lt_cv_path_mainfest_tool" != xyes; then
6429 MANIFEST_TOOL=:
6430fi
6431
6432
6433
6434
6435
Lev Walkin4da95cf2010-10-16 02:46:32 -07006436
6437 case $host_os in
6438 rhapsody* | darwin*)
6439 if test -n "$ac_tool_prefix"; then
6440 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6441set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006443$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006444if ${ac_cv_prog_DSYMUTIL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006445 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006446else
6447 if test -n "$DSYMUTIL"; then
6448 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6449else
6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451for as_dir in $PATH
6452do
6453 IFS=$as_save_IFS
6454 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006457 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Lev Walkinaef10c32014-01-14 01:47:25 -08006458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006459 break 2
6460 fi
6461done
Lev Walkinaef10c32014-01-14 01:47:25 -08006462 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006463IFS=$as_save_IFS
6464
6465fi
6466fi
6467DSYMUTIL=$ac_cv_prog_DSYMUTIL
6468if test -n "$DSYMUTIL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006470$as_echo "$DSYMUTIL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006471else
Lev Walkinaef10c32014-01-14 01:47:25 -08006472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006473$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006474fi
6475
6476
6477fi
6478if test -z "$ac_cv_prog_DSYMUTIL"; then
6479 ac_ct_DSYMUTIL=$DSYMUTIL
6480 # Extract the first word of "dsymutil", so it can be a program name with args.
6481set dummy dsymutil; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006483$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006484if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006485 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006486else
6487 if test -n "$ac_ct_DSYMUTIL"; then
6488 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493 IFS=$as_save_IFS
6494 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006497 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Lev Walkinaef10c32014-01-14 01:47:25 -08006498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006499 break 2
6500 fi
6501done
Lev Walkinaef10c32014-01-14 01:47:25 -08006502 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006503IFS=$as_save_IFS
6504
6505fi
6506fi
6507ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6508if test -n "$ac_ct_DSYMUTIL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006510$as_echo "$ac_ct_DSYMUTIL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006511else
Lev Walkinaef10c32014-01-14 01:47:25 -08006512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006513$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006514fi
6515
6516 if test "x$ac_ct_DSYMUTIL" = x; then
6517 DSYMUTIL=":"
6518 else
6519 case $cross_compiling:$ac_tool_warned in
6520yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006523ac_tool_warned=yes ;;
6524esac
6525 DSYMUTIL=$ac_ct_DSYMUTIL
6526 fi
6527else
6528 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6529fi
6530
6531 if test -n "$ac_tool_prefix"; then
6532 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6533set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006535$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006536if ${ac_cv_prog_NMEDIT+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006537 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006538else
6539 if test -n "$NMEDIT"; then
6540 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006549 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Lev Walkinaef10c32014-01-14 01:47:25 -08006550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006551 break 2
6552 fi
6553done
Lev Walkinaef10c32014-01-14 01:47:25 -08006554 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006555IFS=$as_save_IFS
6556
6557fi
6558fi
6559NMEDIT=$ac_cv_prog_NMEDIT
6560if test -n "$NMEDIT"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006562$as_echo "$NMEDIT" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006563else
Lev Walkinaef10c32014-01-14 01:47:25 -08006564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006565$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006566fi
6567
6568
6569fi
6570if test -z "$ac_cv_prog_NMEDIT"; then
6571 ac_ct_NMEDIT=$NMEDIT
6572 # Extract the first word of "nmedit", so it can be a program name with args.
6573set dummy nmedit; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006575$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006576if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006577 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006578else
6579 if test -n "$ac_ct_NMEDIT"; then
6580 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006589 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Lev Walkinaef10c32014-01-14 01:47:25 -08006590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006591 break 2
6592 fi
6593done
Lev Walkinaef10c32014-01-14 01:47:25 -08006594 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006595IFS=$as_save_IFS
6596
6597fi
6598fi
6599ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6600if test -n "$ac_ct_NMEDIT"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006602$as_echo "$ac_ct_NMEDIT" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006603else
Lev Walkinaef10c32014-01-14 01:47:25 -08006604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006605$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006606fi
6607
6608 if test "x$ac_ct_NMEDIT" = x; then
6609 NMEDIT=":"
6610 else
6611 case $cross_compiling:$ac_tool_warned in
6612yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006615ac_tool_warned=yes ;;
6616esac
6617 NMEDIT=$ac_ct_NMEDIT
6618 fi
6619else
6620 NMEDIT="$ac_cv_prog_NMEDIT"
6621fi
6622
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6625set dummy ${ac_tool_prefix}lipo; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006627$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006628if ${ac_cv_prog_LIPO+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006629 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006630else
6631 if test -n "$LIPO"; then
6632 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006641 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Lev Walkinaef10c32014-01-14 01:47:25 -08006642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006643 break 2
6644 fi
6645done
Lev Walkinaef10c32014-01-14 01:47:25 -08006646 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006647IFS=$as_save_IFS
6648
6649fi
6650fi
6651LIPO=$ac_cv_prog_LIPO
6652if test -n "$LIPO"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006654$as_echo "$LIPO" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006655else
Lev Walkinaef10c32014-01-14 01:47:25 -08006656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006657$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006658fi
6659
6660
6661fi
6662if test -z "$ac_cv_prog_LIPO"; then
6663 ac_ct_LIPO=$LIPO
6664 # Extract the first word of "lipo", so it can be a program name with args.
6665set dummy lipo; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006667$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006668if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006669 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006670else
6671 if test -n "$ac_ct_LIPO"; then
6672 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006681 ac_cv_prog_ac_ct_LIPO="lipo"
Lev Walkinaef10c32014-01-14 01:47:25 -08006682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006683 break 2
6684 fi
6685done
Lev Walkinaef10c32014-01-14 01:47:25 -08006686 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006687IFS=$as_save_IFS
6688
6689fi
6690fi
6691ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6692if test -n "$ac_ct_LIPO"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006694$as_echo "$ac_ct_LIPO" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006695else
Lev Walkinaef10c32014-01-14 01:47:25 -08006696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006697$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006698fi
6699
6700 if test "x$ac_ct_LIPO" = x; then
6701 LIPO=":"
6702 else
6703 case $cross_compiling:$ac_tool_warned in
6704yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006707ac_tool_warned=yes ;;
6708esac
6709 LIPO=$ac_ct_LIPO
6710 fi
6711else
6712 LIPO="$ac_cv_prog_LIPO"
6713fi
6714
6715 if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6717set dummy ${ac_tool_prefix}otool; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006719$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006720if ${ac_cv_prog_OTOOL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006721 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006722else
6723 if test -n "$OTOOL"; then
6724 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006733 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Lev Walkinaef10c32014-01-14 01:47:25 -08006734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006735 break 2
6736 fi
6737done
Lev Walkinaef10c32014-01-14 01:47:25 -08006738 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006739IFS=$as_save_IFS
6740
6741fi
6742fi
6743OTOOL=$ac_cv_prog_OTOOL
6744if test -n "$OTOOL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006746$as_echo "$OTOOL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006747else
Lev Walkinaef10c32014-01-14 01:47:25 -08006748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006749$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006750fi
6751
6752
6753fi
6754if test -z "$ac_cv_prog_OTOOL"; then
6755 ac_ct_OTOOL=$OTOOL
6756 # Extract the first word of "otool", so it can be a program name with args.
6757set dummy otool; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006759$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006760if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006761 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006762else
6763 if test -n "$ac_ct_OTOOL"; then
6764 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006773 ac_cv_prog_ac_ct_OTOOL="otool"
Lev Walkinaef10c32014-01-14 01:47:25 -08006774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006775 break 2
6776 fi
6777done
Lev Walkinaef10c32014-01-14 01:47:25 -08006778 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006779IFS=$as_save_IFS
6780
6781fi
6782fi
6783ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6784if test -n "$ac_ct_OTOOL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006786$as_echo "$ac_ct_OTOOL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006787else
Lev Walkinaef10c32014-01-14 01:47:25 -08006788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006789$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006790fi
6791
6792 if test "x$ac_ct_OTOOL" = x; then
6793 OTOOL=":"
6794 else
6795 case $cross_compiling:$ac_tool_warned in
6796yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006799ac_tool_warned=yes ;;
6800esac
6801 OTOOL=$ac_ct_OTOOL
6802 fi
6803else
6804 OTOOL="$ac_cv_prog_OTOOL"
6805fi
6806
6807 if test -n "$ac_tool_prefix"; then
6808 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6809set dummy ${ac_tool_prefix}otool64; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006811$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006812if ${ac_cv_prog_OTOOL64+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006813 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006814else
6815 if test -n "$OTOOL64"; then
6816 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6817else
6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006825 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Lev Walkinaef10c32014-01-14 01:47:25 -08006826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006827 break 2
6828 fi
6829done
Lev Walkinaef10c32014-01-14 01:47:25 -08006830 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006831IFS=$as_save_IFS
6832
6833fi
6834fi
6835OTOOL64=$ac_cv_prog_OTOOL64
6836if test -n "$OTOOL64"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006838$as_echo "$OTOOL64" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006839else
Lev Walkinaef10c32014-01-14 01:47:25 -08006840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006841$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006842fi
6843
6844
6845fi
6846if test -z "$ac_cv_prog_OTOOL64"; then
6847 ac_ct_OTOOL64=$OTOOL64
6848 # Extract the first word of "otool64", so it can be a program name with args.
6849set dummy otool64; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006851$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006852if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006853 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006854else
6855 if test -n "$ac_ct_OTOOL64"; then
6856 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6857else
6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006865 ac_cv_prog_ac_ct_OTOOL64="otool64"
Lev Walkinaef10c32014-01-14 01:47:25 -08006866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006867 break 2
6868 fi
6869done
Lev Walkinaef10c32014-01-14 01:47:25 -08006870 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006871IFS=$as_save_IFS
6872
6873fi
6874fi
6875ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6876if test -n "$ac_ct_OTOOL64"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006878$as_echo "$ac_ct_OTOOL64" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006879else
Lev Walkinaef10c32014-01-14 01:47:25 -08006880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006881$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006882fi
6883
6884 if test "x$ac_ct_OTOOL64" = x; then
6885 OTOOL64=":"
6886 else
6887 case $cross_compiling:$ac_tool_warned in
6888yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006891ac_tool_warned=yes ;;
6892esac
6893 OTOOL64=$ac_ct_OTOOL64
6894 fi
6895else
6896 OTOOL64="$ac_cv_prog_OTOOL64"
6897fi
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
Lev Walkinaef10c32014-01-14 01:47:25 -08006925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006926$as_echo_n "checking for -single_module linker flag... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006927if ${lt_cv_apple_cc_single_mod+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006928 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006929else
6930 lt_cv_apple_cc_single_mod=no
6931 if test -z "${LT_MULTI_MODULE}"; then
6932 # By default we will add the -single_module flag. You can override
6933 # by either setting the environment variable LT_MULTI_MODULE
6934 # non-empty at configure time, or by adding -multi_module to the
6935 # link flags.
6936 rm -rf libconftest.dylib*
6937 echo "int foo(void){return 1;}" > conftest.c
6938 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6939-dynamiclib -Wl,-single_module conftest.c" >&5
6940 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6941 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6942 _lt_result=$?
6943 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6944 lt_cv_apple_cc_single_mod=yes
6945 else
6946 cat conftest.err >&5
6947 fi
6948 rm -rf libconftest.dylib*
6949 rm -f conftest.*
6950 fi
6951fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006953$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006955$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006956if ${lt_cv_ld_exported_symbols_list+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006957 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006958else
6959 lt_cv_ld_exported_symbols_list=no
6960 save_LDFLAGS=$LDFLAGS
6961 echo "_main" > conftest.sym
6962 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Lev Walkinaef10c32014-01-14 01:47:25 -08006963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07006964/* end confdefs.h. */
6965
6966int
6967main ()
6968{
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08006974if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07006975 lt_cv_ld_exported_symbols_list=yes
6976else
Lev Walkinaef10c32014-01-14 01:47:25 -08006977 lt_cv_ld_exported_symbols_list=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07006978fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006979rm -f core conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07006981 LDFLAGS="$save_LDFLAGS"
6982
6983fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006985$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6987$as_echo_n "checking for -force_load linker flag... " >&6; }
6988if ${lt_cv_ld_force_load+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990else
6991 lt_cv_ld_force_load=no
6992 cat > conftest.c << _LT_EOF
6993int forced_loaded() { return 2;}
6994_LT_EOF
6995 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6996 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6997 echo "$AR cru libconftest.a conftest.o" >&5
6998 $AR cru libconftest.a conftest.o 2>&5
6999 echo "$RANLIB libconftest.a" >&5
7000 $RANLIB libconftest.a 2>&5
7001 cat > conftest.c << _LT_EOF
7002int main() { return 0;}
7003_LT_EOF
7004 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7005 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7006 _lt_result=$?
7007 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7008 lt_cv_ld_force_load=yes
7009 else
7010 cat conftest.err >&5
7011 fi
7012 rm -f conftest.err libconftest.a conftest conftest.c
7013 rm -rf conftest.dSYM
7014
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7017$as_echo "$lt_cv_ld_force_load" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07007018 case $host_os in
7019 rhapsody* | darwin1.[012])
7020 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7021 darwin1.*)
7022 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7023 darwin*) # darwin 5.x on
7024 # if running on 10.5 or later, the deployment target defaults
7025 # to the OS version, if on x86, and 10.4, the deployment
7026 # target defaults to 10.4. Don't you love it?
7027 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7028 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7029 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7030 10.[012]*)
7031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7032 10.*)
7033 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7034 esac
7035 ;;
7036 esac
7037 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7038 _lt_dar_single_mod='$single_module'
7039 fi
7040 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7041 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7042 else
7043 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7044 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007045 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07007046 _lt_dsymutil='~$DSYMUTIL $lib || :'
7047 else
7048 _lt_dsymutil=
7049 fi
7050 ;;
7051 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00007052
Lev Walkin8e8b5482004-06-17 23:42:48 +00007053ac_ext=c
7054ac_cpp='$CPP $CPPFLAGS'
7055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkinaef10c32014-01-14 01:47:25 -08007058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007059$as_echo_n "checking how to run the C preprocessor... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007060# On Suns, sometimes $CPP names a directory.
7061if test -n "$CPP" && test -d "$CPP"; then
7062 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00007063fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00007064if test -z "$CPP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007065 if ${ac_cv_prog_CPP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007066 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007067else
7068 # Double quotes because CPP needs to be expanded
7069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7070 do
7071 ac_preproc_ok=false
7072for ac_c_preproc_warn_flag in '' yes
7073do
7074 # Use a header file that comes with gcc, so configuring glibc
7075 # with a fresh cross-compiler works.
7076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7077 # <limits.h> exists even on freestanding compilers.
7078 # On the NeXT, cc -E runs the code through the compiler's parser,
7079 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -08007080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007081/* end confdefs.h. */
7082#ifdef __STDC__
7083# include <limits.h>
7084#else
7085# include <assert.h>
7086#endif
7087 Syntax error
7088_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007089if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007090
Lev Walkinaef10c32014-01-14 01:47:25 -08007091else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007092 # Broken: fails on valid input.
7093continue
7094fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007095rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007096
Lev Walkin27fd0b62007-08-27 23:57:45 +00007097 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00007098 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -08007099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007100/* end confdefs.h. */
7101#include <ac_nonexistent.h>
7102_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007103if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007104 # Broken: success on invalid input.
7105continue
7106else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007107 # Passes both tests.
7108ac_preproc_ok=:
7109break
7110fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007111rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007112
7113done
7114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -08007115rm -f conftest.i conftest.err conftest.$ac_ext
7116if $ac_preproc_ok; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007117 break
7118fi
7119
7120 done
7121 ac_cv_prog_CPP=$CPP
7122
7123fi
7124 CPP=$ac_cv_prog_CPP
7125else
7126 ac_cv_prog_CPP=$CPP
7127fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007129$as_echo "$CPP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007130ac_preproc_ok=false
7131for ac_c_preproc_warn_flag in '' yes
7132do
7133 # Use a header file that comes with gcc, so configuring glibc
7134 # with a fresh cross-compiler works.
7135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7136 # <limits.h> exists even on freestanding compilers.
7137 # On the NeXT, cc -E runs the code through the compiler's parser,
7138 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -08007139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007140/* end confdefs.h. */
7141#ifdef __STDC__
7142# include <limits.h>
7143#else
7144# include <assert.h>
7145#endif
7146 Syntax error
7147_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007148if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007149
Lev Walkinaef10c32014-01-14 01:47:25 -08007150else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007151 # Broken: fails on valid input.
7152continue
7153fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007154rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007155
Lev Walkin27fd0b62007-08-27 23:57:45 +00007156 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00007157 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -08007158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007159/* end confdefs.h. */
7160#include <ac_nonexistent.h>
7161_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007162if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007163 # Broken: success on invalid input.
7164continue
7165else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007166 # Passes both tests.
7167ac_preproc_ok=:
7168break
7169fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007170rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007171
7172done
7173# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -08007174rm -f conftest.i conftest.err conftest.$ac_ext
7175if $ac_preproc_ok; then :
7176
Lev Walkin8e8b5482004-06-17 23:42:48 +00007177else
Lev Walkinaef10c32014-01-14 01:47:25 -08007178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08007180as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7181See \`config.log' for more details" "$LINENO" 5; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007182fi
7183
7184ac_ext=c
7185ac_cpp='$CPP $CPPFLAGS'
7186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7188ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189
7190
Lev Walkinaef10c32014-01-14 01:47:25 -08007191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007192$as_echo_n "checking for ANSI C header files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007193if ${ac_cv_header_stdc+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007194 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007195else
Lev Walkinaef10c32014-01-14 01:47:25 -08007196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007197/* end confdefs.h. */
7198#include <stdlib.h>
7199#include <stdarg.h>
7200#include <string.h>
7201#include <float.h>
7202
7203int
7204main ()
7205{
7206
7207 ;
7208 return 0;
7209}
7210_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007211if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007212 ac_cv_header_stdc=yes
7213else
Lev Walkinaef10c32014-01-14 01:47:25 -08007214 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007215fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007217
7218if test $ac_cv_header_stdc = yes; then
7219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -08007220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007221/* end confdefs.h. */
7222#include <string.h>
7223
7224_ACEOF
7225if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -08007226 $EGREP "memchr" >/dev/null 2>&1; then :
7227
Lev Walkin8e8b5482004-06-17 23:42:48 +00007228else
7229 ac_cv_header_stdc=no
7230fi
Lev Walkinb3751942012-09-02 19:36:47 -07007231rm -f conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007232
7233fi
7234
7235if test $ac_cv_header_stdc = yes; then
7236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -08007237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007238/* end confdefs.h. */
7239#include <stdlib.h>
7240
7241_ACEOF
7242if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -08007243 $EGREP "free" >/dev/null 2>&1; then :
7244
Lev Walkin8e8b5482004-06-17 23:42:48 +00007245else
7246 ac_cv_header_stdc=no
7247fi
Lev Walkinb3751942012-09-02 19:36:47 -07007248rm -f conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007249
7250fi
7251
7252if test $ac_cv_header_stdc = yes; then
7253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Lev Walkinaef10c32014-01-14 01:47:25 -08007254 if test "$cross_compiling" = yes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007255 :
7256else
Lev Walkinaef10c32014-01-14 01:47:25 -08007257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007258/* end confdefs.h. */
7259#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +00007260#include <stdlib.h>
Lev Walkin8e8b5482004-06-17 23:42:48 +00007261#if ((' ' & 0x0FF) == 0x020)
7262# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7263# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7264#else
7265# define ISLOWER(c) \
7266 (('a' <= (c) && (c) <= 'i') \
7267 || ('j' <= (c) && (c) <= 'r') \
7268 || ('s' <= (c) && (c) <= 'z'))
7269# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7270#endif
7271
7272#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7273int
7274main ()
7275{
7276 int i;
7277 for (i = 0; i < 256; i++)
7278 if (XOR (islower (i), ISLOWER (i))
7279 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +00007280 return 2;
7281 return 0;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007282}
7283_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007284if ac_fn_c_try_run "$LINENO"; then :
7285
Lev Walkin8e8b5482004-06-17 23:42:48 +00007286else
Lev Walkinaef10c32014-01-14 01:47:25 -08007287 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007288fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7290 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00007291fi
7292
Lev Walkin8e8b5482004-06-17 23:42:48 +00007293fi
7294fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007296$as_echo "$ac_cv_header_stdc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007297if test $ac_cv_header_stdc = yes; then
7298
Lev Walkinaef10c32014-01-14 01:47:25 -08007299$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Lev Walkin8e8b5482004-06-17 23:42:48 +00007300
7301fi
7302
7303# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007304for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7305 inttypes.h stdint.h unistd.h
Lev Walkinaef10c32014-01-14 01:47:25 -08007306do :
7307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7308ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7309"
7310if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007311 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -07007312#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007313_ACEOF
7314
7315fi
7316
7317done
7318
7319
Lev Walkin8e8b5482004-06-17 23:42:48 +00007320for ac_header in dlfcn.h
Lev Walkinaef10c32014-01-14 01:47:25 -08007321do :
7322 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7323"
7324if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007325 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007326#define HAVE_DLFCN_H 1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007327_ACEOF
7328
7329fi
7330
7331done
7332
Lev Walkin8e8b5482004-06-17 23:42:48 +00007333
Lev Walkin8e8b5482004-06-17 23:42:48 +00007334
Lev Walkinaef10c32014-01-14 01:47:25 -08007335
7336
Lev Walkin4da95cf2010-10-16 02:46:32 -07007337# Set options
Lev Walkin8e8b5482004-06-17 23:42:48 +00007338
Lev Walkin27fd0b62007-08-27 23:57:45 +00007339
Lev Walkin8e8b5482004-06-17 23:42:48 +00007340
Lev Walkin4da95cf2010-10-16 02:46:32 -07007341 enable_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007342
Lev Walkin8e8b5482004-06-17 23:42:48 +00007343
Lev Walkin4da95cf2010-10-16 02:46:32 -07007344 enable_win32_dll=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007345
Lev Walkin8e8b5482004-06-17 23:42:48 +00007346
Lev Walkin4da95cf2010-10-16 02:46:32 -07007347 # Check whether --enable-shared was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007348if test "${enable_shared+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007349 enableval=$enable_shared; p=${PACKAGE-default}
7350 case $enableval in
7351 yes) enable_shared=yes ;;
7352 no) enable_shared=no ;;
7353 *)
7354 enable_shared=no
7355 # Look at the argument we got. We use all the common list separators.
7356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7357 for pkg in $enableval; do
7358 IFS="$lt_save_ifs"
7359 if test "X$pkg" = "X$p"; then
7360 enable_shared=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00007361 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07007362 done
7363 IFS="$lt_save_ifs"
7364 ;;
7365 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007366else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007367 enable_shared=yes
7368fi
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 # Check whether --enable-static was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007379if test "${enable_static+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007380 enableval=$enable_static; p=${PACKAGE-default}
7381 case $enableval in
7382 yes) enable_static=yes ;;
7383 no) enable_static=no ;;
7384 *)
7385 enable_static=no
7386 # Look at the argument we got. We use all the common list separators.
7387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7388 for pkg in $enableval; do
7389 IFS="$lt_save_ifs"
7390 if test "X$pkg" = "X$p"; then
7391 enable_static=yes
7392 fi
7393 done
7394 IFS="$lt_save_ifs"
7395 ;;
7396 esac
7397else
7398 enable_static=yes
7399fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410# Check whether --with-pic was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007411if test "${with_pic+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007412 withval=$with_pic; pic_mode="$withval"
7413else
7414 pic_mode=default
7415fi
7416
7417
7418test -z "$pic_mode" && pic_mode=default
7419
7420
7421
7422
7423
7424
7425
7426 # Check whether --enable-fast-install was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007427if test "${enable_fast_install+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007428 enableval=$enable_fast_install; p=${PACKAGE-default}
7429 case $enableval in
7430 yes) enable_fast_install=yes ;;
7431 no) enable_fast_install=no ;;
7432 *)
7433 enable_fast_install=no
7434 # Look at the argument we got. We use all the common list separators.
7435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7436 for pkg in $enableval; do
7437 IFS="$lt_save_ifs"
7438 if test "X$pkg" = "X$p"; then
7439 enable_fast_install=yes
7440 fi
7441 done
7442 IFS="$lt_save_ifs"
7443 ;;
7444 esac
7445else
7446 enable_fast_install=yes
7447fi
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459# This can be used to rebuild libtool when needed
7460LIBTOOL_DEPS="$ltmain"
7461
7462# Always use our own libtool.
7463LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
Lev Walkinaef10c32014-01-14 01:47:25 -08007489
Lev Walkin4da95cf2010-10-16 02:46:32 -07007490test -z "$LN_S" && LN_S="ln -s"
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505if test -n "${ZSH_VERSION+set}" ; then
7506 setopt NO_GLOB_SUBST
Lev Walkin8e8b5482004-06-17 23:42:48 +00007507fi
7508
Lev Walkinaef10c32014-01-14 01:47:25 -08007509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007510$as_echo_n "checking for objdir... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007511if ${lt_cv_objdir+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007512 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007513else
7514 rm -f .libs 2>/dev/null
7515mkdir .libs 2>/dev/null
7516if test -d .libs; then
7517 lt_cv_objdir=.libs
7518else
7519 # MS-DOS does not allow filenames that begin with a dot.
7520 lt_cv_objdir=_libs
7521fi
7522rmdir .libs 2>/dev/null
7523fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007525$as_echo "$lt_cv_objdir" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007526objdir=$lt_cv_objdir
7527
7528
7529
7530
7531
Lev Walkin4da95cf2010-10-16 02:46:32 -07007532cat >>confdefs.h <<_ACEOF
7533#define LT_OBJDIR "$lt_cv_objdir/"
7534_ACEOF
7535
7536
7537
7538
Lev Walkin8e8b5482004-06-17 23:42:48 +00007539case $host_os in
7540aix3*)
7541 # AIX sometimes has problems with the GCC collect2 program. For some
7542 # reason, if we set the COLLECT_NAMES environment variable, the problems
7543 # vanish in a puff of smoke.
7544 if test "X${COLLECT_NAMES+set}" != Xset; then
7545 COLLECT_NAMES=
7546 export COLLECT_NAMES
7547 fi
7548 ;;
7549esac
7550
Lev Walkin8e8b5482004-06-17 23:42:48 +00007551# Global variables:
Lev Walkin4da95cf2010-10-16 02:46:32 -07007552ofile=libtool
Lev Walkin8e8b5482004-06-17 23:42:48 +00007553can_build_shared=yes
7554
Lev Walkinfbf1d282007-12-03 14:58:39 +00007555# All known linkers require a `.a' archive for static linking (except MSVC,
Lev Walkin8e8b5482004-06-17 23:42:48 +00007556# which needs '.lib').
7557libext=a
Lev Walkin4da95cf2010-10-16 02:46:32 -07007558
Lev Walkin8e8b5482004-06-17 23:42:48 +00007559with_gnu_ld="$lt_cv_prog_gnu_ld"
7560
Lev Walkin8e8b5482004-06-17 23:42:48 +00007561old_CC="$CC"
7562old_CFLAGS="$CFLAGS"
7563
7564# Set sane defaults for various variables
Lev Walkin8e8b5482004-06-17 23:42:48 +00007565test -z "$CC" && CC=cc
7566test -z "$LTCC" && LTCC=$CC
Lev Walkinfbf1d282007-12-03 14:58:39 +00007567test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Lev Walkin8e8b5482004-06-17 23:42:48 +00007568test -z "$LD" && LD=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00007569test -z "$ac_objext" && ac_objext=o
7570
Lev Walkinfbf1d282007-12-03 14:58:39 +00007571for cc_temp in $compiler""; do
7572 case $cc_temp in
7573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7575 \-*) ;;
7576 *) break;;
7577 esac
7578done
Lev Walkinaef10c32014-01-14 01:47:25 -08007579cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Lev Walkinfbf1d282007-12-03 14:58:39 +00007580
7581
Lev Walkin8e8b5482004-06-17 23:42:48 +00007582# Only perform the check for file, if the check method requires it
Lev Walkin4da95cf2010-10-16 02:46:32 -07007583test -z "$MAGIC_CMD" && MAGIC_CMD=file
Lev Walkin8e8b5482004-06-17 23:42:48 +00007584case $deplibs_check_method in
7585file_magic*)
7586 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007588$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007589if ${lt_cv_path_MAGIC_CMD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007590 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007591else
7592 case $MAGIC_CMD in
7593[\\/*] | ?:[\\/]*)
7594 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7595 ;;
7596*)
7597 lt_save_MAGIC_CMD="$MAGIC_CMD"
7598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7599 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7600 for ac_dir in $ac_dummy; do
7601 IFS="$lt_save_ifs"
7602 test -z "$ac_dir" && ac_dir=.
7603 if test -f $ac_dir/${ac_tool_prefix}file; then
7604 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7605 if test -n "$file_magic_test_file"; then
7606 case $deplibs_check_method in
7607 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007608 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007609 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7610 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7611 $EGREP "$file_magic_regex" > /dev/null; then
7612 :
7613 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007614 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007615
7616*** Warning: the command libtool uses to detect shared libraries,
7617*** $file_magic_cmd, produces output that libtool cannot recognize.
7618*** The result is that libtool may fail to recognize shared libraries
7619*** as such. This will affect the creation of libtool libraries that
7620*** depend on shared libraries, but programs linked with such libtool
7621*** libraries will work regardless of this problem. Nevertheless, you
7622*** may want to report the problem to your system manager and/or to
7623*** bug-libtool@gnu.org
7624
Lev Walkin4da95cf2010-10-16 02:46:32 -07007625_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007626 fi ;;
7627 esac
7628 fi
7629 break
7630 fi
7631 done
7632 IFS="$lt_save_ifs"
7633 MAGIC_CMD="$lt_save_MAGIC_CMD"
7634 ;;
7635esac
7636fi
7637
7638MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7639if test -n "$MAGIC_CMD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007641$as_echo "$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007642else
Lev Walkinaef10c32014-01-14 01:47:25 -08007643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007644$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007645fi
7646
Lev Walkin4da95cf2010-10-16 02:46:32 -07007647
7648
7649
7650
Lev Walkin8e8b5482004-06-17 23:42:48 +00007651if test -z "$lt_cv_path_MAGIC_CMD"; then
7652 if test -n "$ac_tool_prefix"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007654$as_echo_n "checking for file... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007655if ${lt_cv_path_MAGIC_CMD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007656 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007657else
7658 case $MAGIC_CMD in
7659[\\/*] | ?:[\\/]*)
7660 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7661 ;;
7662*)
7663 lt_save_MAGIC_CMD="$MAGIC_CMD"
7664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7665 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7666 for ac_dir in $ac_dummy; do
7667 IFS="$lt_save_ifs"
7668 test -z "$ac_dir" && ac_dir=.
7669 if test -f $ac_dir/file; then
7670 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7671 if test -n "$file_magic_test_file"; then
7672 case $deplibs_check_method in
7673 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007674 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7676 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7677 $EGREP "$file_magic_regex" > /dev/null; then
7678 :
7679 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007680 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007681
7682*** Warning: the command libtool uses to detect shared libraries,
7683*** $file_magic_cmd, produces output that libtool cannot recognize.
7684*** The result is that libtool may fail to recognize shared libraries
7685*** as such. This will affect the creation of libtool libraries that
7686*** depend on shared libraries, but programs linked with such libtool
7687*** libraries will work regardless of this problem. Nevertheless, you
7688*** may want to report the problem to your system manager and/or to
7689*** bug-libtool@gnu.org
7690
Lev Walkin4da95cf2010-10-16 02:46:32 -07007691_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007692 fi ;;
7693 esac
7694 fi
7695 break
7696 fi
7697 done
7698 IFS="$lt_save_ifs"
7699 MAGIC_CMD="$lt_save_MAGIC_CMD"
7700 ;;
7701esac
7702fi
7703
7704MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7705if test -n "$MAGIC_CMD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007707$as_echo "$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007708else
Lev Walkinaef10c32014-01-14 01:47:25 -08007709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007710$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007711fi
7712
Lev Walkin4da95cf2010-10-16 02:46:32 -07007713
Lev Walkin8e8b5482004-06-17 23:42:48 +00007714 else
7715 MAGIC_CMD=:
7716 fi
7717fi
7718
7719 fi
7720 ;;
7721esac
7722
Lev Walkin8e8b5482004-06-17 23:42:48 +00007723# Use C for the default configuration in the libtool script
Lev Walkin4da95cf2010-10-16 02:46:32 -07007724
Lev Walkin8e8b5482004-06-17 23:42:48 +00007725lt_save_CC="$CC"
7726ac_ext=c
7727ac_cpp='$CPP $CPPFLAGS'
7728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7730ac_compiler_gnu=$ac_cv_c_compiler_gnu
7731
7732
7733# Source file extension for C test sources.
7734ac_ext=c
7735
7736# Object file extension for compiled C test sources.
7737objext=o
7738objext=$objext
7739
7740# Code to be used in simple compile tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007741lt_simple_compile_test_code="int some_variable = 0;"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007742
7743# Code to be used in simple link tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007744lt_simple_link_test_code='int main(){return(0);}'
7745
7746
7747
7748
7749
Lev Walkin8e8b5482004-06-17 23:42:48 +00007750
7751
7752# If no C compiler was specified, use CC.
7753LTCC=${LTCC-"$CC"}
7754
Lev Walkinfbf1d282007-12-03 14:58:39 +00007755# If no C compiler flags were specified, use CFLAGS.
7756LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7757
Lev Walkin8e8b5482004-06-17 23:42:48 +00007758# Allow CC to be a program name with arguments.
7759compiler=$CC
7760
Lev Walkin4da95cf2010-10-16 02:46:32 -07007761# Save the default compiler, since it gets overwritten when the other
7762# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7763compiler_DEFAULT=$CC
Lev Walkin8e8b5482004-06-17 23:42:48 +00007764
Lev Walkinfbf1d282007-12-03 14:58:39 +00007765# save warnings/boilerplate of simple test code
7766ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007767echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007768eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7769_lt_compiler_boilerplate=`cat conftest.err`
Lev Walkinaef10c32014-01-14 01:47:25 -08007770$RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007771
Lev Walkinfbf1d282007-12-03 14:58:39 +00007772ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007773echo "$lt_simple_link_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007774eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7775_lt_linker_boilerplate=`cat conftest.err`
Lev Walkin4da95cf2010-10-16 02:46:32 -07007776$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007777
7778
Lev Walkine7c4b962010-11-09 03:10:36 -08007779## CAVEAT EMPTOR:
7780## There is no encapsulation within the following macros, do not change
7781## the running order or otherwise move them around unless you know exactly
7782## what you are doing...
Lev Walkin4da95cf2010-10-16 02:46:32 -07007783if test -n "$compiler"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007784
7785lt_prog_compiler_no_builtin_flag=
7786
7787if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007788 case $cc_basename in
7789 nvcc*)
7790 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7791 *)
7792 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7793 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007794
Lev Walkinaef10c32014-01-14 01:47:25 -08007795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007796$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007797if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007798 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007799else
7800 lt_cv_prog_compiler_rtti_exceptions=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007801 ac_outfile=conftest.$ac_objext
7802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007803 lt_compiler_flag="-fno-rtti -fno-exceptions"
7804 # Insert the option either (1) after the last *FLAGS variable, or
7805 # (2) before a word containing "conftest.", or (3) at the end.
7806 # Note that $ac_compile itself does not contain backslashes and begins
7807 # with a dollar sign (not a hyphen), so the echo should work correctly.
7808 # The option is referenced via a variable to avoid confusing sed.
7809 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00007810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00007811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08007813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007814 (eval "$lt_compile" 2>conftest.err)
7815 ac_status=$?
7816 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08007817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007818 if (exit $ac_status) && test -s "$ac_outfile"; then
7819 # The compiler can only warn and ignore the option if not recognized
Lev Walkinfbf1d282007-12-03 14:58:39 +00007820 # So say no if there are warnings other than the usual output.
Lev Walkinaef10c32014-01-14 01:47:25 -08007821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007824 lt_cv_prog_compiler_rtti_exceptions=yes
7825 fi
7826 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007827 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007828
7829fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007831$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007832
7833if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7834 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7835else
7836 :
7837fi
7838
7839fi
7840
Lev Walkin4da95cf2010-10-16 02:46:32 -07007841
7842
7843
7844
7845
7846 lt_prog_compiler_wl=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007847lt_prog_compiler_pic=
7848lt_prog_compiler_static=
7849
Lev Walkin8e8b5482004-06-17 23:42:48 +00007850
7851 if test "$GCC" = yes; then
7852 lt_prog_compiler_wl='-Wl,'
7853 lt_prog_compiler_static='-static'
7854
7855 case $host_os in
7856 aix*)
7857 # All AIX code is PIC.
7858 if test "$host_cpu" = ia64; then
7859 # AIX 5 now supports IA64 processor
7860 lt_prog_compiler_static='-Bstatic'
7861 fi
7862 ;;
7863
7864 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007865 case $host_cpu in
7866 powerpc)
7867 # see comment about AmigaOS4 .so support
7868 lt_prog_compiler_pic='-fPIC'
7869 ;;
7870 m68k)
7871 # FIXME: we need at least 68020 code to build shared libraries, but
7872 # adding the `-m68020' flag to GCC prevents building anything better,
7873 # like `-m68040'.
7874 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7875 ;;
7876 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007877 ;;
7878
Lev Walkin4da95cf2010-10-16 02:46:32 -07007879 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007880 # PIC is the default for these OSes.
7881 ;;
7882
Lev Walkinaef10c32014-01-14 01:47:25 -08007883 mingw* | cygwin* | pw32* | os2* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007884 # This hack is so that the source file can tell whether it is being
7885 # built for inclusion in a dll (and should export symbols for example).
Lev Walkin4da95cf2010-10-16 02:46:32 -07007886 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7887 # (--disable-auto-import) libraries
Lev Walkin8e8b5482004-06-17 23:42:48 +00007888 lt_prog_compiler_pic='-DDLL_EXPORT'
7889 ;;
7890
7891 darwin* | rhapsody*)
7892 # PIC is the default on this platform
7893 # Common symbols not allowed in MH_DYLIB files
7894 lt_prog_compiler_pic='-fno-common'
7895 ;;
7896
Lev Walkinaef10c32014-01-14 01:47:25 -08007897 haiku*)
7898 # PIC is the default for Haiku.
7899 # The "-static" flag exists, but is broken.
7900 lt_prog_compiler_static=
7901 ;;
7902
Lev Walkin4da95cf2010-10-16 02:46:32 -07007903 hpux*)
Lev Walkinaef10c32014-01-14 01:47:25 -08007904 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7905 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7906 # sets the default TLS model and affects inlining.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007907 case $host_cpu in
Lev Walkinaef10c32014-01-14 01:47:25 -08007908 hppa*64*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007909 # +Z the default
7910 ;;
7911 *)
7912 lt_prog_compiler_pic='-fPIC'
7913 ;;
7914 esac
7915 ;;
7916
7917 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007918 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7919 # Instead, we relocate shared libraries at runtime.
7920 ;;
7921
Lev Walkin8e8b5482004-06-17 23:42:48 +00007922 msdosdjgpp*)
7923 # Just because we use GCC doesn't mean we suddenly get shared libraries
7924 # on systems that don't support them.
7925 lt_prog_compiler_can_build_shared=no
7926 enable_shared=no
7927 ;;
7928
Lev Walkin4da95cf2010-10-16 02:46:32 -07007929 *nto* | *qnx*)
7930 # QNX uses GNU C++, but need to define -shared option too, otherwise
7931 # it will coredump.
7932 lt_prog_compiler_pic='-fPIC -shared'
7933 ;;
7934
Lev Walkin8e8b5482004-06-17 23:42:48 +00007935 sysv4*MP*)
7936 if test -d /usr/nec; then
7937 lt_prog_compiler_pic=-Kconform_pic
7938 fi
7939 ;;
7940
Lev Walkin8e8b5482004-06-17 23:42:48 +00007941 *)
7942 lt_prog_compiler_pic='-fPIC'
7943 ;;
7944 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08007945
7946 case $cc_basename in
7947 nvcc*) # Cuda Compiler Driver 2.2
7948 lt_prog_compiler_wl='-Xlinker '
7949 lt_prog_compiler_pic='-Xcompiler -fPIC'
7950 ;;
7951 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007952 else
7953 # PORTME Check for flag to pass linker flags through the system compiler.
7954 case $host_os in
7955 aix*)
7956 lt_prog_compiler_wl='-Wl,'
7957 if test "$host_cpu" = ia64; then
7958 # AIX 5 now supports IA64 processor
7959 lt_prog_compiler_static='-Bstatic'
7960 else
7961 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7962 fi
7963 ;;
7964
Lev Walkinaef10c32014-01-14 01:47:25 -08007965 mingw* | cygwin* | pw32* | os2* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007966 # This hack is so that the source file can tell whether it is being
7967 # built for inclusion in a dll (and should export symbols for example).
7968 lt_prog_compiler_pic='-DDLL_EXPORT'
7969 ;;
7970
7971 hpux9* | hpux10* | hpux11*)
7972 lt_prog_compiler_wl='-Wl,'
7973 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7974 # not for PA HP-UX.
Lev Walkinfbf1d282007-12-03 14:58:39 +00007975 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00007976 hppa*64*|ia64*)
7977 # +Z the default
7978 ;;
7979 *)
7980 lt_prog_compiler_pic='+Z'
7981 ;;
7982 esac
7983 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7984 lt_prog_compiler_static='${wl}-a ${wl}archive'
7985 ;;
7986
7987 irix5* | irix6* | nonstopux*)
7988 lt_prog_compiler_wl='-Wl,'
7989 # PIC (with -KPIC) is the default.
7990 lt_prog_compiler_static='-non_shared'
7991 ;;
7992
Lev Walkinaef10c32014-01-14 01:47:25 -08007993 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007994 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08007995 # old Intel for x86_64 which still supported -KPIC.
7996 ecc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007997 lt_prog_compiler_wl='-Wl,'
7998 lt_prog_compiler_pic='-KPIC'
7999 lt_prog_compiler_static='-static'
8000 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008001 # icc used to be incompatible with GCC.
8002 # ICC 10 doesn't accept -KPIC any more.
8003 icc* | ifort*)
8004 lt_prog_compiler_wl='-Wl,'
8005 lt_prog_compiler_pic='-fPIC'
8006 lt_prog_compiler_static='-static'
8007 ;;
8008 # Lahey Fortran 8.1.
8009 lf95*)
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='--shared'
8012 lt_prog_compiler_static='--static'
8013 ;;
8014 nagfor*)
8015 # NAG Fortran compiler
8016 lt_prog_compiler_wl='-Wl,-Wl,,'
8017 lt_prog_compiler_pic='-PIC'
8018 lt_prog_compiler_static='-Bstatic'
8019 ;;
8020 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008021 # Portland Group compilers (*not* the Pentium gcc compiler,
8022 # which looks to be a dead project)
8023 lt_prog_compiler_wl='-Wl,'
8024 lt_prog_compiler_pic='-fpic'
8025 lt_prog_compiler_static='-Bstatic'
8026 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008027 ccc*)
8028 lt_prog_compiler_wl='-Wl,'
8029 # All Alpha code is PIC.
8030 lt_prog_compiler_static='-non_shared'
8031 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008032 xl* | bgxl* | bgf* | mpixl*)
8033 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Lev Walkin4da95cf2010-10-16 02:46:32 -07008034 lt_prog_compiler_wl='-Wl,'
8035 lt_prog_compiler_pic='-qpic'
8036 lt_prog_compiler_static='-qstaticlink'
8037 ;;
8038 *)
8039 case `$CC -V 2>&1 | sed 5q` in
Lev Walkinaef10c32014-01-14 01:47:25 -08008040 *Sun\ F* | *Sun*Fortran*)
8041 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8042 lt_prog_compiler_pic='-KPIC'
8043 lt_prog_compiler_static='-Bstatic'
8044 lt_prog_compiler_wl=''
8045 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008046 *Sun\ C*)
8047 # Sun C 5.9
8048 lt_prog_compiler_pic='-KPIC'
8049 lt_prog_compiler_static='-Bstatic'
8050 lt_prog_compiler_wl='-Wl,'
8051 ;;
8052 esac
8053 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008054 esac
8055 ;;
8056
Lev Walkin4da95cf2010-10-16 02:46:32 -07008057 newsos6)
8058 lt_prog_compiler_pic='-KPIC'
8059 lt_prog_compiler_static='-Bstatic'
8060 ;;
8061
8062 *nto* | *qnx*)
8063 # QNX uses GNU C++, but need to define -shared option too, otherwise
8064 # it will coredump.
8065 lt_prog_compiler_pic='-fPIC -shared'
8066 ;;
8067
Lev Walkin8e8b5482004-06-17 23:42:48 +00008068 osf3* | osf4* | osf5*)
8069 lt_prog_compiler_wl='-Wl,'
8070 # All OSF/1 code is PIC.
8071 lt_prog_compiler_static='-non_shared'
8072 ;;
8073
Lev Walkin4da95cf2010-10-16 02:46:32 -07008074 rdos*)
8075 lt_prog_compiler_static='-non_shared'
8076 ;;
8077
Lev Walkin8e8b5482004-06-17 23:42:48 +00008078 solaris*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008079 lt_prog_compiler_pic='-KPIC'
8080 lt_prog_compiler_static='-Bstatic'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008081 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08008082 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008083 lt_prog_compiler_wl='-Qoption ld ';;
8084 *)
8085 lt_prog_compiler_wl='-Wl,';;
8086 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008087 ;;
8088
8089 sunos4*)
8090 lt_prog_compiler_wl='-Qoption ld '
8091 lt_prog_compiler_pic='-PIC'
8092 lt_prog_compiler_static='-Bstatic'
8093 ;;
8094
Lev Walkinfbf1d282007-12-03 14:58:39 +00008095 sysv4 | sysv4.2uw2* | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_pic='-KPIC'
8098 lt_prog_compiler_static='-Bstatic'
8099 ;;
8100
8101 sysv4*MP*)
8102 if test -d /usr/nec ;then
8103 lt_prog_compiler_pic='-Kconform_pic'
8104 lt_prog_compiler_static='-Bstatic'
8105 fi
8106 ;;
8107
Lev Walkinfbf1d282007-12-03 14:58:39 +00008108 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8109 lt_prog_compiler_wl='-Wl,'
8110 lt_prog_compiler_pic='-KPIC'
8111 lt_prog_compiler_static='-Bstatic'
8112 ;;
8113
8114 unicos*)
8115 lt_prog_compiler_wl='-Wl,'
8116 lt_prog_compiler_can_build_shared=no
8117 ;;
8118
Lev Walkin8e8b5482004-06-17 23:42:48 +00008119 uts4*)
8120 lt_prog_compiler_pic='-pic'
8121 lt_prog_compiler_static='-Bstatic'
8122 ;;
8123
8124 *)
8125 lt_prog_compiler_can_build_shared=no
8126 ;;
8127 esac
8128 fi
8129
Lev Walkinfbf1d282007-12-03 14:58:39 +00008130case $host_os in
Lev Walkin8e8b5482004-06-17 23:42:48 +00008131 # For platforms which do not support PIC, -DPIC is meaningless:
8132 *djgpp*)
8133 lt_prog_compiler_pic=
8134 ;;
8135 *)
8136 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8137 ;;
8138esac
8139
Lev Walkinaef10c32014-01-14 01:47:25 -08008140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8141$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8142if ${lt_cv_prog_compiler_pic+:} false; then :
8143 $as_echo_n "(cached) " >&6
8144else
8145 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8146fi
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8148$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8149lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Lev Walkin4da95cf2010-10-16 02:46:32 -07008150
8151#
8152# Check to make sure the PIC flag actually works.
8153#
8154if test -n "$lt_prog_compiler_pic"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008156$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008157if ${lt_cv_prog_compiler_pic_works+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008158 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07008159else
8160 lt_cv_prog_compiler_pic_works=no
8161 ac_outfile=conftest.$ac_objext
8162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8163 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8164 # Insert the option either (1) after the last *FLAGS variable, or
8165 # (2) before a word containing "conftest.", or (3) at the end.
8166 # Note that $ac_compile itself does not contain backslashes and begins
8167 # with a dollar sign (not a hyphen), so the echo should work correctly.
8168 # The option is referenced via a variable to avoid confusing sed.
8169 lt_compile=`echo "$ac_compile" | $SED \
8170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8172 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008174 (eval "$lt_compile" 2>conftest.err)
8175 ac_status=$?
8176 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008178 if (exit $ac_status) && test -s "$ac_outfile"; then
8179 # The compiler can only warn and ignore the option if not recognized
8180 # So say no if there are warnings other than the usual output.
Lev Walkinaef10c32014-01-14 01:47:25 -08008181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07008182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8184 lt_cv_prog_compiler_pic_works=yes
8185 fi
8186 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008187 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008188
8189fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008191$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07008192
8193if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8194 case $lt_prog_compiler_pic in
8195 "" | " "*) ;;
8196 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8197 esac
8198else
8199 lt_prog_compiler_pic=
8200 lt_prog_compiler_can_build_shared=no
8201fi
8202
8203fi
8204
8205
8206
8207
8208
8209
Lev Walkinaef10c32014-01-14 01:47:25 -08008210
8211
8212
8213
8214
Lev Walkinfbf1d282007-12-03 14:58:39 +00008215#
8216# Check to make sure the static flag actually works.
8217#
8218wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Lev Walkinaef10c32014-01-14 01:47:25 -08008219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008220$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008221if ${lt_cv_prog_compiler_static_works+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008222 $as_echo_n "(cached) " >&6
Lev Walkinfbf1d282007-12-03 14:58:39 +00008223else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008224 lt_cv_prog_compiler_static_works=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00008225 save_LDFLAGS="$LDFLAGS"
8226 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008227 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00008228 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8229 # The linker can only warn and ignore the option if not recognized
8230 # So say no if there are warnings
8231 if test -s conftest.err; then
8232 # Append any errors to the config.log.
8233 cat conftest.err 1>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008234 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8236 if diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008237 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008238 fi
8239 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008240 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008241 fi
8242 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008243 $RM -r conftest*
Lev Walkinfbf1d282007-12-03 14:58:39 +00008244 LDFLAGS="$save_LDFLAGS"
8245
8246fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008248$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +00008249
Lev Walkin4da95cf2010-10-16 02:46:32 -07008250if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008251 :
8252else
8253 lt_prog_compiler_static=
8254fi
8255
8256
Lev Walkin4da95cf2010-10-16 02:46:32 -07008257
8258
8259
8260
8261
Lev Walkinaef10c32014-01-14 01:47:25 -08008262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008263$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008264if ${lt_cv_prog_compiler_c_o+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008265 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00008266else
8267 lt_cv_prog_compiler_c_o=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008268 $RM -r conftest 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008269 mkdir conftest
8270 cd conftest
8271 mkdir out
Lev Walkin4da95cf2010-10-16 02:46:32 -07008272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008273
8274 lt_compiler_flag="-o out/conftest2.$ac_objext"
8275 # Insert the option either (1) after the last *FLAGS variable, or
8276 # (2) before a word containing "conftest.", or (3) at the end.
8277 # Note that $ac_compile itself does not contain backslashes and begins
8278 # with a dollar sign (not a hyphen), so the echo should work correctly.
8279 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00008280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008284 (eval "$lt_compile" 2>out/conftest.err)
8285 ac_status=$?
8286 cat out/conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8289 then
8290 # The compiler can only warn and ignore the option if not recognized
8291 # So say no if there are warnings
Lev Walkinaef10c32014-01-14 01:47:25 -08008292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008295 lt_cv_prog_compiler_c_o=yes
8296 fi
8297 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008298 chmod u+w . 2>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008299 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008300 # SGI C++ compiler will create directory out/ii_files/ for
8301 # template instantiation
Lev Walkin4da95cf2010-10-16 02:46:32 -07008302 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8303 $RM out/* && rmdir out
Lev Walkin8e8b5482004-06-17 23:42:48 +00008304 cd ..
Lev Walkin4da95cf2010-10-16 02:46:32 -07008305 $RM -r conftest
Lev Walkinaef10c32014-01-14 01:47:25 -08008306 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008307
8308fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008310$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008311
8312
Lev Walkin4da95cf2010-10-16 02:46:32 -07008313
8314
8315
8316
Lev Walkinaef10c32014-01-14 01:47:25 -08008317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008318$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008319if ${lt_cv_prog_compiler_c_o+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008320 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07008321else
8322 lt_cv_prog_compiler_c_o=no
8323 $RM -r conftest 2>/dev/null
8324 mkdir conftest
8325 cd conftest
8326 mkdir out
8327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8328
8329 lt_compiler_flag="-o out/conftest2.$ac_objext"
8330 # Insert the option either (1) after the last *FLAGS variable, or
8331 # (2) before a word containing "conftest.", or (3) at the end.
8332 # Note that $ac_compile itself does not contain backslashes and begins
8333 # with a dollar sign (not a hyphen), so the echo should work correctly.
8334 lt_compile=`echo "$ac_compile" | $SED \
8335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8337 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008339 (eval "$lt_compile" 2>out/conftest.err)
8340 ac_status=$?
8341 cat out/conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008343 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8344 then
8345 # The compiler can only warn and ignore the option if not recognized
8346 # So say no if there are warnings
Lev Walkinaef10c32014-01-14 01:47:25 -08008347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07008348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8350 lt_cv_prog_compiler_c_o=yes
8351 fi
8352 fi
8353 chmod u+w . 2>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008354 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008355 # SGI C++ compiler will create directory out/ii_files/ for
8356 # template instantiation
8357 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8358 $RM out/* && rmdir out
8359 cd ..
8360 $RM -r conftest
Lev Walkinaef10c32014-01-14 01:47:25 -08008361 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008362
8363fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008365$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07008366
8367
8368
8369
Lev Walkin8e8b5482004-06-17 23:42:48 +00008370hard_links="nottested"
8371if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8372 # do not overwrite the value of need_locks provided by the user
Lev Walkinaef10c32014-01-14 01:47:25 -08008373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008374$as_echo_n "checking if we can lock with hard links... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008375 hard_links=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008376 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008377 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8378 touch conftest.a
8379 ln conftest.a conftest.b 2>&5 || hard_links=no
8380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkinaef10c32014-01-14 01:47:25 -08008381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008382$as_echo "$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008383 if test "$hard_links" = no; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008385$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00008386 need_locks=warn
8387 fi
8388else
8389 need_locks=no
8390fi
8391
Lev Walkin4da95cf2010-10-16 02:46:32 -07008392
8393
8394
8395
8396
Lev Walkinaef10c32014-01-14 01:47:25 -08008397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008398$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008399
8400 runpath_var=
8401 allow_undefined_flag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008402 always_export_symbols=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008403 archive_cmds=
8404 archive_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008405 compiler_needs_object=no
8406 enable_shared_with_static_runtimes=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008407 export_dynamic_flag_spec=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008408 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8409 hardcode_automatic=no
8410 hardcode_direct=no
8411 hardcode_direct_absolute=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008412 hardcode_libdir_flag_spec=
8413 hardcode_libdir_flag_spec_ld=
8414 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008415 hardcode_minus_L=no
8416 hardcode_shlibpath_var=unsupported
Lev Walkin4da95cf2010-10-16 02:46:32 -07008417 inherit_rpath=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008418 link_all_deplibs=unknown
Lev Walkin8e8b5482004-06-17 23:42:48 +00008419 module_cmds=
8420 module_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008421 old_archive_from_new_cmds=
8422 old_archive_from_expsyms_cmds=
8423 thread_safe_flag_spec=
8424 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008425 # include_expsyms should be a list of space-separated symbols to be *always*
8426 # included in the symbol list
8427 include_expsyms=
8428 # exclude_expsyms can be an extended regexp of symbols to exclude
8429 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8430 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8431 # as well as any symbol that contains `d'.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008432 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008433 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8434 # platforms (ab)use it in PIC code, but their linkers get confused if
8435 # the symbol is explicitly referenced. Since portable code cannot
8436 # rely on this symbol name, it's probably fine to never include it in
8437 # preloaded symbol tables.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008438 # Exclude shared library initialization/finalization symbols.
Lev Walkin8e8b5482004-06-17 23:42:48 +00008439 extract_expsyms_cmds=
8440
8441 case $host_os in
Lev Walkinaef10c32014-01-14 01:47:25 -08008442 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008443 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8444 # When not using gcc, we currently assume that we are using
8445 # Microsoft Visual C++.
8446 if test "$GCC" != yes; then
8447 with_gnu_ld=no
8448 fi
8449 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008450 interix*)
8451 # we just hope/assume this is gcc and not c89 (= MSVC++)
8452 with_gnu_ld=yes
8453 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008454 openbsd*)
8455 with_gnu_ld=no
8456 ;;
8457 esac
8458
8459 ld_shlibs=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008460
8461 # On some targets, GNU ld is compatible enough with the native linker
8462 # that we're better off using the native interface for both.
8463 lt_use_gnu_ld_interface=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008464 if test "$with_gnu_ld" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008465 case $host_os in
8466 aix*)
8467 # The AIX port of GNU ld has always aspired to compatibility
8468 # with the native linker. However, as the warning in the GNU ld
8469 # block says, versions before 2.19.5* couldn't really create working
8470 # shared libraries, regardless of the interface used.
8471 case `$LD -v 2>&1` in
8472 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8473 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8474 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8475 *)
8476 lt_use_gnu_ld_interface=yes
8477 ;;
8478 esac
8479 ;;
8480 *)
8481 lt_use_gnu_ld_interface=yes
8482 ;;
8483 esac
8484 fi
8485
8486 if test "$lt_use_gnu_ld_interface" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008487 # If archive_cmds runs LD, not CC, wlarc should be empty
8488 wlarc='${wl}'
8489
Lev Walkinfbf1d282007-12-03 14:58:39 +00008490 # Set some defaults for GNU ld with shared library support. These
8491 # are reset later if shared libraries are not supported. Putting them
8492 # here allows them to be overridden if necessary.
8493 runpath_var=LD_RUN_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07008494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008495 export_dynamic_flag_spec='${wl}--export-dynamic'
8496 # ancient GNU ld didn't support --whole-archive et. al.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008497 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8498 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8499 else
8500 whole_archive_flag_spec=
Lev Walkinfbf1d282007-12-03 14:58:39 +00008501 fi
8502 supports_anon_versioning=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008503 case `$LD -v 2>&1` in
Lev Walkinaef10c32014-01-14 01:47:25 -08008504 *GNU\ gold*) supports_anon_versioning=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008505 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8506 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8507 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8508 *\ 2.11.*) ;; # other 2.11 versions
8509 *) supports_anon_versioning=yes ;;
8510 esac
8511
Lev Walkin8e8b5482004-06-17 23:42:48 +00008512 # See if GNU ld supports shared libraries.
8513 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008514 aix[3-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008515 # On AIX/PPC, the GNU linker is very broken
8516 if test "$host_cpu" != ia64; then
8517 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008518 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008519
Lev Walkinaef10c32014-01-14 01:47:25 -08008520*** Warning: the GNU linker, at least up to release 2.19, is reported
Lev Walkin8e8b5482004-06-17 23:42:48 +00008521*** to be unable to reliably create shared libraries on AIX.
8522*** Therefore, libtool is disabling shared libraries support. If you
Lev Walkinaef10c32014-01-14 01:47:25 -08008523*** really care for shared libraries, you may want to install binutils
8524*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8525*** You will then need to restart the configuration process.
Lev Walkin8e8b5482004-06-17 23:42:48 +00008526
Lev Walkin4da95cf2010-10-16 02:46:32 -07008527_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008528 fi
8529 ;;
8530
8531 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008532 case $host_cpu in
8533 powerpc)
8534 # see comment about AmigaOS4 .so support
8535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8536 archive_expsym_cmds=''
8537 ;;
8538 m68k)
8539 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)'
8540 hardcode_libdir_flag_spec='-L$libdir'
8541 hardcode_minus_L=yes
8542 ;;
8543 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008544 ;;
8545
8546 beos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008548 allow_undefined_flag=unsupported
8549 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8550 # support --undefined. This deserves some investigation. FIXME
8551 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8552 else
8553 ld_shlibs=no
8554 fi
8555 ;;
8556
Lev Walkinaef10c32014-01-14 01:47:25 -08008557 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008558 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Lev Walkin8e8b5482004-06-17 23:42:48 +00008559 # as there is no search path for DLLs.
8560 hardcode_libdir_flag_spec='-L$libdir'
Lev Walkinaef10c32014-01-14 01:47:25 -08008561 export_dynamic_flag_spec='${wl}--export-all-symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008562 allow_undefined_flag=unsupported
8563 always_export_symbols=no
8564 enable_shared_with_static_runtimes=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008565 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'
8566 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008567
Lev Walkin4da95cf2010-10-16 02:46:32 -07008568 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008570 # If the export-symbols file already is a .def file (1st line
8571 # is EXPORTS), use it as is; otherwise, prepend...
8572 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8573 cp $export_symbols $output_objdir/$soname.def;
8574 else
8575 echo EXPORTS > $output_objdir/$soname.def;
8576 cat $export_symbols >> $output_objdir/$soname.def;
8577 fi~
Lev Walkinfbf1d282007-12-03 14:58:39 +00008578 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8579 else
8580 ld_shlibs=no
8581 fi
8582 ;;
8583
Lev Walkinaef10c32014-01-14 01:47:25 -08008584 haiku*)
8585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586 link_all_deplibs=yes
8587 ;;
8588
Lev Walkin4da95cf2010-10-16 02:46:32 -07008589 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008590 hardcode_direct=no
8591 hardcode_shlibpath_var=no
8592 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8593 export_dynamic_flag_spec='${wl}-E'
8594 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8595 # Instead, shared libraries are loaded at an image base (0x10000000 by
8596 # default) and relocated if they conflict, which is a slow very memory
8597 # consuming and fragmenting process. To avoid this, we pick a random,
8598 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8599 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8600 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8601 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'
8602 ;;
8603
Lev Walkinaef10c32014-01-14 01:47:25 -08008604 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008605 tmp_diet=no
8606 if test "$host_os" = linux-dietlibc; then
8607 case $cc_basename in
8608 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8609 esac
8610 fi
8611 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8612 && test "$tmp_diet" = no
8613 then
Lev Walkinaef10c32014-01-14 01:47:25 -08008614 tmp_addflag=' $pic_flag'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008615 tmp_sharedflag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008616 case $cc_basename,$host_cpu in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008617 pgcc*) # Portland Group C compiler
Lev Walkinaef10c32014-01-14 01:47:25 -08008618 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'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008619 tmp_addflag=' $pic_flag'
8620 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008621 pgf77* | pgf90* | pgf95* | pgfortran*)
8622 # Portland Group f77 and f90 compilers
8623 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'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008624 tmp_addflag=' $pic_flag -Mnomain' ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Lev Walkinfbf1d282007-12-03 14:58:39 +00008626 tmp_addflag=' -i_dynamic' ;;
8627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8628 tmp_addflag=' -i_dynamic -nofor_main' ;;
8629 ifc* | ifort*) # Intel Fortran compiler
8630 tmp_addflag=' -nofor_main' ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008631 lf95*) # Lahey Fortran 8.1
8632 whole_archive_flag_spec=
8633 tmp_sharedflag='--shared' ;;
8634 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008635 tmp_sharedflag='-qmkshrobj'
8636 tmp_addflag= ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008637 nvcc*) # Cuda Compiler Driver 2.2
8638 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'
8639 compiler_needs_object=yes
8640 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008641 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008642 case `$CC -V 2>&1 | sed 5q` in
8643 *Sun\ C*) # Sun C 5.9
Lev Walkinaef10c32014-01-14 01:47:25 -08008644 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008645 compiler_needs_object=yes
8646 tmp_sharedflag='-G' ;;
8647 *Sun\ F*) # Sun Fortran 8.3
8648 tmp_sharedflag='-G' ;;
8649 esac
8650 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008651
Lev Walkin4da95cf2010-10-16 02:46:32 -07008652 if test "x$supports_anon_versioning" = xyes; then
8653 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8655 echo "local: *; };" >> $output_objdir/$libname.ver~
8656 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8657 fi
8658
8659 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08008660 xlf* | bgf* | bgxlf* | mpixlf*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008661 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8662 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8663 hardcode_libdir_flag_spec=
8664 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Lev Walkinaef10c32014-01-14 01:47:25 -08008665 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008666 if test "x$supports_anon_versioning" = xyes; then
8667 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8669 echo "local: *; };" >> $output_objdir/$libname.ver~
Lev Walkinaef10c32014-01-14 01:47:25 -08008670 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008671 fi
8672 ;;
8673 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008674 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008675 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008676 fi
8677 ;;
8678
8679 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008681 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8682 wlarc=
8683 else
Lev Walkinaef10c32014-01-14 01:47:25 -08008684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008686 fi
8687 ;;
8688
Lev Walkinfbf1d282007-12-03 14:58:39 +00008689 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008690 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008691 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008692 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008693
8694*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8695*** create shared libraries on Solaris systems. Therefore, libtool
8696*** is disabling shared libraries support. We urge you to upgrade GNU
8697*** binutils to release 2.9.1 or newer. Another option is to modify
8698*** your PATH or compiler configuration so that the native linker is
8699*** used, and then restart.
8700
Lev Walkin4da95cf2010-10-16 02:46:32 -07008701_LT_EOF
8702 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8704 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008705 else
8706 ld_shlibs=no
8707 fi
8708 ;;
8709
Lev Walkinfbf1d282007-12-03 14:58:39 +00008710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8711 case `$LD -v 2>&1` in
8712 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8713 ld_shlibs=no
8714 cat <<_LT_EOF 1>&2
8715
8716*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8717*** reliably create shared libraries on SCO systems. Therefore, libtool
8718*** is disabling shared libraries support. We urge you to upgrade GNU
8719*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8720*** your PATH or compiler configuration so that the native linker is
8721*** used, and then restart.
8722
8723_LT_EOF
8724 ;;
8725 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008726 # For security reasons, it is highly recommended that you always
8727 # use absolute paths for naming shared libraries, and exclude the
8728 # DT_RUNPATH tag from executables and libraries. But doing so
8729 # requires that you compile everything twice, which is a pain.
8730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008734 else
8735 ld_shlibs=no
8736 fi
8737 ;;
8738 esac
8739 ;;
8740
Lev Walkin8e8b5482004-06-17 23:42:48 +00008741 sunos4*)
8742 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8743 wlarc=
8744 hardcode_direct=yes
8745 hardcode_shlibpath_var=no
8746 ;;
8747
Lev Walkin8e8b5482004-06-17 23:42:48 +00008748 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008752 else
8753 ld_shlibs=no
8754 fi
8755 ;;
8756 esac
8757
Lev Walkinfbf1d282007-12-03 14:58:39 +00008758 if test "$ld_shlibs" = no; then
8759 runpath_var=
8760 hardcode_libdir_flag_spec=
8761 export_dynamic_flag_spec=
8762 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008763 fi
8764 else
8765 # PORTME fill in a description of your system's linker (not GNU ld)
8766 case $host_os in
8767 aix3*)
8768 allow_undefined_flag=unsupported
8769 always_export_symbols=yes
8770 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'
8771 # Note: this linker hardcodes the directories in LIBPATH if there
8772 # are no directories specified by -L.
8773 hardcode_minus_L=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008774 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008775 # Neither direct hardcoding nor static linking is supported with a
8776 # broken collect2.
8777 hardcode_direct=unsupported
8778 fi
8779 ;;
8780
Lev Walkin4da95cf2010-10-16 02:46:32 -07008781 aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008782 if test "$host_cpu" = ia64; then
8783 # On IA64, the linker does run time linking by default, so we don't
8784 # have to do anything special.
8785 aix_use_runtimelinking=no
8786 exp_sym_flag='-Bexport'
8787 no_entry_flag=""
8788 else
8789 # If we're using GNU nm, then we don't want the "-C" option.
8790 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Lev Walkinaef10c32014-01-14 01:47:25 -08008791 # Also, AIX nm treats weak defined symbols like other global
8792 # defined symbols, whereas GNU nm marks them as "W".
Lev Walkin4da95cf2010-10-16 02:46:32 -07008793 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008794 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008795 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008796 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008797 fi
8798 aix_use_runtimelinking=no
8799
8800 # Test if we are trying to use run time linking or normal
8801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8802 # need to do runtime linking.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008803 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008804 for ld_flag in $LDFLAGS; do
Lev Walkin4da95cf2010-10-16 02:46:32 -07008805 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8806 aix_use_runtimelinking=yes
8807 break
8808 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008809 done
Lev Walkinfbf1d282007-12-03 14:58:39 +00008810 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008811 esac
8812
8813 exp_sym_flag='-bexport'
8814 no_entry_flag='-bnoentry'
8815 fi
8816
8817 # When large executables or shared objects are built, AIX ld can
8818 # have problems creating the table of contents. If linking a library
8819 # or program results in "error TOC overflow" add -mminimal-toc to
8820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8822
8823 archive_cmds=''
8824 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008825 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008826 hardcode_libdir_separator=':'
8827 link_all_deplibs=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008828 file_list_spec='${wl}-f,'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008829
8830 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008831 case $host_os in aix4.[012]|aix4.[012].*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008832 # We only want to do this on AIX 4.2 and lower, the check
8833 # below for broken collect2 doesn't work under 4.3+
8834 collect2name=`${CC} -print-prog-name=collect2`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008835 if test -f "$collect2name" &&
8836 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008837 then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008838 # We have reworked collect2
8839 :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008840 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008841 # We have old collect2
8842 hardcode_direct=unsupported
8843 # It fails to find uninstalled libraries when the uninstalled
8844 # path is not listed in the libpath. Setting hardcode_minus_L
8845 # to unsupported forces relinking
8846 hardcode_minus_L=yes
8847 hardcode_libdir_flag_spec='-L$libdir'
8848 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008849 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008850 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008851 esac
8852 shared_flag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008853 if test "$aix_use_runtimelinking" = yes; then
8854 shared_flag="$shared_flag "'${wl}-G'
8855 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008856 else
8857 # not using gcc
8858 if test "$host_cpu" = ia64; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008859 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8860 # chokes on -Wl,-G. The following line is correct:
Lev Walkin8e8b5482004-06-17 23:42:48 +00008861 shared_flag='-G'
8862 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008863 if test "$aix_use_runtimelinking" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008864 shared_flag='${wl}-G'
8865 else
8866 shared_flag='${wl}-bM:SRE'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008867 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008868 fi
8869 fi
8870
Lev Walkinaef10c32014-01-14 01:47:25 -08008871 export_dynamic_flag_spec='${wl}-bexpall'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008872 # It seems that -bexpall does not export symbols beginning with
8873 # underscore (_), so it is better to generate a list of symbols to export.
8874 always_export_symbols=yes
8875 if test "$aix_use_runtimelinking" = yes; then
8876 # Warning - without using the other runtime loading flags (-brtl),
8877 # -berok will link without error, but may produce a broken library.
8878 allow_undefined_flag='-berok'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008879 # Determine the default libpath from the value encoded in an
8880 # empty executable.
Lev Walkinaef10c32014-01-14 01:47:25 -08008881 if test "${lt_cv_aix_libpath+set}" = set; then
8882 aix_libpath=$lt_cv_aix_libpath
8883else
8884 if ${lt_cv_aix_libpath_+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886else
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008888/* end confdefs.h. */
8889
8890int
8891main ()
8892{
8893
8894 ;
8895 return 0;
8896}
8897_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08008898if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008899
Lev Walkinaef10c32014-01-14 01:47:25 -08008900 lt_aix_libpath_sed='
8901 /Import File Strings/,/^$/ {
8902 /^0/ {
8903 s/^0 *\([^ ]*\) *$/\1/
8904 p
8905 }
8906 }'
8907 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8908 # Check for a 64-bit object if we didn't find anything.
8909 if test -z "$lt_cv_aix_libpath_"; then
8910 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8911 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08008912fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008913rm -f core conftest.err conftest.$ac_objext \
8914 conftest$ac_exeext conftest.$ac_ext
8915 if test -z "$lt_cv_aix_libpath_"; then
8916 lt_cv_aix_libpath_="/usr/lib:/lib"
8917 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008918
Lev Walkin8e8b5482004-06-17 23:42:48 +00008919fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008920
Lev Walkinaef10c32014-01-14 01:47:25 -08008921 aix_libpath=$lt_cv_aix_libpath_
8922fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008923
8924 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Lev Walkinaef10c32014-01-14 01:47:25 -08008925 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008926 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00008927 if test "$host_cpu" = ia64; then
8928 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8929 allow_undefined_flag="-z nodefs"
Lev Walkinfbf1d282007-12-03 14:58:39 +00008930 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"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008931 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008932 # Determine the default libpath from the value encoded in an
8933 # empty executable.
Lev Walkinaef10c32014-01-14 01:47:25 -08008934 if test "${lt_cv_aix_libpath+set}" = set; then
8935 aix_libpath=$lt_cv_aix_libpath
8936else
8937 if ${lt_cv_aix_libpath_+:} false; then :
8938 $as_echo_n "(cached) " >&6
8939else
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008941/* end confdefs.h. */
8942
8943int
8944main ()
8945{
8946
8947 ;
8948 return 0;
8949}
8950_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08008951if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008952
Lev Walkinaef10c32014-01-14 01:47:25 -08008953 lt_aix_libpath_sed='
8954 /Import File Strings/,/^$/ {
8955 /^0/ {
8956 s/^0 *\([^ ]*\) *$/\1/
8957 p
8958 }
8959 }'
8960 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8961 # Check for a 64-bit object if we didn't find anything.
8962 if test -z "$lt_cv_aix_libpath_"; then
8963 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8964 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08008965fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008966rm -f core conftest.err conftest.$ac_objext \
8967 conftest$ac_exeext conftest.$ac_ext
8968 if test -z "$lt_cv_aix_libpath_"; then
8969 lt_cv_aix_libpath_="/usr/lib:/lib"
8970 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008971
Lev Walkin8e8b5482004-06-17 23:42:48 +00008972fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008973
Lev Walkinaef10c32014-01-14 01:47:25 -08008974 aix_libpath=$lt_cv_aix_libpath_
8975fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008976
8977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8978 # Warning - without using the other run time loading flags,
8979 # -berok will link without error, but may produce a broken library.
8980 no_undefined_flag=' ${wl}-bernotok'
8981 allow_undefined_flag=' ${wl}-berok'
Lev Walkinaef10c32014-01-14 01:47:25 -08008982 if test "$with_gnu_ld" = yes; then
8983 # We only use this code for GNU lds that support --whole-archive.
8984 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8985 else
8986 # Exported symbols can be pulled into shared objects from archives
8987 whole_archive_flag_spec='$convenience'
8988 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008989 archive_cmds_need_lc=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008990 # This is similar to how AIX traditionally builds its shared libraries.
8991 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008992 fi
8993 fi
8994 ;;
8995
8996 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008997 case $host_cpu in
8998 powerpc)
8999 # see comment about AmigaOS4 .so support
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds=''
9002 ;;
9003 m68k)
9004 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)'
9005 hardcode_libdir_flag_spec='-L$libdir'
9006 hardcode_minus_L=yes
9007 ;;
9008 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009009 ;;
9010
Lev Walkinfbf1d282007-12-03 14:58:39 +00009011 bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009012 export_dynamic_flag_spec=-rdynamic
9013 ;;
9014
Lev Walkinaef10c32014-01-14 01:47:25 -08009015 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009016 # When not using gcc, we currently assume that we are using
9017 # Microsoft Visual C++.
9018 # hardcode_libdir_flag_spec is actually meaningless, as there is
9019 # no search path for DLLs.
Lev Walkinaef10c32014-01-14 01:47:25 -08009020 case $cc_basename in
9021 cl*)
9022 # Native MSVC
9023 hardcode_libdir_flag_spec=' '
9024 allow_undefined_flag=unsupported
9025 always_export_symbols=yes
9026 file_list_spec='@'
9027 # Tell ltmain to make .lib files, not .a files.
9028 libext=lib
9029 # Tell ltmain to make .dll files, not .so files.
9030 shrext_cmds=".dll"
9031 # FIXME: Setting linknames here is a bad hack.
9032 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9033 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9034 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9035 else
9036 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9037 fi~
9038 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9039 linknames='
9040 # The linker will not automatically build a static lib if we build a DLL.
9041 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9042 enable_shared_with_static_runtimes=yes
9043 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9044 # Don't use ranlib
9045 old_postinstall_cmds='chmod 644 $oldlib'
9046 postlink_cmds='lt_outputfile="@OUTPUT@"~
9047 lt_tool_outputfile="@TOOL_OUTPUT@"~
9048 case $lt_outputfile in
9049 *.exe|*.EXE) ;;
9050 *)
9051 lt_outputfile="$lt_outputfile.exe"
9052 lt_tool_outputfile="$lt_tool_outputfile.exe"
9053 ;;
9054 esac~
9055 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9056 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9057 $RM "$lt_outputfile.manifest";
9058 fi'
9059 ;;
9060 *)
9061 # Assume MSVC wrapper
9062 hardcode_libdir_flag_spec=' '
9063 allow_undefined_flag=unsupported
9064 # Tell ltmain to make .lib files, not .a files.
9065 libext=lib
9066 # Tell ltmain to make .dll files, not .so files.
9067 shrext_cmds=".dll"
9068 # FIXME: Setting linknames here is a bad hack.
9069 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9070 # The linker will automatically build a .lib file if we build a DLL.
9071 old_archive_from_new_cmds='true'
9072 # FIXME: Should let the user specify the lib program.
9073 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9074 enable_shared_with_static_runtimes=yes
9075 ;;
9076 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009077 ;;
9078
9079 darwin* | rhapsody*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009080
9081
9082 archive_cmds_need_lc=no
9083 hardcode_direct=no
9084 hardcode_automatic=yes
9085 hardcode_shlibpath_var=unsupported
Lev Walkinaef10c32014-01-14 01:47:25 -08009086 if test "$lt_cv_ld_force_load" = "yes"; then
9087 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\"`'
9088 else
9089 whole_archive_flag_spec=''
9090 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009091 link_all_deplibs=yes
9092 allow_undefined_flag="$_lt_dar_allow_undefined"
Lev Walkinaef10c32014-01-14 01:47:25 -08009093 case $cc_basename in
9094 ifort*) _lt_dar_can_shared=yes ;;
9095 *) _lt_dar_can_shared=$GCC ;;
9096 esac
9097 if test "$_lt_dar_can_shared" = "yes"; then
9098 output_verbose_link_cmd=func_echo_all
Lev Walkin4da95cf2010-10-16 02:46:32 -07009099 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9100 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9101 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}"
9102 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}"
9103
9104 else
9105 ld_shlibs=no
9106 fi
9107
Lev Walkin8e8b5482004-06-17 23:42:48 +00009108 ;;
9109
9110 dgux*)
9111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_shlibpath_var=no
9114 ;;
9115
9116 freebsd1*)
9117 ld_shlibs=no
9118 ;;
9119
9120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9121 # support. Future versions do this automatically, but an explicit c++rt0.o
9122 # does not break anything, and helps significantly (at the cost of a little
9123 # extra space).
9124 freebsd2.2*)
9125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9126 hardcode_libdir_flag_spec='-R$libdir'
9127 hardcode_direct=yes
9128 hardcode_shlibpath_var=no
9129 ;;
9130
9131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9132 freebsd2*)
9133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_direct=yes
9135 hardcode_minus_L=yes
9136 hardcode_shlibpath_var=no
9137 ;;
9138
9139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Lev Walkin4da95cf2010-10-16 02:46:32 -07009140 freebsd* | dragonfly*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009141 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009142 hardcode_libdir_flag_spec='-R$libdir'
9143 hardcode_direct=yes
9144 hardcode_shlibpath_var=no
9145 ;;
9146
9147 hpux9*)
9148 if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08009149 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009150 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009151 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009152 fi
9153 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9154 hardcode_libdir_separator=:
9155 hardcode_direct=yes
9156
9157 # hardcode_minus_L: Not really in the search PATH,
9158 # but as the default location of the library.
9159 hardcode_minus_L=yes
9160 export_dynamic_flag_spec='${wl}-E'
9161 ;;
9162
Lev Walkinfbf1d282007-12-03 14:58:39 +00009163 hpux10*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009164 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9165 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009166 else
9167 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9168 fi
9169 if test "$with_gnu_ld" = no; then
9170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009171 hardcode_libdir_flag_spec_ld='+b $libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009172 hardcode_libdir_separator=:
Lev Walkinfbf1d282007-12-03 14:58:39 +00009173 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009174 hardcode_direct_absolute=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00009175 export_dynamic_flag_spec='${wl}-E'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009176 # hardcode_minus_L: Not really in the search PATH,
9177 # but as the default location of the library.
9178 hardcode_minus_L=yes
9179 fi
9180 ;;
9181
9182 hpux11*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009183 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009184 case $host_cpu in
9185 hppa*64*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009186 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9187 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009188 ia64*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009189 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009190 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009191 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08009192 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009193 ;;
9194 esac
9195 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009196 case $host_cpu in
9197 hppa*64*)
9198 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9199 ;;
9200 ia64*)
9201 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009202 ;;
9203 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08009204
9205 # Older versions of the 11.00 compiler do not understand -b yet
9206 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9208$as_echo_n "checking if $CC understands -b... " >&6; }
9209if ${lt_cv_prog_compiler__b+:} false; then :
9210 $as_echo_n "(cached) " >&6
9211else
9212 lt_cv_prog_compiler__b=no
9213 save_LDFLAGS="$LDFLAGS"
9214 LDFLAGS="$LDFLAGS -b"
9215 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9217 # The linker can only warn and ignore the option if not recognized
9218 # So say no if there are warnings
9219 if test -s conftest.err; then
9220 # Append any errors to the config.log.
9221 cat conftest.err 1>&5
9222 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9224 if diff conftest.exp conftest.er2 >/dev/null; then
9225 lt_cv_prog_compiler__b=yes
9226 fi
9227 else
9228 lt_cv_prog_compiler__b=yes
9229 fi
9230 fi
9231 $RM -r conftest*
9232 LDFLAGS="$save_LDFLAGS"
9233
9234fi
9235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9236$as_echo "$lt_cv_prog_compiler__b" >&6; }
9237
9238if test x"$lt_cv_prog_compiler__b" = xyes; then
9239 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9240else
9241 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9242fi
9243
Lev Walkin8e8b5482004-06-17 23:42:48 +00009244 ;;
9245 esac
9246 fi
9247 if test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9249 hardcode_libdir_separator=:
Lev Walkin8e8b5482004-06-17 23:42:48 +00009250
Lev Walkinfbf1d282007-12-03 14:58:39 +00009251 case $host_cpu in
9252 hppa*64*|ia64*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009253 hardcode_direct=no
9254 hardcode_shlibpath_var=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009255 ;;
9256 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009257 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009258 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009259 export_dynamic_flag_spec='${wl}-E'
9260
9261 # hardcode_minus_L: Not really in the search PATH,
9262 # but as the default location of the library.
9263 hardcode_minus_L=yes
9264 ;;
9265 esac
9266 fi
9267 ;;
9268
9269 irix5* | irix6* | nonstopux*)
9270 if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08009271 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009272 # Try to use the -exported_symbol ld option, if it does not
9273 # work, assume that -exports_file does not work either and
9274 # implicitly export all symbols.
Lev Walkinaef10c32014-01-14 01:47:25 -08009275 # This should be the same for all languages, so no per-tag cache variable.
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9277$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9278if ${lt_cv_irix_exported_symbol+:} false; then :
9279 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07009280else
Lev Walkinaef10c32014-01-14 01:47:25 -08009281 save_LDFLAGS="$LDFLAGS"
9282 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284/* end confdefs.h. */
9285int foo (void) { return 0; }
9286_ACEOF
9287if ac_fn_c_try_link "$LINENO"; then :
9288 lt_cv_irix_exported_symbol=yes
9289else
9290 lt_cv_irix_exported_symbol=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009291fi
Lev Walkinaef10c32014-01-14 01:47:25 -08009292rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 LDFLAGS="$save_LDFLAGS"
9295fi
9296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9297$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9298 if test "$lt_cv_irix_exported_symbol" = yes; then
9299 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'
9300 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009301 else
Lev Walkinaef10c32014-01-14 01:47:25 -08009302 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'
9303 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009304 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009305 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 hardcode_libdir_separator=:
Lev Walkin4da95cf2010-10-16 02:46:32 -07009308 inherit_rpath=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009309 link_all_deplibs=yes
9310 ;;
9311
9312 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9315 else
9316 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9317 fi
9318 hardcode_libdir_flag_spec='-R$libdir'
9319 hardcode_direct=yes
9320 hardcode_shlibpath_var=no
9321 ;;
9322
9323 newsos6)
9324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325 hardcode_direct=yes
9326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9327 hardcode_libdir_separator=:
9328 hardcode_shlibpath_var=no
9329 ;;
9330
Lev Walkin4da95cf2010-10-16 02:46:32 -07009331 *nto* | *qnx*)
9332 ;;
9333
Lev Walkin8e8b5482004-06-17 23:42:48 +00009334 openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009335 if test -f /usr/libexec/ld.so; then
9336 hardcode_direct=yes
9337 hardcode_shlibpath_var=no
9338 hardcode_direct_absolute=yes
9339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9341 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9343 export_dynamic_flag_spec='${wl}-E'
9344 else
9345 case $host_os in
9346 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9348 hardcode_libdir_flag_spec='-R$libdir'
9349 ;;
9350 *)
9351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9353 ;;
9354 esac
9355 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009356 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009357 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009358 fi
9359 ;;
9360
9361 os2*)
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_minus_L=yes
9364 allow_undefined_flag=unsupported
Lev Walkinaef10c32014-01-14 01:47:25 -08009365 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009366 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009367 ;;
9368
9369 osf3*)
9370 if test "$GCC" = yes; then
9371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009372 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009373 else
9374 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009375 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009376 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009377 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9379 hardcode_libdir_separator=:
9380 ;;
9381
9382 osf4* | osf5*) # as osf3* with the addition of -msym flag
9383 if test "$GCC" = yes; then
9384 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009385 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387 else
9388 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009389 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009390 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~
Lev Walkinaef10c32014-01-14 01:47:25 -08009391 $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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009392
9393 # Both c and cxx compiler support -rpath directly
9394 hardcode_libdir_flag_spec='-rpath $libdir'
9395 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009396 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009397 hardcode_libdir_separator=:
9398 ;;
9399
Lev Walkin8e8b5482004-06-17 23:42:48 +00009400 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009401 no_undefined_flag=' -z defs'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009402 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009403 wlarc='${wl}'
Lev Walkinaef10c32014-01-14 01:47:25 -08009404 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Lev Walkinaef10c32014-01-14 01:47:25 -08009406 $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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009407 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009408 case `$CC -V 2>&1` in
9409 *"Compilers 5.0"*)
9410 wlarc=''
9411 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9413 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9414 ;;
9415 *)
9416 wlarc='${wl}'
9417 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9418 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9419 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9420 ;;
9421 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009422 fi
9423 hardcode_libdir_flag_spec='-R$libdir'
9424 hardcode_shlibpath_var=no
9425 case $host_os in
9426 solaris2.[0-5] | solaris2.[0-5].*) ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009427 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009428 # The compiler driver will combine and reorder linker options,
9429 # but understands `-z linker_flag'. GCC discards it without `$wl',
9430 # but is careful enough not to reorder.
9431 # Supported since Solaris 2.6 (maybe 2.5.1?)
9432 if test "$GCC" = yes; then
9433 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9434 else
9435 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9436 fi
9437 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009438 esac
9439 link_all_deplibs=yes
9440 ;;
9441
9442 sunos4*)
9443 if test "x$host_vendor" = xsequent; then
9444 # Use $CC to link under sequent, because it throws in some extra .o
9445 # files that make .init and .fini sections work.
9446 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9447 else
9448 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9449 fi
9450 hardcode_libdir_flag_spec='-L$libdir'
9451 hardcode_direct=yes
9452 hardcode_minus_L=yes
9453 hardcode_shlibpath_var=no
9454 ;;
9455
9456 sysv4)
9457 case $host_vendor in
9458 sni)
9459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460 hardcode_direct=yes # is this really true???
9461 ;;
9462 siemens)
9463 ## LD is ld it makes a PLAMLIB
9464 ## CC just makes a GrossModule.
9465 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9466 reload_cmds='$CC -r -o $output$reload_objs'
9467 hardcode_direct=no
9468 ;;
9469 motorola)
9470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9472 ;;
9473 esac
9474 runpath_var='LD_RUN_PATH'
9475 hardcode_shlibpath_var=no
9476 ;;
9477
9478 sysv4.3*)
9479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_shlibpath_var=no
9481 export_dynamic_flag_spec='-Bexport'
9482 ;;
9483
9484 sysv4*MP*)
9485 if test -d /usr/nec; then
9486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 hardcode_shlibpath_var=no
9488 runpath_var=LD_RUN_PATH
9489 hardcode_runpath_var=yes
9490 ld_shlibs=yes
9491 fi
9492 ;;
9493
Lev Walkin4da95cf2010-10-16 02:46:32 -07009494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009495 no_undefined_flag='${wl}-z,text'
9496 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009497 hardcode_shlibpath_var=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009498 runpath_var='LD_RUN_PATH'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009499
Lev Walkin8e8b5482004-06-17 23:42:48 +00009500 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009501 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009503 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009504 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009506 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009507 ;;
9508
Lev Walkinfbf1d282007-12-03 14:58:39 +00009509 sysv5* | sco3.2v5* | sco5v6*)
9510 # Note: We can NOT use -z defs as we might desire, because we do not
9511 # link with -lc, and that would cause any symbols used from libc to
9512 # always be unresolved, which means just about no library would
9513 # ever link correctly. If we're not using GNU ld we use -z text
9514 # though, which does catch some bad symbols but isn't as heavy-handed
9515 # as -z defs.
9516 no_undefined_flag='${wl}-z,text'
9517 allow_undefined_flag='${wl}-z,nodefs'
9518 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009519 hardcode_shlibpath_var=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009520 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009521 hardcode_libdir_separator=':'
9522 link_all_deplibs=yes
9523 export_dynamic_flag_spec='${wl}-Bexport'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009524 runpath_var='LD_RUN_PATH'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009525
9526 if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009527 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009529 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009530 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009532 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009533 ;;
9534
9535 uts4*)
9536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 hardcode_shlibpath_var=no
9539 ;;
9540
9541 *)
9542 ld_shlibs=no
9543 ;;
9544 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07009545
9546 if test x$host_vendor = xsni; then
9547 case $host in
9548 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9549 export_dynamic_flag_spec='${wl}-Blargedynsym'
9550 ;;
9551 esac
9552 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009553 fi
9554
Lev Walkinaef10c32014-01-14 01:47:25 -08009555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009556$as_echo "$ld_shlibs" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009557test "$ld_shlibs" = no && can_build_shared=no
9558
Lev Walkin4da95cf2010-10-16 02:46:32 -07009559with_gnu_ld=$with_gnu_ld
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
Lev Walkin8e8b5482004-06-17 23:42:48 +00009575#
9576# Do we need to explicitly link libc?
9577#
9578case "x$archive_cmds_need_lc" in
9579x|xyes)
9580 # Assume -lc should be added
9581 archive_cmds_need_lc=yes
9582
9583 if test "$enable_shared" = yes && test "$GCC" = yes; then
9584 case $archive_cmds in
9585 *'~'*)
9586 # FIXME: we may have to deal with multi-command sequences.
9587 ;;
9588 '$CC '*)
9589 # Test whether the compiler implicitly links with -lc since on some
9590 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9591 # to ld, don't add -lc before -lgcc.
Lev Walkinaef10c32014-01-14 01:47:25 -08009592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009593$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08009594if ${lt_cv_archive_cmds_need_lc+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596else
9597 $RM conftest*
9598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00009599
Lev Walkinaef10c32014-01-14 01:47:25 -08009600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009601 (eval $ac_compile) 2>&5
9602 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08009603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9604 test $ac_status = 0; } 2>conftest.err; then
9605 soname=conftest
9606 lib=conftest
9607 libobjs=conftest.$ac_objext
9608 deplibs=
9609 wl=$lt_prog_compiler_wl
9610 pic_flag=$lt_prog_compiler_pic
9611 compiler_flags=-v
9612 linker_flags=-v
9613 verstring=
9614 output_objdir=.
9615 libname=conftest
9616 lt_save_allow_undefined_flag=$allow_undefined_flag
9617 allow_undefined_flag=
9618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07009619 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009620 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08009621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9622 test $ac_status = 0; }
9623 then
9624 lt_cv_archive_cmds_need_lc=no
9625 else
9626 lt_cv_archive_cmds_need_lc=yes
9627 fi
9628 allow_undefined_flag=$lt_save_allow_undefined_flag
9629 else
9630 cat conftest.err 1>&5
9631 fi
9632 $RM conftest*
9633
9634fi
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9636$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9637 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Lev Walkin8e8b5482004-06-17 23:42:48 +00009638 ;;
9639 esac
9640 fi
9641 ;;
9642esac
9643
Lev Walkin4da95cf2010-10-16 02:46:32 -07009644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
Lev Walkinaef10c32014-01-14 01:47:25 -08009800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009801$as_echo_n "checking dynamic linker characteristics... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07009802
9803if test "$GCC" = yes; then
9804 case $host_os in
9805 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9806 *) lt_awk_arg="/^libraries:/" ;;
9807 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08009808 case $host_os in
9809 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9810 *) lt_sed_strip_eq="s,=/,/,g" ;;
9811 esac
9812 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9813 case $lt_search_path_spec in
9814 *\;*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009815 # if the path contains ";" then we assume it to be the separator
9816 # otherwise default to the standard path separator (i.e. ":") - it is
9817 # assumed that no part of a normal pathname contains ";" but that should
9818 # okay in the real world where ";" in dirpaths is itself problematic.
Lev Walkinaef10c32014-01-14 01:47:25 -08009819 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9820 ;;
9821 *)
9822 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9823 ;;
9824 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07009825 # Ok, now we have the path, separated by spaces, we can step through it
9826 # and add multilib dir if necessary.
9827 lt_tmp_lt_search_path_spec=
9828 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9829 for lt_sys_path in $lt_search_path_spec; do
9830 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9831 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9832 else
9833 test -d "$lt_sys_path" && \
9834 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9835 fi
9836 done
Lev Walkinaef10c32014-01-14 01:47:25 -08009837 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009838BEGIN {RS=" "; FS="/|\n";} {
9839 lt_foo="";
9840 lt_count=0;
9841 for (lt_i = NF; lt_i > 0; lt_i--) {
9842 if ($lt_i != "" && $lt_i != ".") {
9843 if ($lt_i == "..") {
9844 lt_count++;
9845 } else {
9846 if (lt_count == 0) {
9847 lt_foo="/" $lt_i lt_foo;
9848 } else {
9849 lt_count--;
9850 }
9851 }
9852 }
9853 }
9854 if (lt_foo != "") { lt_freq[lt_foo]++; }
9855 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9856}'`
Lev Walkinaef10c32014-01-14 01:47:25 -08009857 # AWK program above erroneously prepends '/' to C:/dos/paths
9858 # for these hosts.
9859 case $host_os in
9860 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9861 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9862 esac
9863 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Lev Walkin4da95cf2010-10-16 02:46:32 -07009864else
9865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9866fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009867library_names_spec=
9868libname_spec='lib$name'
9869soname_spec=
9870shrext_cmds=".so"
9871postinstall_cmds=
9872postuninstall_cmds=
9873finish_cmds=
9874finish_eval=
9875shlibpath_var=
9876shlibpath_overrides_runpath=unknown
9877version_type=none
9878dynamic_linker="$host_os ld.so"
9879sys_lib_dlsearch_path_spec="/lib /usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009880need_lib_prefix=unknown
9881hardcode_into_libs=no
9882
9883# when you set need_version to no, make sure it does not cause -set_version
9884# flags to be left without arguments
9885need_version=unknown
9886
9887case $host_os in
9888aix3*)
9889 version_type=linux
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9891 shlibpath_var=LIBPATH
9892
9893 # AIX 3 has no versioning support, so we append a major version to the name.
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 ;;
9896
Lev Walkin4da95cf2010-10-16 02:46:32 -07009897aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009898 version_type=linux
9899 need_lib_prefix=no
9900 need_version=no
9901 hardcode_into_libs=yes
9902 if test "$host_cpu" = ia64; then
9903 # AIX 5 supports IA64
9904 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 else
9907 # With GCC up to 2.95.x, collect2 would create an import file
9908 # for dependence libraries. The import file would start with
9909 # the line `#! .'. This would cause the generated library to
9910 # depend on `.', always an invalid library. This was fixed in
9911 # development snapshots of GCC prior to 3.0.
9912 case $host_os in
9913 aix4 | aix4.[01] | aix4.[01].*)
9914 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9915 echo ' yes '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009916 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009917 :
9918 else
9919 can_build_shared=no
9920 fi
9921 ;;
9922 esac
9923 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9924 # soname into executable. Probably we can add versioning support to
9925 # collect2, so additional links can be useful in future.
9926 if test "$aix_use_runtimelinking" = yes; then
9927 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9928 # instead of lib<name>.a to let people know that these are not
9929 # typical AIX shared libraries.
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 else
9932 # We preserve .a as extension for shared libraries through AIX4.2
9933 # and later when we are not doing run time linking.
9934 library_names_spec='${libname}${release}.a $libname.a'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 fi
9937 shlibpath_var=LIBPATH
9938 fi
9939 ;;
9940
9941amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009942 case $host_cpu in
9943 powerpc)
9944 # Since July 2007 AmigaOS4 officially supports .so libraries.
9945 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 ;;
9948 m68k)
9949 library_names_spec='$libname.ixlibrary $libname.a'
9950 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Lev Walkinaef10c32014-01-14 01:47:25 -08009951 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009952 ;;
9953 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009954 ;;
9955
9956beos*)
9957 library_names_spec='${libname}${shared_ext}'
9958 dynamic_linker="$host_os ld.so"
9959 shlibpath_var=LIBRARY_PATH
9960 ;;
9961
Lev Walkinfbf1d282007-12-03 14:58:39 +00009962bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009963 version_type=linux
9964 need_version=no
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9971 # the default ld.so.conf also contains /usr/contrib/lib and
9972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9973 # libtool to hard-code these into programs
9974 ;;
9975
Lev Walkinaef10c32014-01-14 01:47:25 -08009976cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009977 version_type=windows
9978 shrext_cmds=".dll"
9979 need_version=no
9980 need_lib_prefix=no
9981
Lev Walkinaef10c32014-01-14 01:47:25 -08009982 case $GCC,$cc_basename in
9983 yes,*)
9984 # gcc
Lev Walkin8e8b5482004-06-17 23:42:48 +00009985 library_names_spec='$libname.dll.a'
9986 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9987 postinstall_cmds='base_file=`basename \${file}`~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Lev Walkin8e8b5482004-06-17 23:42:48 +00009989 dldir=$destdir/`dirname \$dlpath`~
9990 test -d \$dldir || mkdir -p \$dldir~
Lev Walkinfbf1d282007-12-03 14:58:39 +00009991 $install_prog $dir/$dlname \$dldir/$dlname~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009992 chmod a+x \$dldir/$dlname~
9993 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9994 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9995 fi'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9997 dlpath=$dir/\$dldll~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009998 $RM \$dlpath'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009999 shlibpath_overrides_runpath=yes
10000
10001 case $host_os in
10002 cygwin*)
10003 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10004 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkinaef10c32014-01-14 01:47:25 -080010005
10006 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010007 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080010008 mingw* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010009 # MinGW DLLs use traditional 'lib' prefix
10010 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010011 ;;
10012 pw32*)
10013 # pw32 DLLs use 'pw' prefix rather than 'lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010014 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010015 ;;
10016 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080010017 dynamic_linker='Win32 ld.exe'
10018 ;;
10019
10020 *,cl*)
10021 # Native MSVC
10022 libname_spec='$name'
10023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10024 library_names_spec='${libname}.dll.lib'
10025
10026 case $build_os in
10027 mingw*)
10028 sys_lib_search_path_spec=
10029 lt_save_ifs=$IFS
10030 IFS=';'
10031 for lt_path in $LIB
10032 do
10033 IFS=$lt_save_ifs
10034 # Let DOS variable expansion print the short 8.3 style file name.
10035 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10036 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10037 done
10038 IFS=$lt_save_ifs
10039 # Convert to MSYS style.
10040 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10041 ;;
10042 cygwin*)
10043 # Convert to unix form, then to dos form, then back to unix form
10044 # but this time dos style (no spaces!) so that the unix form looks
10045 # like /cygdrive/c/PROGRA~1:/cygdr...
10046 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10047 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10048 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10049 ;;
10050 *)
10051 sys_lib_search_path_spec="$LIB"
10052 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10053 # It is most probably a Windows format PATH.
10054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10055 else
10056 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10057 fi
10058 # FIXME: find the short name or the path components, as spaces are
10059 # common. (e.g. "Program Files" -> "PROGRA~1")
10060 ;;
10061 esac
10062
10063 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10064 postinstall_cmds='base_file=`basename \${file}`~
10065 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10066 dldir=$destdir/`dirname \$dlpath`~
10067 test -d \$dldir || mkdir -p \$dldir~
10068 $install_prog $dir/$dlname \$dldir/$dlname'
10069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10070 dlpath=$dir/\$dldll~
10071 $RM \$dlpath'
10072 shlibpath_overrides_runpath=yes
10073 dynamic_linker='Win32 link.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010074 ;;
10075
10076 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080010077 # Assume MSVC wrapper
Lev Walkin8e8b5482004-06-17 23:42:48 +000010078 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Lev Walkinaef10c32014-01-14 01:47:25 -080010079 dynamic_linker='Win32 ld.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010080 ;;
10081 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010082 # FIXME: first we should search . and the directory the executable is in
10083 shlibpath_var=PATH
10084 ;;
10085
10086darwin* | rhapsody*)
10087 dynamic_linker="$host_os dyld"
10088 version_type=darwin
10089 need_lib_prefix=no
10090 need_version=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010091 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010092 soname_spec='${libname}${release}${major}$shared_ext'
10093 shlibpath_overrides_runpath=yes
10094 shlibpath_var=DYLD_LIBRARY_PATH
Lev Walkinfbf1d282007-12-03 14:58:39 +000010095 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010096
10097 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10099 ;;
10100
10101dgux*)
10102 version_type=linux
10103 need_lib_prefix=no
10104 need_version=no
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 shlibpath_var=LD_LIBRARY_PATH
10108 ;;
10109
10110freebsd1*)
10111 dynamic_linker=no
10112 ;;
10113
Lev Walkinfbf1d282007-12-03 14:58:39 +000010114freebsd* | dragonfly*)
10115 # DragonFly does not have aout. When/if they implement a new
10116 # versioning mechanism, adjust this.
10117 if test -x /usr/bin/objformat; then
10118 objformat=`/usr/bin/objformat`
10119 else
10120 case $host_os in
10121 freebsd[123]*) objformat=aout ;;
10122 *) objformat=elf ;;
10123 esac
10124 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010125 version_type=freebsd-$objformat
10126 case $version_type in
10127 freebsd-elf*)
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10129 need_version=no
10130 need_lib_prefix=no
10131 ;;
10132 freebsd-*)
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10134 need_version=yes
10135 ;;
10136 esac
10137 shlibpath_var=LD_LIBRARY_PATH
10138 case $host_os in
10139 freebsd2*)
10140 shlibpath_overrides_runpath=yes
10141 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010142 freebsd3.[01]* | freebsdelf3.[01]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010143 shlibpath_overrides_runpath=yes
10144 hardcode_into_libs=yes
10145 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010148 shlibpath_overrides_runpath=no
10149 hardcode_into_libs=yes
10150 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010151 *) # from 4.6 on, and DragonFly
Lev Walkinfbf1d282007-12-03 14:58:39 +000010152 shlibpath_overrides_runpath=yes
10153 hardcode_into_libs=yes
10154 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010155 esac
10156 ;;
10157
10158gnu*)
10159 version_type=linux
10160 need_lib_prefix=no
10161 need_version=no
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 hardcode_into_libs=yes
10166 ;;
10167
Lev Walkinaef10c32014-01-14 01:47:25 -080010168haiku*)
10169 version_type=linux
10170 need_lib_prefix=no
10171 need_version=no
10172 dynamic_linker="$host_os runtime_loader"
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 shlibpath_var=LIBRARY_PATH
10176 shlibpath_overrides_runpath=yes
10177 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10178 hardcode_into_libs=yes
10179 ;;
10180
Lev Walkin8e8b5482004-06-17 23:42:48 +000010181hpux9* | hpux10* | hpux11*)
10182 # Give a soname corresponding to the major version so that dld.sl refuses to
10183 # link against other versions.
10184 version_type=sunos
10185 need_lib_prefix=no
10186 need_version=no
Lev Walkinfbf1d282007-12-03 14:58:39 +000010187 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +000010188 ia64*)
10189 shrext_cmds='.so'
10190 hardcode_into_libs=yes
10191 dynamic_linker="$host_os dld.so"
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 if test "X$HPUX_IA64_MODE" = X32; then
10197 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10198 else
10199 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10200 fi
10201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10202 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010203 hppa*64*)
10204 shrext_cmds='.sl'
10205 hardcode_into_libs=yes
10206 dynamic_linker="$host_os dld.sl"
10207 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 soname_spec='${libname}${release}${shared_ext}$major'
10211 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10213 ;;
10214 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010215 shrext_cmds='.sl'
10216 dynamic_linker="$host_os dld.sl"
10217 shlibpath_var=SHLIB_PATH
10218 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 ;;
10222 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080010223 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Lev Walkin8e8b5482004-06-17 23:42:48 +000010224 postinstall_cmds='chmod 555 $lib'
Lev Walkinaef10c32014-01-14 01:47:25 -080010225 # or fails outright, so override atomically:
10226 install_override_mode=555
Lev Walkin8e8b5482004-06-17 23:42:48 +000010227 ;;
10228
Lev Walkin4da95cf2010-10-16 02:46:32 -070010229interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000010230 version_type=linux
10231 need_lib_prefix=no
10232 need_version=no
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10236 shlibpath_var=LD_LIBRARY_PATH
10237 shlibpath_overrides_runpath=no
10238 hardcode_into_libs=yes
10239 ;;
10240
Lev Walkin8e8b5482004-06-17 23:42:48 +000010241irix5* | irix6* | nonstopux*)
10242 case $host_os in
10243 nonstopux*) version_type=nonstopux ;;
10244 *)
10245 if test "$lt_cv_prog_gnu_ld" = yes; then
10246 version_type=linux
10247 else
10248 version_type=irix
10249 fi ;;
10250 esac
10251 need_lib_prefix=no
10252 need_version=no
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10255 case $host_os in
10256 irix5* | nonstopux*)
10257 libsuff= shlibsuff=
10258 ;;
10259 *)
10260 case $LD in # libtool.m4 will add one of these switches to LD
10261 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10262 libsuff= shlibsuff= libmagic=32-bit;;
10263 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10264 libsuff=32 shlibsuff=N32 libmagic=N32;;
10265 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10266 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10267 *) libsuff= shlibsuff= libmagic=never-match;;
10268 esac
10269 ;;
10270 esac
10271 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10272 shlibpath_overrides_runpath=no
10273 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10274 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10275 hardcode_into_libs=yes
10276 ;;
10277
10278# No shared lib support for Linux oldld, aout, or coff.
10279linux*oldld* | linux*aout* | linux*coff*)
10280 dynamic_linker=no
10281 ;;
10282
10283# This must be Linux ELF.
Lev Walkinaef10c32014-01-14 01:47:25 -080010284linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010285 version_type=linux
10286 need_lib_prefix=no
10287 need_version=no
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010293
Lev Walkin4da95cf2010-10-16 02:46:32 -070010294 # Some binutils ld are patched to set DT_RUNPATH
Lev Walkinaef10c32014-01-14 01:47:25 -080010295 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297else
10298 lt_cv_shlibpath_overrides_runpath=no
10299 save_LDFLAGS=$LDFLAGS
10300 save_libdir=$libdir
10301 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10302 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -070010304/* end confdefs.h. */
10305
10306int
10307main ()
10308{
10309
10310 ;
10311 return 0;
10312}
10313_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010314if ac_fn_c_try_link "$LINENO"; then :
10315 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10316 lt_cv_shlibpath_overrides_runpath=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -070010317fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010318fi
10319rm -f core conftest.err conftest.$ac_objext \
10320 conftest$ac_exeext conftest.$ac_ext
10321 LDFLAGS=$save_LDFLAGS
10322 libdir=$save_libdir
Lev Walkin4da95cf2010-10-16 02:46:32 -070010323
10324fi
10325
Lev Walkinaef10c32014-01-14 01:47:25 -080010326 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Lev Walkin4da95cf2010-10-16 02:46:32 -070010327
Lev Walkin8e8b5482004-06-17 23:42:48 +000010328 # This implies no fast_install, which is unacceptable.
10329 # Some rework will be needed to allow for fast_install
10330 # before this can be enabled.
10331 hardcode_into_libs=yes
10332
10333 # Append ld.so.conf contents to the search path
10334 if test -f /etc/ld.so.conf; then
Lev Walkinaef10c32014-01-14 01:47:25 -080010335 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' ' '`
Lev Walkin8e8b5482004-06-17 23:42:48 +000010336 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10337 fi
10338
10339 # We used to test for /lib/ld.so.1 and disable shared libraries on
10340 # powerpc, because MkLinux only supported shared libraries with the
10341 # GNU dynamic linker. Since this was broken with cross compilers,
10342 # most powerpc-linux boxes support dynamic linking these days and
10343 # people can always --disable-shared, the test was removed, and we
10344 # assume the GNU/Linux dynamic linker is in use.
10345 dynamic_linker='GNU/Linux ld.so'
10346 ;;
10347
Lev Walkin8e8b5482004-06-17 23:42:48 +000010348netbsd*)
10349 version_type=sunos
10350 need_lib_prefix=no
10351 need_version=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070010352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10355 dynamic_linker='NetBSD (a.out) ld.so'
10356 else
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 dynamic_linker='NetBSD ld.elf_so'
10360 fi
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 hardcode_into_libs=yes
10364 ;;
10365
10366newsos6)
10367 version_type=linux
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 ;;
10372
Lev Walkin4da95cf2010-10-16 02:46:32 -070010373*nto* | *qnx*)
10374 version_type=qnx
Lev Walkin8e8b5482004-06-17 23:42:48 +000010375 need_lib_prefix=no
10376 need_version=no
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010380 shlibpath_overrides_runpath=no
10381 hardcode_into_libs=yes
10382 dynamic_linker='ldqnx.so'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010383 ;;
10384
10385openbsd*)
10386 version_type=sunos
Lev Walkinfbf1d282007-12-03 14:58:39 +000010387 sys_lib_dlsearch_path_spec="/usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010388 need_lib_prefix=no
Lev Walkinfbf1d282007-12-03 14:58:39 +000010389 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10390 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070010391 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10392 *) need_version=no ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010393 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10396 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010398 case $host_os in
10399 openbsd2.[89] | openbsd2.[89].*)
10400 shlibpath_overrides_runpath=no
10401 ;;
10402 *)
10403 shlibpath_overrides_runpath=yes
10404 ;;
10405 esac
10406 else
10407 shlibpath_overrides_runpath=yes
10408 fi
10409 ;;
10410
10411os2*)
10412 libname_spec='$name'
10413 shrext_cmds=".dll"
10414 need_lib_prefix=no
10415 library_names_spec='$libname${shared_ext} $libname.a'
10416 dynamic_linker='OS/2 ld.exe'
10417 shlibpath_var=LIBPATH
10418 ;;
10419
10420osf3* | osf4* | osf5*)
10421 version_type=osf
10422 need_lib_prefix=no
10423 need_version=no
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10428 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10429 ;;
10430
Lev Walkin4da95cf2010-10-16 02:46:32 -070010431rdos*)
10432 dynamic_linker=no
10433 ;;
10434
Lev Walkin8e8b5482004-06-17 23:42:48 +000010435solaris*)
10436 version_type=linux
10437 need_lib_prefix=no
10438 need_version=no
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 shlibpath_var=LD_LIBRARY_PATH
10442 shlibpath_overrides_runpath=yes
10443 hardcode_into_libs=yes
10444 # ldd complains unless libraries are executable
10445 postinstall_cmds='chmod +x $lib'
10446 ;;
10447
10448sunos4*)
10449 version_type=sunos
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10451 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 shlibpath_overrides_runpath=yes
10454 if test "$with_gnu_ld" = yes; then
10455 need_lib_prefix=no
10456 fi
10457 need_version=yes
10458 ;;
10459
Lev Walkinfbf1d282007-12-03 14:58:39 +000010460sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010461 version_type=linux
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463 soname_spec='${libname}${release}${shared_ext}$major'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 case $host_vendor in
10466 sni)
10467 shlibpath_overrides_runpath=no
10468 need_lib_prefix=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010469 runpath_var=LD_RUN_PATH
10470 ;;
10471 siemens)
10472 need_lib_prefix=no
10473 ;;
10474 motorola)
10475 need_lib_prefix=no
10476 need_version=no
10477 shlibpath_overrides_runpath=no
10478 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10479 ;;
10480 esac
10481 ;;
10482
10483sysv4*MP*)
10484 if test -d /usr/nec ;then
10485 version_type=linux
10486 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10487 soname_spec='$libname${shared_ext}.$major'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 fi
10490 ;;
10491
Lev Walkinfbf1d282007-12-03 14:58:39 +000010492sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10493 version_type=freebsd-elf
10494 need_lib_prefix=no
10495 need_version=no
10496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10497 soname_spec='${libname}${release}${shared_ext}$major'
10498 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010499 shlibpath_overrides_runpath=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +000010500 hardcode_into_libs=yes
10501 if test "$with_gnu_ld" = yes; then
10502 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010503 else
10504 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010505 case $host_os in
10506 sco3.2v5*)
10507 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10508 ;;
10509 esac
10510 fi
10511 sys_lib_dlsearch_path_spec='/usr/lib'
10512 ;;
10513
Lev Walkin4da95cf2010-10-16 02:46:32 -070010514tpf*)
10515 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10516 version_type=linux
10517 need_lib_prefix=no
10518 need_version=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=no
10522 hardcode_into_libs=yes
10523 ;;
10524
Lev Walkin8e8b5482004-06-17 23:42:48 +000010525uts4*)
10526 version_type=linux
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 ;;
10531
10532*)
10533 dynamic_linker=no
10534 ;;
10535esac
Lev Walkinaef10c32014-01-14 01:47:25 -080010536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010537$as_echo "$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010538test "$dynamic_linker" = no && can_build_shared=no
10539
Lev Walkinfbf1d282007-12-03 14:58:39 +000010540variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10541if test "$GCC" = yes; then
10542 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10543fi
10544
Lev Walkin4da95cf2010-10-16 02:46:32 -070010545if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10546 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10547fi
10548if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10549 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10550fi
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
Lev Walkinaef10c32014-01-14 01:47:25 -080010638
10639
10640
10641
10642
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010644$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010645hardcode_action=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010646if test -n "$hardcode_libdir_flag_spec" ||
10647 test -n "$runpath_var" ||
Lev Walkinfbf1d282007-12-03 14:58:39 +000010648 test "X$hardcode_automatic" = "Xyes" ; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010649
Lev Walkin4da95cf2010-10-16 02:46:32 -070010650 # We can hardcode non-existent directories.
Lev Walkin8e8b5482004-06-17 23:42:48 +000010651 if test "$hardcode_direct" != no &&
10652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10653 # have to relink, otherwise we might link with an installed library
10654 # when we should be linking with a yet-to-be-installed one
Lev Walkin4da95cf2010-10-16 02:46:32 -070010655 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000010656 test "$hardcode_minus_L" != no; then
10657 # Linking always hardcodes the temporary library directory.
10658 hardcode_action=relink
10659 else
10660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10661 hardcode_action=immediate
10662 fi
10663else
10664 # We cannot hardcode anything, or else we can only hardcode existing
10665 # directories.
10666 hardcode_action=unsupported
10667fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010669$as_echo "$hardcode_action" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010670
Lev Walkin4da95cf2010-10-16 02:46:32 -070010671if test "$hardcode_action" = relink ||
10672 test "$inherit_rpath" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010673 # Fast installation is not supported
10674 enable_fast_install=no
10675elif test "$shlibpath_overrides_runpath" = yes ||
10676 test "$enable_shared" = no; then
10677 # Fast installation is not necessary
10678 enable_fast_install=needless
10679fi
10680
Lev Walkin8e8b5482004-06-17 23:42:48 +000010681
Lev Walkin4da95cf2010-10-16 02:46:32 -070010682
10683
10684
10685
10686 if test "x$enable_dlopen" != xyes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010687 enable_dlopen=unknown
10688 enable_dlopen_self=unknown
10689 enable_dlopen_self_static=unknown
10690else
10691 lt_cv_dlopen=no
10692 lt_cv_dlopen_libs=
10693
10694 case $host_os in
10695 beos*)
10696 lt_cv_dlopen="load_add_on"
10697 lt_cv_dlopen_libs=
10698 lt_cv_dlopen_self=yes
10699 ;;
10700
Lev Walkinaef10c32014-01-14 01:47:25 -080010701 mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010702 lt_cv_dlopen="LoadLibrary"
10703 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010704 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010705
10706 cygwin*)
10707 lt_cv_dlopen="dlopen"
10708 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010709 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010710
10711 darwin*)
10712 # if libdl is installed we need to link against it
Lev Walkinaef10c32014-01-14 01:47:25 -080010713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010714$as_echo_n "checking for dlopen in -ldl... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010715if ${ac_cv_lib_dl_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010716 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010717else
10718 ac_check_lib_save_LIBS=$LIBS
10719LIBS="-ldl $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010721/* end confdefs.h. */
10722
Lev Walkin27fd0b62007-08-27 23:57:45 +000010723/* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010726#ifdef __cplusplus
10727extern "C"
10728#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010729char dlopen ();
10730int
10731main ()
10732{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010733return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010734 ;
10735 return 0;
10736}
10737_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010738if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010739 ac_cv_lib_dl_dlopen=yes
10740else
Lev Walkinaef10c32014-01-14 01:47:25 -080010741 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010742fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010743rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010745LIBS=$ac_check_lib_save_LIBS
10746fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010748$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010749if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10751else
10752
10753 lt_cv_dlopen="dyld"
10754 lt_cv_dlopen_libs=
10755 lt_cv_dlopen_self=yes
10756
10757fi
10758
Lev Walkin4da95cf2010-10-16 02:46:32 -070010759 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010760
10761 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080010762 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10763if test "x$ac_cv_func_shl_load" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010764 lt_cv_dlopen="shl_load"
10765else
Lev Walkinaef10c32014-01-14 01:47:25 -080010766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010767$as_echo_n "checking for shl_load in -ldld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010768if ${ac_cv_lib_dld_shl_load+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010769 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010770else
10771 ac_check_lib_save_LIBS=$LIBS
10772LIBS="-ldld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010774/* end confdefs.h. */
10775
Lev Walkin27fd0b62007-08-27 23:57:45 +000010776/* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010779#ifdef __cplusplus
10780extern "C"
10781#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010782char shl_load ();
10783int
10784main ()
10785{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010786return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010787 ;
10788 return 0;
10789}
10790_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010791if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010792 ac_cv_lib_dld_shl_load=yes
10793else
Lev Walkinaef10c32014-01-14 01:47:25 -080010794 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010795fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010796rm -f core conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010798LIBS=$ac_check_lib_save_LIBS
10799fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010801$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010802if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -070010803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010804else
Lev Walkinaef10c32014-01-14 01:47:25 -080010805 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10806if test "x$ac_cv_func_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010807 lt_cv_dlopen="dlopen"
10808else
Lev Walkinaef10c32014-01-14 01:47:25 -080010809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010810$as_echo_n "checking for dlopen in -ldl... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010811if ${ac_cv_lib_dl_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010812 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010813else
10814 ac_check_lib_save_LIBS=$LIBS
10815LIBS="-ldl $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010817/* end confdefs.h. */
10818
Lev Walkin27fd0b62007-08-27 23:57:45 +000010819/* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010822#ifdef __cplusplus
10823extern "C"
10824#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010825char dlopen ();
10826int
10827main ()
10828{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010829return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010830 ;
10831 return 0;
10832}
10833_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010834if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010835 ac_cv_lib_dl_dlopen=yes
10836else
Lev Walkinaef10c32014-01-14 01:47:25 -080010837 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010838fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010839rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010841LIBS=$ac_check_lib_save_LIBS
10842fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010844$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010845if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10847else
Lev Walkinaef10c32014-01-14 01:47:25 -080010848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010849$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010850if ${ac_cv_lib_svld_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010851 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010852else
10853 ac_check_lib_save_LIBS=$LIBS
10854LIBS="-lsvld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010856/* end confdefs.h. */
10857
Lev Walkin27fd0b62007-08-27 23:57:45 +000010858/* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010861#ifdef __cplusplus
10862extern "C"
10863#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010864char dlopen ();
10865int
10866main ()
10867{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010868return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010869 ;
10870 return 0;
10871}
10872_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010873if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010874 ac_cv_lib_svld_dlopen=yes
10875else
Lev Walkinaef10c32014-01-14 01:47:25 -080010876 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010877fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010878rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010880LIBS=$ac_check_lib_save_LIBS
10881fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010883$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010884if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10886else
Lev Walkinaef10c32014-01-14 01:47:25 -080010887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010888$as_echo_n "checking for dld_link in -ldld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010889if ${ac_cv_lib_dld_dld_link+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010890 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010891else
10892 ac_check_lib_save_LIBS=$LIBS
10893LIBS="-ldld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010895/* end confdefs.h. */
10896
Lev Walkin27fd0b62007-08-27 23:57:45 +000010897/* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010900#ifdef __cplusplus
10901extern "C"
10902#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010903char dld_link ();
10904int
10905main ()
10906{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010907return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010908 ;
10909 return 0;
10910}
10911_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010912if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010913 ac_cv_lib_dld_dld_link=yes
10914else
Lev Walkinaef10c32014-01-14 01:47:25 -080010915 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010916fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010917rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010919LIBS=$ac_check_lib_save_LIBS
10920fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010922$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010923if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -070010924 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010925fi
10926
10927
10928fi
10929
10930
10931fi
10932
10933
10934fi
10935
10936
10937fi
10938
10939
10940fi
10941
10942 ;;
10943 esac
10944
10945 if test "x$lt_cv_dlopen" != xno; then
10946 enable_dlopen=yes
10947 else
10948 enable_dlopen=no
10949 fi
10950
10951 case $lt_cv_dlopen in
10952 dlopen)
10953 save_CPPFLAGS="$CPPFLAGS"
10954 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10955
10956 save_LDFLAGS="$LDFLAGS"
Lev Walkinfbf1d282007-12-03 14:58:39 +000010957 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010958
10959 save_LIBS="$LIBS"
10960 LIBS="$lt_cv_dlopen_libs $LIBS"
10961
Lev Walkinaef10c32014-01-14 01:47:25 -080010962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010963$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010964if ${lt_cv_dlopen_self+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010965 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010966else
10967 if test "$cross_compiling" = yes; then :
10968 lt_cv_dlopen_self=cross
10969else
10970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10971 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070010972 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010973#line $LINENO "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010974#include "confdefs.h"
10975
10976#if HAVE_DLFCN_H
10977#include <dlfcn.h>
10978#endif
10979
10980#include <stdio.h>
10981
10982#ifdef RTLD_GLOBAL
10983# define LT_DLGLOBAL RTLD_GLOBAL
10984#else
10985# ifdef DL_GLOBAL
10986# define LT_DLGLOBAL DL_GLOBAL
10987# else
10988# define LT_DLGLOBAL 0
10989# endif
10990#endif
10991
10992/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10993 find out it does not work in some platform. */
10994#ifndef LT_DLLAZY_OR_NOW
10995# ifdef RTLD_LAZY
10996# define LT_DLLAZY_OR_NOW RTLD_LAZY
10997# else
10998# ifdef DL_LAZY
10999# define LT_DLLAZY_OR_NOW DL_LAZY
11000# else
11001# ifdef RTLD_NOW
11002# define LT_DLLAZY_OR_NOW RTLD_NOW
11003# else
11004# ifdef DL_NOW
11005# define LT_DLLAZY_OR_NOW DL_NOW
11006# else
11007# define LT_DLLAZY_OR_NOW 0
11008# endif
11009# endif
11010# endif
11011# endif
11012#endif
11013
Lev Walkinaef10c32014-01-14 01:47:25 -080011014/* When -fvisbility=hidden is used, assume the code has been annotated
11015 correspondingly for the symbols needed. */
11016#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11017int fnord () __attribute__((visibility("default")));
Lev Walkin8e8b5482004-06-17 23:42:48 +000011018#endif
11019
Lev Walkinaef10c32014-01-14 01:47:25 -080011020int fnord () { return 42; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011021int main ()
11022{
11023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11024 int status = $lt_dlunknown;
11025
11026 if (self)
11027 {
11028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkinaef10c32014-01-14 01:47:25 -080011029 else
11030 {
11031 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11032 else puts (dlerror ());
11033 }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011034 /* dlclose (self); */
11035 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011036 else
11037 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000011038
Lev Walkinaef10c32014-01-14 01:47:25 -080011039 return status;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011040}
Lev Walkin4da95cf2010-10-16 02:46:32 -070011041_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011043 (eval $ac_link) 2>&5
11044 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11046 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011047 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000011048 lt_status=$?
11049 case x$lt_status in
11050 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11051 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000011052 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011053 esac
11054 else :
11055 # compilation failed
11056 lt_cv_dlopen_self=no
11057 fi
11058fi
11059rm -fr conftest*
11060
11061
11062fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011064$as_echo "$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011065
11066 if test "x$lt_cv_dlopen_self" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011067 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Lev Walkinaef10c32014-01-14 01:47:25 -080011068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011069$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011070if ${lt_cv_dlopen_self_static+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011071 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000011072else
11073 if test "$cross_compiling" = yes; then :
11074 lt_cv_dlopen_self_static=cross
11075else
11076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11077 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070011078 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011079#line $LINENO "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011080#include "confdefs.h"
11081
11082#if HAVE_DLFCN_H
11083#include <dlfcn.h>
11084#endif
11085
11086#include <stdio.h>
11087
11088#ifdef RTLD_GLOBAL
11089# define LT_DLGLOBAL RTLD_GLOBAL
11090#else
11091# ifdef DL_GLOBAL
11092# define LT_DLGLOBAL DL_GLOBAL
11093# else
11094# define LT_DLGLOBAL 0
11095# endif
11096#endif
11097
11098/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11099 find out it does not work in some platform. */
11100#ifndef LT_DLLAZY_OR_NOW
11101# ifdef RTLD_LAZY
11102# define LT_DLLAZY_OR_NOW RTLD_LAZY
11103# else
11104# ifdef DL_LAZY
11105# define LT_DLLAZY_OR_NOW DL_LAZY
11106# else
11107# ifdef RTLD_NOW
11108# define LT_DLLAZY_OR_NOW RTLD_NOW
11109# else
11110# ifdef DL_NOW
11111# define LT_DLLAZY_OR_NOW DL_NOW
11112# else
11113# define LT_DLLAZY_OR_NOW 0
11114# endif
11115# endif
11116# endif
11117# endif
11118#endif
11119
Lev Walkinaef10c32014-01-14 01:47:25 -080011120/* When -fvisbility=hidden is used, assume the code has been annotated
11121 correspondingly for the symbols needed. */
11122#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11123int fnord () __attribute__((visibility("default")));
Lev Walkin8e8b5482004-06-17 23:42:48 +000011124#endif
11125
Lev Walkinaef10c32014-01-14 01:47:25 -080011126int fnord () { return 42; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011127int main ()
11128{
11129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11130 int status = $lt_dlunknown;
11131
11132 if (self)
11133 {
11134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkinaef10c32014-01-14 01:47:25 -080011135 else
11136 {
11137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11138 else puts (dlerror ());
11139 }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011140 /* dlclose (self); */
11141 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011142 else
11143 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000011144
Lev Walkinaef10c32014-01-14 01:47:25 -080011145 return status;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011146}
Lev Walkin4da95cf2010-10-16 02:46:32 -070011147_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011149 (eval $ac_link) 2>&5
11150 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011153 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000011154 lt_status=$?
11155 case x$lt_status in
11156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000011158 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011159 esac
11160 else :
11161 # compilation failed
11162 lt_cv_dlopen_self_static=no
11163 fi
11164fi
11165rm -fr conftest*
11166
11167
11168fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011170$as_echo "$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011171 fi
11172
11173 CPPFLAGS="$save_CPPFLAGS"
11174 LDFLAGS="$save_LDFLAGS"
11175 LIBS="$save_LIBS"
11176 ;;
11177 esac
11178
11179 case $lt_cv_dlopen_self in
11180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11181 *) enable_dlopen_self=unknown ;;
11182 esac
11183
11184 case $lt_cv_dlopen_self_static in
11185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11186 *) enable_dlopen_self_static=unknown ;;
11187 esac
11188fi
11189
11190
Lev Walkin8e8b5482004-06-17 23:42:48 +000011191
Lev Walkin8e8b5482004-06-17 23:42:48 +000011192
Lev Walkin8e8b5482004-06-17 23:42:48 +000011193
Lev Walkin8e8b5482004-06-17 23:42:48 +000011194
Lev Walkin8e8b5482004-06-17 23:42:48 +000011195
Lev Walkin8e8b5482004-06-17 23:42:48 +000011196
Lev Walkin8e8b5482004-06-17 23:42:48 +000011197
Lev Walkin8e8b5482004-06-17 23:42:48 +000011198
Lev Walkin8e8b5482004-06-17 23:42:48 +000011199
Lev Walkin8e8b5482004-06-17 23:42:48 +000011200
Lev Walkin8e8b5482004-06-17 23:42:48 +000011201
Lev Walkin8e8b5482004-06-17 23:42:48 +000011202
Lev Walkin8e8b5482004-06-17 23:42:48 +000011203
Lev Walkin8e8b5482004-06-17 23:42:48 +000011204
Lev Walkin8e8b5482004-06-17 23:42:48 +000011205
Lev Walkin4da95cf2010-10-16 02:46:32 -070011206striplib=
11207old_striplib=
Lev Walkinaef10c32014-01-14 01:47:25 -080011208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011209$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011210if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11212 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Lev Walkinaef10c32014-01-14 01:47:25 -080011213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011214$as_echo "yes" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011215else
11216# FIXME - insert some real tests, host_os isn't really good enough
Lev Walkin8e8b5482004-06-17 23:42:48 +000011217 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070011218 darwin*)
11219 if test -n "$STRIP" ; then
11220 striplib="$STRIP -x"
11221 old_striplib="$STRIP -S"
Lev Walkinaef10c32014-01-14 01:47:25 -080011222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011223$as_echo "yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011224 else
Lev Walkinaef10c32014-01-14 01:47:25 -080011225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011226$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011227 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000011228 ;;
11229 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080011230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011231$as_echo "no" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011232 ;;
11233 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +000011234fi
11235
11236
Lev Walkin8e8b5482004-06-17 23:42:48 +000011237
Lev Walkin8e8b5482004-06-17 23:42:48 +000011238
Lev Walkin8e8b5482004-06-17 23:42:48 +000011239
11240
Lev Walkin8e8b5482004-06-17 23:42:48 +000011241
Lev Walkin8e8b5482004-06-17 23:42:48 +000011242
Lev Walkin8e8b5482004-06-17 23:42:48 +000011243
Lev Walkin8e8b5482004-06-17 23:42:48 +000011244
Lev Walkin8e8b5482004-06-17 23:42:48 +000011245
Lev Walkin8e8b5482004-06-17 23:42:48 +000011246
Lev Walkin4da95cf2010-10-16 02:46:32 -070011247 # Report which library types will actually be built
Lev Walkinaef10c32014-01-14 01:47:25 -080011248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011249$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011251$as_echo "$can_build_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011252
Lev Walkinaef10c32014-01-14 01:47:25 -080011253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011254$as_echo_n "checking whether to build shared libraries... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011255 test "$can_build_shared" = "no" && enable_shared=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011256
Lev Walkin4da95cf2010-10-16 02:46:32 -070011257 # On AIX, shared libraries and static libraries use the same namespace, and
11258 # are all built from PIC.
11259 case $host_os in
11260 aix3*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000011261 test "$enable_shared" = yes && enable_static=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070011262 if test -n "$RANLIB"; then
11263 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11264 postinstall_cmds='$RANLIB $lib'
11265 fi
11266 ;;
11267
11268 aix[4-9]*)
11269 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11270 test "$enable_shared" = yes && enable_static=no
11271 fi
11272 ;;
11273 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011275$as_echo "$enable_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011276
Lev Walkinaef10c32014-01-14 01:47:25 -080011277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011278$as_echo_n "checking whether to build static libraries... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011279 # Make sure either enable_shared or enable_static is yes.
11280 test "$enable_shared" = yes || enable_static=yes
Lev Walkinaef10c32014-01-14 01:47:25 -080011281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011282$as_echo "$enable_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011283
Lev Walkin8e8b5482004-06-17 23:42:48 +000011284
Lev Walkin8e8b5482004-06-17 23:42:48 +000011285
Lev Walkin27fd0b62007-08-27 23:57:45 +000011286
Lev Walkin8e8b5482004-06-17 23:42:48 +000011287fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000011288ac_ext=c
11289ac_cpp='$CPP $CPPFLAGS'
11290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11292ac_compiler_gnu=$ac_cv_c_compiler_gnu
11293
11294CC="$lt_save_CC"
11295
Lev Walkin8e8b5482004-06-17 23:42:48 +000011296
Lev Walkin8e8b5482004-06-17 23:42:48 +000011297
11298
Lev Walkin8e8b5482004-06-17 23:42:48 +000011299
Lev Walkin8e8b5482004-06-17 23:42:48 +000011300
Lev Walkin8e8b5482004-06-17 23:42:48 +000011301
Lev Walkin8e8b5482004-06-17 23:42:48 +000011302
Lev Walkin8e8b5482004-06-17 23:42:48 +000011303
Lev Walkin8e8b5482004-06-17 23:42:48 +000011304
Lev Walkinfbf1d282007-12-03 14:58:39 +000011305
Lev Walkin8e8b5482004-06-17 23:42:48 +000011306
11307
Lev Walkin4da95cf2010-10-16 02:46:32 -070011308 ac_config_commands="$ac_config_commands libtool"
Lev Walkinfbf1d282007-12-03 14:58:39 +000011309
Lev Walkinfbf1d282007-12-03 14:58:39 +000011310
11311
Lev Walkinfbf1d282007-12-03 14:58:39 +000011312
Lev Walkin4da95cf2010-10-16 02:46:32 -070011313# Only expand once:
Lev Walkin8e8b5482004-06-17 23:42:48 +000011314
Lev Walkinf15320b2004-06-03 03:38:44 +000011315
11316
Lev Walkinf15320b2004-06-03 03:38:44 +000011317ac_ext=c
11318ac_cpp='$CPP $CPPFLAGS'
11319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11321ac_compiler_gnu=$ac_cv_c_compiler_gnu
11322if test -n "$ac_tool_prefix"; then
11323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11324set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011326$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011327if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011328 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011329else
11330 if test -n "$CC"; then
11331 ac_cv_prog_CC="$CC" # Let the user override the test.
11332else
11333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334for as_dir in $PATH
11335do
11336 IFS=$as_save_IFS
11337 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011338 for ac_exec_ext in '' $ac_executable_extensions; do
11339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011342 break 2
11343 fi
11344done
Lev Walkinaef10c32014-01-14 01:47:25 -080011345 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011346IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011347
11348fi
11349fi
11350CC=$ac_cv_prog_CC
11351if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011353$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011354else
Lev Walkinaef10c32014-01-14 01:47:25 -080011355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011356$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011357fi
11358
Lev Walkin27fd0b62007-08-27 23:57:45 +000011359
Lev Walkinf15320b2004-06-03 03:38:44 +000011360fi
11361if test -z "$ac_cv_prog_CC"; then
11362 ac_ct_CC=$CC
11363 # Extract the first word of "gcc", so it can be a program name with args.
11364set dummy gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011366$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011367if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011368 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011369else
11370 if test -n "$ac_ct_CC"; then
11371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011380 ac_cv_prog_ac_ct_CC="gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011382 break 2
11383 fi
11384done
Lev Walkinaef10c32014-01-14 01:47:25 -080011385 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011386IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011387
11388fi
11389fi
11390ac_ct_CC=$ac_cv_prog_ac_ct_CC
11391if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011393$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011394else
Lev Walkinaef10c32014-01-14 01:47:25 -080011395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011396$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011397fi
11398
Lev Walkin27fd0b62007-08-27 23:57:45 +000011399 if test "x$ac_ct_CC" = x; then
11400 CC=""
11401 else
11402 case $cross_compiling:$ac_tool_warned in
11403yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -080011404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000011406ac_tool_warned=yes ;;
11407esac
11408 CC=$ac_ct_CC
11409 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011410else
11411 CC="$ac_cv_prog_CC"
11412fi
11413
11414if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011415 if test -n "$ac_tool_prefix"; then
11416 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +000011417set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011419$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011420if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011421 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011422else
11423 if test -n "$CC"; then
11424 ac_cv_prog_CC="$CC" # Let the user override the test.
11425else
11426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427for as_dir in $PATH
11428do
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011433 ac_cv_prog_CC="${ac_tool_prefix}cc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011435 break 2
11436 fi
11437done
Lev Walkinaef10c32014-01-14 01:47:25 -080011438 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011439IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011440
11441fi
11442fi
11443CC=$ac_cv_prog_CC
11444if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011446$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011447else
Lev Walkinaef10c32014-01-14 01:47:25 -080011448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011449$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011450fi
11451
Lev Walkin27fd0b62007-08-27 23:57:45 +000011452
Lev Walkinf15320b2004-06-03 03:38:44 +000011453 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011454fi
11455if test -z "$CC"; then
11456 # Extract the first word of "cc", so it can be a program name with args.
11457set dummy cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011459$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011460if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011461 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011462else
11463 if test -n "$CC"; then
11464 ac_cv_prog_CC="$CC" # Let the user override the test.
11465else
11466 ac_prog_rejected=no
11467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468for as_dir in $PATH
11469do
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011474 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11475 ac_prog_rejected=yes
11476 continue
11477 fi
11478 ac_cv_prog_CC="cc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011480 break 2
11481 fi
11482done
Lev Walkinaef10c32014-01-14 01:47:25 -080011483 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011484IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011485
11486if test $ac_prog_rejected = yes; then
11487 # We found a bogon in the path, so make sure we never use it.
11488 set dummy $ac_cv_prog_CC
11489 shift
11490 if test $# != 0; then
11491 # We chose a different compiler from the bogus one.
11492 # However, it has the same basename, so the bogon will be chosen
11493 # first if we set CC to just the basename; use the full file name.
11494 shift
11495 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11496 fi
11497fi
11498fi
11499fi
11500CC=$ac_cv_prog_CC
11501if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011503$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011504else
Lev Walkinaef10c32014-01-14 01:47:25 -080011505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011506$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011507fi
11508
Lev Walkin27fd0b62007-08-27 23:57:45 +000011509
Lev Walkinf15320b2004-06-03 03:38:44 +000011510fi
11511if test -z "$CC"; then
11512 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011513 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011514 do
11515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11516set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011518$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011519if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011520 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011521else
11522 if test -n "$CC"; then
11523 ac_cv_prog_CC="$CC" # Let the user override the test.
11524else
11525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526for as_dir in $PATH
11527do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011532 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080011533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011534 break 2
11535 fi
11536done
Lev Walkinaef10c32014-01-14 01:47:25 -080011537 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011538IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011539
11540fi
11541fi
11542CC=$ac_cv_prog_CC
11543if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011545$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011546else
Lev Walkinaef10c32014-01-14 01:47:25 -080011547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011548$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011549fi
11550
Lev Walkin27fd0b62007-08-27 23:57:45 +000011551
Lev Walkinf15320b2004-06-03 03:38:44 +000011552 test -n "$CC" && break
11553 done
11554fi
11555if test -z "$CC"; then
11556 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +000011557 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011558do
11559 # Extract the first word of "$ac_prog", so it can be a program name with args.
11560set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011562$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011563if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011564 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011565else
11566 if test -n "$ac_ct_CC"; then
11567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11568else
11569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570for as_dir in $PATH
11571do
11572 IFS=$as_save_IFS
11573 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011574 for ac_exec_ext in '' $ac_executable_extensions; do
11575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011576 ac_cv_prog_ac_ct_CC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080011577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011578 break 2
11579 fi
11580done
Lev Walkinaef10c32014-01-14 01:47:25 -080011581 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011582IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011583
11584fi
11585fi
11586ac_ct_CC=$ac_cv_prog_ac_ct_CC
11587if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011589$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011590else
Lev Walkinaef10c32014-01-14 01:47:25 -080011591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011592$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011593fi
11594
Lev Walkin27fd0b62007-08-27 23:57:45 +000011595
Lev Walkinf15320b2004-06-03 03:38:44 +000011596 test -n "$ac_ct_CC" && break
11597done
11598
Lev Walkin27fd0b62007-08-27 23:57:45 +000011599 if test "x$ac_ct_CC" = x; then
11600 CC=""
11601 else
11602 case $cross_compiling:$ac_tool_warned in
11603yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -080011604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000011606ac_tool_warned=yes ;;
11607esac
11608 CC=$ac_ct_CC
11609 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011610fi
11611
11612fi
11613
11614
Lev Walkinaef10c32014-01-14 01:47:25 -080011615test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -080011617as_fn_error $? "no acceptable C compiler found in \$PATH
11618See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011619
11620# Provide some information about the compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -080011621$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011622set X $ac_compile
11623ac_compiler=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011624for ac_option in --version -v -V -qversion; do
11625 { { ac_try="$ac_compiler $ac_option >&5"
Lev Walkin27fd0b62007-08-27 23:57:45 +000011626case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11631$as_echo "$ac_try_echo"; } >&5
11632 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Lev Walkinf15320b2004-06-03 03:38:44 +000011633 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011634 if test -s conftest.err; then
11635 sed '10a\
11636... rest of stderr output deleted ...
11637 10q' conftest.err >conftest.er1
11638 cat conftest.er1 >&5
11639 fi
11640 rm -f conftest.er1 conftest.err
11641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642 test $ac_status = 0; }
11643done
Lev Walkinf15320b2004-06-03 03:38:44 +000011644
Lev Walkinaef10c32014-01-14 01:47:25 -080011645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011646$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011647if ${ac_cv_c_compiler_gnu+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011648 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011649else
Lev Walkinaef10c32014-01-14 01:47:25 -080011650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011651/* end confdefs.h. */
11652
11653int
11654main ()
11655{
11656#ifndef __GNUC__
11657 choke me
11658#endif
11659
11660 ;
11661 return 0;
11662}
11663_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011664if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011665 ac_compiler_gnu=yes
11666else
Lev Walkinaef10c32014-01-14 01:47:25 -080011667 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011668fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011670ac_cv_c_compiler_gnu=$ac_compiler_gnu
11671
11672fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011674$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11675if test $ac_compiler_gnu = yes; then
11676 GCC=yes
11677else
11678 GCC=
11679fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011680ac_test_CFLAGS=${CFLAGS+set}
11681ac_save_CFLAGS=$CFLAGS
Lev Walkinaef10c32014-01-14 01:47:25 -080011682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011683$as_echo_n "checking whether $CC accepts -g... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011684if ${ac_cv_prog_cc_g+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011685 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011686else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011687 ac_save_c_werror_flag=$ac_c_werror_flag
11688 ac_c_werror_flag=yes
11689 ac_cv_prog_cc_g=no
11690 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -080011691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011692/* end confdefs.h. */
11693
11694int
11695main ()
11696{
11697
11698 ;
11699 return 0;
11700}
11701_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011702if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011703 ac_cv_prog_cc_g=yes
11704else
Lev Walkinaef10c32014-01-14 01:47:25 -080011705 CFLAGS=""
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011707/* end confdefs.h. */
11708
11709int
11710main ()
11711{
11712
11713 ;
11714 return 0;
11715}
11716_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011717if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011718
Lev Walkinaef10c32014-01-14 01:47:25 -080011719else
11720 ac_c_werror_flag=$ac_save_c_werror_flag
Lev Walkin27fd0b62007-08-27 23:57:45 +000011721 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -080011722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011723/* end confdefs.h. */
11724
11725int
11726main ()
11727{
11728
11729 ;
11730 return 0;
11731}
11732_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011733if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011734 ac_cv_prog_cc_g=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000011735fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011737fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11739fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 ac_c_werror_flag=$ac_save_c_werror_flag
11742fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011744$as_echo "$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011745if test "$ac_test_CFLAGS" = set; then
11746 CFLAGS=$ac_save_CFLAGS
11747elif test $ac_cv_prog_cc_g = yes; then
11748 if test "$GCC" = yes; then
11749 CFLAGS="-g -O2"
11750 else
11751 CFLAGS="-g"
11752 fi
11753else
11754 if test "$GCC" = yes; then
11755 CFLAGS="-O2"
11756 else
11757 CFLAGS=
11758 fi
11759fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011761$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011762if ${ac_cv_prog_cc_c89+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011763 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011764else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011765 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011766ac_save_CC=$CC
Lev Walkinaef10c32014-01-14 01:47:25 -080011767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011768/* end confdefs.h. */
11769#include <stdarg.h>
11770#include <stdio.h>
Lev Walkinaef10c32014-01-14 01:47:25 -080011771struct stat;
Lev Walkinf15320b2004-06-03 03:38:44 +000011772/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11773struct buf { int x; };
11774FILE * (*rcsopen) (struct buf *, struct stat *, int);
11775static char *e (p, i)
11776 char **p;
11777 int i;
11778{
11779 return p[i];
11780}
11781static char *f (char * (*g) (char **, int), char **p, ...)
11782{
11783 char *s;
11784 va_list v;
11785 va_start (v,p);
11786 s = g (p, va_arg (v,int));
11787 va_end (v);
11788 return s;
11789}
Lev Walkin8e8b5482004-06-17 23:42:48 +000011790
11791/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11792 function prototypes and stuff, but not '\xHH' hex character constants.
11793 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +000011794 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +000011795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11796 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +000011797 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011798int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11799
Lev Walkin27fd0b62007-08-27 23:57:45 +000011800/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11801 inside strings and character constants. */
11802#define FOO(x) 'x'
11803int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11804
Lev Walkinf15320b2004-06-03 03:38:44 +000011805int test (int i, double x);
11806struct s1 {int (*f) (int a);};
11807struct s2 {int (*f) (double a);};
11808int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11809int argc;
11810char **argv;
11811int
11812main ()
11813{
11814return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11815 ;
11816 return 0;
11817}
11818_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011819for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +000011821do
11822 CC="$ac_save_CC $ac_arg"
Lev Walkinaef10c32014-01-14 01:47:25 -080011823 if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011824 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +000011825fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011826rm -f core conftest.err conftest.$ac_objext
11827 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000011828done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011829rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011830CC=$ac_save_CC
11831
11832fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011833# AC_CACHE_VAL
11834case "x$ac_cv_prog_cc_c89" in
11835 x)
Lev Walkinaef10c32014-01-14 01:47:25 -080011836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011837$as_echo "none needed" >&6; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000011838 xno)
Lev Walkinaef10c32014-01-14 01:47:25 -080011839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011840$as_echo "unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011841 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000011842 CC="$CC $ac_cv_prog_cc_c89"
Lev Walkinaef10c32014-01-14 01:47:25 -080011843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011844$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011845esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011846if test "x$ac_cv_prog_cc_c89" != xno; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011847
Lev Walkinaef10c32014-01-14 01:47:25 -080011848fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011849
Lev Walkinf15320b2004-06-03 03:38:44 +000011850ac_ext=c
11851ac_cpp='$CPP $CPPFLAGS'
11852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11854ac_compiler_gnu=$ac_cv_c_compiler_gnu
11855
11856depcc="$CC" am_compiler_list=
11857
Lev Walkinaef10c32014-01-14 01:47:25 -080011858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011859$as_echo_n "checking dependency style of $depcc... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011860if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011861 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011862else
11863 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11864 # We make a subdir and do the tests there. Otherwise we can end up
11865 # making bogus files that we don't know about and never remove. For
11866 # instance it was reported that on HP-UX the gcc test will end up
11867 # making a dummy file named `D' -- because `-MD' means `put the output
11868 # in D'.
11869 mkdir conftest.dir
11870 # Copy depcomp to subdir because otherwise we won't find it if we're
11871 # using a relative directory.
11872 cp "$am_depcomp" conftest.dir
11873 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000011874 # We will build objects and dependencies in a subdirectory because
11875 # it helps to detect inapplicable dependency modes. For instance
11876 # both Tru64's cc and ICC support -MD to output dependencies as a
11877 # side effect of compilation, but ICC will put the dependencies in
11878 # the current directory while Tru64 will put them in the object
11879 # directory.
11880 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000011881
11882 am_cv_CC_dependencies_compiler_type=none
11883 if test "$am_compiler_list" = ""; then
11884 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11885 fi
Lev Walkinb3751942012-09-02 19:36:47 -070011886 am__universal=false
11887 case " $depcc " in #(
11888 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11889 esac
11890
Lev Walkinf15320b2004-06-03 03:38:44 +000011891 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000011892 # Setup a source with many dependencies, because some compilers
11893 # like to wrap large dependency lists on column 80 (with \), and
11894 # we should not choose a depcomp mode which is confused by this.
11895 #
Lev Walkinf15320b2004-06-03 03:38:44 +000011896 # We need to recreate these files for each test, as the compiler may
11897 # overwrite some of them when testing with obscure command lines.
11898 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000011899 : > sub/conftest.c
11900 for i in 1 2 3 4 5 6; do
11901 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11902 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11903 # Solaris 8's {/usr,}/bin/sh.
11904 touch sub/conftst$i.h
11905 done
11906 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000011907
Lev Walkinb3751942012-09-02 19:36:47 -070011908 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11909 # mode. It turns out that the SunPro C++ compiler does not properly
11910 # handle `-M -o', and we need to detect this. Also, some Intel
11911 # versions had trouble with output in subdirs
11912 am__obj=sub/conftest.${OBJEXT-o}
11913 am__minus_obj="-o $am__obj"
Lev Walkinf15320b2004-06-03 03:38:44 +000011914 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -070011915 gcc)
11916 # This depmode causes a compiler race in universal mode.
11917 test "$am__universal" = false || continue
11918 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011919 nosideeffect)
11920 # after this tag, mechanisms are not by side-effect, so they'll
11921 # only be used when explicitly requested
11922 if test "x$enable_dependency_tracking" = xyes; then
11923 continue
11924 else
11925 break
11926 fi
11927 ;;
Lev Walkinb3751942012-09-02 19:36:47 -070011928 msvisualcpp | msvcmsys)
11929 # This compiler won't grok `-c -o', but also, the minuso test has
11930 # not run yet. These depmodes are late enough in the game, and
11931 # so weak that their functioning should not be impacted.
11932 am__obj=conftest.${OBJEXT-o}
11933 am__minus_obj=
11934 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011935 none) break ;;
11936 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000011937 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -070011938 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011939 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -070011940 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011941 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -080011942 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000011943 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -070011944 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000011945 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011946 # icc doesn't choke on unknown options, it will just issue warnings
11947 # or remarks (even with -Werror). So we grep stderr for any message
11948 # that says an option was ignored or not supported.
11949 # When given -MP, icc 7.0 and 7.1 complain thusly:
11950 # icc: Command line warning: ignoring option '-M'; no argument required
11951 # The diagnosis changed in icc 8.0:
11952 # icc: Command line remark: option '-MP' not supported
11953 if (grep 'ignoring option' conftest.err ||
11954 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11955 am_cv_CC_dependencies_compiler_type=$depmode
11956 break
11957 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011958 fi
11959 done
11960
11961 cd ..
11962 rm -rf conftest.dir
11963else
11964 am_cv_CC_dependencies_compiler_type=none
11965fi
11966
11967fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011969$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011970CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11971
Lev Walkin4c776e52010-11-08 02:07:31 -080011972 if
Lev Walkin8e8b5482004-06-17 23:42:48 +000011973 test "x$enable_dependency_tracking" != xno \
11974 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11975 am__fastdepCC_TRUE=
11976 am__fastdepCC_FALSE='#'
11977else
11978 am__fastdepCC_TRUE='#'
11979 am__fastdepCC_FALSE=
11980fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011981
11982
11983ac_ext=c
11984ac_cpp='$CPP $CPPFLAGS'
11985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11987ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkinaef10c32014-01-14 01:47:25 -080011988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011989$as_echo_n "checking how to run the C preprocessor... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011990# On Suns, sometimes $CPP names a directory.
11991if test -n "$CPP" && test -d "$CPP"; then
11992 CPP=
11993fi
11994if test -z "$CPP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011995 if ${ac_cv_prog_CPP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011996 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011997else
11998 # Double quotes because CPP needs to be expanded
11999 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12000 do
12001 ac_preproc_ok=false
12002for ac_c_preproc_warn_flag in '' yes
12003do
12004 # Use a header file that comes with gcc, so configuring glibc
12005 # with a fresh cross-compiler works.
12006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12007 # <limits.h> exists even on freestanding compilers.
12008 # On the NeXT, cc -E runs the code through the compiler's parser,
12009 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -080012010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012011/* end confdefs.h. */
12012#ifdef __STDC__
12013# include <limits.h>
12014#else
12015# include <assert.h>
12016#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000012017 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000012018_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012019if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012020
Lev Walkinaef10c32014-01-14 01:47:25 -080012021else
Lev Walkinf15320b2004-06-03 03:38:44 +000012022 # Broken: fails on valid input.
12023continue
12024fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012025rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012026
Lev Walkin27fd0b62007-08-27 23:57:45 +000012027 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000012028 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -080012029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012030/* end confdefs.h. */
12031#include <ac_nonexistent.h>
12032_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012033if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012034 # Broken: success on invalid input.
12035continue
12036else
Lev Walkinf15320b2004-06-03 03:38:44 +000012037 # Passes both tests.
12038ac_preproc_ok=:
12039break
12040fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012041rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012042
12043done
12044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -080012045rm -f conftest.i conftest.err conftest.$ac_ext
12046if $ac_preproc_ok; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012047 break
12048fi
12049
12050 done
12051 ac_cv_prog_CPP=$CPP
12052
12053fi
12054 CPP=$ac_cv_prog_CPP
12055else
12056 ac_cv_prog_CPP=$CPP
12057fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012059$as_echo "$CPP" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012060ac_preproc_ok=false
12061for ac_c_preproc_warn_flag in '' yes
12062do
12063 # Use a header file that comes with gcc, so configuring glibc
12064 # with a fresh cross-compiler works.
12065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 # <limits.h> exists even on freestanding compilers.
12067 # On the NeXT, cc -E runs the code through the compiler's parser,
12068 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -080012069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012070/* end confdefs.h. */
12071#ifdef __STDC__
12072# include <limits.h>
12073#else
12074# include <assert.h>
12075#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000012076 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000012077_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012078if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012079
Lev Walkinaef10c32014-01-14 01:47:25 -080012080else
Lev Walkinf15320b2004-06-03 03:38:44 +000012081 # Broken: fails on valid input.
12082continue
12083fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012084rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012085
Lev Walkin27fd0b62007-08-27 23:57:45 +000012086 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000012087 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -080012088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012089/* end confdefs.h. */
12090#include <ac_nonexistent.h>
12091_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012092if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012093 # Broken: success on invalid input.
12094continue
12095else
Lev Walkinf15320b2004-06-03 03:38:44 +000012096 # Passes both tests.
12097ac_preproc_ok=:
12098break
12099fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012100rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012101
12102done
12103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -080012104rm -f conftest.i conftest.err conftest.$ac_ext
12105if $ac_preproc_ok; then :
12106
Lev Walkinf15320b2004-06-03 03:38:44 +000012107else
Lev Walkinaef10c32014-01-14 01:47:25 -080012108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -080012110as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12111See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012112fi
12113
12114ac_ext=c
12115ac_cpp='$CPP $CPPFLAGS'
12116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12118ac_compiler_gnu=$ac_cv_c_compiler_gnu
12119
Lev Walkinb3751942012-09-02 19:36:47 -070012120
Lev Walkinaef10c32014-01-14 01:47:25 -080012121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012122$as_echo_n "checking whether ln -s works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012123LN_S=$as_ln_s
12124if test "$LN_S" = "ln -s"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012126$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012127else
Lev Walkinaef10c32014-01-14 01:47:25 -080012128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012129$as_echo "no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012130fi
12131
Lev Walkinaef10c32014-01-14 01:47:25 -080012132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012133$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12134set x ${MAKE-make}
12135ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -080012136if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012137 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012138else
12139 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012140SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +000012141all:
Lev Walkin27fd0b62007-08-27 23:57:45 +000012142 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +000012143_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012144# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012145case `${MAKE-make} -f conftest.make 2>/dev/null` in
12146 *@@@%%%=?*=@@@%%%*)
12147 eval ac_cv_prog_make_${ac_make}_set=yes;;
12148 *)
12149 eval ac_cv_prog_make_${ac_make}_set=no;;
12150esac
Lev Walkinf15320b2004-06-03 03:38:44 +000012151rm -f conftest.make
12152fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012153if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012155$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012156 SET_MAKE=
12157else
Lev Walkinaef10c32014-01-14 01:47:25 -080012158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012159$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012160 SET_MAKE="MAKE=${MAKE-make}"
12161fi
12162
12163for ac_prog in 'bison -y' byacc
12164do
12165 # Extract the first word of "$ac_prog", so it can be a program name with args.
12166set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012168$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012169if ${ac_cv_prog_YACC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012170 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012171else
12172 if test -n "$YACC"; then
12173 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12174else
12175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176for as_dir in $PATH
12177do
12178 IFS=$as_save_IFS
12179 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012180 for ac_exec_ext in '' $ac_executable_extensions; do
12181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012182 ac_cv_prog_YACC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080012183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012184 break 2
12185 fi
12186done
Lev Walkinaef10c32014-01-14 01:47:25 -080012187 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012188IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012189
12190fi
12191fi
12192YACC=$ac_cv_prog_YACC
12193if test -n "$YACC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012195$as_echo "$YACC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012196else
Lev Walkinaef10c32014-01-14 01:47:25 -080012197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012198$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012199fi
12200
Lev Walkin27fd0b62007-08-27 23:57:45 +000012201
Lev Walkinf15320b2004-06-03 03:38:44 +000012202 test -n "$YACC" && break
12203done
12204test -n "$YACC" || YACC="yacc"
12205
Lev Walkinf15320b2004-06-03 03:38:44 +000012206for ac_prog in flex lex
12207do
12208 # Extract the first word of "$ac_prog", so it can be a program name with args.
12209set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012211$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012212if ${ac_cv_prog_LEX+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012213 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012214else
12215 if test -n "$LEX"; then
12216 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12217else
12218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12219for as_dir in $PATH
12220do
12221 IFS=$as_save_IFS
12222 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012225 ac_cv_prog_LEX="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080012226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012227 break 2
12228 fi
12229done
Lev Walkinaef10c32014-01-14 01:47:25 -080012230 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012231IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012232
12233fi
12234fi
12235LEX=$ac_cv_prog_LEX
12236if test -n "$LEX"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012238$as_echo "$LEX" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012239else
Lev Walkinaef10c32014-01-14 01:47:25 -080012240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012241$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012242fi
12243
Lev Walkin27fd0b62007-08-27 23:57:45 +000012244
Lev Walkinf15320b2004-06-03 03:38:44 +000012245 test -n "$LEX" && break
12246done
12247test -n "$LEX" || LEX=":"
12248
Lev Walkinf15320b2004-06-03 03:38:44 +000012249if test "x$LEX" != "x:"; then
Lev Walkin4c776e52010-11-08 02:07:31 -080012250 cat >conftest.l <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012251%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012252a { ECHO; }
12253b { REJECT; }
12254c { yymore (); }
12255d { yyless (1); }
Lev Walkinaef10c32014-01-14 01:47:25 -080012256e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12257 yyless ((input () != 0)); }
Lev Walkin4c776e52010-11-08 02:07:31 -080012258f { unput (yytext[0]); }
12259. { BEGIN INITIAL; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012260%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012261#ifdef YYTEXT_POINTER
12262extern char *yytext;
12263#endif
12264int
12265main (void)
12266{
12267 return ! yylex () + ! yywrap ();
12268}
Lev Walkinf15320b2004-06-03 03:38:44 +000012269_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012270{ { ac_try="$LEX conftest.l"
Lev Walkin27fd0b62007-08-27 23:57:45 +000012271case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274esac
Lev Walkinaef10c32014-01-14 01:47:25 -080012275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12276$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012277 (eval "$LEX conftest.l") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012278 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080012279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12280 test $ac_status = 0; }
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012282$as_echo_n "checking lex output file root... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012283if ${ac_cv_prog_lex_root+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012284 $as_echo_n "(cached) " >&6
Lev Walkin4c776e52010-11-08 02:07:31 -080012285else
12286
Lev Walkinf15320b2004-06-03 03:38:44 +000012287if test -f lex.yy.c; then
12288 ac_cv_prog_lex_root=lex.yy
12289elif test -f lexyy.c; then
12290 ac_cv_prog_lex_root=lexyy
12291else
Lev Walkinaef10c32014-01-14 01:47:25 -080012292 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000012293fi
12294fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012296$as_echo "$ac_cv_prog_lex_root" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012297LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12298
Lev Walkin4c776e52010-11-08 02:07:31 -080012299if test -z "${LEXLIB+set}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012301$as_echo_n "checking lex library... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012302if ${ac_cv_lib_lex+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012303 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012304else
Lev Walkin4c776e52010-11-08 02:07:31 -080012305
12306 ac_save_LIBS=$LIBS
12307 ac_cv_lib_lex='none needed'
12308 for ac_lib in '' -lfl -ll; do
12309 LIBS="$ac_lib $ac_save_LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080012310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311/* end confdefs.h. */
Lev Walkinf15320b2004-06-03 03:38:44 +000012312`cat $LEX_OUTPUT_ROOT.c`
12313_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012314if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin4c776e52010-11-08 02:07:31 -080012315 ac_cv_lib_lex=$ac_lib
Lev Walkin4c776e52010-11-08 02:07:31 -080012316fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012317rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -080012319 test "$ac_cv_lib_lex" != 'none needed' && break
12320 done
12321 LIBS=$ac_save_LIBS
12322
12323fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012325$as_echo "$ac_cv_lib_lex" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -080012326 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12327fi
12328
12329
Lev Walkinaef10c32014-01-14 01:47:25 -080012330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012331$as_echo_n "checking whether yytext is a pointer... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012332if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012333 $as_echo_n "(cached) " >&6
Lev Walkin4c776e52010-11-08 02:07:31 -080012334else
12335 # POSIX says lex can declare yytext either as a pointer or an array; the
12336# default is implementation-dependent. Figure out which it is, since
12337# not all implementations provide the %pointer and %array declarations.
12338ac_cv_prog_lex_yytext_pointer=no
12339ac_save_LIBS=$LIBS
12340LIBS="$LEXLIB $ac_save_LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080012341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342/* end confdefs.h. */
12343
12344 #define YYTEXT_POINTER 1
Lev Walkin4c776e52010-11-08 02:07:31 -080012345`cat $LEX_OUTPUT_ROOT.c`
12346_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012347if ac_fn_c_try_link "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012348 ac_cv_prog_lex_yytext_pointer=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012349fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012350rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012352LIBS=$ac_save_LIBS
Lev Walkinf15320b2004-06-03 03:38:44 +000012353
12354fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012356$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012357if test $ac_cv_prog_lex_yytext_pointer = yes; then
12358
Lev Walkinaef10c32014-01-14 01:47:25 -080012359$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012360
12361fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012362rm -f conftest.l $LEX_OUTPUT_ROOT.c
Lev Walkinf15320b2004-06-03 03:38:44 +000012363
12364fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000012365if test "$LEX" = :; then
12366 LEX=${am_missing_run}flex
12367fi
Lev Walkinc10e06c2005-03-30 05:14:26 +000012368# Extract the first word of "ar", so it can be a program name with args.
12369set dummy ar; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012371$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012372if ${ac_cv_path_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012373 $as_echo_n "(cached) " >&6
Lev Walkinc10e06c2005-03-30 05:14:26 +000012374else
12375 case $AR in
12376 [\\/]* | ?:[\\/]*)
12377 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12378 ;;
12379 *)
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
12382for as_dir in $as_dummy
12383do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinc10e06c2005-03-30 05:14:26 +000012388 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -080012389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinc10e06c2005-03-30 05:14:26 +000012390 break 2
12391 fi
12392done
Lev Walkinaef10c32014-01-14 01:47:25 -080012393 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012394IFS=$as_save_IFS
Lev Walkinc10e06c2005-03-30 05:14:26 +000012395
12396 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12397 ;;
12398esac
12399fi
12400AR=$ac_cv_path_AR
Lev Walkinc10e06c2005-03-30 05:14:26 +000012401if test -n "$AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012403$as_echo "$AR" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012404else
Lev Walkinaef10c32014-01-14 01:47:25 -080012405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012406$as_echo "no" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012407fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012408
Lev Walkin27fd0b62007-08-27 23:57:45 +000012409
Lev Walkin5f869d02004-08-23 10:41:38 +000012410case "$host_os" in
Lev Walkin79432302006-03-18 06:39:49 +000012411cygwin)
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012412 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000012413 *mingw*)
12414 CC="$CC -mno-cygwin"
12415 esac
12416 ;;
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012417esac
12418
Lev Walkin27fd0b62007-08-27 23:57:45 +000012419# Check whether --enable-Werror was given.
Lev Walkinaef10c32014-01-14 01:47:25 -080012420if test "${enable_Werror+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000012421 enableval=$enable_Werror; enable_werror=$enableval
Lev Walkin04c23172004-09-26 14:18:32 +000012422else
12423 enable_werror=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000012424fi
12425
Lev Walkin04c23172004-09-26 14:18:32 +000012426if test x$enable_werror = xyes; then
Lev Walkinf84cc012014-01-14 02:12:24 -080012427 TESTSUITE_CFLAGS="-Werror -W -Wpointer-arith"
Lev Walkinea552152014-01-14 02:15:13 -080012428 ADD_CFLAGS="-Werror -W -Wpointer-arith"
Lev Walkin04c23172004-09-26 14:18:32 +000012429fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012430
Lev Walkin58ecc7b2014-09-17 00:32:03 -070012431# Check whether --enable-ASN_DEBUG was given.
12432if test "${enable_ASN_DEBUG+set}" = set; then :
12433 enableval=$enable_ASN_DEBUG; enable_asn_debug=$enableval
12434else
12435 enable_asn_debug=no
12436fi
12437
12438if test x$enable_asn_debug = xyes; then
12439 TESTSUITE_CFLAGS="-DEMIT_ASN_DEBUG"
12440fi
12441
Lev Walkinf84cc012014-01-14 02:12:24 -080012442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
12443$as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
12444if ${ax_cv_check_cflags___Wall+:} false; then :
12445 $as_echo_n "(cached) " >&6
12446else
12447
12448 ax_check_save_flags=$CFLAGS
12449 CFLAGS="$CFLAGS -Wall"
12450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451/* end confdefs.h. */
12452
12453int
12454main ()
12455{
12456
12457 ;
12458 return 0;
12459}
12460_ACEOF
12461if ac_fn_c_try_compile "$LINENO"; then :
12462 ax_cv_check_cflags___Wall=yes
12463else
12464 ax_cv_check_cflags___Wall=no
12465fi
12466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 CFLAGS=$ax_check_save_flags
12468fi
12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
12470$as_echo "$ax_cv_check_cflags___Wall" >&6; }
12471if test x"$ax_cv_check_cflags___Wall" = xyes; then :
12472 CFLAGS="$CFLAGS -Wall"
12473else
12474 :
12475fi
12476
12477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-qual" >&5
12478$as_echo_n "checking whether C compiler accepts -Wcast-qual... " >&6; }
12479if ${ax_cv_check_cflags___Wcast_qual+:} false; then :
12480 $as_echo_n "(cached) " >&6
12481else
12482
12483 ax_check_save_flags=$CFLAGS
12484 CFLAGS="$CFLAGS -Wcast-qual"
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h. */
12487
12488int
12489main ()
12490{
12491
12492 ;
12493 return 0;
12494}
12495_ACEOF
12496if ac_fn_c_try_compile "$LINENO"; then :
12497 ax_cv_check_cflags___Wcast_qual=yes
12498else
12499 ax_cv_check_cflags___Wcast_qual=no
12500fi
12501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502 CFLAGS=$ax_check_save_flags
12503fi
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_qual" >&5
12505$as_echo "$ax_cv_check_cflags___Wcast_qual" >&6; }
12506if test x"$ax_cv_check_cflags___Wcast_qual" = xyes; then :
12507 CFLAGS="$CFLAGS -Wcast-qual"
12508else
12509 :
12510fi
12511
12512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
12513$as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
12514if ${ax_cv_check_cflags___Wchar_subscripts+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516else
12517
12518 ax_check_save_flags=$CFLAGS
12519 CFLAGS="$CFLAGS -Wchar-subscripts"
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521/* end confdefs.h. */
12522
12523int
12524main ()
12525{
12526
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531if ac_fn_c_try_compile "$LINENO"; then :
12532 ax_cv_check_cflags___Wchar_subscripts=yes
12533else
12534 ax_cv_check_cflags___Wchar_subscripts=no
12535fi
12536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537 CFLAGS=$ax_check_save_flags
12538fi
12539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wchar_subscripts" >&5
12540$as_echo "$ax_cv_check_cflags___Wchar_subscripts" >&6; }
12541if test x"$ax_cv_check_cflags___Wchar_subscripts" = xyes; then :
12542 CFLAGS="$CFLAGS -Wchar-subscripts"
12543else
12544 :
12545fi
12546
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
12548$as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
12549if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551else
12552
12553 ax_check_save_flags=$CFLAGS
12554 CFLAGS="$CFLAGS -Wmissing-prototypes"
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556/* end confdefs.h. */
12557
12558int
12559main ()
12560{
12561
12562 ;
12563 return 0;
12564}
12565_ACEOF
12566if ac_fn_c_try_compile "$LINENO"; then :
12567 ax_cv_check_cflags___Wmissing_prototypes=yes
12568else
12569 ax_cv_check_cflags___Wmissing_prototypes=no
12570fi
12571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 CFLAGS=$ax_check_save_flags
12573fi
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
12575$as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
12576if test x"$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then :
12577 CFLAGS="$CFLAGS -Wmissing-prototypes"
12578else
12579 :
12580fi
12581
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
12583$as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
12584if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then :
12585 $as_echo_n "(cached) " >&6
12586else
12587
12588 ax_check_save_flags=$CFLAGS
12589 CFLAGS="$CFLAGS -Wmissing-declarations"
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591/* end confdefs.h. */
12592
12593int
12594main ()
12595{
12596
12597 ;
12598 return 0;
12599}
12600_ACEOF
12601if ac_fn_c_try_compile "$LINENO"; then :
12602 ax_cv_check_cflags___Wmissing_declarations=yes
12603else
12604 ax_cv_check_cflags___Wmissing_declarations=no
12605fi
12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 CFLAGS=$ax_check_save_flags
12608fi
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
12610$as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
12611if test x"$ax_cv_check_cflags___Wmissing_declarations" = xyes; then :
12612 CFLAGS="$CFLAGS -Wmissing-declarations"
12613else
12614 :
12615fi
12616
12617
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=cast-align" >&5
12619$as_echo_n "checking whether C compiler accepts -Wno-error=cast-align... " >&6; }
12620if ${ax_cv_check_cflags___Wno_error_cast_align+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622else
12623
12624 ax_check_save_flags=$CFLAGS
12625 CFLAGS="$CFLAGS -Wno-error=cast-align"
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627/* end confdefs.h. */
12628
12629int
12630main ()
12631{
12632
12633 ;
12634 return 0;
12635}
12636_ACEOF
12637if ac_fn_c_try_compile "$LINENO"; then :
12638 ax_cv_check_cflags___Wno_error_cast_align=yes
12639else
12640 ax_cv_check_cflags___Wno_error_cast_align=no
12641fi
12642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643 CFLAGS=$ax_check_save_flags
12644fi
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_cast_align" >&5
12646$as_echo "$ax_cv_check_cflags___Wno_error_cast_align" >&6; }
12647if test x"$ax_cv_check_cflags___Wno_error_cast_align" = xyes; then :
12648 CFLAGS="$CFLAGS -Wno-error=cast-align"
12649else
12650 :
12651fi
12652
12653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=visibility" >&5
12654$as_echo_n "checking whether C compiler accepts -Wno-error=visibility... " >&6; }
12655if ${ax_cv_check_cflags___Wno_error_visibility+:} false; then :
12656 $as_echo_n "(cached) " >&6
12657else
12658
12659 ax_check_save_flags=$CFLAGS
12660 CFLAGS="$CFLAGS -Wno-error=visibility"
12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662/* end confdefs.h. */
12663
12664int
12665main ()
12666{
12667
12668 ;
12669 return 0;
12670}
12671_ACEOF
12672if ac_fn_c_try_compile "$LINENO"; then :
12673 ax_cv_check_cflags___Wno_error_visibility=yes
12674else
12675 ax_cv_check_cflags___Wno_error_visibility=no
12676fi
12677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678 CFLAGS=$ax_check_save_flags
12679fi
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_visibility" >&5
12681$as_echo "$ax_cv_check_cflags___Wno_error_visibility" >&6; }
12682if test x"$ax_cv_check_cflags___Wno_error_visibility" = xyes; then :
12683 CFLAGS="$CFLAGS -Wno-error=visibility"
12684else
12685 :
12686fi
12687
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=parentheses-equality" >&5
12689$as_echo_n "checking whether C compiler accepts -Wno-error=parentheses-equality... " >&6; }
12690if ${ax_cv_check_cflags___Wno_error_parentheses_equality+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692else
12693
12694 ax_check_save_flags=$CFLAGS
12695 CFLAGS="$CFLAGS -Wno-error=parentheses-equality"
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697/* end confdefs.h. */
12698
12699int
12700main ()
12701{
12702
12703 ;
12704 return 0;
12705}
12706_ACEOF
12707if ac_fn_c_try_compile "$LINENO"; then :
12708 ax_cv_check_cflags___Wno_error_parentheses_equality=yes
12709else
12710 ax_cv_check_cflags___Wno_error_parentheses_equality=no
12711fi
12712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 CFLAGS=$ax_check_save_flags
12714fi
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_parentheses_equality" >&5
12716$as_echo "$ax_cv_check_cflags___Wno_error_parentheses_equality" >&6; }
12717if test x"$ax_cv_check_cflags___Wno_error_parentheses_equality" = xyes; then :
12718 CFLAGS="$CFLAGS -Wno-error=parentheses-equality"
12719else
12720 :
12721fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012722
Lev Walkin65907f02014-09-14 17:19:21 -070012723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=unused-variable" >&5
12724$as_echo_n "checking whether C compiler accepts -Wno-error=unused-variable... " >&6; }
12725if ${ax_cv_check_cflags___Wno_error_unused_variable+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727else
12728
12729 ax_check_save_flags=$CFLAGS
12730 CFLAGS="$CFLAGS -Wno-error=unused-variable"
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h. */
12733
12734int
12735main ()
12736{
12737
12738 ;
12739 return 0;
12740}
12741_ACEOF
12742if ac_fn_c_try_compile "$LINENO"; then :
12743 ax_cv_check_cflags___Wno_error_unused_variable=yes
12744else
12745 ax_cv_check_cflags___Wno_error_unused_variable=no
12746fi
12747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12748 CFLAGS=$ax_check_save_flags
12749fi
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_unused_variable" >&5
12751$as_echo "$ax_cv_check_cflags___Wno_error_unused_variable" >&6; }
12752if test x"$ax_cv_check_cflags___Wno_error_unused_variable" = xyes; then :
12753 TESTSUITE_CFLAGS="$TESTSUITE_CFLAGS -Wno-error=unused-variable"
12754else
12755 :
12756fi
12757
12758
12759
12760
Lev Walkinf15320b2004-06-03 03:38:44 +000012761
Lev Walkinaef10c32014-01-14 01:47:25 -080012762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012763$as_echo_n "checking for ANSI C header files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012764if ${ac_cv_header_stdc+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012765 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012766else
Lev Walkinaef10c32014-01-14 01:47:25 -080012767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012768/* end confdefs.h. */
12769#include <stdlib.h>
12770#include <stdarg.h>
12771#include <string.h>
12772#include <float.h>
12773
12774int
12775main ()
12776{
12777
12778 ;
12779 return 0;
12780}
12781_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012782if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012783 ac_cv_header_stdc=yes
12784else
Lev Walkinaef10c32014-01-14 01:47:25 -080012785 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012786fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012788
12789if test $ac_cv_header_stdc = yes; then
12790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -080012791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012792/* end confdefs.h. */
12793#include <string.h>
12794
12795_ACEOF
12796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -080012797 $EGREP "memchr" >/dev/null 2>&1; then :
12798
Lev Walkinf15320b2004-06-03 03:38:44 +000012799else
12800 ac_cv_header_stdc=no
12801fi
Lev Walkinb3751942012-09-02 19:36:47 -070012802rm -f conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012803
12804fi
12805
12806if test $ac_cv_header_stdc = yes; then
12807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -080012808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012809/* end confdefs.h. */
12810#include <stdlib.h>
12811
12812_ACEOF
12813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -080012814 $EGREP "free" >/dev/null 2>&1; then :
12815
Lev Walkinf15320b2004-06-03 03:38:44 +000012816else
12817 ac_cv_header_stdc=no
12818fi
Lev Walkinb3751942012-09-02 19:36:47 -070012819rm -f conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012820
12821fi
12822
12823if test $ac_cv_header_stdc = yes; then
12824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Lev Walkinaef10c32014-01-14 01:47:25 -080012825 if test "$cross_compiling" = yes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012826 :
12827else
Lev Walkinaef10c32014-01-14 01:47:25 -080012828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012829/* end confdefs.h. */
12830#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +000012831#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012832#if ((' ' & 0x0FF) == 0x020)
12833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12835#else
12836# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012837 (('a' <= (c) && (c) <= 'i') \
12838 || ('j' <= (c) && (c) <= 'r') \
12839 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000012840# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12841#endif
12842
12843#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12844int
12845main ()
12846{
12847 int i;
12848 for (i = 0; i < 256; i++)
12849 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000012850 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +000012851 return 2;
12852 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000012853}
12854_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012855if ac_fn_c_try_run "$LINENO"; then :
12856
Lev Walkinf15320b2004-06-03 03:38:44 +000012857else
Lev Walkinaef10c32014-01-14 01:47:25 -080012858 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012859fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12861 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012862fi
12863
Lev Walkinf15320b2004-06-03 03:38:44 +000012864fi
12865fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012867$as_echo "$ac_cv_header_stdc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012868if test $ac_cv_header_stdc = yes; then
12869
Lev Walkinaef10c32014-01-14 01:47:25 -080012870$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012871
12872fi
12873
Lev Walkin79f54952004-08-13 16:58:19 +000012874for ac_header in sys/param.h
Lev Walkinaef10c32014-01-14 01:47:25 -080012875do :
12876 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12877if test "x$ac_cv_header_sys_param_h" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012878 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012879#define HAVE_SYS_PARAM_H 1
Lev Walkinf15320b2004-06-03 03:38:44 +000012880_ACEOF
12881
12882fi
12883
12884done
12885
12886
Lev Walkinaef10c32014-01-14 01:47:25 -080012887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012888$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012889if ${ac_cv_c_bigendian+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012890 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012891else
Lev Walkinb3751942012-09-02 19:36:47 -070012892 ac_cv_c_bigendian=unknown
12893 # See if we're dealing with a universal compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -080012894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012895/* end confdefs.h. */
12896#ifndef __APPLE_CC__
12897 not a universal capable compiler
12898 #endif
12899 typedef int dummy;
12900
12901_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012902if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012903
12904 # Check for potential -arch flags. It is not universal unless
Lev Walkinaef10c32014-01-14 01:47:25 -080012905 # there are at least two -arch flags with different values.
12906 ac_arch=
12907 ac_prev=
12908 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12909 if test -n "$ac_prev"; then
12910 case $ac_word in
12911 i?86 | x86_64 | ppc | ppc64)
12912 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12913 ac_arch=$ac_word
12914 else
12915 ac_cv_c_bigendian=universal
12916 break
12917 fi
12918 ;;
12919 esac
12920 ac_prev=
12921 elif test "x$ac_word" = "x-arch"; then
12922 ac_prev=arch
12923 fi
12924 done
Lev Walkinb3751942012-09-02 19:36:47 -070012925fi
Lev Walkinb3751942012-09-02 19:36:47 -070012926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 if test $ac_cv_c_bigendian = unknown; then
12928 # See if sys/param.h defines the BYTE_ORDER macro.
Lev Walkinaef10c32014-01-14 01:47:25 -080012929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012930/* end confdefs.h. */
12931#include <sys/types.h>
Lev Walkinb3751942012-09-02 19:36:47 -070012932 #include <sys/param.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012933
12934int
12935main ()
12936{
Lev Walkinb3751942012-09-02 19:36:47 -070012937#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12938 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12939 && LITTLE_ENDIAN)
12940 bogus endian macros
12941 #endif
Lev Walkinf15320b2004-06-03 03:38:44 +000012942
12943 ;
12944 return 0;
12945}
12946_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012947if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012948 # It does; now see whether it defined to BIG_ENDIAN or not.
Lev Walkinaef10c32014-01-14 01:47:25 -080012949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012950/* end confdefs.h. */
12951#include <sys/types.h>
Lev Walkinb3751942012-09-02 19:36:47 -070012952 #include <sys/param.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012953
12954int
12955main ()
12956{
12957#if BYTE_ORDER != BIG_ENDIAN
Lev Walkinb3751942012-09-02 19:36:47 -070012958 not big endian
12959 #endif
Lev Walkinf15320b2004-06-03 03:38:44 +000012960
12961 ;
12962 return 0;
12963}
12964_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012965if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012966 ac_cv_c_bigendian=yes
12967else
Lev Walkinaef10c32014-01-14 01:47:25 -080012968 ac_cv_c_bigendian=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012969fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012971fi
Lev Walkinb3751942012-09-02 19:36:47 -070012972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973 fi
12974 if test $ac_cv_c_bigendian = unknown; then
12975 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Lev Walkinaef10c32014-01-14 01:47:25 -080012976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012977/* end confdefs.h. */
Lev Walkinb3751942012-09-02 19:36:47 -070012978#include <limits.h>
12979
Lev Walkinf15320b2004-06-03 03:38:44 +000012980int
12981main ()
12982{
Lev Walkinb3751942012-09-02 19:36:47 -070012983#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12984 bogus endian macros
12985 #endif
12986
Lev Walkinf15320b2004-06-03 03:38:44 +000012987 ;
12988 return 0;
12989}
12990_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012991if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012992 # It does; now see whether it defined to _BIG_ENDIAN or not.
Lev Walkinaef10c32014-01-14 01:47:25 -080012993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012994/* end confdefs.h. */
12995#include <limits.h>
12996
12997int
12998main ()
12999{
13000#ifndef _BIG_ENDIAN
13001 not big endian
13002 #endif
13003
13004 ;
13005 return 0;
13006}
13007_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013008if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013009 ac_cv_c_bigendian=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000013010else
Lev Walkinaef10c32014-01-14 01:47:25 -080013011 ac_cv_c_bigendian=no
Lev Walkinb3751942012-09-02 19:36:47 -070013012fi
Lev Walkinb3751942012-09-02 19:36:47 -070013013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070013014fi
Lev Walkinb3751942012-09-02 19:36:47 -070013015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13016 fi
13017 if test $ac_cv_c_bigendian = unknown; then
13018 # Compile a test program.
Lev Walkinaef10c32014-01-14 01:47:25 -080013019 if test "$cross_compiling" = yes; then :
Lev Walkinb3751942012-09-02 19:36:47 -070013020 # Try to guess by grepping values from an object file.
Lev Walkinaef10c32014-01-14 01:47:25 -080013021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070013022/* end confdefs.h. */
13023short int ascii_mm[] =
13024 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13025 short int ascii_ii[] =
13026 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13027 int use_ascii (int i) {
13028 return ascii_mm[i] + ascii_ii[i];
13029 }
13030 short int ebcdic_ii[] =
13031 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13032 short int ebcdic_mm[] =
13033 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13034 int use_ebcdic (int i) {
13035 return ebcdic_mm[i] + ebcdic_ii[i];
13036 }
13037 extern int foo;
13038
13039int
13040main ()
13041{
13042return use_ascii (foo) == use_ebcdic (foo);
13043 ;
13044 return 0;
13045}
13046_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013047if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070013048 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13049 ac_cv_c_bigendian=yes
13050 fi
13051 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13052 if test "$ac_cv_c_bigendian" = unknown; then
13053 ac_cv_c_bigendian=no
13054 else
13055 # finding both strings is unlikely to happen, but who knows?
13056 ac_cv_c_bigendian=unknown
13057 fi
13058 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013059fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013061else
Lev Walkinaef10c32014-01-14 01:47:25 -080013062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013063/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000013064$ac_includes_default
Lev Walkinf15320b2004-06-03 03:38:44 +000013065int
13066main ()
13067{
Lev Walkin27fd0b62007-08-27 23:57:45 +000013068
Lev Walkinb3751942012-09-02 19:36:47 -070013069 /* Are we little or big endian? From Harbison&Steele. */
13070 union
13071 {
13072 long int l;
13073 char c[sizeof (long int)];
13074 } u;
13075 u.l = 1;
13076 return u.c[sizeof (long int) - 1] == 1;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013077
13078 ;
13079 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000013080}
13081_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013082if ac_fn_c_try_run "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013083 ac_cv_c_bigendian=no
13084else
Lev Walkinaef10c32014-01-14 01:47:25 -080013085 ac_cv_c_bigendian=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000013086fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13088 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013089fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013090
Lev Walkinb3751942012-09-02 19:36:47 -070013091 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013092fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013094$as_echo "$ac_cv_c_bigendian" >&6; }
13095 case $ac_cv_c_bigendian in #(
13096 yes)
Lev Walkinaef10c32014-01-14 01:47:25 -080013097 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Lev Walkinb3751942012-09-02 19:36:47 -070013098;; #(
13099 no)
13100 ;; #(
13101 universal)
Lev Walkinf15320b2004-06-03 03:38:44 +000013102
Lev Walkinaef10c32014-01-14 01:47:25 -080013103$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Lev Walkinb3751942012-09-02 19:36:47 -070013104
13105 ;; #(
13106 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080013107 as_fn_error $? "unknown endianness
13108 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Lev Walkinb3751942012-09-02 19:36:47 -070013109 esac
13110
Lev Walkinaef10c32014-01-14 01:47:25 -080013111ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13112if test "x$ac_cv_type_off_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013113
Lev Walkinf15320b2004-06-03 03:38:44 +000013114else
13115
13116cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013117#define off_t long int
Lev Walkinf15320b2004-06-03 03:38:44 +000013118_ACEOF
13119
13120fi
13121
Lev Walkinaef10c32014-01-14 01:47:25 -080013122ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13123if test "x$ac_cv_type_size_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013124
Lev Walkinf15320b2004-06-03 03:38:44 +000013125else
13126
13127cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013128#define size_t unsigned int
Lev Walkinf15320b2004-06-03 03:38:44 +000013129_ACEOF
13130
13131fi
13132
Lev Walkinaef10c32014-01-14 01:47:25 -080013133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013134$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080013135if ${ac_cv_struct_tm+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070013136 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000013137else
Lev Walkinaef10c32014-01-14 01:47:25 -080013138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013139/* end confdefs.h. */
13140#include <sys/types.h>
13141#include <time.h>
13142
13143int
13144main ()
13145{
Lev Walkin4c776e52010-11-08 02:07:31 -080013146struct tm tm;
13147 int *p = &tm.tm_sec;
Lev Walkinb3751942012-09-02 19:36:47 -070013148 return !p;
Lev Walkinf15320b2004-06-03 03:38:44 +000013149 ;
13150 return 0;
13151}
13152_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013153if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013154 ac_cv_struct_tm=time.h
13155else
Lev Walkinaef10c32014-01-14 01:47:25 -080013156 ac_cv_struct_tm=sys/time.h
Lev Walkinf15320b2004-06-03 03:38:44 +000013157fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013159fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013161$as_echo "$ac_cv_struct_tm" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013162if test $ac_cv_struct_tm = sys/time.h; then
13163
Lev Walkinaef10c32014-01-14 01:47:25 -080013164$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000013165
13166fi
13167
Lev Walkinaef10c32014-01-14 01:47:25 -080013168ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
13169if test "x$ac_cv_type_intmax_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013170
Lev Walkinf15320b2004-06-03 03:38:44 +000013171else
13172
13173cat >>confdefs.h <<_ACEOF
13174#define intmax_t int64_t
13175_ACEOF
13176
13177fi
13178
13179
Lev Walkinb40ec412014-02-24 00:57:18 -080013180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long is longer than 32 bit" >&5
13181$as_echo_n "checking size of long is longer than 32 bit... " >&6; }
13182
13183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184/* end confdefs.h. */
13185#include "confdefs.h"
13186#include <sys/types.h>
13187
13188int
13189main ()
13190{
13191switch (0) case 0: case (sizeof ($1) >= 8):;
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196if ac_fn_c_try_compile "$LINENO"; then :
13197 WIDE_LONG=yes
13198else
13199 WIDE_LONG=no
13200fi
13201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIDE_LONG" >&5
13203$as_echo "$WIDE_LONG" >&6; }
13204 if test x$WIDE_LONG = xyes; then
13205 TEST_64BIT_TRUE=
13206 TEST_64BIT_FALSE='#'
13207else
13208 TEST_64BIT_TRUE='#'
13209 TEST_64BIT_FALSE=
13210fi
13211
13212
13213
Lev Walkinaef10c32014-01-14 01:47:25 -080013214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013215$as_echo_n "checking for library containing getopt... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080013216if ${ac_cv_search_getopt+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070013217 $as_echo_n "(cached) " >&6
Lev Walkin058e2222007-12-04 00:27:38 +000013218else
13219 ac_func_search_save_LIBS=$LIBS
Lev Walkinaef10c32014-01-14 01:47:25 -080013220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin058e2222007-12-04 00:27:38 +000013221/* end confdefs.h. */
13222
13223/* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13226#ifdef __cplusplus
13227extern "C"
13228#endif
13229char getopt ();
13230int
13231main ()
13232{
13233return getopt ();
13234 ;
13235 return 0;
13236}
13237_ACEOF
13238for ac_lib in '' iberty; do
13239 if test -z "$ac_lib"; then
13240 ac_res="none required"
13241 else
13242 ac_res=-l$ac_lib
13243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13244 fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013245 if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin058e2222007-12-04 00:27:38 +000013246 ac_cv_search_getopt=$ac_res
Lev Walkin058e2222007-12-04 00:27:38 +000013247fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013248rm -f core conftest.err conftest.$ac_objext \
13249 conftest$ac_exeext
13250 if ${ac_cv_search_getopt+:} false; then :
Lev Walkin058e2222007-12-04 00:27:38 +000013251 break
13252fi
13253done
Lev Walkinaef10c32014-01-14 01:47:25 -080013254if ${ac_cv_search_getopt+:} false; then :
13255
Lev Walkin058e2222007-12-04 00:27:38 +000013256else
13257 ac_cv_search_getopt=no
13258fi
13259rm conftest.$ac_ext
13260LIBS=$ac_func_search_save_LIBS
13261fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013263$as_echo "$ac_cv_search_getopt" >&6; }
Lev Walkin058e2222007-12-04 00:27:38 +000013264ac_res=$ac_cv_search_getopt
Lev Walkinaef10c32014-01-14 01:47:25 -080013265if test "$ac_res" != no; then :
Lev Walkin058e2222007-12-04 00:27:38 +000013266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13267
13268fi
13269
13270
Lev Walkinf15320b2004-06-03 03:38:44 +000013271for ac_func in strtoimax strtoll
Lev Walkinaef10c32014-01-14 01:47:25 -080013272do :
13273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13274ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13275if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013276 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013277#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Lev Walkinf15320b2004-06-03 03:38:44 +000013278_ACEOF
13279
13280fi
13281done
13282
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013283for ac_func in mergesort
Lev Walkinaef10c32014-01-14 01:47:25 -080013284do :
13285 ac_fn_c_check_func "$LINENO" "mergesort" "ac_cv_func_mergesort"
13286if test "x$ac_cv_func_mergesort" = xyes; then :
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013287 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013288#define HAVE_MERGESORT 1
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013289_ACEOF
13290
13291fi
13292done
13293
Lev Walkin27fd0b62007-08-27 23:57:45 +000013294for ac_func in mkstemps
Lev Walkinaef10c32014-01-14 01:47:25 -080013295do :
13296 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
13297if test "x$ac_cv_func_mkstemps" = xyes; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000013298 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013299#define HAVE_MKSTEMPS 1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013300_ACEOF
13301
13302fi
13303done
Lev Walkinf15320b2004-06-03 03:38:44 +000013304
Lev Walkin04fbe622014-09-17 02:27:01 -070013305for ac_func in timegm
13306do :
13307 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
13308if test "x$ac_cv_func_timegm" = xyes; then :
13309 cat >>confdefs.h <<_ACEOF
13310#define HAVE_TIMEGM 1
13311_ACEOF
13312
13313fi
13314done
13315
Lev Walkinf15320b2004-06-03 03:38:44 +000013316
Lev Walkine0d321a2014-09-11 01:28:57 -070013317ac_config_files="$ac_config_files skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013318
Lev Walkinf15320b2004-06-03 03:38:44 +000013319cat >confcache <<\_ACEOF
13320# This file is a shell script that caches the results of configure
13321# tests run on this system so they can be shared between configure
13322# scripts and configure runs, see configure's option --config-cache.
13323# It is not useful on other systems. If it contains results you don't
13324# want to keep, you may remove or edit it.
13325#
13326# config.status only pays attention to the cache file if you give it
13327# the --recheck option to rerun configure.
13328#
13329# `ac_cv_env_foo' variables (set or unset) will be overridden when
13330# loading this file, other *unset* `ac_cv_foo' will be assigned the
13331# following values.
13332
13333_ACEOF
13334
13335# The following way of writing the cache mishandles newlines in values,
13336# but we know of no workaround that is simple, portable, and efficient.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013337# So, we kill variables containing newlines.
Lev Walkinf15320b2004-06-03 03:38:44 +000013338# Ultrix sh set writes to stderr and can't be redirected directly,
13339# and sets the high bit in the cache file unless we assign to the vars.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013340(
13341 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13342 eval ac_val=\$$ac_var
13343 case $ac_val in #(
13344 *${as_nl}*)
13345 case $ac_var in #(
Lev Walkinaef10c32014-01-14 01:47:25 -080013346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013347$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013348 esac
13349 case $ac_var in #(
13350 _ | IFS | as_nl) ;; #(
Lev Walkinb3751942012-09-02 19:36:47 -070013351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Lev Walkinaef10c32014-01-14 01:47:25 -080013352 *) { eval $ac_var=; unset $ac_var;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013353 esac ;;
13354 esac
13355 done
13356
Lev Walkinf15320b2004-06-03 03:38:44 +000013357 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +000013358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13359 *${as_nl}ac_space=\ *)
Lev Walkinaef10c32014-01-14 01:47:25 -080013360 # `set' does not quote correctly, so add quotes: double-quote
13361 # substitution turns \\\\ into \\, and sed turns \\ into \.
Lev Walkinf15320b2004-06-03 03:38:44 +000013362 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013363 "s/'/'\\\\''/g;
13364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013365 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +000013366 *)
13367 # `set' quotes correctly as required by POSIX, so do not add quotes.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000013369 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013370 esac |
13371 sort
13372) |
Lev Walkinf15320b2004-06-03 03:38:44 +000013373 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000013374 /^ac_cv_env_/b end
Lev Walkinf15320b2004-06-03 03:38:44 +000013375 t clear
Lev Walkin27fd0b62007-08-27 23:57:45 +000013376 :clear
Lev Walkinf15320b2004-06-03 03:38:44 +000013377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13378 t end
Lev Walkin27fd0b62007-08-27 23:57:45 +000013379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13380 :end' >>confcache
13381if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13382 if test -w "$cache_file"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013383 if test "x$cache_file" != "x/dev/null"; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013385$as_echo "$as_me: updating cache $cache_file" >&6;}
Lev Walkinaef10c32014-01-14 01:47:25 -080013386 if test ! -f "$cache_file" || test -h "$cache_file"; then
13387 cat confcache >"$cache_file"
13388 else
13389 case $cache_file in #(
13390 */* | ?:*)
13391 mv -f confcache "$cache_file"$$ &&
13392 mv -f "$cache_file"$$ "$cache_file" ;; #(
13393 *)
13394 mv -f confcache "$cache_file" ;;
13395 esac
13396 fi
13397 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013398 else
Lev Walkinaef10c32014-01-14 01:47:25 -080013399 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013400$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000013401 fi
13402fi
13403rm -f confcache
13404
13405test "x$prefix" = xNONE && prefix=$ac_default_prefix
13406# Let make expand exec_prefix.
13407test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13408
Lev Walkinf15320b2004-06-03 03:38:44 +000013409DEFS=-DHAVE_CONFIG_H
13410
13411ac_libobjs=
13412ac_ltlibobjs=
Lev Walkinaef10c32014-01-14 01:47:25 -080013413U=
Lev Walkinf15320b2004-06-03 03:38:44 +000013414for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13415 # 1. Remove the extension, and $U if already installed.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Lev Walkinb3751942012-09-02 19:36:47 -070013417 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Lev Walkin27fd0b62007-08-27 23:57:45 +000013418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13419 # will be set to the directory where LIBOBJS objects are built.
Lev Walkinaef10c32014-01-14 01:47:25 -080013420 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13421 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Lev Walkinf15320b2004-06-03 03:38:44 +000013422done
13423LIBOBJS=$ac_libobjs
13424
13425LTLIBOBJS=$ac_ltlibobjs
13426
13427
Lev Walkinb3751942012-09-02 19:36:47 -070013428 if test -n "$EXEEXT"; then
13429 am__EXEEXT_TRUE=
13430 am__EXEEXT_FALSE='#'
13431else
13432 am__EXEEXT_TRUE='#'
13433 am__EXEEXT_FALSE=
13434fi
13435
Lev Walkine0d321a2014-09-11 01:28:57 -070013436if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13437 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13438Usually this means the macro was only invoked conditionally." "$LINENO" 5
13439fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000013440if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013441 as_fn_error $? "conditional \"AMDEP\" was never defined.
13442Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013443fi
13444if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013445 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13446Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013447fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000013448if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013449 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13450Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013451fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013452
Lev Walkinb40ec412014-02-24 00:57:18 -080013453if test -z "${TEST_64BIT_TRUE}" && test -z "${TEST_64BIT_FALSE}"; then
13454 as_fn_error $? "conditional \"TEST_64BIT\" was never defined.
13455Usually this means the macro was only invoked conditionally." "$LINENO" 5
13456fi
Lev Walkinb3751942012-09-02 19:36:47 -070013457
Lev Walkinaef10c32014-01-14 01:47:25 -080013458: "${CONFIG_STATUS=./config.status}"
Lev Walkinb3751942012-09-02 19:36:47 -070013459ac_write_fail=0
Lev Walkinf15320b2004-06-03 03:38:44 +000013460ac_clean_files_save=$ac_clean_files
13461ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Lev Walkinaef10c32014-01-14 01:47:25 -080013462{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013463$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Lev Walkinaef10c32014-01-14 01:47:25 -080013464as_write_fail=0
13465cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013466#! $SHELL
13467# Generated by $as_me.
13468# Run this file to recreate the current configuration.
13469# Compiler output produced by configure, useful for debugging
13470# configure, is in config.log if it exists.
13471
13472debug=false
13473ac_cs_recheck=false
13474ac_cs_silent=false
Lev Walkinf15320b2004-06-03 03:38:44 +000013475
Lev Walkinaef10c32014-01-14 01:47:25 -080013476SHELL=\${CONFIG_SHELL-$SHELL}
13477export SHELL
13478_ASEOF
13479cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13480## -------------------- ##
13481## M4sh Initialization. ##
13482## -------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +000013483
Lev Walkin4c776e52010-11-08 02:07:31 -080013484# Be more Bourne compatible
13485DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinaef10c32014-01-14 01:47:25 -080013486if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013487 emulate sh
13488 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -070013489 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkinf15320b2004-06-03 03:38:44 +000013490 # is contrary to our usage. Disable this feature.
13491 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013492 setopt NO_GLOB_SUBST
13493else
Lev Walkinaef10c32014-01-14 01:47:25 -080013494 case `(set -o) 2>/dev/null` in #(
13495 *posix*) :
13496 set -o posix ;; #(
13497 *) :
13498 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -080013499esac
Lev Walkinf15320b2004-06-03 03:38:44 +000013500fi
Lev Walkin4c776e52010-11-08 02:07:31 -080013501
13502
Lev Walkinb3751942012-09-02 19:36:47 -070013503as_nl='
13504'
13505export as_nl
13506# Printing a long string crashes Solaris 7 /usr/bin/printf.
13507as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13508as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13509as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Lev Walkinaef10c32014-01-14 01:47:25 -080013510# Prefer a ksh shell builtin over an external printf program on Solaris,
13511# but without wasting forks for bash or zsh.
13512if test -z "$BASH_VERSION$ZSH_VERSION" \
13513 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13514 as_echo='print -r --'
13515 as_echo_n='print -rn --'
13516elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Lev Walkinb3751942012-09-02 19:36:47 -070013517 as_echo='printf %s\n'
13518 as_echo_n='printf %s'
13519else
13520 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13521 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13522 as_echo_n='/usr/ucb/echo -n'
13523 else
13524 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13525 as_echo_n_body='eval
13526 arg=$1;
Lev Walkinaef10c32014-01-14 01:47:25 -080013527 case $arg in #(
Lev Walkinb3751942012-09-02 19:36:47 -070013528 *"$as_nl"*)
13529 expr "X$arg" : "X\\(.*\\)$as_nl";
13530 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13531 esac;
13532 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13533 '
13534 export as_echo_n_body
13535 as_echo_n='sh -c $as_echo_n_body as_echo'
13536 fi
13537 export as_echo_body
13538 as_echo='sh -c $as_echo_body as_echo'
13539fi
13540
Lev Walkinf15320b2004-06-03 03:38:44 +000013541# The user is always right.
13542if test "${PATH_SEPARATOR+set}" != set; then
Lev Walkinb3751942012-09-02 19:36:47 -070013543 PATH_SEPARATOR=:
13544 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13545 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13546 PATH_SEPARATOR=';'
13547 }
Lev Walkinf15320b2004-06-03 03:38:44 +000013548fi
13549
Lev Walkin27fd0b62007-08-27 23:57:45 +000013550
13551# IFS
13552# We need space, tab and new line, in precisely that order. Quoting is
13553# there to prevent editors from complaining about space-tab.
13554# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13555# splitting by setting IFS to empty value.)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013556IFS=" "" $as_nl"
13557
13558# Find who we are. Look in the path if we contain no directory separator.
Lev Walkinaef10c32014-01-14 01:47:25 -080013559as_myself=
13560case $0 in #((
Lev Walkin27fd0b62007-08-27 23:57:45 +000013561 *[\\/]* ) as_myself=$0 ;;
13562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000013563for as_dir in $PATH
13564do
13565 IFS=$as_save_IFS
13566 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080013567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13568 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013569IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000013570
Lev Walkin27fd0b62007-08-27 23:57:45 +000013571 ;;
13572esac
13573# We did not find ourselves, most probably we were run as `sh COMMAND'
13574# in which case we are not to be found in the path.
13575if test "x$as_myself" = x; then
13576 as_myself=$0
13577fi
13578if test ! -f "$as_myself"; then
Lev Walkinb3751942012-09-02 19:36:47 -070013579 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -080013580 exit 1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013581fi
13582
Lev Walkinaef10c32014-01-14 01:47:25 -080013583# Unset variables that we do not need and which cause bugs (e.g. in
13584# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13585# suppresses any "Segmentation fault" message there. '((' could
13586# trigger a bug in pdksh 5.2.14.
13587for as_var in BASH_ENV ENV MAIL MAILPATH
13588do eval test x\${$as_var+set} = xset \
13589 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Lev Walkin27fd0b62007-08-27 23:57:45 +000013590done
13591PS1='$ '
13592PS2='> '
13593PS4='+ '
13594
13595# NLS nuisances.
Lev Walkinb3751942012-09-02 19:36:47 -070013596LC_ALL=C
13597export LC_ALL
13598LANGUAGE=C
13599export LANGUAGE
Lev Walkin27fd0b62007-08-27 23:57:45 +000013600
Lev Walkinaef10c32014-01-14 01:47:25 -080013601# CDPATH.
13602(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13603
13604
13605# as_fn_error STATUS ERROR [LINENO LOG_FD]
13606# ----------------------------------------
13607# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13608# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13609# script with STATUS, using 1 if that was 0.
13610as_fn_error ()
13611{
13612 as_status=$1; test $as_status -eq 0 && as_status=1
13613 if test "$4"; then
13614 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13615 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13616 fi
13617 $as_echo "$as_me: error: $2" >&2
13618 as_fn_exit $as_status
13619} # as_fn_error
13620
13621
13622# as_fn_set_status STATUS
13623# -----------------------
13624# Set $? to STATUS, without forking.
13625as_fn_set_status ()
13626{
13627 return $1
13628} # as_fn_set_status
13629
13630# as_fn_exit STATUS
13631# -----------------
13632# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13633as_fn_exit ()
13634{
13635 set +e
13636 as_fn_set_status $1
13637 exit $1
13638} # as_fn_exit
13639
13640# as_fn_unset VAR
13641# ---------------
13642# Portably unset VAR.
13643as_fn_unset ()
13644{
13645 { eval $1=; unset $1;}
13646}
13647as_unset=as_fn_unset
13648# as_fn_append VAR VALUE
13649# ----------------------
13650# Append the text in VALUE to the end of the definition contained in VAR. Take
13651# advantage of any shell optimizations that allow amortized linear growth over
13652# repeated appends, instead of the typical quadratic growth present in naive
13653# implementations.
13654if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13655 eval 'as_fn_append ()
13656 {
13657 eval $1+=\$2
13658 }'
13659else
13660 as_fn_append ()
13661 {
13662 eval $1=\$$1\$2
13663 }
13664fi # as_fn_append
13665
13666# as_fn_arith ARG...
13667# ------------------
13668# Perform arithmetic evaluation on the ARGs, and store the result in the
13669# global $as_val. Take advantage of shells that can avoid forks. The arguments
13670# must be portable across $(()) and expr.
13671if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13672 eval 'as_fn_arith ()
13673 {
13674 as_val=$(( $* ))
13675 }'
13676else
13677 as_fn_arith ()
13678 {
13679 as_val=`expr "$@" || test $? -eq 1`
13680 }
13681fi # as_fn_arith
13682
13683
Lev Walkin27fd0b62007-08-27 23:57:45 +000013684if expr a : '\(a\)' >/dev/null 2>&1 &&
13685 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13686 as_expr=expr
13687else
13688 as_expr=false
13689fi
13690
13691if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13692 as_basename=basename
13693else
13694 as_basename=false
13695fi
13696
Lev Walkinaef10c32014-01-14 01:47:25 -080013697if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13698 as_dirname=dirname
13699else
13700 as_dirname=false
13701fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013702
Lev Walkin27fd0b62007-08-27 23:57:45 +000013703as_me=`$as_basename -- "$0" ||
13704$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13705 X"$0" : 'X\(//\)$' \| \
13706 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070013707$as_echo X/"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000013708 sed '/^.*\/\([^/][^/]*\)\/*$/{
13709 s//\1/
13710 q
13711 }
13712 /^X\/\(\/\/\)$/{
13713 s//\1/
13714 q
13715 }
13716 /^X\/\(\/\).*/{
13717 s//\1/
13718 q
13719 }
13720 s/.*/./; q'`
13721
Lev Walkinaef10c32014-01-14 01:47:25 -080013722# Avoid depending upon Character Ranges.
13723as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13724as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13725as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13726as_cr_digits='0123456789'
13727as_cr_alnum=$as_cr_Letters$as_cr_digits
Lev Walkin27fd0b62007-08-27 23:57:45 +000013728
13729ECHO_C= ECHO_N= ECHO_T=
Lev Walkinaef10c32014-01-14 01:47:25 -080013730case `echo -n x` in #(((((
Lev Walkin27fd0b62007-08-27 23:57:45 +000013731-n*)
Lev Walkinaef10c32014-01-14 01:47:25 -080013732 case `echo 'xy\c'` in
Lev Walkin27fd0b62007-08-27 23:57:45 +000013733 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Lev Walkinaef10c32014-01-14 01:47:25 -080013734 xy) ECHO_C='\c';;
13735 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13736 ECHO_T=' ';;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013737 esac;;
13738*)
13739 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +000013740esac
Lev Walkinf15320b2004-06-03 03:38:44 +000013741
13742rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +000013743if test -d conf$$.dir; then
13744 rm -f conf$$.dir/conf$$.file
13745else
13746 rm -f conf$$.dir
Lev Walkinb3751942012-09-02 19:36:47 -070013747 mkdir conf$$.dir 2>/dev/null
Lev Walkin27fd0b62007-08-27 23:57:45 +000013748fi
Lev Walkinb3751942012-09-02 19:36:47 -070013749if (echo >conf$$.file) 2>/dev/null; then
13750 if ln -s conf$$.file conf$$ 2>/dev/null; then
13751 as_ln_s='ln -s'
13752 # ... but there are two gotchas:
13753 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13754 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Lev Walkinaef10c32014-01-14 01:47:25 -080013755 # In both cases, we have to default to `cp -pR'.
Lev Walkinb3751942012-09-02 19:36:47 -070013756 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinaef10c32014-01-14 01:47:25 -080013757 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -070013758 elif ln conf$$.file conf$$ 2>/dev/null; then
13759 as_ln_s=ln
13760 else
Lev Walkinaef10c32014-01-14 01:47:25 -080013761 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -070013762 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013763else
Lev Walkinaef10c32014-01-14 01:47:25 -080013764 as_ln_s='cp -pR'
Lev Walkinf15320b2004-06-03 03:38:44 +000013765fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013766rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13767rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +000013768
Lev Walkinaef10c32014-01-14 01:47:25 -080013769
13770# as_fn_mkdir_p
13771# -------------
13772# Create "$as_dir" as a directory, including parents if necessary.
13773as_fn_mkdir_p ()
13774{
13775
13776 case $as_dir in #(
13777 -*) as_dir=./$as_dir;;
13778 esac
13779 test -d "$as_dir" || eval $as_mkdir_p || {
13780 as_dirs=
13781 while :; do
13782 case $as_dir in #(
13783 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13784 *) as_qdir=$as_dir;;
13785 esac
13786 as_dirs="'$as_qdir' $as_dirs"
13787 as_dir=`$as_dirname -- "$as_dir" ||
13788$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13789 X"$as_dir" : 'X\(//\)[^/]' \| \
13790 X"$as_dir" : 'X\(//\)$' \| \
13791 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13792$as_echo X"$as_dir" |
13793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13794 s//\1/
13795 q
13796 }
13797 /^X\(\/\/\)[^/].*/{
13798 s//\1/
13799 q
13800 }
13801 /^X\(\/\/\)$/{
13802 s//\1/
13803 q
13804 }
13805 /^X\(\/\).*/{
13806 s//\1/
13807 q
13808 }
13809 s/.*/./; q'`
13810 test -d "$as_dir" && break
13811 done
13812 test -z "$as_dirs" || eval "mkdir $as_dirs"
13813 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13814
13815
13816} # as_fn_mkdir_p
Lev Walkinf15320b2004-06-03 03:38:44 +000013817if mkdir -p . 2>/dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013818 as_mkdir_p='mkdir -p "$as_dir"'
Lev Walkinf15320b2004-06-03 03:38:44 +000013819else
Lev Walkin8e8b5482004-06-17 23:42:48 +000013820 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000013821 as_mkdir_p=false
13822fi
13823
Lev Walkinaef10c32014-01-14 01:47:25 -080013824
13825# as_fn_executable_p FILE
13826# -----------------------
13827# Test if FILE is an executable regular file.
13828as_fn_executable_p ()
13829{
13830 test -f "$1" && test -x "$1"
13831} # as_fn_executable_p
13832as_test_x='test -x'
13833as_executable_p=as_fn_executable_p
Lev Walkinf15320b2004-06-03 03:38:44 +000013834
13835# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013836as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013837
13838# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013839as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013840
13841
Lev Walkinf15320b2004-06-03 03:38:44 +000013842exec 6>&1
Lev Walkinaef10c32014-01-14 01:47:25 -080013843## ----------------------------------- ##
13844## Main body of $CONFIG_STATUS script. ##
13845## ----------------------------------- ##
13846_ASEOF
13847test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013848
Lev Walkinaef10c32014-01-14 01:47:25 -080013849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13850# Save the log message, to keep $0 and so on meaningful, and to
Lev Walkinf15320b2004-06-03 03:38:44 +000013851# report actual input values of CONFIG_FILES etc. instead of their
Lev Walkin27fd0b62007-08-27 23:57:45 +000013852# values after options handling.
13853ac_log="
Lev Walkin04fbe622014-09-17 02:27:01 -070013854This file was extended by asn1c $as_me 0.9.28, which was
Lev Walkinaef10c32014-01-14 01:47:25 -080013855generated by GNU Autoconf 2.69. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000013856
13857 CONFIG_FILES = $CONFIG_FILES
13858 CONFIG_HEADERS = $CONFIG_HEADERS
13859 CONFIG_LINKS = $CONFIG_LINKS
13860 CONFIG_COMMANDS = $CONFIG_COMMANDS
13861 $ $0 $@
13862
Lev Walkin27fd0b62007-08-27 23:57:45 +000013863on `(hostname || uname -n) 2>/dev/null | sed 1q`
13864"
13865
Lev Walkinf15320b2004-06-03 03:38:44 +000013866_ACEOF
13867
Lev Walkinb3751942012-09-02 19:36:47 -070013868case $ac_config_files in *"
13869"*) set x $ac_config_files; shift; ac_config_files=$*;;
13870esac
13871
13872case $ac_config_headers in *"
13873"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13874esac
13875
13876
13877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013878# Files that config.status was made for.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013879config_files="$ac_config_files"
13880config_headers="$ac_config_headers"
13881config_commands="$ac_config_commands"
Lev Walkinf15320b2004-06-03 03:38:44 +000013882
Lev Walkin27fd0b62007-08-27 23:57:45 +000013883_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013884
Lev Walkinb3751942012-09-02 19:36:47 -070013885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013886ac_cs_usage="\
Lev Walkinaef10c32014-01-14 01:47:25 -080013887\`$as_me' instantiates files and other configuration actions
13888from templates according to the current configuration. Unless the files
13889and actions are specified as TAGs, all are instantiated by default.
Lev Walkinf15320b2004-06-03 03:38:44 +000013890
Lev Walkinaef10c32014-01-14 01:47:25 -080013891Usage: $0 [OPTION]... [TAG]...
Lev Walkinf15320b2004-06-03 03:38:44 +000013892
13893 -h, --help print this help, then exit
Lev Walkin4c776e52010-11-08 02:07:31 -080013894 -V, --version print version number and configuration settings, then exit
Lev Walkinaef10c32014-01-14 01:47:25 -080013895 --config print configuration, then exit
Lev Walkinb3751942012-09-02 19:36:47 -070013896 -q, --quiet, --silent
13897 do not print progress messages
Lev Walkinf15320b2004-06-03 03:38:44 +000013898 -d, --debug don't remove temporary files
13899 --recheck update $as_me by reconfiguring in the same conditions
Lev Walkinb3751942012-09-02 19:36:47 -070013900 --file=FILE[:TEMPLATE]
13901 instantiate the configuration file FILE
13902 --header=FILE[:TEMPLATE]
13903 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000013904
13905Configuration files:
13906$config_files
13907
13908Configuration headers:
13909$config_headers
13910
13911Configuration commands:
13912$config_commands
13913
Lev Walkinaef10c32014-01-14 01:47:25 -080013914Report bugs to <vlm@lionet.info>."
Lev Walkinf15320b2004-06-03 03:38:44 +000013915
Lev Walkin27fd0b62007-08-27 23:57:45 +000013916_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080013918ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Lev Walkinf15320b2004-06-03 03:38:44 +000013919ac_cs_version="\\
Lev Walkin04fbe622014-09-17 02:27:01 -070013920asn1c config.status 0.9.28
Lev Walkinaef10c32014-01-14 01:47:25 -080013921configured by $0, generated by GNU Autoconf 2.69,
13922 with options \\"\$ac_cs_config\\"
Lev Walkinf15320b2004-06-03 03:38:44 +000013923
Lev Walkinaef10c32014-01-14 01:47:25 -080013924Copyright (C) 2012 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000013925This config.status script is free software; the Free Software Foundation
13926gives unlimited permission to copy, distribute and modify it."
Lev Walkin27fd0b62007-08-27 23:57:45 +000013927
13928ac_pwd='$ac_pwd'
13929srcdir='$srcdir'
13930INSTALL='$INSTALL'
Lev Walkin4c776e52010-11-08 02:07:31 -080013931MKDIR_P='$MKDIR_P'
Lev Walkinb3751942012-09-02 19:36:47 -070013932AWK='$AWK'
13933test -n "\$AWK" || AWK=awk
Lev Walkinf15320b2004-06-03 03:38:44 +000013934_ACEOF
13935
Lev Walkinb3751942012-09-02 19:36:47 -070013936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13937# The default lists apply if the user does not specify any file.
Lev Walkinf15320b2004-06-03 03:38:44 +000013938ac_need_defaults=:
13939while test $# != 0
13940do
13941 case $1 in
Lev Walkinaef10c32014-01-14 01:47:25 -080013942 --*=?*)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013943 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13944 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +000013945 ac_shift=:
13946 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013947 --*=)
13948 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13949 ac_optarg=
13950 ac_shift=:
13951 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013952 *)
Lev Walkinf15320b2004-06-03 03:38:44 +000013953 ac_option=$1
13954 ac_optarg=$2
13955 ac_shift=shift
13956 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013957 esac
13958
13959 case $ac_option in
13960 # Handling of the options.
Lev Walkinf15320b2004-06-03 03:38:44 +000013961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13962 ac_cs_recheck=: ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013963 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Lev Walkinb3751942012-09-02 19:36:47 -070013964 $as_echo "$ac_cs_version"; exit ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013965 --config | --confi | --conf | --con | --co | --c )
13966 $as_echo "$ac_cs_config"; exit ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013967 --debug | --debu | --deb | --de | --d | -d )
Lev Walkinf15320b2004-06-03 03:38:44 +000013968 debug=: ;;
13969 --file | --fil | --fi | --f )
13970 $ac_shift
Lev Walkinb3751942012-09-02 19:36:47 -070013971 case $ac_optarg in
13972 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013973 '') as_fn_error $? "missing file argument" ;;
Lev Walkinb3751942012-09-02 19:36:47 -070013974 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080013975 as_fn_append CONFIG_FILES " '$ac_optarg'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013976 ac_need_defaults=false;;
13977 --header | --heade | --head | --hea )
13978 $ac_shift
Lev Walkinb3751942012-09-02 19:36:47 -070013979 case $ac_optarg in
13980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13981 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080013982 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013983 ac_need_defaults=false;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013984 --he | --h)
13985 # Conflict between --help and --header
Lev Walkinaef10c32014-01-14 01:47:25 -080013986 as_fn_error $? "ambiguous option: \`$1'
13987Try \`$0 --help' for more information.";;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013988 --help | --hel | -h )
Lev Walkinb3751942012-09-02 19:36:47 -070013989 $as_echo "$ac_cs_usage"; exit ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13991 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13992 ac_cs_silent=: ;;
13993
13994 # This is an error.
Lev Walkinaef10c32014-01-14 01:47:25 -080013995 -*) as_fn_error $? "unrecognized option: \`$1'
13996Try \`$0 --help' for more information." ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013997
Lev Walkinaef10c32014-01-14 01:47:25 -080013998 *) as_fn_append ac_config_targets " $1"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013999 ac_need_defaults=false ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014000
14001 esac
14002 shift
14003done
14004
14005ac_configure_extra_args=
14006
14007if $ac_cs_silent; then
14008 exec 6>/dev/null
14009 ac_configure_extra_args="$ac_configure_extra_args --silent"
14010fi
14011
14012_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014014if \$ac_cs_recheck; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014015 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Lev Walkinb3751942012-09-02 19:36:47 -070014016 shift
14017 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14018 CONFIG_SHELL='$SHELL'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014019 export CONFIG_SHELL
Lev Walkinb3751942012-09-02 19:36:47 -070014020 exec "\$@"
Lev Walkinf15320b2004-06-03 03:38:44 +000014021fi
14022
14023_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014025exec 5>>config.log
14026{
14027 echo
14028 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14029## Running $as_me. ##
14030_ASBOX
Lev Walkinb3751942012-09-02 19:36:47 -070014031 $as_echo "$ac_log"
Lev Walkin27fd0b62007-08-27 23:57:45 +000014032} >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000014033
Lev Walkin27fd0b62007-08-27 23:57:45 +000014034_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014036#
Lev Walkin27fd0b62007-08-27 23:57:45 +000014037# INIT-COMMANDS
Lev Walkinf15320b2004-06-03 03:38:44 +000014038#
Lev Walkin8e8b5482004-06-17 23:42:48 +000014039AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000014040
Lev Walkin4da95cf2010-10-16 02:46:32 -070014041
14042# The HP-UX ksh and POSIX shell print the target directory to stdout
14043# if CDPATH is set.
14044(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14045
14046sed_quote_subst='$sed_quote_subst'
14047double_quote_subst='$double_quote_subst'
14048delay_variable_subst='$delay_variable_subst'
Lev Walkinaef10c32014-01-14 01:47:25 -080014049macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14050macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14051enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14052enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14053pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14054enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14055SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14056ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14057host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14058host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14059host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14060build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14061build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14062build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14063SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14064Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14065GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14066EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14067FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14068LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14069NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14070LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14071max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14072ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14073exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14074lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14075lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14076lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14077lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14078lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14079reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14080reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14081OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14082deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14083file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14084file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14085want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14086DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14087sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14088AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14089AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14090archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14091STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14092RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14093old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14094old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14095old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14096lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14097CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14098CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14099compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14100GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14101lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14102lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14103lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14104lt_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"`'
14105nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14106lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14107objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14108MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14109lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14110lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14111lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14112lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14113lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14114need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14115MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14116DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14117NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14118LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14119OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14120OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14121libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14122shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14123extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14124archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14125enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14126export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14127whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14128compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14129old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14130old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14131archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14132archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14133module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14134module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14135with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14136allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14137no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14138hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14139hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14140hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14141hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14142hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14143hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14144hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14145hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14146inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14147link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14148always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14149export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14150exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14151include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14152prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14153postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14154file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14155variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14156need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14157need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14158version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14159runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14160shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14161shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14162libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14163library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14164soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14165install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14166postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14167postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14168finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14169finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14170hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14171sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14172sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14173hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14174enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14175enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14176enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14177old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14178striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070014179
14180LTCC='$LTCC'
14181LTCFLAGS='$LTCFLAGS'
14182compiler='$compiler_DEFAULT'
14183
Lev Walkinaef10c32014-01-14 01:47:25 -080014184# A function that is used when there is no print builtin or printf.
14185func_fallback_echo ()
14186{
14187 eval 'cat <<_LTECHO_EOF
14188\$1
14189_LTECHO_EOF'
14190}
14191
Lev Walkin4da95cf2010-10-16 02:46:32 -070014192# Quote evaled strings.
Lev Walkinaef10c32014-01-14 01:47:25 -080014193for var in SHELL \
14194ECHO \
14195SED \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014196GREP \
14197EGREP \
14198FGREP \
14199LD \
14200NM \
14201LN_S \
14202lt_SP2NL \
14203lt_NL2SP \
14204reload_flag \
Lev Walkinaef10c32014-01-14 01:47:25 -080014205OBJDUMP \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014206deplibs_check_method \
14207file_magic_cmd \
Lev Walkinaef10c32014-01-14 01:47:25 -080014208file_magic_glob \
14209want_nocaseglob \
14210DLLTOOL \
14211sharedlib_from_linklib_cmd \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014212AR \
14213AR_FLAGS \
Lev Walkinaef10c32014-01-14 01:47:25 -080014214archiver_list_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014215STRIP \
14216RANLIB \
14217CC \
14218CFLAGS \
14219compiler \
14220lt_cv_sys_global_symbol_pipe \
14221lt_cv_sys_global_symbol_to_cdecl \
14222lt_cv_sys_global_symbol_to_c_name_address \
14223lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Lev Walkinaef10c32014-01-14 01:47:25 -080014224nm_file_list_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014225lt_prog_compiler_no_builtin_flag \
Lev Walkin4c776e52010-11-08 02:07:31 -080014226lt_prog_compiler_pic \
Lev Walkinaef10c32014-01-14 01:47:25 -080014227lt_prog_compiler_wl \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014228lt_prog_compiler_static \
14229lt_cv_prog_compiler_c_o \
14230need_locks \
Lev Walkinaef10c32014-01-14 01:47:25 -080014231MANIFEST_TOOL \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014232DSYMUTIL \
14233NMEDIT \
14234LIPO \
14235OTOOL \
14236OTOOL64 \
14237shrext_cmds \
14238export_dynamic_flag_spec \
14239whole_archive_flag_spec \
14240compiler_needs_object \
14241with_gnu_ld \
14242allow_undefined_flag \
14243no_undefined_flag \
14244hardcode_libdir_flag_spec \
14245hardcode_libdir_flag_spec_ld \
14246hardcode_libdir_separator \
14247exclude_expsyms \
14248include_expsyms \
14249file_list_spec \
14250variables_saved_for_relink \
14251libname_spec \
14252library_names_spec \
14253soname_spec \
Lev Walkinaef10c32014-01-14 01:47:25 -080014254install_override_mode \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014255finish_eval \
14256old_striplib \
14257striplib; do
Lev Walkinaef10c32014-01-14 01:47:25 -080014258 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014259 *[\\\\\\\`\\"\\\$]*)
Lev Walkinaef10c32014-01-14 01:47:25 -080014260 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014261 ;;
14262 *)
14263 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14264 ;;
14265 esac
14266done
14267
14268# Double-quote double-evaled strings.
14269for var in reload_cmds \
14270old_postinstall_cmds \
14271old_postuninstall_cmds \
14272old_archive_cmds \
14273extract_expsyms_cmds \
14274old_archive_from_new_cmds \
14275old_archive_from_expsyms_cmds \
14276archive_cmds \
14277archive_expsym_cmds \
14278module_cmds \
14279module_expsym_cmds \
14280export_symbols_cmds \
14281prelink_cmds \
Lev Walkinaef10c32014-01-14 01:47:25 -080014282postlink_cmds \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014283postinstall_cmds \
14284postuninstall_cmds \
14285finish_cmds \
14286sys_lib_search_path_spec \
14287sys_lib_dlsearch_path_spec; do
Lev Walkinaef10c32014-01-14 01:47:25 -080014288 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014289 *[\\\\\\\`\\"\\\$]*)
Lev Walkinaef10c32014-01-14 01:47:25 -080014290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014291 ;;
14292 *)
14293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14294 ;;
14295 esac
14296done
14297
14298ac_aux_dir='$ac_aux_dir'
14299xsi_shell='$xsi_shell'
14300lt_shell_append='$lt_shell_append'
14301
14302# See if we are running on zsh, and set the options which allow our
14303# commands through without removal of \ escapes INIT.
14304if test -n "\${ZSH_VERSION+set}" ; then
14305 setopt NO_GLOB_SUBST
14306fi
14307
14308
14309 PACKAGE='$PACKAGE'
14310 VERSION='$VERSION'
14311 TIMESTAMP='$TIMESTAMP'
14312 RM='$RM'
14313 ofile='$ofile'
14314
14315
14316
14317
Lev Walkinf15320b2004-06-03 03:38:44 +000014318_ACEOF
14319
Lev Walkinb3751942012-09-02 19:36:47 -070014320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014321
14322# Handling of arguments.
Lev Walkinf15320b2004-06-03 03:38:44 +000014323for ac_config_target in $ac_config_targets
14324do
Lev Walkin27fd0b62007-08-27 23:57:45 +000014325 case $ac_config_target in
Lev Walkine7c4b962010-11-09 03:10:36 -080014326 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014327 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070014328 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014329 "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
14330 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
14331 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
14332 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014333 "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
14334 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
Lev Walkine7c4b962010-11-09 03:10:36 -080014335 "doc/docsrc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docsrc/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014336 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
14337 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014338 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
14339 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14340 "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
14341 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14342
Lev Walkinaef10c32014-01-14 01:47:25 -080014343 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014344 esac
14345done
14346
Lev Walkin27fd0b62007-08-27 23:57:45 +000014347
Lev Walkinf15320b2004-06-03 03:38:44 +000014348# If the user did not use the arguments to specify the items to instantiate,
14349# then the envvar interface is used. Set only those that are not.
14350# We use the long form for the default assignment because of an extremely
14351# bizarre bug on SunOS 4.1.3.
14352if $ac_need_defaults; then
14353 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14354 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14355 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14356fi
14357
14358# Have a temporary directory for convenience. Make it in the build tree
Lev Walkin27fd0b62007-08-27 23:57:45 +000014359# simply because there is no reason against having it here, and in addition,
Lev Walkinf15320b2004-06-03 03:38:44 +000014360# creating and moving files from /tmp can sometimes cause problems.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014361# Hook for its removal unless debugging.
14362# Note that there is a small window in which the directory will not be cleaned:
14363# after its creation but before its name has been assigned to `$tmp'.
Lev Walkinf15320b2004-06-03 03:38:44 +000014364$debug ||
14365{
Lev Walkinaef10c32014-01-14 01:47:25 -080014366 tmp= ac_tmp=
Lev Walkin27fd0b62007-08-27 23:57:45 +000014367 trap 'exit_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080014368 : "${ac_tmp:=$tmp}"
14369 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +000014370' 0
Lev Walkinaef10c32014-01-14 01:47:25 -080014371 trap 'as_fn_exit 1' 1 2 13 15
Lev Walkinf15320b2004-06-03 03:38:44 +000014372}
Lev Walkinf15320b2004-06-03 03:38:44 +000014373# Create a (secure) tmp directory for tmp files.
14374
14375{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014376 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Lev Walkinaef10c32014-01-14 01:47:25 -080014377 test -d "$tmp"
Lev Walkinf15320b2004-06-03 03:38:44 +000014378} ||
14379{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014380 tmp=./conf$$-$RANDOM
14381 (umask 077 && mkdir "$tmp")
Lev Walkinaef10c32014-01-14 01:47:25 -080014382} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14383ac_tmp=$tmp
Lev Walkinf15320b2004-06-03 03:38:44 +000014384
Lev Walkinb3751942012-09-02 19:36:47 -070014385# Set up the scripts for CONFIG_FILES section.
14386# No need to generate them if there are no CONFIG_FILES.
14387# This happens for instance with `./config.status config.h'.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014388if test -n "$CONFIG_FILES"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000014389
Lev Walkinb3751942012-09-02 19:36:47 -070014390
Lev Walkinaef10c32014-01-14 01:47:25 -080014391ac_cr=`echo X | tr X '\015'`
14392# On cygwin, bash can eat \r inside `` if the user requested igncr.
14393# But we know of no other shell where ac_cr would be empty at this
14394# point, so we can use a bashism as a fallback.
14395if test "x$ac_cr" = x; then
14396 eval ac_cr=\$\'\\r\'
14397fi
Lev Walkinb3751942012-09-02 19:36:47 -070014398ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14399if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14400 ac_cs_awk_cr='\\r'
14401else
14402 ac_cs_awk_cr=$ac_cr
14403fi
14404
Lev Walkinaef10c32014-01-14 01:47:25 -080014405echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Lev Walkinf15320b2004-06-03 03:38:44 +000014406_ACEOF
14407
Lev Walkin27fd0b62007-08-27 23:57:45 +000014408
Lev Walkinb3751942012-09-02 19:36:47 -070014409{
14410 echo "cat >conf$$subs.awk <<_ACEOF" &&
14411 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14412 echo "_ACEOF"
14413} >conf$$subs.sh ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014414 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14415ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014416ac_delim='%!_!# '
14417for ac_last_try in false false false false false :; do
Lev Walkinb3751942012-09-02 19:36:47 -070014418 . ./conf$$subs.sh ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014419 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014420
Lev Walkinb3751942012-09-02 19:36:47 -070014421 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14422 if test $ac_delim_n = $ac_delim_num; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000014423 break
14424 elif $ac_last_try; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014426 else
14427 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Lev Walkinf15320b2004-06-03 03:38:44 +000014428 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014429done
Lev Walkinb3751942012-09-02 19:36:47 -070014430rm -f conf$$subs.sh
Lev Walkin27fd0b62007-08-27 23:57:45 +000014431
Lev Walkinb3751942012-09-02 19:36:47 -070014432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080014433cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014434_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014435sed -n '
14436h
14437s/^/S["/; s/!.*/"]=/
14438p
14439g
14440s/^[^!]*!//
14441:repl
14442t repl
14443s/'"$ac_delim"'$//
14444t delim
14445:nl
14446h
Lev Walkinaef10c32014-01-14 01:47:25 -080014447s/\(.\{148\}\)..*/\1/
Lev Walkinb3751942012-09-02 19:36:47 -070014448t more1
14449s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14450p
14451n
14452b repl
14453:more1
14454s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14455p
14456g
14457s/.\{148\}//
14458t nl
14459:delim
14460h
Lev Walkinaef10c32014-01-14 01:47:25 -080014461s/\(.\{148\}\)..*/\1/
Lev Walkinb3751942012-09-02 19:36:47 -070014462t more2
14463s/["\\]/\\&/g; s/^/"/; s/$/"/
14464p
14465b
14466:more2
14467s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14468p
14469g
14470s/.\{148\}//
14471t delim
14472' <conf$$subs.awk | sed '
14473/^[^""]/{
14474 N
14475 s/\n//
14476}
14477' >>$CONFIG_STATUS || ac_write_fail=1
14478rm -f conf$$subs.awk
14479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14480_ACAWK
Lev Walkinaef10c32014-01-14 01:47:25 -080014481cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Lev Walkinb3751942012-09-02 19:36:47 -070014482 for (key in S) S_is_set[key] = 1
14483 FS = ""
14484
14485}
14486{
14487 line = $ 0
14488 nfields = split(line, field, "@")
14489 substed = 0
14490 len = length(field[1])
14491 for (i = 2; i < nfields; i++) {
14492 key = field[i]
14493 keylen = length(key)
14494 if (S_is_set[key]) {
14495 value = S[key]
14496 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14497 len += length(value) + length(field[++i])
14498 substed = 1
14499 } else
14500 len += 1 + keylen
14501 }
14502
14503 print line
14504}
14505
14506_ACAWK
Lev Walkin27fd0b62007-08-27 23:57:45 +000014507_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14509if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14510 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14511else
14512 cat
Lev Walkinaef10c32014-01-14 01:47:25 -080014513fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14514 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014515_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014516
Lev Walkinaef10c32014-01-14 01:47:25 -080014517# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14518# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Lev Walkin27fd0b62007-08-27 23:57:45 +000014519# trailing colons and then remove the whole line if VPATH becomes empty
14520# (actually we leave an empty line to preserve line numbers).
14521if test "x$srcdir" = x.; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014522 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14523h
14524s///
14525s/^/:/
14526s/[ ]*$/:/
14527s/:\$(srcdir):/:/g
14528s/:\${srcdir}:/:/g
14529s/:@srcdir@:/:/g
14530s/^:*//
Lev Walkin27fd0b62007-08-27 23:57:45 +000014531s/:*$//
Lev Walkinaef10c32014-01-14 01:47:25 -080014532x
14533s/\(=[ ]*\).*/\1/
14534G
14535s/\n//
Lev Walkin27fd0b62007-08-27 23:57:45 +000014536s/^[^=]*=[ ]*$//
14537}'
14538fi
14539
Lev Walkinb3751942012-09-02 19:36:47 -070014540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014541fi # test -n "$CONFIG_FILES"
14542
Lev Walkinb3751942012-09-02 19:36:47 -070014543# Set up the scripts for CONFIG_HEADERS section.
14544# No need to generate them if there are no CONFIG_HEADERS.
14545# This happens for instance with `./config.status Makefile'.
14546if test -n "$CONFIG_HEADERS"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014547cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Lev Walkinb3751942012-09-02 19:36:47 -070014548BEGIN {
14549_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014550
Lev Walkinb3751942012-09-02 19:36:47 -070014551# Transform confdefs.h into an awk script `defines.awk', embedded as
14552# here-document in config.status, that substitutes the proper values into
14553# config.h.in to produce config.h.
14554
14555# Create a delimiter string that does not exist in confdefs.h, to ease
14556# handling of long lines.
14557ac_delim='%!_!# '
14558for ac_last_try in false false :; do
Lev Walkinaef10c32014-01-14 01:47:25 -080014559 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14560 if test -z "$ac_tt"; then
Lev Walkinb3751942012-09-02 19:36:47 -070014561 break
14562 elif $ac_last_try; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014563 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070014564 else
14565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14566 fi
14567done
14568
14569# For the awk script, D is an array of macro values keyed by name,
14570# likewise P contains macro parameters if any. Preserve backslash
14571# newline sequences.
14572
14573ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14574sed -n '
14575s/.\{148\}/&'"$ac_delim"'/g
14576t rset
14577:rset
14578s/^[ ]*#[ ]*define[ ][ ]*/ /
14579t def
14580d
14581:def
14582s/\\$//
14583t bsnl
14584s/["\\]/\\&/g
14585s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14586D["\1"]=" \3"/p
14587s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14588d
14589:bsnl
14590s/["\\]/\\&/g
14591s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14592D["\1"]=" \3\\\\\\n"\\/p
14593t cont
14594s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14595t cont
14596d
14597:cont
14598n
14599s/.\{148\}/&'"$ac_delim"'/g
14600t clear
14601:clear
14602s/\\$//
14603t bsnlc
14604s/["\\]/\\&/g; s/^/"/; s/$/"/p
14605d
14606:bsnlc
14607s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14608b cont
14609' <confdefs.h | sed '
14610s/'"$ac_delim"'/"\\\
14611"/g' >>$CONFIG_STATUS || ac_write_fail=1
14612
14613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14614 for (key in D) D_is_set[key] = 1
14615 FS = ""
14616}
14617/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14618 line = \$ 0
14619 split(line, arg, " ")
14620 if (arg[1] == "#") {
14621 defundef = arg[2]
14622 mac1 = arg[3]
14623 } else {
14624 defundef = substr(arg[1], 2)
14625 mac1 = arg[2]
14626 }
14627 split(mac1, mac2, "(") #)
14628 macro = mac2[1]
14629 prefix = substr(line, 1, index(line, defundef) - 1)
14630 if (D_is_set[macro]) {
14631 # Preserve the white space surrounding the "#".
14632 print prefix "define", macro P[macro] D[macro]
14633 next
14634 } else {
14635 # Replace #undef with comments. This is necessary, for example,
14636 # in the case of _POSIX_SOURCE, which is predefined and required
14637 # on some systems where configure will not decide to define it.
14638 if (defundef == "undef") {
14639 print "/*", prefix defundef, macro, "*/"
14640 next
14641 }
14642 }
14643}
14644{ print }
14645_ACAWK
14646_ACEOF
14647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080014648 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070014649fi # test -n "$CONFIG_HEADERS"
14650
14651
14652eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14653shift
14654for ac_tag
Lev Walkin27fd0b62007-08-27 23:57:45 +000014655do
14656 case $ac_tag in
14657 :[FHLC]) ac_mode=$ac_tag; continue;;
14658 esac
14659 case $ac_mode$ac_tag in
14660 :[FHL]*:*);;
Lev Walkinaef10c32014-01-14 01:47:25 -080014661 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014662 :[FH]-) ac_tag=-:-;;
14663 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14664 esac
14665 ac_save_IFS=$IFS
14666 IFS=:
14667 set x $ac_tag
14668 IFS=$ac_save_IFS
14669 shift
14670 ac_file=$1
14671 shift
14672
14673 case $ac_mode in
14674 :L) ac_source=$1;;
14675 :[FH])
14676 ac_file_inputs=
14677 for ac_f
14678 do
14679 case $ac_f in
Lev Walkinaef10c32014-01-14 01:47:25 -080014680 -) ac_f="$ac_tmp/stdin";;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014681 *) # Look for the file first in the build tree, then in the source tree
14682 # (if the path is not absolute). The absolute path cannot be DOS-style,
14683 # because $ac_f cannot contain `:'.
14684 test -f "$ac_f" ||
14685 case $ac_f in
14686 [\\/$]*) false;;
14687 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14688 esac ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014689 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014690 esac
Lev Walkinb3751942012-09-02 19:36:47 -070014691 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Lev Walkinaef10c32014-01-14 01:47:25 -080014692 as_fn_append ac_file_inputs " '$ac_f'"
Lev Walkin27fd0b62007-08-27 23:57:45 +000014693 done
14694
14695 # Let's still pretend it is `configure' which instantiates (i.e., don't
14696 # use $as_me), people would be surprised to read:
14697 # /* config.h. Generated by config.status. */
Lev Walkinb3751942012-09-02 19:36:47 -070014698 configure_input='Generated from '`
14699 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14700 `' by configure.'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014701 if test x"$ac_file" != x-; then
14702 configure_input="$ac_file. $configure_input"
Lev Walkinaef10c32014-01-14 01:47:25 -080014703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014704$as_echo "$as_me: creating $ac_file" >&6;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014705 fi
Lev Walkinb3751942012-09-02 19:36:47 -070014706 # Neutralize special characters interpreted by sed in replacement strings.
14707 case $configure_input in #(
14708 *\&* | *\|* | *\\* )
14709 ac_sed_conf_input=`$as_echo "$configure_input" |
14710 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14711 *) ac_sed_conf_input=$configure_input;;
14712 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014713
14714 case $ac_tag in
Lev Walkinaef10c32014-01-14 01:47:25 -080014715 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14716 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014717 esac
14718 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014719 esac
14720
Lev Walkin27fd0b62007-08-27 23:57:45 +000014721 ac_dir=`$as_dirname -- "$ac_file" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014722$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000014723 X"$ac_file" : 'X\(//\)[^/]' \| \
14724 X"$ac_file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014725 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014726$as_echo X"$ac_file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14728 s//\1/
14729 q
14730 }
14731 /^X\(\/\/\)[^/].*/{
14732 s//\1/
14733 q
14734 }
14735 /^X\(\/\/\)$/{
14736 s//\1/
14737 q
14738 }
14739 /^X\(\/\).*/{
14740 s//\1/
14741 q
14742 }
14743 s/.*/./; q'`
Lev Walkinaef10c32014-01-14 01:47:25 -080014744 as_dir="$ac_dir"; as_fn_mkdir_p
Lev Walkinf15320b2004-06-03 03:38:44 +000014745 ac_builddir=.
14746
Lev Walkin27fd0b62007-08-27 23:57:45 +000014747case "$ac_dir" in
14748.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14749*)
Lev Walkinb3751942012-09-02 19:36:47 -070014750 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014751 # A ".." for each directory in $ac_dir_suffix.
Lev Walkinb3751942012-09-02 19:36:47 -070014752 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014753 case $ac_top_builddir_sub in
14754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14756 esac ;;
14757esac
14758ac_abs_top_builddir=$ac_pwd
14759ac_abs_builddir=$ac_pwd$ac_dir_suffix
14760# for backward compatibility:
14761ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +000014762
14763case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014764 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +000014765 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014766 ac_top_srcdir=$ac_top_builddir_sub
14767 ac_abs_top_srcdir=$ac_pwd ;;
14768 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +000014769 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014770 ac_top_srcdir=$srcdir
14771 ac_abs_top_srcdir=$srcdir ;;
14772 *) # Relative name.
14773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14774 ac_top_srcdir=$ac_top_build_prefix$srcdir
14775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014776esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014777ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +000014778
Lev Walkinf15320b2004-06-03 03:38:44 +000014779
Lev Walkin27fd0b62007-08-27 23:57:45 +000014780 case $ac_mode in
14781 :F)
14782 #
14783 # CONFIG_FILE
14784 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014785
14786 case $INSTALL in
14787 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014788 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014789 esac
Lev Walkin4c776e52010-11-08 02:07:31 -080014790 ac_MKDIR_P=$MKDIR_P
14791 case $MKDIR_P in
14792 [\\/$]* | ?:[\\/]* ) ;;
14793 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14794 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014795_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014796
Lev Walkinb3751942012-09-02 19:36:47 -070014797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014798# If the template does not know about datarootdir, expand it.
14799# FIXME: This hack should be removed a few years after 2.60.
14800ac_datarootdir_hack=; ac_datarootdir_seen=
Lev Walkinb3751942012-09-02 19:36:47 -070014801ac_sed_dataroot='
14802/datarootdir/ {
Lev Walkin27fd0b62007-08-27 23:57:45 +000014803 p
14804 q
14805}
14806/@datadir@/p
14807/@docdir@/p
14808/@infodir@/p
14809/@localedir@/p
Lev Walkinaef10c32014-01-14 01:47:25 -080014810/@mandir@/p'
Lev Walkinb3751942012-09-02 19:36:47 -070014811case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014812*datarootdir*) ac_datarootdir_seen=yes;;
14813*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Lev Walkinaef10c32014-01-14 01:47:25 -080014814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014815$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014816_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014818 ac_datarootdir_hack='
14819 s&@datadir@&$datadir&g
14820 s&@docdir@&$docdir&g
14821 s&@infodir@&$infodir&g
14822 s&@localedir@&$localedir&g
14823 s&@mandir@&$mandir&g
Lev Walkinaef10c32014-01-14 01:47:25 -080014824 s&\\\${datarootdir}&$datarootdir&g' ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014825esac
14826_ACEOF
14827
14828# Neutralize VPATH when `$srcdir' = `.'.
14829# Shell code in configure.ac might set extrasub.
14830# FIXME: do we really want to maintain this feature?
Lev Walkinb3751942012-09-02 19:36:47 -070014831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14832ac_sed_extra="$ac_vpsub
Lev Walkinf15320b2004-06-03 03:38:44 +000014833$extrasub
14834_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014836:t
14837/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Lev Walkinb3751942012-09-02 19:36:47 -070014838s|@configure_input@|$ac_sed_conf_input|;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014839s&@top_builddir@&$ac_top_builddir_sub&;t t
Lev Walkinb3751942012-09-02 19:36:47 -070014840s&@top_build_prefix@&$ac_top_build_prefix&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014841s&@srcdir@&$ac_srcdir&;t t
14842s&@abs_srcdir@&$ac_abs_srcdir&;t t
14843s&@top_srcdir@&$ac_top_srcdir&;t t
14844s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14845s&@builddir@&$ac_builddir&;t t
14846s&@abs_builddir@&$ac_abs_builddir&;t t
14847s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14848s&@INSTALL@&$ac_INSTALL&;t t
Lev Walkin4c776e52010-11-08 02:07:31 -080014849s&@MKDIR_P@&$ac_MKDIR_P&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014850$ac_datarootdir_hack
Lev Walkinb3751942012-09-02 19:36:47 -070014851"
Lev Walkinaef10c32014-01-14 01:47:25 -080014852eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14853 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014854
Lev Walkin27fd0b62007-08-27 23:57:45 +000014855test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Lev Walkinaef10c32014-01-14 01:47:25 -080014856 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14857 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14858 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14860which seems to be undefined. Please make sure it is defined" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014861$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Lev Walkinaef10c32014-01-14 01:47:25 -080014862which seems to be undefined. Please make sure it is defined" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014863
Lev Walkinaef10c32014-01-14 01:47:25 -080014864 rm -f "$ac_tmp/stdin"
Lev Walkinf15320b2004-06-03 03:38:44 +000014865 case $ac_file in
Lev Walkinaef10c32014-01-14 01:47:25 -080014866 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14867 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Lev Walkinb3751942012-09-02 19:36:47 -070014868 esac \
Lev Walkinaef10c32014-01-14 01:47:25 -080014869 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014870 ;;
14871 :H)
14872 #
14873 # CONFIG_HEADER
14874 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014875 if test x"$ac_file" != x-; then
Lev Walkinb3751942012-09-02 19:36:47 -070014876 {
14877 $as_echo "/* $configure_input */" \
Lev Walkinaef10c32014-01-14 01:47:25 -080014878 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14879 } >"$ac_tmp/config.h" \
14880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14881 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014883$as_echo "$as_me: $ac_file is unchanged" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014884 else
Lev Walkinb3751942012-09-02 19:36:47 -070014885 rm -f "$ac_file"
Lev Walkinaef10c32014-01-14 01:47:25 -080014886 mv "$ac_tmp/config.h" "$ac_file" \
14887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014888 fi
14889 else
Lev Walkinb3751942012-09-02 19:36:47 -070014890 $as_echo "/* $configure_input */" \
Lev Walkinaef10c32014-01-14 01:47:25 -080014891 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14892 || as_fn_error $? "could not create -" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014893 fi
Lev Walkinb3751942012-09-02 19:36:47 -070014894# Compute "$ac_file"'s index in $config_headers.
14895_am_arg="$ac_file"
Lev Walkin8e8b5482004-06-17 23:42:48 +000014896_am_stamp_count=1
14897for _am_header in $config_headers :; do
14898 case $_am_header in
Lev Walkinb3751942012-09-02 19:36:47 -070014899 $_am_arg | $_am_arg:* )
Lev Walkin8e8b5482004-06-17 23:42:48 +000014900 break ;;
14901 * )
14902 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014903 esac
14904done
Lev Walkinb3751942012-09-02 19:36:47 -070014905echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14906$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14907 X"$_am_arg" : 'X\(//\)[^/]' \| \
14908 X"$_am_arg" : 'X\(//\)$' \| \
14909 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14910$as_echo X"$_am_arg" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14912 s//\1/
14913 q
14914 }
14915 /^X\(\/\/\)[^/].*/{
14916 s//\1/
14917 q
14918 }
14919 /^X\(\/\/\)$/{
14920 s//\1/
14921 q
14922 }
14923 /^X\(\/\).*/{
14924 s//\1/
14925 q
14926 }
14927 s/.*/./; q'`/stamp-h$_am_stamp_count
14928 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014929
Lev Walkinaef10c32014-01-14 01:47:25 -080014930 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014931$as_echo "$as_me: executing $ac_file commands" >&6;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014932 ;;
14933 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014934
14935
Lev Walkin27fd0b62007-08-27 23:57:45 +000014936 case $ac_file$ac_mode in
Lev Walkinb3751942012-09-02 19:36:47 -070014937 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14938 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14939 # are listed without --file. Let's play safe and only enable the eval
14940 # if we detect the quoting.
14941 case $CONFIG_FILES in
14942 *\'*) eval set x "$CONFIG_FILES" ;;
14943 *) set x $CONFIG_FILES ;;
14944 esac
14945 shift
14946 for mf
14947 do
14948 # Strip MF so we end up with the name of the file.
14949 mf=`echo "$mf" | sed -e 's/:.*$//'`
14950 # Check whether this is an Automake generated Makefile or not.
14951 # We used to match only the files named `Makefile.in', but
14952 # some people rename them; so instead we look at the file content.
14953 # Grep'ing the first line is not enough: some people post-process
14954 # each Makefile.in and add a new line on top of each file to say so.
14955 # Grep'ing the whole file is not good either: AIX grep has a line
14956 # limit of 2048, but all sed's we know have understand at least 4000.
14957 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14958 dirpart=`$as_dirname -- "$mf" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014959$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14960 X"$mf" : 'X\(//\)[^/]' \| \
14961 X"$mf" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014962 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014963$as_echo X"$mf" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14965 s//\1/
14966 q
14967 }
14968 /^X\(\/\/\)[^/].*/{
14969 s//\1/
14970 q
14971 }
14972 /^X\(\/\/\)$/{
14973 s//\1/
14974 q
14975 }
14976 /^X\(\/\).*/{
14977 s//\1/
14978 q
14979 }
14980 s/.*/./; q'`
Lev Walkinb3751942012-09-02 19:36:47 -070014981 else
14982 continue
14983 fi
14984 # Extract the definition of DEPDIR, am__include, and am__quote
14985 # from the Makefile without running `make'.
14986 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14987 test -z "$DEPDIR" && continue
14988 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14989 test -z "am__include" && continue
14990 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14991 # When using ansi2knr, U may be empty or an underscore; expand it
14992 U=`sed -n 's/^U = //p' < "$mf"`
14993 # Find all dependency output files, they are included files with
14994 # $(DEPDIR) in their names. We invoke sed twice because it is the
14995 # simplest approach to changing $(DEPDIR) to its actual value in the
14996 # expansion.
14997 for file in `sed -n "
14998 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14999 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15000 # Make sure the directory exists.
15001 test -f "$dirpart/$file" && continue
15002 fdir=`$as_dirname -- "$file" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000015003$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15004 X"$file" : 'X\(//\)[^/]' \| \
15005 X"$file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000015006 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070015007$as_echo X"$file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000015008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15009 s//\1/
15010 q
15011 }
15012 /^X\(\/\/\)[^/].*/{
15013 s//\1/
15014 q
15015 }
15016 /^X\(\/\/\)$/{
15017 s//\1/
15018 q
15019 }
15020 /^X\(\/\).*/{
15021 s//\1/
15022 q
15023 }
15024 s/.*/./; q'`
Lev Walkinaef10c32014-01-14 01:47:25 -080015025 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Lev Walkinb3751942012-09-02 19:36:47 -070015026 # echo "creating $dirpart/$file"
15027 echo '# dummy' > "$dirpart/$file"
15028 done
Lev Walkinf15320b2004-06-03 03:38:44 +000015029 done
Lev Walkinb3751942012-09-02 19:36:47 -070015030}
Lev Walkinf15320b2004-06-03 03:38:44 +000015031 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070015032 "libtool":C)
15033
15034 # See if we are running on zsh, and set the options which allow our
15035 # commands through without removal of \ escapes.
15036 if test -n "${ZSH_VERSION+set}" ; then
15037 setopt NO_GLOB_SUBST
15038 fi
15039
15040 cfgfile="${ofile}T"
Lev Walkinaef10c32014-01-14 01:47:25 -080015041 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15042 $RM "$cfgfile"
Lev Walkin4da95cf2010-10-16 02:46:32 -070015043
15044 cat <<_LT_EOF >> "$cfgfile"
15045#! $SHELL
15046
15047# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15048# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15049# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15050# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15051#
15052# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Lev Walkinaef10c32014-01-14 01:47:25 -080015053# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15054# Inc.
Lev Walkin4da95cf2010-10-16 02:46:32 -070015055# Written by Gordon Matzigkeit, 1996
15056#
15057# This file is part of GNU Libtool.
15058#
15059# GNU Libtool is free software; you can redistribute it and/or
15060# modify it under the terms of the GNU General Public License as
15061# published by the Free Software Foundation; either version 2 of
15062# the License, or (at your option) any later version.
15063#
15064# As a special exception to the GNU General Public License,
15065# if you distribute this file as part of a program or library that
15066# is built using GNU Libtool, you may include this file under the
15067# same distribution terms that you use for the rest of that program.
15068#
15069# GNU Libtool is distributed in the hope that it will be useful,
15070# but WITHOUT ANY WARRANTY; without even the implied warranty of
15071# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15072# GNU General Public License for more details.
15073#
15074# You should have received a copy of the GNU General Public License
15075# along with GNU Libtool; see the file COPYING. If not, a copy
15076# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15077# obtained by writing to the Free Software Foundation, Inc.,
15078# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15079
15080
15081# The names of the tagged configurations supported by this script.
15082available_tags=""
15083
15084# ### BEGIN LIBTOOL CONFIG
15085
15086# Which release of libtool.m4 was used?
15087macro_version=$macro_version
15088macro_revision=$macro_revision
15089
15090# Whether or not to build shared libraries.
15091build_libtool_libs=$enable_shared
15092
15093# Whether or not to build static libraries.
15094build_old_libs=$enable_static
15095
15096# What type of objects to build.
15097pic_mode=$pic_mode
15098
15099# Whether or not to optimize for fast installation.
15100fast_install=$enable_fast_install
15101
Lev Walkinaef10c32014-01-14 01:47:25 -080015102# Shell to use when invoking shell scripts.
15103SHELL=$lt_SHELL
15104
15105# An echo program that protects backslashes.
15106ECHO=$lt_ECHO
15107
Lev Walkin4da95cf2010-10-16 02:46:32 -070015108# The host system.
15109host_alias=$host_alias
15110host=$host
15111host_os=$host_os
15112
15113# The build system.
15114build_alias=$build_alias
15115build=$build
15116build_os=$build_os
15117
15118# A sed program that does not truncate output.
15119SED=$lt_SED
15120
15121# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15122Xsed="\$SED -e 1s/^X//"
15123
15124# A grep program that handles long lines.
15125GREP=$lt_GREP
15126
15127# An ERE matcher.
15128EGREP=$lt_EGREP
15129
15130# A literal string matcher.
15131FGREP=$lt_FGREP
15132
15133# A BSD- or MS-compatible name lister.
15134NM=$lt_NM
15135
15136# Whether we need soft or hard links.
15137LN_S=$lt_LN_S
15138
15139# What is the maximum length of a command?
15140max_cmd_len=$max_cmd_len
15141
15142# Object file suffix (normally "o").
15143objext=$ac_objext
15144
15145# Executable file suffix (normally "").
15146exeext=$exeext
15147
15148# whether the shell understands "unset".
15149lt_unset=$lt_unset
15150
15151# turn spaces into newlines.
15152SP2NL=$lt_lt_SP2NL
15153
15154# turn newlines into spaces.
15155NL2SP=$lt_lt_NL2SP
15156
Lev Walkinaef10c32014-01-14 01:47:25 -080015157# convert \$build file names to \$host format.
15158to_host_file_cmd=$lt_cv_to_host_file_cmd
15159
15160# convert \$build files to toolchain format.
15161to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15162
15163# An object symbol dumper.
15164OBJDUMP=$lt_OBJDUMP
Lev Walkin4da95cf2010-10-16 02:46:32 -070015165
15166# Method to check whether dependent libraries are shared objects.
15167deplibs_check_method=$lt_deplibs_check_method
15168
Lev Walkinaef10c32014-01-14 01:47:25 -080015169# Command to use when deplibs_check_method = "file_magic".
Lev Walkin4da95cf2010-10-16 02:46:32 -070015170file_magic_cmd=$lt_file_magic_cmd
15171
Lev Walkinaef10c32014-01-14 01:47:25 -080015172# How to find potential files when deplibs_check_method = "file_magic".
15173file_magic_glob=$lt_file_magic_glob
15174
15175# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15176want_nocaseglob=$lt_want_nocaseglob
15177
15178# DLL creation program.
15179DLLTOOL=$lt_DLLTOOL
15180
15181# Command to associate shared and link libraries.
15182sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15183
Lev Walkin4da95cf2010-10-16 02:46:32 -070015184# The archiver.
15185AR=$lt_AR
Lev Walkinaef10c32014-01-14 01:47:25 -080015186
15187# Flags to create an archive.
Lev Walkin4da95cf2010-10-16 02:46:32 -070015188AR_FLAGS=$lt_AR_FLAGS
15189
Lev Walkinaef10c32014-01-14 01:47:25 -080015190# How to feed a file listing to the archiver.
15191archiver_list_spec=$lt_archiver_list_spec
15192
Lev Walkin4da95cf2010-10-16 02:46:32 -070015193# A symbol stripping program.
15194STRIP=$lt_STRIP
15195
15196# Commands used to install an old-style archive.
15197RANLIB=$lt_RANLIB
15198old_postinstall_cmds=$lt_old_postinstall_cmds
15199old_postuninstall_cmds=$lt_old_postuninstall_cmds
15200
Lev Walkinaef10c32014-01-14 01:47:25 -080015201# Whether to use a lock for old archive extraction.
15202lock_old_archive_extraction=$lock_old_archive_extraction
15203
Lev Walkin4da95cf2010-10-16 02:46:32 -070015204# A C compiler.
15205LTCC=$lt_CC
15206
15207# LTCC compiler flags.
15208LTCFLAGS=$lt_CFLAGS
15209
15210# Take the output of nm and produce a listing of raw symbols and C names.
15211global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15212
15213# Transform the output of nm in a proper C declaration.
15214global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15215
15216# Transform the output of nm in a C name address pair.
15217global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15218
15219# Transform the output of nm in a C name address pair when lib prefix is needed.
15220global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15221
Lev Walkinaef10c32014-01-14 01:47:25 -080015222# Specify filename containing input files for \$NM.
15223nm_file_list_spec=$lt_nm_file_list_spec
15224
15225# The root where to search for dependent libraries,and in which our libraries should be installed.
15226lt_sysroot=$lt_sysroot
15227
Lev Walkin4da95cf2010-10-16 02:46:32 -070015228# The name of the directory that contains temporary libtool files.
15229objdir=$objdir
15230
15231# Used to examine libraries when file_magic_cmd begins with "file".
15232MAGIC_CMD=$MAGIC_CMD
15233
15234# Must we lock files when doing compilation?
15235need_locks=$lt_need_locks
15236
Lev Walkinaef10c32014-01-14 01:47:25 -080015237# Manifest tool.
15238MANIFEST_TOOL=$lt_MANIFEST_TOOL
15239
Lev Walkin4da95cf2010-10-16 02:46:32 -070015240# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15241DSYMUTIL=$lt_DSYMUTIL
15242
15243# Tool to change global to local symbols on Mac OS X.
15244NMEDIT=$lt_NMEDIT
15245
15246# Tool to manipulate fat objects and archives on Mac OS X.
15247LIPO=$lt_LIPO
15248
15249# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15250OTOOL=$lt_OTOOL
15251
15252# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15253OTOOL64=$lt_OTOOL64
15254
15255# Old archive suffix (normally "a").
15256libext=$libext
15257
15258# Shared library suffix (normally ".so").
15259shrext_cmds=$lt_shrext_cmds
15260
15261# The commands to extract the exported symbol list from a shared archive.
15262extract_expsyms_cmds=$lt_extract_expsyms_cmds
15263
15264# Variables whose values should be saved in libtool wrapper scripts and
15265# restored at link time.
15266variables_saved_for_relink=$lt_variables_saved_for_relink
15267
15268# Do we need the "lib" prefix for modules?
15269need_lib_prefix=$need_lib_prefix
15270
15271# Do we need a version for libraries?
15272need_version=$need_version
15273
15274# Library versioning type.
15275version_type=$version_type
15276
15277# Shared library runtime path variable.
15278runpath_var=$runpath_var
15279
15280# Shared library path variable.
15281shlibpath_var=$shlibpath_var
15282
15283# Is shlibpath searched before the hard-coded library search path?
15284shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15285
15286# Format of library name prefix.
15287libname_spec=$lt_libname_spec
15288
15289# List of archive names. First name is the real one, the rest are links.
15290# The last name is the one that the linker finds with -lNAME
15291library_names_spec=$lt_library_names_spec
15292
15293# The coded name of the library, if different from the real name.
15294soname_spec=$lt_soname_spec
15295
Lev Walkinaef10c32014-01-14 01:47:25 -080015296# Permission mode override for installation of shared libraries.
15297install_override_mode=$lt_install_override_mode
15298
Lev Walkin4da95cf2010-10-16 02:46:32 -070015299# Command to use after installation of a shared archive.
15300postinstall_cmds=$lt_postinstall_cmds
15301
15302# Command to use after uninstallation of a shared archive.
15303postuninstall_cmds=$lt_postuninstall_cmds
15304
15305# Commands used to finish a libtool library installation in a directory.
15306finish_cmds=$lt_finish_cmds
15307
15308# As "finish_cmds", except a single script fragment to be evaled but
15309# not shown.
15310finish_eval=$lt_finish_eval
15311
15312# Whether we should hardcode library paths into libraries.
15313hardcode_into_libs=$hardcode_into_libs
15314
15315# Compile-time system search path for libraries.
15316sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15317
15318# Run-time system search path for libraries.
15319sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15320
15321# Whether dlopen is supported.
15322dlopen_support=$enable_dlopen
15323
15324# Whether dlopen of programs is supported.
15325dlopen_self=$enable_dlopen_self
15326
15327# Whether dlopen of statically linked programs is supported.
15328dlopen_self_static=$enable_dlopen_self_static
15329
15330# Commands to strip libraries.
15331old_striplib=$lt_old_striplib
15332striplib=$lt_striplib
15333
15334
15335# The linker used to build libraries.
15336LD=$lt_LD
15337
Lev Walkinaef10c32014-01-14 01:47:25 -080015338# How to create reloadable object files.
15339reload_flag=$lt_reload_flag
15340reload_cmds=$lt_reload_cmds
15341
Lev Walkin4da95cf2010-10-16 02:46:32 -070015342# Commands used to build an old-style archive.
15343old_archive_cmds=$lt_old_archive_cmds
15344
15345# A language specific compiler.
15346CC=$lt_compiler
15347
15348# Is the compiler the GNU compiler?
15349with_gcc=$GCC
15350
15351# Compiler flag to turn off builtin functions.
15352no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15353
Lev Walkin4c776e52010-11-08 02:07:31 -080015354# Additional compiler flags for building library objects.
15355pic_flag=$lt_lt_prog_compiler_pic
15356
Lev Walkinaef10c32014-01-14 01:47:25 -080015357# How to pass a linker flag through the compiler.
15358wl=$lt_lt_prog_compiler_wl
15359
Lev Walkin4da95cf2010-10-16 02:46:32 -070015360# Compiler flag to prevent dynamic linking.
15361link_static_flag=$lt_lt_prog_compiler_static
15362
15363# Does compiler simultaneously support -c and -o options?
15364compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15365
15366# Whether or not to add -lc for building shared libraries.
15367build_libtool_need_lc=$archive_cmds_need_lc
15368
15369# Whether or not to disallow shared libs when runtime libs are static.
15370allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15371
15372# Compiler flag to allow reflexive dlopens.
15373export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15374
15375# Compiler flag to generate shared objects directly from archives.
15376whole_archive_flag_spec=$lt_whole_archive_flag_spec
15377
15378# Whether the compiler copes with passing no objects directly.
15379compiler_needs_object=$lt_compiler_needs_object
15380
15381# Create an old-style archive from a shared archive.
15382old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15383
15384# Create a temporary old-style archive to link instead of a shared archive.
15385old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15386
15387# Commands used to build a shared archive.
15388archive_cmds=$lt_archive_cmds
15389archive_expsym_cmds=$lt_archive_expsym_cmds
15390
15391# Commands used to build a loadable module if different from building
15392# a shared archive.
15393module_cmds=$lt_module_cmds
15394module_expsym_cmds=$lt_module_expsym_cmds
15395
15396# Whether we are building with GNU ld or not.
15397with_gnu_ld=$lt_with_gnu_ld
15398
15399# Flag that allows shared libraries with undefined symbols to be built.
15400allow_undefined_flag=$lt_allow_undefined_flag
15401
15402# Flag that enforces no undefined symbols.
15403no_undefined_flag=$lt_no_undefined_flag
15404
15405# Flag to hardcode \$libdir into a binary during linking.
15406# This must work even if \$libdir does not exist
15407hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15408
15409# If ld is used when linking, flag to hardcode \$libdir into a binary
15410# during linking. This must work even if \$libdir does not exist.
15411hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15412
15413# Whether we need a single "-rpath" flag with a separated argument.
15414hardcode_libdir_separator=$lt_hardcode_libdir_separator
15415
15416# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15417# DIR into the resulting binary.
15418hardcode_direct=$hardcode_direct
15419
15420# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15421# DIR into the resulting binary and the resulting library dependency is
15422# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15423# library is relocated.
15424hardcode_direct_absolute=$hardcode_direct_absolute
15425
15426# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15427# into the resulting binary.
15428hardcode_minus_L=$hardcode_minus_L
15429
15430# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15431# into the resulting binary.
15432hardcode_shlibpath_var=$hardcode_shlibpath_var
15433
15434# Set to "yes" if building a shared library automatically hardcodes DIR
15435# into the library and all subsequent libraries and executables linked
15436# against it.
15437hardcode_automatic=$hardcode_automatic
15438
15439# Set to yes if linker adds runtime paths of dependent libraries
15440# to runtime path list.
15441inherit_rpath=$inherit_rpath
15442
15443# Whether libtool must link a program against all its dependency libraries.
15444link_all_deplibs=$link_all_deplibs
15445
15446# Set to "yes" if exported symbols are required.
15447always_export_symbols=$always_export_symbols
15448
15449# The commands to list exported symbols.
15450export_symbols_cmds=$lt_export_symbols_cmds
15451
15452# Symbols that should not be listed in the preloaded symbols.
15453exclude_expsyms=$lt_exclude_expsyms
15454
15455# Symbols that must always be exported.
15456include_expsyms=$lt_include_expsyms
15457
15458# Commands necessary for linking programs (against libraries) with templates.
15459prelink_cmds=$lt_prelink_cmds
15460
Lev Walkinaef10c32014-01-14 01:47:25 -080015461# Commands necessary for finishing linking programs.
15462postlink_cmds=$lt_postlink_cmds
15463
Lev Walkin4da95cf2010-10-16 02:46:32 -070015464# Specify filename containing input files.
15465file_list_spec=$lt_file_list_spec
15466
15467# How to hardcode a shared library path into an executable.
15468hardcode_action=$hardcode_action
15469
15470# ### END LIBTOOL CONFIG
15471
15472_LT_EOF
15473
15474 case $host_os in
15475 aix3*)
15476 cat <<\_LT_EOF >> "$cfgfile"
15477# AIX sometimes has problems with the GCC collect2 program. For some
15478# reason, if we set the COLLECT_NAMES environment variable, the problems
15479# vanish in a puff of smoke.
15480if test "X${COLLECT_NAMES+set}" != Xset; then
15481 COLLECT_NAMES=
15482 export COLLECT_NAMES
15483fi
15484_LT_EOF
15485 ;;
15486 esac
15487
15488
15489ltmain="$ac_aux_dir/ltmain.sh"
15490
15491
15492 # We use sed instead of cat because bash on DJGPP gets confused if
15493 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15494 # text mode, it properly converts lines to CR/LF. This bash problem
15495 # is reportedly fixed, but why not run on old versions too?
Lev Walkinaef10c32014-01-14 01:47:25 -080015496 sed '$q' "$ltmain" >> "$cfgfile" \
15497 || (rm -f "$cfgfile"; exit 1)
Lev Walkin4da95cf2010-10-16 02:46:32 -070015498
Lev Walkinaef10c32014-01-14 01:47:25 -080015499 if test x"$xsi_shell" = xyes; then
15500 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15501func_dirname ()\
15502{\
15503\ case ${1} in\
15504\ */*) func_dirname_result="${1%/*}${2}" ;;\
15505\ * ) func_dirname_result="${3}" ;;\
15506\ esac\
15507} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15508 && mv -f "$cfgfile.tmp" "$cfgfile" \
15509 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15510test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015511
15512
Lev Walkinaef10c32014-01-14 01:47:25 -080015513 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15514func_basename ()\
15515{\
15516\ func_basename_result="${1##*/}"\
15517} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15518 && mv -f "$cfgfile.tmp" "$cfgfile" \
15519 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15520test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015521
15522
Lev Walkinaef10c32014-01-14 01:47:25 -080015523 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15524func_dirname_and_basename ()\
15525{\
15526\ case ${1} in\
15527\ */*) func_dirname_result="${1%/*}${2}" ;;\
15528\ * ) func_dirname_result="${3}" ;;\
15529\ esac\
15530\ func_basename_result="${1##*/}"\
15531} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15532 && mv -f "$cfgfile.tmp" "$cfgfile" \
15533 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15534test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015535
Lev Walkinaef10c32014-01-14 01:47:25 -080015536
15537 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15538func_stripname ()\
15539{\
15540\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15541\ # positional parameters, so assign one to ordinary parameter first.\
15542\ func_stripname_result=${3}\
15543\ func_stripname_result=${func_stripname_result#"${1}"}\
15544\ func_stripname_result=${func_stripname_result%"${2}"}\
15545} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15546 && mv -f "$cfgfile.tmp" "$cfgfile" \
15547 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15548test 0 -eq $? || _lt_function_replace_fail=:
15549
15550
15551 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15552func_split_long_opt ()\
15553{\
15554\ func_split_long_opt_name=${1%%=*}\
15555\ func_split_long_opt_arg=${1#*=}\
15556} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15557 && mv -f "$cfgfile.tmp" "$cfgfile" \
15558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15559test 0 -eq $? || _lt_function_replace_fail=:
15560
15561
15562 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15563func_split_short_opt ()\
15564{\
15565\ func_split_short_opt_arg=${1#??}\
15566\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15567} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15568 && mv -f "$cfgfile.tmp" "$cfgfile" \
15569 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15570test 0 -eq $? || _lt_function_replace_fail=:
15571
15572
15573 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15574func_lo2o ()\
15575{\
15576\ case ${1} in\
15577\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15578\ *) func_lo2o_result=${1} ;;\
15579\ esac\
15580} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15581 && mv -f "$cfgfile.tmp" "$cfgfile" \
15582 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15583test 0 -eq $? || _lt_function_replace_fail=:
15584
15585
15586 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15587func_xform ()\
15588{\
15589 func_xform_result=${1%.*}.lo\
15590} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15591 && mv -f "$cfgfile.tmp" "$cfgfile" \
15592 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15593test 0 -eq $? || _lt_function_replace_fail=:
15594
15595
15596 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15597func_arith ()\
15598{\
15599 func_arith_result=$(( $* ))\
15600} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15601 && mv -f "$cfgfile.tmp" "$cfgfile" \
15602 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15603test 0 -eq $? || _lt_function_replace_fail=:
15604
15605
15606 sed -e '/^func_len ()$/,/^} # func_len /c\
15607func_len ()\
15608{\
15609 func_len_result=${#1}\
15610} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15611 && mv -f "$cfgfile.tmp" "$cfgfile" \
15612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15613test 0 -eq $? || _lt_function_replace_fail=:
15614
15615fi
15616
15617if test x"$lt_shell_append" = xyes; then
15618 sed -e '/^func_append ()$/,/^} # func_append /c\
15619func_append ()\
15620{\
15621 eval "${1}+=\\${2}"\
15622} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15623 && mv -f "$cfgfile.tmp" "$cfgfile" \
15624 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15625test 0 -eq $? || _lt_function_replace_fail=:
15626
15627
15628 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15629func_append_quoted ()\
15630{\
15631\ func_quote_for_eval "${2}"\
15632\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15633} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15634 && mv -f "$cfgfile.tmp" "$cfgfile" \
15635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15636test 0 -eq $? || _lt_function_replace_fail=:
15637
15638
15639 # Save a `func_append' function call where possible by direct use of '+='
15640 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15641 && mv -f "$cfgfile.tmp" "$cfgfile" \
15642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15643 test 0 -eq $? || _lt_function_replace_fail=:
15644else
15645 # Save a `func_append' function call even when '+=' is not available
15646 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15647 && mv -f "$cfgfile.tmp" "$cfgfile" \
15648 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15649 test 0 -eq $? || _lt_function_replace_fail=:
15650fi
15651
15652if test x"$_lt_function_replace_fail" = x":"; then
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15654$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15655fi
15656
15657
15658 mv -f "$cfgfile" "$ofile" ||
Lev Walkin4da95cf2010-10-16 02:46:32 -070015659 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15660 chmod +x "$ofile"
15661
15662 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015663
Lev Walkin27fd0b62007-08-27 23:57:45 +000015664 esac
15665done # for ac_tag
15666
Lev Walkinf15320b2004-06-03 03:38:44 +000015667
Lev Walkinaef10c32014-01-14 01:47:25 -080015668as_fn_exit 0
Lev Walkinf15320b2004-06-03 03:38:44 +000015669_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015670ac_clean_files=$ac_clean_files_save
15671
Lev Walkinb3751942012-09-02 19:36:47 -070015672test $ac_write_fail = 0 ||
Lev Walkinaef10c32014-01-14 01:47:25 -080015673 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070015674
Lev Walkinf15320b2004-06-03 03:38:44 +000015675
15676# configure is writing to config.log, and then calls config.status.
15677# config.status does its own redirection, appending to config.log.
15678# Unfortunately, on DOS this fails, as config.log is still kept open
15679# by configure, so config.status won't be able to write to it; its
15680# output is simply discarded. So we exec the FD to /dev/null,
15681# effectively closing config.log, so it can be properly (re)opened and
15682# appended to by config.status. When coming back to configure, we
15683# need to make the FD available again.
15684if test "$no_create" != yes; then
15685 ac_cs_success=:
15686 ac_config_status_args=
15687 test "$silent" = yes &&
15688 ac_config_status_args="$ac_config_status_args --quiet"
15689 exec 5>/dev/null
15690 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15691 exec 5>>config.log
15692 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15693 # would make configure fail if this is the last instruction.
Lev Walkinaef10c32014-01-14 01:47:25 -080015694 $ac_cs_success || as_fn_exit 1
Lev Walkinf15320b2004-06-03 03:38:44 +000015695fi
Lev Walkinb3751942012-09-02 19:36:47 -070015696if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Lev Walkinaef10c32014-01-14 01:47:25 -080015697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070015698$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15699fi
Lev Walkinf15320b2004-06-03 03:38:44 +000015700
15701