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