blob: 80d66e5f995e77136c441e407961c0318528dc90 [file] [log] [blame]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for open_pdks 1.0.
4#
5# Report bugs to <github.com/RTimothyEdwards/open_pdks>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_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
43# 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
50 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;
60 case $arg in #(
61 *"$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
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 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 }
81fi
82
83
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
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
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# 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 || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# 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'\" &&
Tim Edwards665c3fd2021-05-02 20:20:27 -0400200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: github.com/RTimothyEdwards/open_pdks about your system,
271$0: including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='open_pdks'
582PACKAGE_TARNAME='open_pdks'
583PACKAGE_VERSION='1.0'
584PACKAGE_STRING='open_pdks 1.0'
585PACKAGE_BUGREPORT='github.com/RTimothyEdwards/open_pdks'
586PACKAGE_URL=''
587
Tim Edwards053cff32021-03-13 17:17:36 -0500588ac_default_prefix=/usr/share
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200589ac_subst_vars='LTLIBOBJS
590LIBOBJS
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400591EF_STYLE
Tim Edwardscdfec5e2021-04-22 20:59:13 -0400592SKY130_OSU_T18_PATH
593SKY130_OSU_T15_PATH
594SKY130_OSU_T12_PATH
595SKY130_OSU_PATH
596SKY130_SRAM_MACROS_PATH
Tim Edwards1168a8b2021-02-10 22:06:54 -0500597XSCHEM_SKY130_PATH
Tim Edwards8292c902020-12-24 16:25:25 -0500598SKY130_ML_XX_HD_PATH
Ahmed Ghazy32385482021-01-19 20:38:14 +0200599PATCH
Tim Edwards8292c902020-12-24 16:25:25 -0500600MAGIC
Tim Edwards1168a8b2021-02-10 22:06:54 -0500601XSCHEM_DISABLED
Tim Edwardsccaea722020-12-24 10:59:42 -0500602QFLOW_DISABLED
603OPENLANE_DISABLED
Tim Edwards367711e2021-01-27 10:35:12 -0500604IRSIM_DISABLED
Tim Edwardsccaea722020-12-24 10:59:42 -0500605NETGEN_DISABLED
606MAGIC_DISABLED
607KLAYOUT_DISABLED
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400608SKY130_DIST_PATH
609SKY130_LOCAL_PATH
610SKY130_SOURCE_PATH
Tim Edwards8292c902020-12-24 16:25:25 -0500611SKY130_LINK_TARGETS
Tim Edwards665c3fd2021-05-02 20:20:27 -0400612SED
Tim Edwards66e53e52021-01-24 21:21:36 -0500613pkgpyexecdir
614pyexecdir
615pkgpythondir
616pythondir
617PYTHON_PLATFORM
618PYTHON_EXEC_PREFIX
619PYTHON_PREFIX
620PYTHON_VERSION
621PYTHON
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200622target_alias
623host_alias
624build_alias
625LIBS
626ECHO_T
627ECHO_N
628ECHO_C
629DEFS
630mandir
631localedir
632libdir
633psdir
634pdfdir
635dvidir
636htmldir
637infodir
638docdir
639oldincludedir
640includedir
Tim Edwards238499f2021-05-17 16:34:13 -0400641runstatedir
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200642localstatedir
643sharedstatedir
644sysconfdir
645datadir
646datarootdir
647libexecdir
648sbindir
649bindir
650program_transform_name
651prefix
652exec_prefix
653PACKAGE_URL
654PACKAGE_BUGREPORT
655PACKAGE_STRING
656PACKAGE_VERSION
657PACKAGE_TARNAME
658PACKAGE_NAME
659PATH_SEPARATOR
660SHELL'
661ac_subst_files=''
662ac_user_opts='
663enable_option_checking
Tim Edwards8292c902020-12-24 16:25:25 -0500664enable_sky130_pdk
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400665with_sky130_dist_path
Tim Edwards290487a2021-05-17 09:57:30 -0400666with_sky130_local_path
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400667with_sky130_link_targets
Tim Edwardsccaea722020-12-24 10:59:42 -0500668enable_klayout
669enable_magic
670enable_netgen
Tim Edwards367711e2021-01-27 10:35:12 -0500671enable_irsim
Tim Edwardsccaea722020-12-24 10:59:42 -0500672enable_openlane
673enable_qflow
Tim Edwards8292c902020-12-24 16:25:25 -0500674enable_xschem
Tim Edwards1168a8b2021-02-10 22:06:54 -0500675enable_alpha_sky130
676enable_xschem_sky130
Tim Edwardscdfec5e2021-04-22 20:59:13 -0400677enable_sram_sky130
678enable_osu_sky130
679enable_osu_t12_sky130
680enable_osu_t15_sky130
681enable_osu_t18_sky130
Tim Edwards7cbaaba2020-08-05 12:19:18 -0400682with_ef_style
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200683'
684 ac_precious_vars='build_alias
685host_alias
686target_alias
687PYTHON'
688
689
690# Initialize some variables set by options.
691ac_init_help=
692ac_init_version=false
693ac_unrecognized_opts=
694ac_unrecognized_sep=
695# The variables have the same names as the options, with
696# dashes changed to underlines.
697cache_file=/dev/null
698exec_prefix=NONE
699no_create=
700no_recursion=
701prefix=NONE
702program_prefix=NONE
703program_suffix=NONE
704program_transform_name=s,x,x,
705silent=
706site=
707srcdir=
708verbose=
709x_includes=NONE
710x_libraries=NONE
711
712# Installation directory options.
713# These are left unexpanded so users can "make install exec_prefix=/foo"
714# and all the variables that are supposed to be based on exec_prefix
715# by default will actually change.
716# Use braces instead of parens because sh, perl, etc. also accept them.
717# (The list follows the same order as the GNU Coding Standards.)
718bindir='${exec_prefix}/bin'
719sbindir='${exec_prefix}/sbin'
720libexecdir='${exec_prefix}/libexec'
721datarootdir='${prefix}/share'
722datadir='${datarootdir}'
723sysconfdir='${prefix}/etc'
724sharedstatedir='${prefix}/com'
725localstatedir='${prefix}/var'
Tim Edwards238499f2021-05-17 16:34:13 -0400726runstatedir='${localstatedir}/run'
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200727includedir='${prefix}/include'
728oldincludedir='/usr/include'
729docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
730infodir='${datarootdir}/info'
731htmldir='${docdir}'
732dvidir='${docdir}'
733pdfdir='${docdir}'
734psdir='${docdir}'
735libdir='${exec_prefix}/lib'
736localedir='${datarootdir}/locale'
737mandir='${datarootdir}/man'
738
739ac_prev=
740ac_dashdash=
741for ac_option
742do
743 # If the previous option needs an argument, assign it.
744 if test -n "$ac_prev"; then
745 eval $ac_prev=\$ac_option
746 ac_prev=
747 continue
748 fi
749
750 case $ac_option in
751 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
752 *=) ac_optarg= ;;
753 *) ac_optarg=yes ;;
754 esac
755
756 # Accept the important Cygnus configure options, so we can diagnose typos.
757
758 case $ac_dashdash$ac_option in
759 --)
760 ac_dashdash=yes ;;
761
762 -bindir | --bindir | --bindi | --bind | --bin | --bi)
763 ac_prev=bindir ;;
764 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
765 bindir=$ac_optarg ;;
766
767 -build | --build | --buil | --bui | --bu)
768 ac_prev=build_alias ;;
769 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
770 build_alias=$ac_optarg ;;
771
772 -cache-file | --cache-file | --cache-fil | --cache-fi \
773 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
774 ac_prev=cache_file ;;
775 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
776 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
777 cache_file=$ac_optarg ;;
778
779 --config-cache | -C)
780 cache_file=config.cache ;;
781
782 -datadir | --datadir | --datadi | --datad)
783 ac_prev=datadir ;;
784 -datadir=* | --datadir=* | --datadi=* | --datad=*)
785 datadir=$ac_optarg ;;
786
787 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
788 | --dataroo | --dataro | --datar)
789 ac_prev=datarootdir ;;
790 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
791 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
792 datarootdir=$ac_optarg ;;
793
794 -disable-* | --disable-*)
795 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
796 # Reject names that are not valid shell variable names.
797 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
798 as_fn_error $? "invalid feature name: $ac_useropt"
799 ac_useropt_orig=$ac_useropt
800 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
801 case $ac_user_opts in
802 *"
803"enable_$ac_useropt"
804"*) ;;
805 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
806 ac_unrecognized_sep=', ';;
807 esac
808 eval enable_$ac_useropt=no ;;
809
810 -docdir | --docdir | --docdi | --doc | --do)
811 ac_prev=docdir ;;
812 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
813 docdir=$ac_optarg ;;
814
815 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
816 ac_prev=dvidir ;;
817 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
818 dvidir=$ac_optarg ;;
819
820 -enable-* | --enable-*)
821 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
824 as_fn_error $? "invalid feature name: $ac_useropt"
825 ac_useropt_orig=$ac_useropt
826 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827 case $ac_user_opts in
828 *"
829"enable_$ac_useropt"
830"*) ;;
831 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
832 ac_unrecognized_sep=', ';;
833 esac
834 eval enable_$ac_useropt=\$ac_optarg ;;
835
836 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
837 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
838 | --exec | --exe | --ex)
839 ac_prev=exec_prefix ;;
840 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
841 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
842 | --exec=* | --exe=* | --ex=*)
843 exec_prefix=$ac_optarg ;;
844
845 -gas | --gas | --ga | --g)
846 # Obsolete; use --with-gas.
847 with_gas=yes ;;
848
849 -help | --help | --hel | --he | -h)
850 ac_init_help=long ;;
851 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
852 ac_init_help=recursive ;;
853 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
854 ac_init_help=short ;;
855
856 -host | --host | --hos | --ho)
857 ac_prev=host_alias ;;
858 -host=* | --host=* | --hos=* | --ho=*)
859 host_alias=$ac_optarg ;;
860
861 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
862 ac_prev=htmldir ;;
863 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
864 | --ht=*)
865 htmldir=$ac_optarg ;;
866
867 -includedir | --includedir | --includedi | --included | --include \
868 | --includ | --inclu | --incl | --inc)
869 ac_prev=includedir ;;
870 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
871 | --includ=* | --inclu=* | --incl=* | --inc=*)
872 includedir=$ac_optarg ;;
873
874 -infodir | --infodir | --infodi | --infod | --info | --inf)
875 ac_prev=infodir ;;
876 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
877 infodir=$ac_optarg ;;
878
879 -libdir | --libdir | --libdi | --libd)
880 ac_prev=libdir ;;
881 -libdir=* | --libdir=* | --libdi=* | --libd=*)
882 libdir=$ac_optarg ;;
883
884 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
885 | --libexe | --libex | --libe)
886 ac_prev=libexecdir ;;
887 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
888 | --libexe=* | --libex=* | --libe=*)
889 libexecdir=$ac_optarg ;;
890
891 -localedir | --localedir | --localedi | --localed | --locale)
892 ac_prev=localedir ;;
893 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
894 localedir=$ac_optarg ;;
895
896 -localstatedir | --localstatedir | --localstatedi | --localstated \
897 | --localstate | --localstat | --localsta | --localst | --locals)
898 ac_prev=localstatedir ;;
899 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
900 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
901 localstatedir=$ac_optarg ;;
902
903 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
904 ac_prev=mandir ;;
905 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
906 mandir=$ac_optarg ;;
907
908 -nfp | --nfp | --nf)
909 # Obsolete; use --without-fp.
910 with_fp=no ;;
911
912 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
913 | --no-cr | --no-c | -n)
914 no_create=yes ;;
915
916 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
917 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
918 no_recursion=yes ;;
919
920 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
921 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
922 | --oldin | --oldi | --old | --ol | --o)
923 ac_prev=oldincludedir ;;
924 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
925 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
926 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
927 oldincludedir=$ac_optarg ;;
928
929 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
930 ac_prev=prefix ;;
931 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
932 prefix=$ac_optarg ;;
933
934 -program-prefix | --program-prefix | --program-prefi | --program-pref \
935 | --program-pre | --program-pr | --program-p)
936 ac_prev=program_prefix ;;
937 -program-prefix=* | --program-prefix=* | --program-prefi=* \
938 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
939 program_prefix=$ac_optarg ;;
940
941 -program-suffix | --program-suffix | --program-suffi | --program-suff \
942 | --program-suf | --program-su | --program-s)
943 ac_prev=program_suffix ;;
944 -program-suffix=* | --program-suffix=* | --program-suffi=* \
945 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
946 program_suffix=$ac_optarg ;;
947
948 -program-transform-name | --program-transform-name \
949 | --program-transform-nam | --program-transform-na \
950 | --program-transform-n | --program-transform- \
951 | --program-transform | --program-transfor \
952 | --program-transfo | --program-transf \
953 | --program-trans | --program-tran \
954 | --progr-tra | --program-tr | --program-t)
955 ac_prev=program_transform_name ;;
956 -program-transform-name=* | --program-transform-name=* \
957 | --program-transform-nam=* | --program-transform-na=* \
958 | --program-transform-n=* | --program-transform-=* \
959 | --program-transform=* | --program-transfor=* \
960 | --program-transfo=* | --program-transf=* \
961 | --program-trans=* | --program-tran=* \
962 | --progr-tra=* | --program-tr=* | --program-t=*)
963 program_transform_name=$ac_optarg ;;
964
965 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
966 ac_prev=pdfdir ;;
967 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
968 pdfdir=$ac_optarg ;;
969
970 -psdir | --psdir | --psdi | --psd | --ps)
971 ac_prev=psdir ;;
972 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
973 psdir=$ac_optarg ;;
974
975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
976 | -silent | --silent | --silen | --sile | --sil)
977 silent=yes ;;
978
Tim Edwards238499f2021-05-17 16:34:13 -0400979 -runstatedir | --runstatedir | --runstatedi | --runstated \
980 | --runstate | --runstat | --runsta | --runst | --runs \
981 | --run | --ru | --r)
982 ac_prev=runstatedir ;;
983 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
984 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
985 | --run=* | --ru=* | --r=*)
986 runstatedir=$ac_optarg ;;
987
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +0200988 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
989 ac_prev=sbindir ;;
990 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
991 | --sbi=* | --sb=*)
992 sbindir=$ac_optarg ;;
993
994 -sharedstatedir | --sharedstatedir | --sharedstatedi \
995 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
996 | --sharedst | --shareds | --shared | --share | --shar \
997 | --sha | --sh)
998 ac_prev=sharedstatedir ;;
999 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1000 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1001 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1002 | --sha=* | --sh=*)
1003 sharedstatedir=$ac_optarg ;;
1004
1005 -site | --site | --sit)
1006 ac_prev=site ;;
1007 -site=* | --site=* | --sit=*)
1008 site=$ac_optarg ;;
1009
1010 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1011 ac_prev=srcdir ;;
1012 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1013 srcdir=$ac_optarg ;;
1014
1015 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1016 | --syscon | --sysco | --sysc | --sys | --sy)
1017 ac_prev=sysconfdir ;;
1018 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1019 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1020 sysconfdir=$ac_optarg ;;
1021
1022 -target | --target | --targe | --targ | --tar | --ta | --t)
1023 ac_prev=target_alias ;;
1024 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1025 target_alias=$ac_optarg ;;
1026
1027 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1028 verbose=yes ;;
1029
1030 -version | --version | --versio | --versi | --vers | -V)
1031 ac_init_version=: ;;
1032
1033 -with-* | --with-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid package name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1041 *"
1042"with_$ac_useropt"
1043"*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval with_$ac_useropt=\$ac_optarg ;;
1048
1049 -without-* | --without-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid package name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058"with_$ac_useropt"
1059"*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval with_$ac_useropt=no ;;
1064
1065 --x)
1066 # Obsolete; use --with-x.
1067 with_x=yes ;;
1068
1069 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1070 | --x-incl | --x-inc | --x-in | --x-i)
1071 ac_prev=x_includes ;;
1072 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1073 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1074 x_includes=$ac_optarg ;;
1075
1076 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1077 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1078 ac_prev=x_libraries ;;
1079 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1080 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081 x_libraries=$ac_optarg ;;
1082
1083 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1084Try \`$0 --help' for more information"
1085 ;;
1086
1087 *=*)
1088 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1089 # Reject names that are not valid shell variable names.
1090 case $ac_envvar in #(
1091 '' | [0-9]* | *[!_$as_cr_alnum]* )
1092 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1093 esac
1094 eval $ac_envvar=\$ac_optarg
1095 export $ac_envvar ;;
1096
1097 *)
1098 # FIXME: should be removed in autoconf 3.0.
1099 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1103 ;;
1104
1105 esac
1106done
1107
1108if test -n "$ac_prev"; then
1109 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110 as_fn_error $? "missing argument to $ac_option"
1111fi
1112
1113if test -n "$ac_unrecognized_opts"; then
1114 case $enable_option_checking in
1115 no) ;;
1116 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1117 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1118 esac
1119fi
1120
1121# Check all directory arguments for consistency.
1122for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Tim Edwards238499f2021-05-17 16:34:13 -04001125 libdir localedir mandir runstatedir
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001126do
1127 eval ac_val=\$$ac_var
1128 # Remove trailing slashes.
1129 case $ac_val in
1130 */ )
1131 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1132 eval $ac_var=\$ac_val;;
1133 esac
1134 # Be sure to have absolute directory names.
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1140done
1141
1142# There might be people who depend on the old broken behavior: `$host'
1143# used to hold the argument of --host etc.
1144# FIXME: To remove some day.
1145build=$build_alias
1146host=$host_alias
1147target=$target_alias
1148
1149# FIXME: To remove some day.
1150if test "x$host_alias" != x; then
1151 if test "x$build_alias" = x; then
1152 cross_compiling=maybe
1153 elif test "x$build_alias" != "x$host_alias"; then
1154 cross_compiling=yes
1155 fi
1156fi
1157
1158ac_tool_prefix=
1159test -n "$host_alias" && ac_tool_prefix=$host_alias-
1160
1161test "$silent" = yes && exec 6>/dev/null
1162
1163
1164ac_pwd=`pwd` && test -n "$ac_pwd" &&
1165ac_ls_di=`ls -di .` &&
1166ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1167 as_fn_error $? "working directory cannot be determined"
1168test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 as_fn_error $? "pwd does not report name of working directory"
1170
1171
1172# Find the source files, if location was not specified.
1173if test -z "$srcdir"; then
1174 ac_srcdir_defaulted=yes
1175 # Try the directory containing this script, then the parent directory.
1176 ac_confdir=`$as_dirname -- "$as_myself" ||
1177$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178 X"$as_myself" : 'X\(//\)[^/]' \| \
1179 X"$as_myself" : 'X\(//\)$' \| \
1180 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1181$as_echo X"$as_myself" |
1182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1183 s//\1/
1184 q
1185 }
1186 /^X\(\/\/\)[^/].*/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)$/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\).*/{
1195 s//\1/
1196 q
1197 }
1198 s/.*/./; q'`
1199 srcdir=$ac_confdir
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1201 srcdir=..
1202 fi
1203else
1204 ac_srcdir_defaulted=no
1205fi
1206if test ! -r "$srcdir/$ac_unique_file"; then
1207 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1208 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1209fi
1210ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1211ac_abs_confdir=`(
1212 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1213 pwd)`
1214# When building in place, set srcdir=.
1215if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1217fi
1218# Remove unnecessary trailing slashes from srcdir.
1219# Double slashes in file names in object file debugging info
1220# mess up M-x gdb in Emacs.
1221case $srcdir in
1222*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223esac
1224for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229done
1230
1231#
1232# Report the --help message.
1233#
1234if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238\`configure' configures open_pdks 1.0 to adapt to many kinds of systems.
1239
1240Usage: $0 [OPTION]... [VAR=VALUE]...
1241
1242To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243VAR=VALUE. See below for descriptions of some of the useful variables.
1244
1245Defaults for the options are specified in brackets.
1246
1247Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking ...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257
1258Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1263
1264By default, \`make install' will install all the files in
1265\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267for instance \`--prefix=\$HOME'.
1268
1269For better control, use the options below.
1270
1271Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Tim Edwards238499f2021-05-17 16:34:13 -04001278 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001279 --libdir=DIR object code libraries [EPREFIX/lib]
1280 --includedir=DIR C header files [PREFIX/include]
1281 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1282 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1283 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1284 --infodir=DIR info documentation [DATAROOTDIR/info]
1285 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1286 --mandir=DIR man documentation [DATAROOTDIR/man]
1287 --docdir=DIR documentation root [DATAROOTDIR/doc/open_pdks]
1288 --htmldir=DIR html documentation [DOCDIR]
1289 --dvidir=DIR dvi documentation [DOCDIR]
1290 --pdfdir=DIR pdf documentation [DOCDIR]
1291 --psdir=DIR ps documentation [DOCDIR]
1292_ACEOF
1293
1294 cat <<\_ACEOF
1295_ACEOF
1296fi
1297
1298if test -n "$ac_init_help"; then
1299 case $ac_init_help in
1300 short | recursive ) echo "Configuration of open_pdks 1.0:";;
1301 esac
1302 cat <<\_ACEOF
1303
Tim Edwardsccaea722020-12-24 10:59:42 -05001304Optional Features:
1305 --disable-option-checking ignore unrecognized --enable/--with options
1306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tim Edwards8292c902020-12-24 16:25:25 -05001308 --enable-sky130-pdk=[/path/to/sky130/] --disable-sky130-pdk
1309 "location of the source files for the sky130 (pdks
Ahmed Ghazy32385482021-01-19 20:38:14 +02001310 with a pdk_url file can automatically download them
Tim Edwards8292c902020-12-24 16:25:25 -05001311 if the path is omitted)"
1312 --enable-klayout
Tim Edwards1168a8b2021-02-10 22:06:54 -05001313 Enable or disable klayout setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001314
1315
1316 --enable-magic
Tim Edwards1168a8b2021-02-10 22:06:54 -05001317 Enable or disable magic setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001318
1319
1320 --enable-netgen
Tim Edwards1168a8b2021-02-10 22:06:54 -05001321 Enable or disable netgen setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001322
1323
Tim Edwards367711e2021-01-27 10:35:12 -05001324 --enable-irsim
Tim Edwards1168a8b2021-02-10 22:06:54 -05001325 Enable or disable irsim setup [default=enabled]
Tim Edwards367711e2021-01-27 10:35:12 -05001326
1327
Tim Edwards8292c902020-12-24 16:25:25 -05001328 --enable-openlane
Tim Edwards1168a8b2021-02-10 22:06:54 -05001329 Enable or disable openlane setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001330
1331
1332 --enable-qflow
Tim Edwards1168a8b2021-02-10 22:06:54 -05001333 Enable or disable qflow setup [default=enabled]
Tim Edwards8292c902020-12-24 16:25:25 -05001334
1335
Tim Edwards1168a8b2021-02-10 22:06:54 -05001336 --enable-xschem
1337 Enable or disable xschem setup [default=enabled]
1338
1339
1340 --enable-alpha-sky130[=path]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001341 Install sky130_ml_xx_hd. If path is omitted, the repository
1342 will be downloaded. [default=enabled]
Tim Edwards1168a8b2021-02-10 22:06:54 -05001343 --enable-xschem-sky130[=path]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001344 Install xschem_sky130. If path is omitted, the repository
1345 will be downloaded. [default=enabled]
1346 --enable-sram-sky130[=path]
1347 Install sky130_sram_macros. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001348 will be downloaded. [default=disabled]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001349 --enable-osu-sky130[=path]
1350 Install sky130_osu. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001351 will be downloaded. [default=disabled]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001352 --enable-osu-t12-sky130[=path]
1353 Install sky130_osu_t12. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001354 will be downloaded. [default=disabled]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001355 --enable-osu-t15-sky130[=path]
1356 Install sky130_osu_t15. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001357 will be downloaded. [default=disabled]
Tim Edwardscdfec5e2021-04-22 20:59:13 -04001358 --enable-osu-t18-sky130[=path]
1359 Install sky130_osu_t18. If path is omitted, the repository
Tim Edwards980e8f32021-04-28 10:37:56 -04001360 will be downloaded. [default=disabled]
Tim Edwardsccaea722020-12-24 10:59:42 -05001361
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001362Optional Packages:
1363 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1364 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Tim Edwards8292c902020-12-24 16:25:25 -05001365 --with-sky130-dist-path=/path/to/install/sky130
1366 "staging location to install the PDK for
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001367 distribution (optional)"
Tim Edwards290487a2021-05-17 09:57:30 -04001368 --with-sky130-local-path=/path/to/install/sky130
1369 "run-time location of the PDK"
Tim Edwards7cbaaba2020-08-05 12:19:18 -04001370 --with-sky130-link-targets=none|source
1371 "make symbolic links to existing files
1372 [default=none]"
1373 --with-ef-style Use efabless style file system structure
1374 [default=no]
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001375
1376Some influential environment variables:
1377 PYTHON the Python interpreter
1378
1379Use these variables to override the choices made by `configure' or to help
1380it to find libraries and programs with nonstandard names/locations.
1381
1382Report bugs to <github.com/RTimothyEdwards/open_pdks>.
1383_ACEOF
1384ac_status=$?
1385fi
1386
1387if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" ||
1391 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1392 continue
1393 ac_builddir=.
1394
1395case "$ac_dir" in
1396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397*)
1398 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405esac
1406ac_abs_top_builddir=$ac_pwd
1407ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408# for backward compatibility:
1409ac_top_builddir=$ac_top_build_prefix
1410
1411case $srcdir in
1412 .) # We are building in place.
1413 ac_srcdir=.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424esac
1425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1435 else
1436 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1439 done
1440fi
1441
1442test -n "$ac_init_help" && exit $ac_status
1443if $ac_init_version; then
1444 cat <<\_ACEOF
1445open_pdks configure 1.0
1446generated by GNU Autoconf 2.69
1447
1448Copyright (C) 2012 Free Software Foundation, Inc.
1449This configure script is free software; the Free Software Foundation
1450gives unlimited permission to copy, distribute and modify it.
1451_ACEOF
1452 exit
1453fi
1454
1455## ------------------------ ##
1456## Autoconf initialization. ##
1457## ------------------------ ##
1458cat >config.log <<_ACEOF
1459This file contains any messages produced by compilers while
1460running configure, to aid debugging if configure makes a mistake.
1461
1462It was created by open_pdks $as_me 1.0, which was
1463generated by GNU Autoconf 2.69. Invocation command line was
1464
1465 $ $0 $@
1466
1467_ACEOF
1468exec 5>>config.log
1469{
1470cat <<_ASUNAME
1471## --------- ##
1472## Platform. ##
1473## --------- ##
1474
1475hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1476uname -m = `(uname -m) 2>/dev/null || echo unknown`
1477uname -r = `(uname -r) 2>/dev/null || echo unknown`
1478uname -s = `(uname -s) 2>/dev/null || echo unknown`
1479uname -v = `(uname -v) 2>/dev/null || echo unknown`
1480
1481/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1482/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1483
1484/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1485/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1486/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1487/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1488/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1489/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1490/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1491
1492_ASUNAME
1493
1494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495for as_dir in $PATH
1496do
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 $as_echo "PATH: $as_dir"
1500 done
1501IFS=$as_save_IFS
1502
1503} >&5
1504
1505cat >&5 <<_ACEOF
1506
1507
1508## ----------- ##
1509## Core tests. ##
1510## ----------- ##
1511
1512_ACEOF
1513
1514
1515# Keep a trace of the command line.
1516# Strip out --no-create and --no-recursion so they do not pile up.
1517# Strip out --silent because we don't want to record it for future runs.
1518# Also quote any args containing shell meta-characters.
1519# Make two passes to allow for proper duplicate-argument suppression.
1520ac_configure_args=
1521ac_configure_args0=
1522ac_configure_args1=
1523ac_must_keep_next=false
1524for ac_pass in 1 2
1525do
1526 for ac_arg
1527 do
1528 case $ac_arg in
1529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 continue ;;
1533 *\'*)
1534 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1535 esac
1536 case $ac_pass in
1537 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1538 2)
1539 as_fn_append ac_configure_args1 " '$ac_arg'"
1540 if test $ac_must_keep_next = true; then
1541 ac_must_keep_next=false # Got value, back to normal.
1542 else
1543 case $ac_arg in
1544 *=* | --config-cache | -C | -disable-* | --disable-* \
1545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1547 | -with-* | --with-* | -without-* | --without-* | --x)
1548 case "$ac_configure_args0 " in
1549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1550 esac
1551 ;;
1552 -* ) ac_must_keep_next=true ;;
1553 esac
1554 fi
1555 as_fn_append ac_configure_args " '$ac_arg'"
1556 ;;
1557 esac
1558 done
1559done
1560{ ac_configure_args0=; unset ac_configure_args0;}
1561{ ac_configure_args1=; unset ac_configure_args1;}
1562
1563# When interrupted or exit'd, cleanup temporary files, and complete
1564# config.log. We remove comments because anyway the quotes in there
1565# would cause problems or look ugly.
1566# WARNING: Use '\'' to represent an apostrophe within the trap.
1567# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1568trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
1570 {
1571 echo
1572
1573 $as_echo "## ---------------- ##
1574## Cache variables. ##
1575## ---------------- ##"
1576 echo
1577 # The following way of writing the cache mishandles newlines in values,
1578(
1579 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1580 eval ac_val=\$$ac_var
1581 case $ac_val in #(
1582 *${as_nl}*)
1583 case $ac_var in #(
1584 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1585$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1586 esac
1587 case $ac_var in #(
1588 _ | IFS | as_nl) ;; #(
1589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1590 *) { eval $ac_var=; unset $ac_var;} ;;
1591 esac ;;
1592 esac
1593 done
1594 (set) 2>&1 |
1595 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1596 *${as_nl}ac_space=\ *)
1597 sed -n \
1598 "s/'\''/'\''\\\\'\'''\''/g;
1599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1600 ;; #(
1601 *)
1602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1603 ;;
1604 esac |
1605 sort
1606)
1607 echo
1608
1609 $as_echo "## ----------------- ##
1610## Output variables. ##
1611## ----------------- ##"
1612 echo
1613 for ac_var in $ac_subst_vars
1614 do
1615 eval ac_val=\$$ac_var
1616 case $ac_val in
1617 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 esac
1619 $as_echo "$ac_var='\''$ac_val'\''"
1620 done | sort
1621 echo
1622
1623 if test -n "$ac_subst_files"; then
1624 $as_echo "## ------------------- ##
1625## File substitutions. ##
1626## ------------------- ##"
1627 echo
1628 for ac_var in $ac_subst_files
1629 do
1630 eval ac_val=\$$ac_var
1631 case $ac_val in
1632 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 esac
1634 $as_echo "$ac_var='\''$ac_val'\''"
1635 done | sort
1636 echo
1637 fi
1638
1639 if test -s confdefs.h; then
1640 $as_echo "## ----------- ##
1641## confdefs.h. ##
1642## ----------- ##"
1643 echo
1644 cat confdefs.h
1645 echo
1646 fi
1647 test "$ac_signal" != 0 &&
1648 $as_echo "$as_me: caught signal $ac_signal"
1649 $as_echo "$as_me: exit $exit_status"
1650 } >&5
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1653 exit $exit_status
1654' 0
1655for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1657done
1658ac_signal=0
1659
1660# confdefs.h avoids OS command line length limits that DEFS can exceed.
1661rm -f -r conftest* confdefs.h
1662
1663$as_echo "/* confdefs.h */" > confdefs.h
1664
1665# Predefined preprocessor variables.
1666
1667cat >>confdefs.h <<_ACEOF
1668#define PACKAGE_NAME "$PACKAGE_NAME"
1669_ACEOF
1670
1671cat >>confdefs.h <<_ACEOF
1672#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1673_ACEOF
1674
1675cat >>confdefs.h <<_ACEOF
1676#define PACKAGE_VERSION "$PACKAGE_VERSION"
1677_ACEOF
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_STRING "$PACKAGE_STRING"
1681_ACEOF
1682
1683cat >>confdefs.h <<_ACEOF
1684#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1685_ACEOF
1686
1687cat >>confdefs.h <<_ACEOF
1688#define PACKAGE_URL "$PACKAGE_URL"
1689_ACEOF
1690
1691
1692# Let the site file select an alternate cache file if it wants to.
1693# Prefer an explicitly selected file to automatically selected ones.
1694ac_site_file1=NONE
1695ac_site_file2=NONE
1696if test -n "$CONFIG_SITE"; then
1697 # We do not want a PATH search for config.site.
1698 case $CONFIG_SITE in #((
1699 -*) ac_site_file1=./$CONFIG_SITE;;
1700 */*) ac_site_file1=$CONFIG_SITE;;
1701 *) ac_site_file1=./$CONFIG_SITE;;
1702 esac
1703elif test "x$prefix" != xNONE; then
1704 ac_site_file1=$prefix/share/config.site
1705 ac_site_file2=$prefix/etc/config.site
1706else
1707 ac_site_file1=$ac_default_prefix/share/config.site
1708 ac_site_file2=$ac_default_prefix/etc/config.site
1709fi
1710for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1711do
1712 test "x$ac_site_file" = xNONE && continue
1713 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1715$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1716 sed 's/^/| /' "$ac_site_file" >&5
1717 . "$ac_site_file" \
1718 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1720as_fn_error $? "failed to load site script $ac_site_file
1721See \`config.log' for more details" "$LINENO" 5; }
1722 fi
1723done
1724
1725if test -r "$cache_file"; then
1726 # Some versions of bash will fail to source /dev/null (special files
1727 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1728 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1730$as_echo "$as_me: loading cache $cache_file" >&6;}
1731 case $cache_file in
1732 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733 *) . "./$cache_file";;
1734 esac
1735 fi
1736else
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1738$as_echo "$as_me: creating cache $cache_file" >&6;}
1739 >$cache_file
1740fi
1741
1742# Check that the precious variables saved in the cache have kept the same
1743# value.
1744ac_cache_corrupted=false
1745for ac_var in $ac_precious_vars; do
1746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1747 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in
1751 set,)
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1755 ,set)
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1757$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,);;
1760 *)
1761 if test "x$ac_old_val" != "x$ac_new_val"; then
1762 # differences in whitespace do not lead to failure.
1763 ac_old_val_w=`echo x $ac_old_val`
1764 ac_new_val_w=`echo x $ac_new_val`
1765 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1767$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1768 ac_cache_corrupted=:
1769 else
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1771$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1772 eval $ac_var=\$ac_old_val
1773 fi
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1775$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1777$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1778 fi;;
1779 esac
1780 # Pass precious variables to config.status.
1781 if test "$ac_new_set" = set; then
1782 case $ac_new_val in
1783 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1784 *) ac_arg=$ac_var=$ac_new_val ;;
1785 esac
1786 case " $ac_configure_args " in
1787 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1788 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1789 esac
1790 fi
1791done
1792if $ac_cache_corrupted; then
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1796$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1797 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1798fi
1799## -------------------- ##
1800## Main body of script. ##
1801## -------------------- ##
1802
1803ac_ext=c
1804ac_cpp='$CPP $CPPFLAGS'
1805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808
1809
1810
Tim Edwards053cff32021-03-13 17:17:36 -05001811
1812
Tim Edwardsccaea722020-12-24 10:59:42 -05001813## REQUIRES: https://www.gnu.org/software/autoconf-archive/ax_python_module.html#ax_python_module
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001814
1815
1816
1817
1818
1819
1820 if test -n "$PYTHON"; then
1821 # If the user set $PYTHON, use it and don't search something else.
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
1823$as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
1824 prog="import sys
1825# split strings by '.' and convert to numeric. Append some zeros
1826# because we need at least 4 digits for the hex conversion.
1827# map returns an iterator in Python 3.0 and a list in 2.x
1828minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1829minverhex = 0
1830# xrange is not present in Python 3.0 and range returns an iterator
1831for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1832sys.exit(sys.hexversion < minverhex)"
1833 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
1834 ($PYTHON -c "$prog") >&5 2>&5
1835 ac_status=$?
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837 (exit $ac_status); }; then :
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1839$as_echo "yes" >&6; }
1840else
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1842$as_echo "no" >&6; }
1843 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
1844fi
1845 am_display_PYTHON=$PYTHON
1846 else
1847 # Otherwise, try each interpreter until we find one that satisfies
1848 # VERSION.
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
1850$as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
1851if ${am_cv_pathless_PYTHON+:} false; then :
1852 $as_echo_n "(cached) " >&6
1853else
1854
Tim Edwards238499f2021-05-17 16:34:13 -04001855 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02001856 test "$am_cv_pathless_PYTHON" = none && break
1857 prog="import sys
1858# split strings by '.' and convert to numeric. Append some zeros
1859# because we need at least 4 digits for the hex conversion.
1860# map returns an iterator in Python 3.0 and a list in 2.x
1861minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
1862minverhex = 0
1863# xrange is not present in Python 3.0 and range returns an iterator
1864for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
1865sys.exit(sys.hexversion < minverhex)"
1866 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
1867 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
1868 ac_status=$?
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }; then :
1871 break
1872fi
1873 done
1874fi
1875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
1876$as_echo "$am_cv_pathless_PYTHON" >&6; }
1877 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
1878 if test "$am_cv_pathless_PYTHON" = none; then
1879 PYTHON=:
1880 else
1881 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
1882set dummy $am_cv_pathless_PYTHON; ac_word=$2
1883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1884$as_echo_n "checking for $ac_word... " >&6; }
1885if ${ac_cv_path_PYTHON+:} false; then :
1886 $as_echo_n "(cached) " >&6
1887else
1888 case $PYTHON in
1889 [\\/]* | ?:[\\/]*)
1890 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
1891 ;;
1892 *)
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894for as_dir in $PATH
1895do
1896 IFS=$as_save_IFS
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
1901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1903 fi
1904done
1905 done
1906IFS=$as_save_IFS
1907
1908 ;;
1909esac
1910fi
1911PYTHON=$ac_cv_path_PYTHON
1912if test -n "$PYTHON"; then
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
1914$as_echo "$PYTHON" >&6; }
1915else
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1917$as_echo "no" >&6; }
1918fi
1919
1920
1921 fi
1922 am_display_PYTHON=$am_cv_pathless_PYTHON
1923 fi
1924
1925
1926 if test "$PYTHON" = :; then
1927 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
1928 else
1929
1930
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
1932$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
1933if ${am_cv_python_version+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935else
1936 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
1937fi
1938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
1939$as_echo "$am_cv_python_version" >&6; }
1940 PYTHON_VERSION=$am_cv_python_version
1941
1942
1943
1944 PYTHON_PREFIX='${prefix}'
1945
1946 PYTHON_EXEC_PREFIX='${exec_prefix}'
1947
1948
1949
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
1951$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
1952if ${am_cv_python_platform+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954else
1955 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
1956fi
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
1958$as_echo "$am_cv_python_platform" >&6; }
1959 PYTHON_PLATFORM=$am_cv_python_platform
1960
1961
1962 # Just factor out some code duplication.
1963 am_python_setup_sysconfig="\
1964import sys
1965# Prefer sysconfig over distutils.sysconfig, for better compatibility
1966# with python 3.x. See automake bug#10227.
1967try:
1968 import sysconfig
1969except ImportError:
1970 can_use_sysconfig = 0
1971else:
1972 can_use_sysconfig = 1
1973# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
1974# <https://github.com/pypa/virtualenv/issues/118>
1975try:
1976 from platform import python_implementation
1977 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
1978 can_use_sysconfig = 0
1979except ImportError:
1980 pass"
1981
1982
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
1984$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
1985if ${am_cv_python_pythondir+:} false; then :
1986 $as_echo_n "(cached) " >&6
1987else
1988 if test "x$prefix" = xNONE
1989 then
1990 am_py_prefix=$ac_default_prefix
1991 else
1992 am_py_prefix=$prefix
1993 fi
1994 am_cv_python_pythondir=`$PYTHON -c "
1995$am_python_setup_sysconfig
1996if can_use_sysconfig:
1997 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
1998else:
1999 from distutils import sysconfig
2000 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
2001sys.stdout.write(sitedir)"`
2002 case $am_cv_python_pythondir in
2003 $am_py_prefix*)
2004 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
2005 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
2006 ;;
2007 *)
2008 case $am_py_prefix in
2009 /usr|/System*) ;;
2010 *)
2011 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
2012 ;;
2013 esac
2014 ;;
2015 esac
2016
2017fi
2018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
2019$as_echo "$am_cv_python_pythondir" >&6; }
2020 pythondir=$am_cv_python_pythondir
2021
2022
2023
2024 pkgpythondir=\${pythondir}/$PACKAGE
2025
2026
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
2028$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
2029if ${am_cv_python_pyexecdir+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031else
2032 if test "x$exec_prefix" = xNONE
2033 then
2034 am_py_exec_prefix=$am_py_prefix
2035 else
2036 am_py_exec_prefix=$exec_prefix
2037 fi
2038 am_cv_python_pyexecdir=`$PYTHON -c "
2039$am_python_setup_sysconfig
2040if can_use_sysconfig:
2041 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
2042else:
2043 from distutils import sysconfig
2044 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
2045sys.stdout.write(sitedir)"`
2046 case $am_cv_python_pyexecdir in
2047 $am_py_exec_prefix*)
2048 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
2049 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
2050 ;;
2051 *)
2052 case $am_py_exec_prefix in
2053 /usr|/System*) ;;
2054 *)
2055 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
2056 ;;
2057 esac
2058 ;;
2059 esac
2060
2061fi
2062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
2063$as_echo "$am_cv_python_pyexecdir" >&6; }
2064 pyexecdir=$am_cv_python_pyexecdir
2065
2066
2067
2068 pkgpyexecdir=\${pyexecdir}/$PACKAGE
2069
2070
2071
2072 fi
2073
2074
2075
2076 if test -z $PYTHON;
2077 then
Tim Edwards238499f2021-05-17 16:34:13 -04002078 if test -z "";
2079 then
2080 PYTHON="python3"
2081 else
2082 PYTHON=""
2083 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002084 fi
2085 PYTHON_NAME=`basename $PYTHON`
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: distutils" >&5
2087$as_echo_n "checking $PYTHON_NAME module: distutils... " >&6; }
Tim Edwards238499f2021-05-17 16:34:13 -04002088 $PYTHON -c "import distutils" 2>/dev/null
2089 if test $? -eq 0;
2090 then
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002092$as_echo "yes" >&6; }
Tim Edwards238499f2021-05-17 16:34:13 -04002093 eval HAVE_PYMOD_DISTUTILS=yes
2094 else
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002096$as_echo "no" >&6; }
Tim Edwards238499f2021-05-17 16:34:13 -04002097 eval HAVE_PYMOD_DISTUTILS=no
2098 #
2099 if test -n ""
2100 then
2101 as_fn_error $? "failed to find required module distutils" "$LINENO" 5
2102 exit 1
2103 fi
2104 fi
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002105
2106
Tim Edwards665c3fd2021-05-02 20:20:27 -04002107# Check for Mac OS X gsed vs. sed
2108
2109
2110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2111$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2112if ${ac_cv_path_SED+:} false; then :
2113 $as_echo_n "(cached) " >&6
2114else
2115 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2116 for ac_i in 1 2 3 4 5 6 7; do
2117 ac_script="$ac_script$as_nl$ac_script"
2118 done
2119 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2120 { ac_script=; unset ac_script;}
2121 if test -z "$SED"; then
2122 ac_path_SED_found=false
2123 # Loop through the user's path and test for each of PROGNAME-LIST
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_prog in sed gsed; do
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2132 as_fn_executable_p "$ac_path_SED" || continue
2133# Check for GNU ac_path_SED and select it if it is found.
2134 # Check for GNU $ac_path_SED
2135case `"$ac_path_SED" --version 2>&1` in
2136*GNU*)
2137 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2138*)
2139 ac_count=0
2140 $as_echo_n 0123456789 >"conftest.in"
2141 while :
2142 do
2143 cat "conftest.in" "conftest.in" >"conftest.tmp"
2144 mv "conftest.tmp" "conftest.in"
2145 cp "conftest.in" "conftest.nl"
2146 $as_echo '' >> "conftest.nl"
2147 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2149 as_fn_arith $ac_count + 1 && ac_count=$as_val
2150 if test $ac_count -gt ${ac_path_SED_max-0}; then
2151 # Best one so far, save it but keep looking for a better one
2152 ac_cv_path_SED="$ac_path_SED"
2153 ac_path_SED_max=$ac_count
2154 fi
2155 # 10*(2^10) chars as input seems more than enough
2156 test $ac_count -gt 10 && break
2157 done
2158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2159esac
2160
2161 $ac_path_SED_found && break 3
2162 done
2163 done
2164 done
2165IFS=$as_save_IFS
2166 if test -z "$ac_cv_path_SED"; then
2167 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2168 fi
2169else
2170 ac_cv_path_SED=$SED
2171fi
2172
2173fi
2174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2175$as_echo "$ac_cv_path_SED" >&6; }
2176 SED="$ac_cv_path_SED"
2177 rm -f conftest.sed
2178
2179
2180
Tim Edwards66e53e52021-01-24 21:21:36 -05002181realpath() {
2182 # Cross-platform, handles ~
2183 python3 -c 'import os,sys;print(os.path.realpath(os.path.expanduser(sys.argv[1])))' $1
2184}
2185
2186# detect PDKs based on directories that include Makefile.in files
2187
2188
2189# define tools
2190# define tools to install setup files for. This does not imply that the tools are
2191# available on the system; just that open_pdks will install the setup files for them.
Tim Edwards66e53e52021-01-24 21:21:36 -05002192
2193
Tim Edwards66e53e52021-01-24 21:21:36 -05002194# check for the source and install paths for each PDK.
2195
2196
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: Found technology directories: sky130" >&5
2198$as_echo "$as_me: Found technology directories: sky130" >&6;}
2199
2200
2201
2202 # --enable-pdk-[pdk]=/path/to/pdk
2203
Tim Edwards1168a8b2021-02-10 22:06:54 -05002204 echo "Checking technology sky130..."
Tim Edwards66e53e52021-01-24 21:21:36 -05002205
2206
2207 SKY130_SOURCE_PATH=""
Tim Edwards7e0a6442021-02-11 15:37:42 -05002208 SKY130_LOCAL_PATH="/usr/share/pdk"
Tim Edwards66e53e52021-01-24 21:21:36 -05002209 SKY130_DIST_PATH=""
2210 SKY130_LINK_TARGETS="none"
Tim Edwards7e0a6442021-02-11 15:37:42 -05002211 SKY130_AUTO="0"
Tim Edwards66e53e52021-01-24 21:21:36 -05002212
2213 # Check whether --enable-sky130-sky130 was given.
2214if test "${enable_sky130_pdk+set}" = set; then :
2215 enableval=$enable_sky130_pdk;
2216 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002217 export SKY130_SOURCE_PATH=../sources/sky130-pdk
2218 SKY130_AUTO="1"
Tim Edwards66e53e52021-01-24 21:21:36 -05002219 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2220 echo "Disabling sky130..."
2221 else
2222 SKY130_SOURCE_PATH=$enableval
2223 fi
2224
Tim Edwards66e53e52021-01-24 21:21:36 -05002225fi
2226
2227 # # Require this argument
2228
2229 if [ "$SKY130_SOURCE_PATH" != "" ]; then
2230 SKY130_SOURCE_PATH=`realpath $SKY130_SOURCE_PATH`
2231 SKY130_BASENAME=`basename $SKY130_SOURCE_PATH`
2232 if [ "$SKY130_BASENAME" = "libraries" ]; then
2233 SKY130_SOURCE_PATH=`dirname $SKY130_SOURCE_PATH`
2234 fi
Tim Edwards6ee11532021-02-11 12:29:33 -05002235 # Basic check that the PDK path exists, unless depending on Makefile
2236 # to download it automatically.
Tim Edwards7e0a6442021-02-11 15:37:42 -05002237 if [ "$SKY130_AUTO" = "0" ]; then
Tim Edwards6ee11532021-02-11 12:29:33 -05002238 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&5
Tim Edwards66e53e52021-01-24 21:21:36 -05002239$as_echo "$as_me: Checking specified path for 'sky130' at $SKY130_SOURCE_PATH" >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002240 as_ac_File=`$as_echo "ac_cv_file_$SKY130_SOURCE_PATH" | $as_tr_sh`
Tim Edwards66e53e52021-01-24 21:21:36 -05002241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SKY130_SOURCE_PATH" >&5
2242$as_echo_n "checking for $SKY130_SOURCE_PATH... " >&6; }
2243if eval \${$as_ac_File+:} false; then :
2244 $as_echo_n "(cached) " >&6
2245else
2246 test "$cross_compiling" = yes &&
2247 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2248if test -r "$SKY130_SOURCE_PATH"; then
2249 eval "$as_ac_File=yes"
2250else
2251 eval "$as_ac_File=no"
2252fi
2253fi
2254eval ac_res=\$$as_ac_File
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2256$as_echo "$ac_res" >&6; }
2257if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
2258
Tim Edwards6ee11532021-02-11 12:29:33 -05002259 { $as_echo "$as_me:${as_lineno-$LINENO}: 'sky130' source path found at $SKY130_SOURCE_PATH" >&5
Tim Edwards66e53e52021-01-24 21:21:36 -05002260$as_echo "$as_me: 'sky130' source path found at $SKY130_SOURCE_PATH" >&6;}
2261
2262else
2263
Tim Edwards6ee11532021-02-11 12:29:33 -05002264 as_fn_error $? "Specified path for 'sky130' at $SKY130_SOURCE_PATH not found" "$LINENO" 5
Tim Edwards66e53e52021-01-24 21:21:36 -05002265
2266fi
2267
Tim Edwards6ee11532021-02-11 12:29:33 -05002268 else
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: PDK 'sky130' will be downloaded automatically during make." >&5
2270$as_echo "$as_me: PDK 'sky130' will be downloaded automatically during make." >&6;}
2271 fi
Tim Edwards66e53e52021-01-24 21:21:36 -05002272
Tim Edwards66e53e52021-01-24 21:21:36 -05002273 # --with-pdk-dist-path=PDK_DIST_PATH
2274
2275# Check whether --with-sky130-dist-path was given.
2276if test "${with_sky130_dist_path+set}" = set; then :
2277 withval=$with_sky130_dist_path; SKY130_DIST_PATH=$withval
2278
2279fi
2280
2281
Tim Edwards66e53e52021-01-24 21:21:36 -05002282 # "Require" this argument
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether distribution path is specified for 'sky130'" >&5
2284$as_echo "$as_me: Checking whether distribution path is specified for 'sky130'" >&6;}
2285 if test "x$SKY130_DIST_PATH" == "x" ; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: Option --with-sky130-dist-path=<path> not specified. Local install only." >&5
2287$as_echo "$as_me: Option --with-sky130-dist-path=<path> not specified. Local install only." >&6;}
2288 SKY130_DIST_PATH=""
2289 else
2290 SKY130_DIST_PATH=`realpath $SKY130_DIST_PATH`
2291 fi
2292
Tim Edwards290487a2021-05-17 09:57:30 -04002293 # --with-pdk-local-path=PDK_LOCAL_PATH
2294
2295# Check whether --with-sky130-local-path was given.
2296if test "${with_sky130_local_path+set}" = set; then :
2297 withval=$with_sky130_local_path; SKY130_LOCAL_PATH=$withval
2298
2299fi
2300
2301
2302 # Require this argument
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking whether local path is specified for 'sky130'" >&5
2304$as_echo "$as_me: Checking whether local path is specified for 'sky130'" >&6;}
2305 if test "x$SKY130_LOCAL_PATH" == "x" ; then
2306 as_fn_error $? "Option --with-sky130-local-path=<path> not specified!" "$LINENO" 5
2307 SKY130_LOCAL_PATH=""
2308 else
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: Install path for 'sky130' is $SKY130_LOCAL_PATH" >&5
2310$as_echo "$as_me: Install path for 'sky130' is $SKY130_LOCAL_PATH" >&6;}
2311 # If dist-path is specified then do not try to expand local-path
2312 if test "$SKY130_DIST_PATH" == "" ; then
2313 SKY130_LOCAL_PATH=`realpath $SKY130_LOCAL_PATH`
2314 fi
2315 fi
2316
Tim Edwards66e53e52021-01-24 21:21:36 -05002317 # --with-pdk-link-targets=PDK_LINK_TARGETS
2318
2319# Check whether --with-sky130-link-targets was given.
2320if test "${with_sky130_link_targets+set}" = set; then :
2321 withval=$with_sky130_link_targets; SKY130_LINK_TARGETS=$with_sky130_link_targets
2322
2323fi
2324
2325
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: Link targets set to $SKY130_LINK_TARGETS" >&5
2327$as_echo "$as_me: Link targets set to $SKY130_LINK_TARGETS" >&6;}
2328 fi
2329
2330
2331
2332
2333
2334
2335
2336
2337# Set variables for tool setups
2338
2339
Tim Edwards1168a8b2021-02-10 22:06:54 -05002340{ $as_echo "$as_me:${as_lineno-$LINENO}: Found tools: klayout magic netgen irsim openlane qflow xschem" >&5
2341$as_echo "$as_me: Found tools: klayout magic netgen irsim openlane qflow xschem" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002342
2343
2344
2345
2346
2347 KLAYOUT_DISABLED=0
2348 # Check whether --enable-klayout was given.
2349if test "${enable_klayout+set}" = set; then :
2350 enableval=$enable_klayout;
2351 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2352 KLAYOUT_DISABLED=1
2353 fi
2354
2355
2356fi
2357
2358
2359
2360
2361
2362 MAGIC_DISABLED=0
2363 # Check whether --enable-magic was given.
2364if test "${enable_magic+set}" = set; then :
2365 enableval=$enable_magic;
2366 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2367 MAGIC_DISABLED=1
2368 fi
2369
2370
2371fi
2372
2373
2374
2375
2376
2377 NETGEN_DISABLED=0
2378 # Check whether --enable-netgen was given.
2379if test "${enable_netgen+set}" = set; then :
2380 enableval=$enable_netgen;
2381 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2382 NETGEN_DISABLED=1
2383 fi
2384
2385
2386fi
2387
2388
2389
2390
2391
Tim Edwards367711e2021-01-27 10:35:12 -05002392 IRSIM_DISABLED=0
2393 # Check whether --enable-irsim was given.
2394if test "${enable_irsim+set}" = set; then :
2395 enableval=$enable_irsim;
2396 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2397 IRSIM_DISABLED=1
2398 fi
2399
2400
2401fi
2402
2403
2404
2405
2406
Tim Edwards66e53e52021-01-24 21:21:36 -05002407 OPENLANE_DISABLED=0
2408 # Check whether --enable-openlane was given.
2409if test "${enable_openlane+set}" = set; then :
2410 enableval=$enable_openlane;
2411 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2412 OPENLANE_DISABLED=1
2413 fi
2414
2415
2416fi
2417
2418
2419
2420
2421
2422 QFLOW_DISABLED=0
2423 # Check whether --enable-qflow was given.
2424if test "${enable_qflow+set}" = set; then :
2425 enableval=$enable_qflow;
2426 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2427 QFLOW_DISABLED=1
2428 fi
2429
2430
2431fi
2432
2433
2434
2435
2436
Tim Edwards1168a8b2021-02-10 22:06:54 -05002437 XSCHEM_DISABLED=0
2438 # Check whether --enable-xschem was given.
2439if test "${enable_xschem+set}" = set; then :
2440 enableval=$enable_xschem;
2441 if test "$enableval" == "no" -o "$enableval" == "NO"; then
2442 XSCHEM_DISABLED=1
2443 fi
2444
2445
2446fi
2447
2448
2449
2450
2451
Tim Edwards66e53e52021-01-24 21:21:36 -05002452# Magic
2453# Extract the first word of "magic", so it can be a program name with args.
2454set dummy magic; ac_word=$2
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456$as_echo_n "checking for $ac_word... " >&6; }
2457if ${ac_cv_path_MAGIC+:} false; then :
2458 $as_echo_n "(cached) " >&6
2459else
2460 case $MAGIC in
2461 [\\/]* | ?:[\\/]*)
2462 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
2463 ;;
2464 *)
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472 ac_cv_path_MAGIC="$as_dir/$ac_word$ac_exec_ext"
2473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2475 fi
2476done
2477 done
2478IFS=$as_save_IFS
2479
2480 ;;
2481esac
2482fi
2483MAGIC=$ac_cv_path_MAGIC
2484if test -n "$MAGIC"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC" >&5
2486$as_echo "$MAGIC" >&6; }
2487else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489$as_echo "no" >&6; }
2490fi
2491
2492
2493if test -z "$MAGIC"; then
2494 as_fn_error $? "You need 'magic' to generate the needed various cell views." "$LINENO" 5
2495fi
2496# Extract the first word of "patch", so it can be a program name with args.
2497set dummy patch; ac_word=$2
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499$as_echo_n "checking for $ac_word... " >&6; }
2500if ${ac_cv_path_PATCH+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502else
2503 case $PATCH in
2504 [\\/]* | ?:[\\/]*)
2505 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
2506 ;;
2507 *)
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519done
2520 done
2521IFS=$as_save_IFS
2522
2523 ;;
2524esac
2525fi
2526PATCH=$ac_cv_path_PATCH
2527if test -n "$PATCH"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
2529$as_echo "$PATCH" >&6; }
2530else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532$as_echo "no" >&6; }
2533fi
2534
2535
2536if test -z "$PATCH"; then
2537 as_fn_error $? "You need 'patch' to apply patches." "$LINENO" 5
2538fi
2539
2540# Other installations (libraries or tools if applicable)
Tim Edwards66e53e52021-01-24 21:21:36 -05002541
2542
Tim Edwardscdfec5e2021-04-22 20:59:13 -04002543# Optional installations (like the above, but disabled by default)
Tim Edwardscfe970c2021-02-26 14:35:51 -05002544
2545
2546
2547
2548
2549
2550
2551
2552 # echo target targetvar flag location
2553
Tim Edwards66e53e52021-01-24 21:21:36 -05002554 SKY130_ML_XX_HD_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002555
Tim Edwards1168a8b2021-02-10 22:06:54 -05002556 # Check whether --enable-alpha-sky130 was given.
2557if test "${enable_alpha_sky130+set}" = set; then :
2558 enableval=$enable_alpha_sky130;
Tim Edwards66e53e52021-01-24 21:21:36 -05002559 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002560 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&5
2561$as_echo "$as_me: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002562 export SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd
Tim Edwards66e53e52021-01-24 21:21:36 -05002563 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002564 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_ml_xx_hd'" >&5
2565$as_echo "$as_me: Disabling package 'sky130_ml_xx_hd'" >&6;}
2566 export SKY130_ML_XX_HD_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002567 else
2568 SKY130_ML_XX_HD_PATH=$enableval
Tim Edwards7e0a6442021-02-11 15:37:42 -05002569 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&5
2570$as_echo "$as_me: Enabling package 'sky130_ml_xx_hd' at $SKY130_ML_XX_HD_PATH" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002571 fi
2572 SKY130_ML_XX_HD_PATH=`realpath $SKY130_ML_XX_HD_PATH`
2573
Tim Edwards7e0a6442021-02-11 15:37:42 -05002574else
2575
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&5
2577$as_echo "$as_me: Package 'sky130_ml_xx_hd' will be installed automatically during make." >&6;}
2578 SKY130_ML_XX_HD_PATH=../sources/sky130_ml_xx_hd
2579
2580
Tim Edwards66e53e52021-01-24 21:21:36 -05002581fi
2582
2583
2584
2585
2586
2587
2588
Tim Edwards66e53e52021-01-24 21:21:36 -05002589
2590
2591
2592
2593
Tim Edwards6ee11532021-02-11 12:29:33 -05002594 # echo target targetvar flag location
Tim Edwards66e53e52021-01-24 21:21:36 -05002595
Tim Edwards1168a8b2021-02-10 22:06:54 -05002596 XSCHEM_SKY130_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002597
Tim Edwards1168a8b2021-02-10 22:06:54 -05002598 # Check whether --enable-xschem-sky130 was given.
2599if test "${enable_xschem_sky130+set}" = set; then :
2600 enableval=$enable_xschem_sky130;
Tim Edwards66e53e52021-01-24 21:21:36 -05002601 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002602 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'xschem_sky130' will be installed automatically during make." >&5
2603$as_echo "$as_me: Package 'xschem_sky130' will be installed automatically during make." >&6;}
Tim Edwards6ee11532021-02-11 12:29:33 -05002604 export XSCHEM_SKY130_PATH=../sources/xschem_sky130
Tim Edwards66e53e52021-01-24 21:21:36 -05002605 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
Tim Edwards7e0a6442021-02-11 15:37:42 -05002606 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'xschem_sky130'" >&5
2607$as_echo "$as_me: Disabling package 'xschem_sky130'" >&6;}
2608 export XSCHEM_SKY130_PATH=""
Tim Edwards66e53e52021-01-24 21:21:36 -05002609 else
Tim Edwards1168a8b2021-02-10 22:06:54 -05002610 XSCHEM_SKY130_PATH=$enableval
Tim Edwards7e0a6442021-02-11 15:37:42 -05002611 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&5
2612$as_echo "$as_me: Enabling package 'xschem_sky130' at $XSCHEM_SKY130_PATH" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002613 fi
Tim Edwards1168a8b2021-02-10 22:06:54 -05002614 XSCHEM_SKY130_PATH=`realpath $XSCHEM_SKY130_PATH`
Tim Edwards66e53e52021-01-24 21:21:36 -05002615
Tim Edwards7e0a6442021-02-11 15:37:42 -05002616else
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'xschem_sky130' will be installed automatically during make." >&5
2619$as_echo "$as_me: Package 'xschem_sky130' will be installed automatically during make." >&6;}
2620 XSCHEM_SKY130_PATH=../sources/xschem_sky130
2621
2622
Tim Edwards66e53e52021-01-24 21:21:36 -05002623fi
2624
2625
2626
2627
2628
Tim Edwards66e53e52021-01-24 21:21:36 -05002629
2630
2631
2632
Tim Edwardscdfec5e2021-04-22 20:59:13 -04002633
2634
2635
2636
2637 # echo target targetvar flag location
2638
2639 SKY130_SRAM_MACROS_PATH=""
2640
2641 # Check whether --enable-sram-sky130 was given.
2642if test "${enable_sram_sky130+set}" = set; then :
2643 enableval=$enable_sram_sky130;
2644 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_sram_macros' will be installed automatically during make." >&5
2646$as_echo "$as_me: Package 'sky130_sram_macros' will be installed automatically during make." >&6;}
2647 export SKY130_SRAM_MACROS_PATH=../sources/sky130_sram_macros
2648 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_sram_macros'" >&5
2650$as_echo "$as_me: Disabling package 'sky130_sram_macros'" >&6;}
2651 export SKY130_SRAM_MACROS_PATH=""
2652 else
2653 SKY130_SRAM_MACROS_PATH=$enableval
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_sram_macros' at $SKY130_SRAM_MACROS_PATH" >&5
2655$as_echo "$as_me: Enabling package 'sky130_sram_macros' at $SKY130_SRAM_MACROS_PATH" >&6;}
2656 fi
2657 SKY130_SRAM_MACROS_PATH=`realpath $SKY130_SRAM_MACROS_PATH`
2658
2659else
2660
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_sram_macros' will not be installed." >&5
2662$as_echo "$as_me: Package 'sky130_sram_macros' will not be installed." >&6;}
2663
2664
2665fi
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678 # echo target targetvar flag location
2679
2680 SKY130_OSU_PATH=""
2681
2682 # Check whether --enable-osu-sky130 was given.
2683if test "${enable_osu_sky130+set}" = set; then :
2684 enableval=$enable_osu_sky130;
2685 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu' will be installed automatically during make." >&5
2687$as_echo "$as_me: Package 'sky130_osu' will be installed automatically during make." >&6;}
2688 export SKY130_OSU_PATH=../sources/sky130_osu
2689 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu'" >&5
2691$as_echo "$as_me: Disabling package 'sky130_osu'" >&6;}
2692 export SKY130_OSU_PATH=""
2693 else
2694 SKY130_OSU_PATH=$enableval
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu' at $SKY130_OSU_PATH" >&5
2696$as_echo "$as_me: Enabling package 'sky130_osu' at $SKY130_OSU_PATH" >&6;}
2697 fi
2698 SKY130_OSU_PATH=`realpath $SKY130_OSU_PATH`
2699
2700else
2701
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu' will not be installed." >&5
2703$as_echo "$as_me: Package 'sky130_osu' will not be installed." >&6;}
2704
2705
2706fi
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719 # echo target targetvar flag location
2720
2721 SKY130_OSU_T12_PATH=""
2722
2723 # Check whether --enable-osu-t12-sky130 was given.
2724if test "${enable_osu_t12_sky130+set}" = set; then :
2725 enableval=$enable_osu_t12_sky130;
2726 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t12' will be installed automatically during make." >&5
2728$as_echo "$as_me: Package 'sky130_osu_t12' will be installed automatically during make." >&6;}
2729 export SKY130_OSU_T12_PATH=../sources/sky130_osu_t12
2730 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t12'" >&5
2732$as_echo "$as_me: Disabling package 'sky130_osu_t12'" >&6;}
2733 export SKY130_OSU_T12_PATH=""
2734 else
2735 SKY130_OSU_T12_PATH=$enableval
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t12' at $SKY130_OSU_T12_PATH" >&5
2737$as_echo "$as_me: Enabling package 'sky130_osu_t12' at $SKY130_OSU_T12_PATH" >&6;}
2738 fi
2739 SKY130_OSU_T12_PATH=`realpath $SKY130_OSU_T12_PATH`
2740
2741else
2742
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t12' will not be installed." >&5
2744$as_echo "$as_me: Package 'sky130_osu_t12' will not be installed." >&6;}
2745
2746
2747fi
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760 # echo target targetvar flag location
2761
2762 SKY130_OSU_T15_PATH=""
2763
2764 # Check whether --enable-osu-t15-sky130 was given.
2765if test "${enable_osu_t15_sky130+set}" = set; then :
2766 enableval=$enable_osu_t15_sky130;
2767 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t15' will be installed automatically during make." >&5
2769$as_echo "$as_me: Package 'sky130_osu_t15' will be installed automatically during make." >&6;}
2770 export SKY130_OSU_T15_PATH=../sources/sky130_osu_t15
2771 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t15'" >&5
2773$as_echo "$as_me: Disabling package 'sky130_osu_t15'" >&6;}
2774 export SKY130_OSU_T15_PATH=""
2775 else
2776 SKY130_OSU_T15_PATH=$enableval
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t15' at $SKY130_OSU_T15_PATH" >&5
2778$as_echo "$as_me: Enabling package 'sky130_osu_t15' at $SKY130_OSU_T15_PATH" >&6;}
2779 fi
2780 SKY130_OSU_T15_PATH=`realpath $SKY130_OSU_T15_PATH`
2781
2782else
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t15' will not be installed." >&5
2785$as_echo "$as_me: Package 'sky130_osu_t15' will not be installed." >&6;}
2786
2787
2788fi
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801 # echo target targetvar flag location
2802
2803 SKY130_OSU_T18_PATH=""
2804
2805 # Check whether --enable-osu-t18-sky130 was given.
2806if test "${enable_osu_t18_sky130+set}" = set; then :
2807 enableval=$enable_osu_t18_sky130;
2808 if test "$enableval" == "yes" -o "$enableval" == "YES"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t18' will be installed automatically during make." >&5
2810$as_echo "$as_me: Package 'sky130_osu_t18' will be installed automatically during make." >&6;}
2811 export SKY130_OSU_T18_PATH=../sources/sky130_osu_t18
2812 elif test "$enableval" == "no" -o "$enableval" == "NO"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling package 'sky130_osu_t18'" >&5
2814$as_echo "$as_me: Disabling package 'sky130_osu_t18'" >&6;}
2815 export SKY130_OSU_T18_PATH=""
2816 else
2817 SKY130_OSU_T18_PATH=$enableval
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling package 'sky130_osu_t18' at $SKY130_OSU_T18_PATH" >&5
2819$as_echo "$as_me: Enabling package 'sky130_osu_t18' at $SKY130_OSU_T18_PATH" >&6;}
2820 fi
2821 SKY130_OSU_T18_PATH=`realpath $SKY130_OSU_T18_PATH`
2822
2823else
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: Package 'sky130_osu_t18' will not be installed." >&5
2826$as_echo "$as_me: Package 'sky130_osu_t18' will not be installed." >&6;}
2827
2828
2829fi
2830
2831
2832
2833
2834
2835
2836
2837
2838
Tim Edwards1168a8b2021-02-10 22:06:54 -05002839{ $as_echo "$as_me:${as_lineno-$LINENO}: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&5
2840$as_echo "$as_me: Tools enabled for PDK setup installation: klayout magic netgen irsim openlane qflow xschem" >&6;}
Tim Edwards66e53e52021-01-24 21:21:36 -05002841
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002842# Check for "--with-ef-style"
2843EF_STYLE=0
2844
2845# Check whether --with-ef-style was given.
2846if test "${with_ef_style+set}" = set; then :
2847 withval=$with_ef_style;
Tim Edwards8292c902020-12-24 16:25:25 -05002848 pdks_ef_style=$withval
2849 if test "$withval" == "yes" -o "$withval" == "YES"; then
2850 EF_STYLE=1
2851 fi
Tim Edwards7cbaaba2020-08-05 12:19:18 -04002852
2853fi
2854
2855
Ahmed Ghazy6dc7ebf2020-07-29 16:52:14 +02002856
2857
2858MAKEFILES=$(find .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g')
2859ac_config_files="$ac_config_files $MAKEFILES"
2860
2861
2862cat >confcache <<\_ACEOF
2863# This file is a shell script that caches the results of configure
2864# tests run on this system so they can be shared between configure
2865# scripts and configure runs, see configure's option --config-cache.
2866# It is not useful on other systems. If it contains results you don't
2867# want to keep, you may remove or edit it.
2868#
2869# config.status only pays attention to the cache file if you give it
2870# the --recheck option to rerun configure.
2871#
2872# `ac_cv_env_foo' variables (set or unset) will be overridden when
2873# loading this file, other *unset* `ac_cv_foo' will be assigned the
2874# following values.
2875
2876_ACEOF
2877
2878# The following way of writing the cache mishandles newlines in values,
2879# but we know of no workaround that is simple, portable, and efficient.
2880# So, we kill variables containing newlines.
2881# Ultrix sh set writes to stderr and can't be redirected directly,
2882# and sets the high bit in the cache file unless we assign to the vars.
2883(
2884 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2885 eval ac_val=\$$ac_var
2886 case $ac_val in #(
2887 *${as_nl}*)
2888 case $ac_var in #(
2889 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2890$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2891 esac
2892 case $ac_var in #(
2893 _ | IFS | as_nl) ;; #(
2894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2895 *) { eval $ac_var=; unset $ac_var;} ;;
2896 esac ;;
2897 esac
2898 done
2899
2900 (set) 2>&1 |
2901 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2902 *${as_nl}ac_space=\ *)
2903 # `set' does not quote correctly, so add quotes: double-quote
2904 # substitution turns \\\\ into \\, and sed turns \\ into \.
2905 sed -n \
2906 "s/'/'\\\\''/g;
2907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2908 ;; #(
2909 *)
2910 # `set' quotes correctly as required by POSIX, so do not add quotes.
2911 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2912 ;;
2913 esac |
2914 sort
2915) |
2916 sed '
2917 /^ac_cv_env_/b end
2918 t clear
2919 :clear
2920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2921 t end
2922 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2923 :end' >>confcache
2924if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2925 if test -w "$cache_file"; then
2926 if test "x$cache_file" != "x/dev/null"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2928$as_echo "$as_me: updating cache $cache_file" >&6;}
2929 if test ! -f "$cache_file" || test -h "$cache_file"; then
2930 cat confcache >"$cache_file"
2931 else
2932 case $cache_file in #(
2933 */* | ?:*)
2934 mv -f confcache "$cache_file"$$ &&
2935 mv -f "$cache_file"$$ "$cache_file" ;; #(
2936 *)
2937 mv -f confcache "$cache_file" ;;
2938 esac
2939 fi
2940 fi
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2943$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2944 fi
2945fi
2946rm -f confcache
2947
2948test "x$prefix" = xNONE && prefix=$ac_default_prefix
2949# Let make expand exec_prefix.
2950test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2951
2952# Transform confdefs.h into DEFS.
2953# Protect against shell expansion while executing Makefile rules.
2954# Protect against Makefile macro expansion.
2955#
2956# If the first sed substitution is executed (which looks for macros that
2957# take arguments), then branch to the quote section. Otherwise,
2958# look for a macro that doesn't take arguments.
2959ac_script='
2960:mline
2961/\\$/{
2962 N
2963 s,\\\n,,
2964 b mline
2965}
2966t clear
2967:clear
2968s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2969t quote
2970s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2971t quote
2972b any
2973:quote
2974s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2975s/\[/\\&/g
2976s/\]/\\&/g
2977s/\$/$$/g
2978H
2979:any
2980${
2981 g
2982 s/^\n//
2983 s/\n/ /g
2984 p
2985}
2986'
2987DEFS=`sed -n "$ac_script" confdefs.h`
2988
2989
2990ac_libobjs=
2991ac_ltlibobjs=
2992U=
2993for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2994 # 1. Remove the extension, and $U if already installed.
2995 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2996 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2998 # will be set to the directory where LIBOBJS objects are built.
2999 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3000 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3001done
3002LIBOBJS=$ac_libobjs
3003
3004LTLIBOBJS=$ac_ltlibobjs
3005
3006
3007
3008: "${CONFIG_STATUS=./config.status}"
3009ac_write_fail=0
3010ac_clean_files_save=$ac_clean_files
3011ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3013$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3014as_write_fail=0
3015cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3016#! $SHELL
3017# Generated by $as_me.
3018# Run this file to recreate the current configuration.
3019# Compiler output produced by configure, useful for debugging
3020# configure, is in config.log if it exists.
3021
3022debug=false
3023ac_cs_recheck=false
3024ac_cs_silent=false
3025
3026SHELL=\${CONFIG_SHELL-$SHELL}
3027export SHELL
3028_ASEOF
3029cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3030## -------------------- ##
3031## M4sh Initialization. ##
3032## -------------------- ##
3033
3034# Be more Bourne compatible
3035DUALCASE=1; export DUALCASE # for MKS sh
3036if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3037 emulate sh
3038 NULLCMD=:
3039 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3040 # is contrary to our usage. Disable this feature.
3041 alias -g '${1+"$@"}'='"$@"'
3042 setopt NO_GLOB_SUBST
3043else
3044 case `(set -o) 2>/dev/null` in #(
3045 *posix*) :
3046 set -o posix ;; #(
3047 *) :
3048 ;;
3049esac
3050fi
3051
3052
3053as_nl='
3054'
3055export as_nl
3056# Printing a long string crashes Solaris 7 /usr/bin/printf.
3057as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3058as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3059as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3060# Prefer a ksh shell builtin over an external printf program on Solaris,
3061# but without wasting forks for bash or zsh.
3062if test -z "$BASH_VERSION$ZSH_VERSION" \
3063 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3064 as_echo='print -r --'
3065 as_echo_n='print -rn --'
3066elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3067 as_echo='printf %s\n'
3068 as_echo_n='printf %s'
3069else
3070 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3071 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3072 as_echo_n='/usr/ucb/echo -n'
3073 else
3074 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3075 as_echo_n_body='eval
3076 arg=$1;
3077 case $arg in #(
3078 *"$as_nl"*)
3079 expr "X$arg" : "X\\(.*\\)$as_nl";
3080 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3081 esac;
3082 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3083 '
3084 export as_echo_n_body
3085 as_echo_n='sh -c $as_echo_n_body as_echo'
3086 fi
3087 export as_echo_body
3088 as_echo='sh -c $as_echo_body as_echo'
3089fi
3090
3091# The user is always right.
3092if test "${PATH_SEPARATOR+set}" != set; then
3093 PATH_SEPARATOR=:
3094 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3095 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3096 PATH_SEPARATOR=';'
3097 }
3098fi
3099
3100
3101# IFS
3102# We need space, tab and new line, in precisely that order. Quoting is
3103# there to prevent editors from complaining about space-tab.
3104# (If _AS_PATH_WALK were called with IFS unset, it would disable word
3105# splitting by setting IFS to empty value.)
3106IFS=" "" $as_nl"
3107
3108# Find who we are. Look in the path if we contain no directory separator.
3109as_myself=
3110case $0 in #((
3111 *[\\/]* ) as_myself=$0 ;;
3112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3118 done
3119IFS=$as_save_IFS
3120
3121 ;;
3122esac
3123# We did not find ourselves, most probably we were run as `sh COMMAND'
3124# in which case we are not to be found in the path.
3125if test "x$as_myself" = x; then
3126 as_myself=$0
3127fi
3128if test ! -f "$as_myself"; then
3129 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3130 exit 1
3131fi
3132
3133# Unset variables that we do not need and which cause bugs (e.g. in
3134# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3135# suppresses any "Segmentation fault" message there. '((' could
3136# trigger a bug in pdksh 5.2.14.
3137for as_var in BASH_ENV ENV MAIL MAILPATH
3138do eval test x\${$as_var+set} = xset \
3139 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3140done
3141PS1='$ '
3142PS2='> '
3143PS4='+ '
3144
3145# NLS nuisances.
3146LC_ALL=C
3147export LC_ALL
3148LANGUAGE=C
3149export LANGUAGE
3150
3151# CDPATH.
3152(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3153
3154
3155# as_fn_error STATUS ERROR [LINENO LOG_FD]
3156# ----------------------------------------
3157# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3158# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3159# script with STATUS, using 1 if that was 0.
3160as_fn_error ()
3161{
3162 as_status=$1; test $as_status -eq 0 && as_status=1
3163 if test "$4"; then
3164 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3165 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3166 fi
3167 $as_echo "$as_me: error: $2" >&2
3168 as_fn_exit $as_status
3169} # as_fn_error
3170
3171
3172# as_fn_set_status STATUS
3173# -----------------------
3174# Set $? to STATUS, without forking.
3175as_fn_set_status ()
3176{
3177 return $1
3178} # as_fn_set_status
3179
3180# as_fn_exit STATUS
3181# -----------------
3182# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3183as_fn_exit ()
3184{
3185 set +e
3186 as_fn_set_status $1
3187 exit $1
3188} # as_fn_exit
3189
3190# as_fn_unset VAR
3191# ---------------
3192# Portably unset VAR.
3193as_fn_unset ()
3194{
3195 { eval $1=; unset $1;}
3196}
3197as_unset=as_fn_unset
3198# as_fn_append VAR VALUE
3199# ----------------------
3200# Append the text in VALUE to the end of the definition contained in VAR. Take
3201# advantage of any shell optimizations that allow amortized linear growth over
3202# repeated appends, instead of the typical quadratic growth present in naive
3203# implementations.
3204if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3205 eval 'as_fn_append ()
3206 {
3207 eval $1+=\$2
3208 }'
3209else
3210 as_fn_append ()
3211 {
3212 eval $1=\$$1\$2
3213 }
3214fi # as_fn_append
3215
3216# as_fn_arith ARG...
3217# ------------------
3218# Perform arithmetic evaluation on the ARGs, and store the result in the
3219# global $as_val. Take advantage of shells that can avoid forks. The arguments
3220# must be portable across $(()) and expr.
3221if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3222 eval 'as_fn_arith ()
3223 {
3224 as_val=$(( $* ))
3225 }'
3226else
3227 as_fn_arith ()
3228 {
3229 as_val=`expr "$@" || test $? -eq 1`
3230 }
3231fi # as_fn_arith
3232
3233
3234if expr a : '\(a\)' >/dev/null 2>&1 &&
3235 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3236 as_expr=expr
3237else
3238 as_expr=false
3239fi
3240
3241if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3242 as_basename=basename
3243else
3244 as_basename=false
3245fi
3246
3247if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3248 as_dirname=dirname
3249else
3250 as_dirname=false
3251fi
3252
3253as_me=`$as_basename -- "$0" ||
3254$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3255 X"$0" : 'X\(//\)$' \| \
3256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3257$as_echo X/"$0" |
3258 sed '/^.*\/\([^/][^/]*\)\/*$/{
3259 s//\1/
3260 q
3261 }
3262 /^X\/\(\/\/\)$/{
3263 s//\1/
3264 q
3265 }
3266 /^X\/\(\/\).*/{
3267 s//\1/
3268 q
3269 }
3270 s/.*/./; q'`
3271
3272# Avoid depending upon Character Ranges.
3273as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3274as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3275as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3276as_cr_digits='0123456789'
3277as_cr_alnum=$as_cr_Letters$as_cr_digits
3278
3279ECHO_C= ECHO_N= ECHO_T=
3280case `echo -n x` in #(((((
3281-n*)
3282 case `echo 'xy\c'` in
3283 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3284 xy) ECHO_C='\c';;
3285 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
3286 ECHO_T=' ';;
3287 esac;;
3288*)
3289 ECHO_N='-n';;
3290esac
3291
3292rm -f conf$$ conf$$.exe conf$$.file
3293if test -d conf$$.dir; then
3294 rm -f conf$$.dir/conf$$.file
3295else
3296 rm -f conf$$.dir
3297 mkdir conf$$.dir 2>/dev/null
3298fi
3299if (echo >conf$$.file) 2>/dev/null; then
3300 if ln -s conf$$.file conf$$ 2>/dev/null; then
3301 as_ln_s='ln -s'
3302 # ... but there are two gotchas:
3303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3305 # In both cases, we have to default to `cp -pR'.
3306 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3307 as_ln_s='cp -pR'
3308 elif ln conf$$.file conf$$ 2>/dev/null; then
3309 as_ln_s=ln
3310 else
3311 as_ln_s='cp -pR'
3312 fi
3313else
3314 as_ln_s='cp -pR'
3315fi
3316rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3317rmdir conf$$.dir 2>/dev/null
3318
3319
3320# as_fn_mkdir_p
3321# -------------
3322# Create "$as_dir" as a directory, including parents if necessary.
3323as_fn_mkdir_p ()
3324{
3325
3326 case $as_dir in #(
3327 -*) as_dir=./$as_dir;;
3328 esac
3329 test -d "$as_dir" || eval $as_mkdir_p || {
3330 as_dirs=
3331 while :; do
3332 case $as_dir in #(
3333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3334 *) as_qdir=$as_dir;;
3335 esac
3336 as_dirs="'$as_qdir' $as_dirs"
3337 as_dir=`$as_dirname -- "$as_dir" ||
3338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3339 X"$as_dir" : 'X\(//\)[^/]' \| \
3340 X"$as_dir" : 'X\(//\)$' \| \
3341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3342$as_echo X"$as_dir" |
3343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3344 s//\1/
3345 q
3346 }
3347 /^X\(\/\/\)[^/].*/{
3348 s//\1/
3349 q
3350 }
3351 /^X\(\/\/\)$/{
3352 s//\1/
3353 q
3354 }
3355 /^X\(\/\).*/{
3356 s//\1/
3357 q
3358 }
3359 s/.*/./; q'`
3360 test -d "$as_dir" && break
3361 done
3362 test -z "$as_dirs" || eval "mkdir $as_dirs"
3363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3364
3365
3366} # as_fn_mkdir_p
3367if mkdir -p . 2>/dev/null; then
3368 as_mkdir_p='mkdir -p "$as_dir"'
3369else
3370 test -d ./-p && rmdir ./-p
3371 as_mkdir_p=false
3372fi
3373
3374
3375# as_fn_executable_p FILE
3376# -----------------------
3377# Test if FILE is an executable regular file.
3378as_fn_executable_p ()
3379{
3380 test -f "$1" && test -x "$1"
3381} # as_fn_executable_p
3382as_test_x='test -x'
3383as_executable_p=as_fn_executable_p
3384
3385# Sed expression to map a string onto a valid CPP name.
3386as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3387
3388# Sed expression to map a string onto a valid variable name.
3389as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3390
3391
3392exec 6>&1
3393## ----------------------------------- ##
3394## Main body of $CONFIG_STATUS script. ##
3395## ----------------------------------- ##
3396_ASEOF
3397test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3398
3399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3400# Save the log message, to keep $0 and so on meaningful, and to
3401# report actual input values of CONFIG_FILES etc. instead of their
3402# values after options handling.
3403ac_log="
3404This file was extended by open_pdks $as_me 1.0, which was
3405generated by GNU Autoconf 2.69. Invocation command line was
3406
3407 CONFIG_FILES = $CONFIG_FILES
3408 CONFIG_HEADERS = $CONFIG_HEADERS
3409 CONFIG_LINKS = $CONFIG_LINKS
3410 CONFIG_COMMANDS = $CONFIG_COMMANDS
3411 $ $0 $@
3412
3413on `(hostname || uname -n) 2>/dev/null | sed 1q`
3414"
3415
3416_ACEOF
3417
3418case $ac_config_files in *"
3419"*) set x $ac_config_files; shift; ac_config_files=$*;;
3420esac
3421
3422
3423
3424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3425# Files that config.status was made for.
3426config_files="$ac_config_files"
3427
3428_ACEOF
3429
3430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3431ac_cs_usage="\
3432\`$as_me' instantiates files and other configuration actions
3433from templates according to the current configuration. Unless the files
3434and actions are specified as TAGs, all are instantiated by default.
3435
3436Usage: $0 [OPTION]... [TAG]...
3437
3438 -h, --help print this help, then exit
3439 -V, --version print version number and configuration settings, then exit
3440 --config print configuration, then exit
3441 -q, --quiet, --silent
3442 do not print progress messages
3443 -d, --debug don't remove temporary files
3444 --recheck update $as_me by reconfiguring in the same conditions
3445 --file=FILE[:TEMPLATE]
3446 instantiate the configuration file FILE
3447
3448Configuration files:
3449$config_files
3450
3451Report bugs to <github.com/RTimothyEdwards/open_pdks>."
3452
3453_ACEOF
3454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3455ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3456ac_cs_version="\\
3457open_pdks config.status 1.0
3458configured by $0, generated by GNU Autoconf 2.69,
3459 with options \\"\$ac_cs_config\\"
3460
3461Copyright (C) 2012 Free Software Foundation, Inc.
3462This config.status script is free software; the Free Software Foundation
3463gives unlimited permission to copy, distribute and modify it."
3464
3465ac_pwd='$ac_pwd'
3466srcdir='$srcdir'
3467test -n "\$AWK" || AWK=awk
3468_ACEOF
3469
3470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3471# The default lists apply if the user does not specify any file.
3472ac_need_defaults=:
3473while test $# != 0
3474do
3475 case $1 in
3476 --*=?*)
3477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3478 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3479 ac_shift=:
3480 ;;
3481 --*=)
3482 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3483 ac_optarg=
3484 ac_shift=:
3485 ;;
3486 *)
3487 ac_option=$1
3488 ac_optarg=$2
3489 ac_shift=shift
3490 ;;
3491 esac
3492
3493 case $ac_option in
3494 # Handling of the options.
3495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3496 ac_cs_recheck=: ;;
3497 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3498 $as_echo "$ac_cs_version"; exit ;;
3499 --config | --confi | --conf | --con | --co | --c )
3500 $as_echo "$ac_cs_config"; exit ;;
3501 --debug | --debu | --deb | --de | --d | -d )
3502 debug=: ;;
3503 --file | --fil | --fi | --f )
3504 $ac_shift
3505 case $ac_optarg in
3506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
3507 '') as_fn_error $? "missing file argument" ;;
3508 esac
3509 as_fn_append CONFIG_FILES " '$ac_optarg'"
3510 ac_need_defaults=false;;
3511 --he | --h | --help | --hel | -h )
3512 $as_echo "$ac_cs_usage"; exit ;;
3513 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3514 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3515 ac_cs_silent=: ;;
3516
3517 # This is an error.
3518 -*) as_fn_error $? "unrecognized option: \`$1'
3519Try \`$0 --help' for more information." ;;
3520
3521 *) as_fn_append ac_config_targets " $1"
3522 ac_need_defaults=false ;;
3523
3524 esac
3525 shift
3526done
3527
3528ac_configure_extra_args=
3529
3530if $ac_cs_silent; then
3531 exec 6>/dev/null
3532 ac_configure_extra_args="$ac_configure_extra_args --silent"
3533fi
3534
3535_ACEOF
3536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3537if \$ac_cs_recheck; then
3538 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3539 shift
3540 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
3541 CONFIG_SHELL='$SHELL'
3542 export CONFIG_SHELL
3543 exec "\$@"
3544fi
3545
3546_ACEOF
3547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3548exec 5>>config.log
3549{
3550 echo
3551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3552## Running $as_me. ##
3553_ASBOX
3554 $as_echo "$ac_log"
3555} >&5
3556
3557_ACEOF
3558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3559_ACEOF
3560
3561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3562
3563# Handling of arguments.
3564for ac_config_target in $ac_config_targets
3565do
3566 case $ac_config_target in
3567 "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
3568
3569 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
3570 esac
3571done
3572
3573
3574# If the user did not use the arguments to specify the items to instantiate,
3575# then the envvar interface is used. Set only those that are not.
3576# We use the long form for the default assignment because of an extremely
3577# bizarre bug on SunOS 4.1.3.
3578if $ac_need_defaults; then
3579 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3580fi
3581
3582# Have a temporary directory for convenience. Make it in the build tree
3583# simply because there is no reason against having it here, and in addition,
3584# creating and moving files from /tmp can sometimes cause problems.
3585# Hook for its removal unless debugging.
3586# Note that there is a small window in which the directory will not be cleaned:
3587# after its creation but before its name has been assigned to `$tmp'.
3588$debug ||
3589{
3590 tmp= ac_tmp=
3591 trap 'exit_status=$?
3592 : "${ac_tmp:=$tmp}"
3593 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
3594' 0
3595 trap 'as_fn_exit 1' 1 2 13 15
3596}
3597# Create a (secure) tmp directory for tmp files.
3598
3599{
3600 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3601 test -d "$tmp"
3602} ||
3603{
3604 tmp=./conf$$-$RANDOM
3605 (umask 077 && mkdir "$tmp")
3606} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
3607ac_tmp=$tmp
3608
3609# Set up the scripts for CONFIG_FILES section.
3610# No need to generate them if there are no CONFIG_FILES.
3611# This happens for instance with `./config.status config.h'.
3612if test -n "$CONFIG_FILES"; then
3613
3614
3615ac_cr=`echo X | tr X '\015'`
3616# On cygwin, bash can eat \r inside `` if the user requested igncr.
3617# But we know of no other shell where ac_cr would be empty at this
3618# point, so we can use a bashism as a fallback.
3619if test "x$ac_cr" = x; then
3620 eval ac_cr=\$\'\\r\'
3621fi
3622ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3623if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3624 ac_cs_awk_cr='\\r'
3625else
3626 ac_cs_awk_cr=$ac_cr
3627fi
3628
3629echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3630_ACEOF
3631
3632
3633{
3634 echo "cat >conf$$subs.awk <<_ACEOF" &&
3635 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3636 echo "_ACEOF"
3637} >conf$$subs.sh ||
3638 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3639ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3640ac_delim='%!_!# '
3641for ac_last_try in false false false false false :; do
3642 . ./conf$$subs.sh ||
3643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3644
3645 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3646 if test $ac_delim_n = $ac_delim_num; then
3647 break
3648 elif $ac_last_try; then
3649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3650 else
3651 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3652 fi
3653done
3654rm -f conf$$subs.sh
3655
3656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3657cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3658_ACEOF
3659sed -n '
3660h
3661s/^/S["/; s/!.*/"]=/
3662p
3663g
3664s/^[^!]*!//
3665:repl
3666t repl
3667s/'"$ac_delim"'$//
3668t delim
3669:nl
3670h
3671s/\(.\{148\}\)..*/\1/
3672t more1
3673s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3674p
3675n
3676b repl
3677:more1
3678s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3679p
3680g
3681s/.\{148\}//
3682t nl
3683:delim
3684h
3685s/\(.\{148\}\)..*/\1/
3686t more2
3687s/["\\]/\\&/g; s/^/"/; s/$/"/
3688p
3689b
3690:more2
3691s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3692p
3693g
3694s/.\{148\}//
3695t delim
3696' <conf$$subs.awk | sed '
3697/^[^""]/{
3698 N
3699 s/\n//
3700}
3701' >>$CONFIG_STATUS || ac_write_fail=1
3702rm -f conf$$subs.awk
3703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3704_ACAWK
3705cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3706 for (key in S) S_is_set[key] = 1
3707 FS = ""
3708
3709}
3710{
3711 line = $ 0
3712 nfields = split(line, field, "@")
3713 substed = 0
3714 len = length(field[1])
3715 for (i = 2; i < nfields; i++) {
3716 key = field[i]
3717 keylen = length(key)
3718 if (S_is_set[key]) {
3719 value = S[key]
3720 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3721 len += length(value) + length(field[++i])
3722 substed = 1
3723 } else
3724 len += 1 + keylen
3725 }
3726
3727 print line
3728}
3729
3730_ACAWK
3731_ACEOF
3732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3733if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3734 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3735else
3736 cat
3737fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3738 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3739_ACEOF
3740
3741# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3742# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3743# trailing colons and then remove the whole line if VPATH becomes empty
3744# (actually we leave an empty line to preserve line numbers).
3745if test "x$srcdir" = x.; then
3746 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3747h
3748s///
3749s/^/:/
3750s/[ ]*$/:/
3751s/:\$(srcdir):/:/g
3752s/:\${srcdir}:/:/g
3753s/:@srcdir@:/:/g
3754s/^:*//
3755s/:*$//
3756x
3757s/\(=[ ]*\).*/\1/
3758G
3759s/\n//
3760s/^[^=]*=[ ]*$//
3761}'
3762fi
3763
3764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3765fi # test -n "$CONFIG_FILES"
3766
3767
3768eval set X " :F $CONFIG_FILES "
3769shift
3770for ac_tag
3771do
3772 case $ac_tag in
3773 :[FHLC]) ac_mode=$ac_tag; continue;;
3774 esac
3775 case $ac_mode$ac_tag in
3776 :[FHL]*:*);;
3777 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3778 :[FH]-) ac_tag=-:-;;
3779 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3780 esac
3781 ac_save_IFS=$IFS
3782 IFS=:
3783 set x $ac_tag
3784 IFS=$ac_save_IFS
3785 shift
3786 ac_file=$1
3787 shift
3788
3789 case $ac_mode in
3790 :L) ac_source=$1;;
3791 :[FH])
3792 ac_file_inputs=
3793 for ac_f
3794 do
3795 case $ac_f in
3796 -) ac_f="$ac_tmp/stdin";;
3797 *) # Look for the file first in the build tree, then in the source tree
3798 # (if the path is not absolute). The absolute path cannot be DOS-style,
3799 # because $ac_f cannot contain `:'.
3800 test -f "$ac_f" ||
3801 case $ac_f in
3802 [\\/$]*) false;;
3803 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3804 esac ||
3805 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3806 esac
3807 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3808 as_fn_append ac_file_inputs " '$ac_f'"
3809 done
3810
3811 # Let's still pretend it is `configure' which instantiates (i.e., don't
3812 # use $as_me), people would be surprised to read:
3813 # /* config.h. Generated by config.status. */
3814 configure_input='Generated from '`
3815 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3816 `' by configure.'
3817 if test x"$ac_file" != x-; then
3818 configure_input="$ac_file. $configure_input"
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3820$as_echo "$as_me: creating $ac_file" >&6;}
3821 fi
3822 # Neutralize special characters interpreted by sed in replacement strings.
3823 case $configure_input in #(
3824 *\&* | *\|* | *\\* )
3825 ac_sed_conf_input=`$as_echo "$configure_input" |
3826 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3827 *) ac_sed_conf_input=$configure_input;;
3828 esac
3829
3830 case $ac_tag in
3831 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3833 esac
3834 ;;
3835 esac
3836
3837 ac_dir=`$as_dirname -- "$ac_file" ||
3838$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3839 X"$ac_file" : 'X\(//\)[^/]' \| \
3840 X"$ac_file" : 'X\(//\)$' \| \
3841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3842$as_echo X"$ac_file" |
3843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3844 s//\1/
3845 q
3846 }
3847 /^X\(\/\/\)[^/].*/{
3848 s//\1/
3849 q
3850 }
3851 /^X\(\/\/\)$/{
3852 s//\1/
3853 q
3854 }
3855 /^X\(\/\).*/{
3856 s//\1/
3857 q
3858 }
3859 s/.*/./; q'`
3860 as_dir="$ac_dir"; as_fn_mkdir_p
3861 ac_builddir=.
3862
3863case "$ac_dir" in
3864.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3865*)
3866 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
3867 # A ".." for each directory in $ac_dir_suffix.
3868 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3869 case $ac_top_builddir_sub in
3870 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3871 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3872 esac ;;
3873esac
3874ac_abs_top_builddir=$ac_pwd
3875ac_abs_builddir=$ac_pwd$ac_dir_suffix
3876# for backward compatibility:
3877ac_top_builddir=$ac_top_build_prefix
3878
3879case $srcdir in
3880 .) # We are building in place.
3881 ac_srcdir=.
3882 ac_top_srcdir=$ac_top_builddir_sub
3883 ac_abs_top_srcdir=$ac_pwd ;;
3884 [\\/]* | ?:[\\/]* ) # Absolute name.
3885 ac_srcdir=$srcdir$ac_dir_suffix;
3886 ac_top_srcdir=$srcdir
3887 ac_abs_top_srcdir=$srcdir ;;
3888 *) # Relative name.
3889 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3890 ac_top_srcdir=$ac_top_build_prefix$srcdir
3891 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3892esac
3893ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3894
3895
3896 case $ac_mode in
3897 :F)
3898 #
3899 # CONFIG_FILE
3900 #
3901
3902_ACEOF
3903
3904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3905# If the template does not know about datarootdir, expand it.
3906# FIXME: This hack should be removed a few years after 2.60.
3907ac_datarootdir_hack=; ac_datarootdir_seen=
3908ac_sed_dataroot='
3909/datarootdir/ {
3910 p
3911 q
3912}
3913/@datadir@/p
3914/@docdir@/p
3915/@infodir@/p
3916/@localedir@/p
3917/@mandir@/p'
3918case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3919*datarootdir*) ac_datarootdir_seen=yes;;
3920*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3922$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3923_ACEOF
3924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3925 ac_datarootdir_hack='
3926 s&@datadir@&$datadir&g
3927 s&@docdir@&$docdir&g
3928 s&@infodir@&$infodir&g
3929 s&@localedir@&$localedir&g
3930 s&@mandir@&$mandir&g
3931 s&\\\${datarootdir}&$datarootdir&g' ;;
3932esac
3933_ACEOF
3934
3935# Neutralize VPATH when `$srcdir' = `.'.
3936# Shell code in configure.ac might set extrasub.
3937# FIXME: do we really want to maintain this feature?
3938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3939ac_sed_extra="$ac_vpsub
3940$extrasub
3941_ACEOF
3942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3943:t
3944/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3945s|@configure_input@|$ac_sed_conf_input|;t t
3946s&@top_builddir@&$ac_top_builddir_sub&;t t
3947s&@top_build_prefix@&$ac_top_build_prefix&;t t
3948s&@srcdir@&$ac_srcdir&;t t
3949s&@abs_srcdir@&$ac_abs_srcdir&;t t
3950s&@top_srcdir@&$ac_top_srcdir&;t t
3951s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3952s&@builddir@&$ac_builddir&;t t
3953s&@abs_builddir@&$ac_abs_builddir&;t t
3954s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3955$ac_datarootdir_hack
3956"
3957eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3958 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3959
3960test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3961 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3962 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3963 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3965which seems to be undefined. Please make sure it is defined" >&5
3966$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3967which seems to be undefined. Please make sure it is defined" >&2;}
3968
3969 rm -f "$ac_tmp/stdin"
3970 case $ac_file in
3971 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3972 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3973 esac \
3974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3975 ;;
3976
3977
3978
3979 esac
3980
3981done # for ac_tag
3982
3983
3984as_fn_exit 0
3985_ACEOF
3986ac_clean_files=$ac_clean_files_save
3987
3988test $ac_write_fail = 0 ||
3989 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3990
3991
3992# configure is writing to config.log, and then calls config.status.
3993# config.status does its own redirection, appending to config.log.
3994# Unfortunately, on DOS this fails, as config.log is still kept open
3995# by configure, so config.status won't be able to write to it; its
3996# output is simply discarded. So we exec the FD to /dev/null,
3997# effectively closing config.log, so it can be properly (re)opened and
3998# appended to by config.status. When coming back to configure, we
3999# need to make the FD available again.
4000if test "$no_create" != yes; then
4001 ac_cs_success=:
4002 ac_config_status_args=
4003 test "$silent" = yes &&
4004 ac_config_status_args="$ac_config_status_args --quiet"
4005 exec 5>/dev/null
4006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4007 exec 5>>config.log
4008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4009 # would make configure fail if this is the last instruction.
4010 $ac_cs_success || as_fn_exit 1
4011fi
4012if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4014$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4015fi
4016
4017
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Build configured successfully" >&5
4019$as_echo "Build configured successfully" >&6; }